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.
|
|
|
|
// in OSS 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)
|
|
|
|
}
|