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