Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Cmd = &cobra.Command{
Use: "gce",
}
Cmd represents the 'funnel gce" CLI command set.
Functions ¶
func WithMetadataConfig ¶
WithMetadataConfig loads config from a GCE VM environment, in particular loading metadata from GCE's instance metadata. https://cloud.google.com/compute/docs/storing-retrieving-metadata
Types ¶
type Metadata ¶
type Metadata struct {
Instance struct {
Name string
Hostname string
Zone string
Attributes struct {
FunnelConfig string `json:"funnel-config"`
FunnelNodeServerAddress string `json:"funnel-node-serveraddress"`
}
}
Project struct {
ProjectID string `json:"projectId"`
}
}
Metadata contains a subset of details available from GCE VM metadata.
func LoadMetadata ¶
LoadMetadata loads metadata from the GCE VM metadata server.
func LoadMetadataFromURL ¶
LoadMetadataFromURL loads metadata from the given URL.
Click to show internal directories.
Click to hide internal directories.