Documentation ¶
Index ¶
Constants ¶
View Source
const (
PluginName = "gcp_iit"
)
Variables ¶
View Source
var DefaultAgentPathTemplate = template.Must(template.New("agent-path").Parse("{{ .PluginName }}/{{ .ProjectID }}/{{ .InstanceID }}"))
DefaultAgentPathTemplate is the default text/template
Functions ¶
func MakeSpiffeID ¶
func MakeSpiffeID(trustDomain string, agentPathTemplate *template.Template, computeEngine ComputeEngine) (*url.URL, error)
MakeSpiffeID 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.