2021-11-16 18:04:01 +00:00
|
|
|
//go:build !consulent
|
2020-01-24 15:04:58 +00:00
|
|
|
// +build !consulent
|
|
|
|
|
|
|
|
package structs
|
|
|
|
|
2022-03-13 03:55:53 +00:00
|
|
|
import (
|
|
|
|
"github.com/hashicorp/consul/acl"
|
|
|
|
)
|
|
|
|
|
2020-01-24 15:04:58 +00:00
|
|
|
// GetEnterpriseMeta is used to synthesize the EnterpriseMeta struct from
|
|
|
|
// fields in the ServiceRouteDestination
|
2022-03-13 03:55:53 +00:00
|
|
|
func (dest *ServiceRouteDestination) GetEnterpriseMeta(_ *acl.EnterpriseMeta) *acl.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
|
2022-03-13 03:55:53 +00:00
|
|
|
func (split *ServiceSplit) GetEnterpriseMeta(_ *acl.EnterpriseMeta) *acl.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
|
2022-03-13 03:55:53 +00:00
|
|
|
func (redir *ServiceResolverRedirect) GetEnterpriseMeta(_ *acl.EnterpriseMeta) *acl.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
|
2022-03-13 03:55:53 +00:00
|
|
|
func (failover *ServiceResolverFailover) GetEnterpriseMeta(_ *acl.EnterpriseMeta) *acl.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
|
2022-03-13 03:55:53 +00:00
|
|
|
func (req *DiscoveryChainRequest) GetEnterpriseMeta() *acl.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
|
2022-03-13 03:55:53 +00:00
|
|
|
func (req *DiscoveryChainRequest) WithEnterpriseMeta(_ *acl.EnterpriseMeta) {
|
2020-01-24 15:04:58 +00:00
|
|
|
// do nothing
|
|
|
|
}
|