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"
|
|
|
|
|
|
|
|
"github.com/hashicorp/consul/agent/structs"
|
|
|
|
)
|
|
|
|
|
|
|
|
// GetEnterpriseMeta will synthesize an EnterpriseMeta struct from the SpiffeIDAgent.
|
|
|
|
// in OSS this just returns an empty (but never nil) struct pointer
|
|
|
|
func (id SpiffeIDAgent) GetEnterpriseMeta() *structs.EnterpriseMeta {
|
|
|
|
return &structs.EnterpriseMeta{}
|
|
|
|
}
|
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)
|
|
|
|
}
|