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
|
2021-06-25 16:47:47 -05:00
|
|
|
// +build !consulent
|
|
|
|
|
|
|
|
package connect
|
|
|
|
|
2021-10-14 08:32:45 -06:00
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
|
2022-04-05 14:10:06 -07:00
|
|
|
"github.com/hashicorp/consul/acl"
|
2021-10-14 08:32:45 -06:00
|
|
|
)
|
|
|
|
|
|
|
|
// GetEnterpriseMeta will synthesize an EnterpriseMeta struct from the SpiffeIDAgent.
|
|
|
|
// in OSS this just returns an empty (but never nil) struct pointer
|
2022-04-05 14:10:06 -07:00
|
|
|
func (id SpiffeIDAgent) GetEnterpriseMeta() *acl.EnterpriseMeta {
|
|
|
|
return &acl.EnterpriseMeta{}
|
2021-10-14 08:32:45 -06:00
|
|
|
}
|
2021-06-25 16:47:47 -05:00
|
|
|
|
|
|
|
func (id SpiffeIDAgent) uriPath() string {
|
|
|
|
return fmt.Sprintf("/agent/client/dc/%s/id/%s", id.Datacenter, id.Agent)
|
|
|
|
}
|