vultr

package
v1.0.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2022 License: MPL-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// VultrMetadataEndpoint is the local Vultr endpoint fot the instance metadata.
	VultrMetadataEndpoint = "http://169.254.169.254/v1.json"
	// VultrExternalIPEndpoint is the local Vultr endpoint for the external IP.
	VultrExternalIPEndpoint = "http://169.254.169.254/latest/meta-data/public-ipv4"
	// VultrHostnameEndpoint is the local Vultr endpoint for the hostname.
	VultrHostnameEndpoint = "http://169.254.169.254/latest/meta-data/hostname"
	// VultrUserDataEndpoint is the local Vultr endpoint for the config.
	VultrUserDataEndpoint = "http://169.254.169.254/latest/user-data"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Vultr

type Vultr struct{}

Vultr is the concrete type that implements the runtime.Platform interface.

func (*Vultr) Configuration

func (v *Vultr) Configuration(ctx context.Context) ([]byte, error)

Configuration implements the runtime.Platform interface.

func (*Vultr) KernelArgs

func (v *Vultr) KernelArgs() procfs.Parameters

KernelArgs implements the runtime.Platform interface.

func (*Vultr) Mode

func (v *Vultr) Mode() runtime.Mode

Mode implements the runtime.Platform interface.

func (*Vultr) Name

func (v *Vultr) Name() string

Name implements the runtime.Platform interface.

func (*Vultr) NetworkConfiguration added in v1.0.0

func (v *Vultr) NetworkConfiguration(ctx context.Context, ch chan<- *runtime.PlatformNetworkConfig) error

NetworkConfiguration implements the runtime.Platform interface.

func (*Vultr) ParseMetadata added in v1.0.0

func (v *Vultr) ParseMetadata(meta *metadata.MetaData, extIP []byte) (*runtime.PlatformNetworkConfig, error)

ParseMetadata converts Vultr platform metadata into platform network config.

Jump to

Keyboard shortcuts

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