Documentation
¶
Index ¶
- Constants
- type Vultr
- func (v *Vultr) Configuration(ctx context.Context) ([]byte, error)
- func (v *Vultr) ConfigurationNetwork(metadataConfig []byte, confProvider config.Provider) (config.Provider, error)
- func (v *Vultr) ExternalIPs(ctx context.Context) (addrs []net.IP, err error)
- func (v *Vultr) Hostname(ctx context.Context) (hostname []byte, err error)
- func (v *Vultr) KernelArgs() procfs.Parameters
- func (v *Vultr) Mode() runtime.Mode
- func (v *Vultr) Name() string
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) ConfigurationNetwork ¶
func (v *Vultr) ConfigurationNetwork(metadataConfig []byte, confProvider config.Provider) (config.Provider, error)
ConfigurationNetwork implements the network configuration interface.
func (*Vultr) ExternalIPs ¶
ExternalIPs implements the runtime.Platform interface.
func (*Vultr) KernelArgs ¶
func (v *Vultr) KernelArgs() procfs.Parameters
KernelArgs implements the runtime.Platform interface.
Click to show internal directories.
Click to hide internal directories.