Documentation ¶
Index ¶
Constants ¶
View Source
const (
PluginName = "gcp_iit"
)
Variables ¶
View Source
var DefaultAgentPathTemplate = agentpathtemplate.MustParse("/{{ .PluginName }}/{{ .ProjectID }}/{{ .InstanceID }}")
DefaultAgentPathTemplate is the default text/template
Functions ¶
func MakeAgentID ¶ added in v1.2.0
func MakeAgentID(td spiffeid.TrustDomain, agentPathTemplate *agentpathtemplate.Template, computeEngine ComputeEngine) (spiffeid.ID, error)
MakeAgentID makes an agent SPIFFE ID. The ID always has a host value equal to the given trust domain, the path is created using the given agentPathTemplate which is given access to a fully populated ComputeEngine object.
Types ¶
type ComputeEngine ¶
type Google ¶
type Google struct {
ComputeEngine ComputeEngine `json:"compute_engine"`
}
Click to show internal directories.
Click to hide internal directories.