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