Documentation ¶
Index ¶
- Constants
- type GCP
- func (g *GCP) Configuration(ctx context.Context) ([]byte, error)
- func (g *GCP) ExternalIPs(ctx context.Context) (addrs []net.IP, err error)
- func (g *GCP) Hostname(context.Context) (hostname []byte, err error)
- func (g *GCP) KernelArgs() procfs.Parameters
- func (g *GCP) Mode() runtime.Mode
- func (g *GCP) Name() string
Constants ¶
View Source
const ( // GCUserDataEndpoint is the local metadata endpoint inside of DO. GCUserDataEndpoint = "http://metadata.google.internal/computeMetadata/v1/instance/attributes/user-data" // GCExternalIPEndpoint displays all external addresses associated with the instance. GCExternalIPEndpoint = "http://metadata.google.internal/computeMetadata/v1/instance/network-interfaces/?recursive=true" )
Ref: https://cloud.google.com/compute/docs/storing-retrieving-metadata ex, curl -H "Metadata-Flavor: Google" 'http://169.254.169.254/computeMetadata/v1/instance/network-interfaces/?recursive=true'
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GCP ¶
type GCP struct{}
GCP is the concrete type that implements the platform.Platform interface.
func (*GCP) Configuration ¶
Configuration implements the platform.Platform interface.
func (*GCP) ExternalIPs ¶
ExternalIPs implements the runtime.Platform interface.
func (*GCP) KernelArgs ¶
func (g *GCP) KernelArgs() procfs.Parameters
KernelArgs implements the runtime.Platform interface.
Click to show internal directories.
Click to hide internal directories.