2021-11-16 18:04:01 +00:00
|
|
|
//go:build !consulent
|
2020-01-24 15:04:58 +00:00
|
|
|
// +build !consulent
|
|
|
|
|
|
|
|
package structs
|
|
|
|
|
|
|
|
// GetEnterpriseMeta is used to synthesize the EnterpriseMeta struct from
|
|
|
|
// fields in the ServiceRouteDestination
|
|
|
|
func (dest *ServiceRouteDestination) GetEnterpriseMeta(_ *EnterpriseMeta) *EnterpriseMeta {
|
2021-07-22 18:20:45 +00:00
|
|
|
return DefaultEnterpriseMetaInDefaultPartition()
|
2020-01-24 15:04:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// GetEnterpriseMeta is used to synthesize the EnterpriseMeta struct from
|
|
|
|
// fields in the ServiceSplit
|
|
|
|
func (split *ServiceSplit) GetEnterpriseMeta(_ *EnterpriseMeta) *EnterpriseMeta {
|
2021-07-22 18:20:45 +00:00
|
|
|
return DefaultEnterpriseMetaInDefaultPartition()
|
2020-01-24 15:04:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// GetEnterpriseMeta is used to synthesize the EnterpriseMeta struct from
|
|
|
|
// fields in the ServiceResolverRedirect
|
|
|
|
func (redir *ServiceResolverRedirect) GetEnterpriseMeta(_ *EnterpriseMeta) *EnterpriseMeta {
|
2021-07-22 18:20:45 +00:00
|
|
|
return DefaultEnterpriseMetaInDefaultPartition()
|
2020-01-24 15:04:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// GetEnterpriseMeta is used to synthesize the EnterpriseMeta struct from
|
|
|
|
// fields in the ServiceResolverFailover
|
|
|
|
func (failover *ServiceResolverFailover) GetEnterpriseMeta(_ *EnterpriseMeta) *EnterpriseMeta {
|
2021-07-22 18:20:45 +00:00
|
|
|
return DefaultEnterpriseMetaInDefaultPartition()
|
2020-01-24 15:04:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// GetEnterpriseMeta is used to synthesize the EnterpriseMeta struct from
|
|
|
|
// fields in the DiscoveryChainRequest
|
|
|
|
func (req *DiscoveryChainRequest) GetEnterpriseMeta() *EnterpriseMeta {
|
2021-07-22 18:20:45 +00:00
|
|
|
return DefaultEnterpriseMetaInDefaultPartition()
|
2020-01-24 15:04:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// WithEnterpriseMeta will populate the corresponding fields in the
|
|
|
|
// DiscoveryChainRequest from the EnterpriseMeta struct
|
|
|
|
func (req *DiscoveryChainRequest) WithEnterpriseMeta(_ *EnterpriseMeta) {
|
|
|
|
// do nothing
|
|
|
|
}
|