2023-03-28 19:39:22 +01:00
|
|
|
// Copyright (c) HashiCorp, Inc.
|
|
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
|
2021-11-16 12:04:01 -06:00
|
|
|
//go:build !consulent
|
2020-01-24 10:04:58 -05:00
|
|
|
// +build !consulent
|
|
|
|
|
|
|
|
package structs
|
|
|
|
|
2022-03-12 19:55:53 -08:00
|
|
|
import (
|
|
|
|
"github.com/hashicorp/consul/acl"
|
|
|
|
)
|
|
|
|
|
|
|
|
func (us *Upstream) GetEnterpriseMeta() *acl.EnterpriseMeta {
|
2021-07-22 13:20:45 -05:00
|
|
|
return DefaultEnterpriseMetaInDefaultPartition()
|
2020-01-24 10:04:58 -05:00
|
|
|
}
|
|
|
|
|
2023-02-03 09:51:53 -06:00
|
|
|
func (us *Upstream) DestinationID() PeeredServiceName {
|
|
|
|
return PeeredServiceName{
|
|
|
|
Peer: us.DestinationPeer,
|
|
|
|
ServiceName: NewServiceName(us.DestinationName, DefaultEnterpriseMetaInDefaultPartition()),
|
2020-01-24 10:04:58 -05:00
|
|
|
}
|
|
|
|
}
|
2021-04-15 13:54:40 -06:00
|
|
|
|
2022-01-20 10:12:04 -06:00
|
|
|
func (us *Upstream) enterpriseStringPrefix() string {
|
2021-12-13 11:43:33 -06:00
|
|
|
return ""
|
2021-04-15 13:54:40 -06:00
|
|
|
}
|