Documentation ¶
Overview ¶
Package vultr provides the Vultr platform implementation.
Index ¶
- Constants
- type Vultr
- func (v *Vultr) Configuration(ctx context.Context, r state.State) ([]byte, error)
- func (v *Vultr) KernelArgs() procfs.Parameters
- func (v *Vultr) Mode() runtime.Mode
- func (v *Vultr) Name() string
- func (v *Vultr) NetworkConfiguration(ctx context.Context, _ state.State, ch chan<- *runtime.PlatformNetworkConfig) error
- func (v *Vultr) ParseMetadata(metadata *metadata.MetaData) (*runtime.PlatformNetworkConfig, error)
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 ¶
Configuration implements the runtime.Platform interface.
func (*Vultr) KernelArgs ¶
func (v *Vultr) KernelArgs() procfs.Parameters
KernelArgs 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 ¶
ParseMetadata converts Vultr platform metadata into platform network config.
Click to show internal directories.
Click to hide internal directories.