Documentation ¶
Index ¶
- Constants
- type Vultr
- func (v *Vultr) Configuration(ctx context.Context) ([]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, ch chan<- *runtime.PlatformNetworkConfig) error
- func (v *Vultr) ParseMetadata(meta *metadata.MetaData, extIP []byte) (*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" // 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 ¶
Configuration implements the runtime.Platform interface.
func (*Vultr) KernelArgs ¶
func (v *Vultr) KernelArgs() procfs.Parameters
KernelArgs 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.
Click to show internal directories.
Click to hide internal directories.