digitalocean

package
v0.3.0-alpha.6 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2019 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DigitalOceanExternalIPEndpoint displays all external addresses associated with the instance
	DigitalOceanExternalIPEndpoint = "http://169.254.169.254/metadata/v1/interfaces/public/0/ipv4/address"
	// DigitalOceanHostnameEndpoint is the local endpoint for the hostname.
	DigitalOceanHostnameEndpoint = "http://169.254.169.254/metadata/v1/hostname"
	// DigitalOceanUserDataEndpoint is the local endpoint for the config.
	DigitalOceanUserDataEndpoint = "http://169.254.169.254/metadata/v1/user-data"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DigitalOcean

type DigitalOcean struct{}

DigitalOcean is the concrete type that implements the platform.Platform interface.

func (*DigitalOcean) Configuration

func (a *DigitalOcean) Configuration() ([]byte, error)

Configuration implements the platform.Platform interface.

func (*DigitalOcean) ExternalIPs

func (a *DigitalOcean) ExternalIPs() (addrs []net.IP, err error)

ExternalIPs provides any external addresses assigned to the instance

func (*DigitalOcean) Hostname

func (a *DigitalOcean) Hostname() (hostname []byte, err error)

Hostname gets the hostname from the DigitalOcean metadata endpoint.

func (*DigitalOcean) Mode

func (a *DigitalOcean) Mode() runtime.Mode

Mode implements the platform.Platform interface.

func (*DigitalOcean) Name

func (a *DigitalOcean) Name() string

Name implements the platform.Platform interface.

Jump to

Keyboard shortcuts

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