vultr

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: MPL-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Package vultr provides the Vultr platform implementation.

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"
	// 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, r state.State) ([]byte, error)

Configuration implements the runtime.Platform interface.

func (*Vultr) KernelArgs

func (v *Vultr) KernelArgs(string) 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

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

NetworkConfiguration implements the runtime.Platform interface.

func (*Vultr) ParseMetadata

func (v *Vultr) ParseMetadata(metadata *metadata.MetaData) (*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