datasource

package
v1.4.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 14, 2018 License: Apache-2.0, Apache-2.0 Imports: 2 Imported by: 0

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 oportunity 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
}

Directories

Path Synopsis
ec2
gce

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL