Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Datasource ¶
type Datasource interface { IsAvailable() bool AvailabilityChanges() bool ConfigRoot() string FetchMetadata() (Metadata, error) FetchUserdata() ([]byte, error) Type() string String() string // Finish gives the datasource the opportunity to clean up, unmount or release any open / cache resources Finish() error }
type Metadata ¶
type Metadata struct { // TODO: move to netconf/types.go ? // see https://ahmetalpbalkan.com/blog/comparison-of-instance-metadata-services/ Hostname string SSHPublicKeys map[string]string NetworkConfig netconf.NetworkConfig RootDisk string PublicIPv4 net.IP PublicIPv6 net.IP PrivateIPv4 net.IP PrivateIPv6 net.IP }
Click to show internal directories.
Click to hide internal directories.