Documentation ¶
Overview ¶
Package exoscale contains the Exoscale platform implementation.
Index ¶
- Constants
- type Exoscale
- func (e *Exoscale) Configuration(ctx context.Context, r state.State) ([]byte, error)
- func (e *Exoscale) KernelArgs() procfs.Parameters
- func (e *Exoscale) Mode() runtime.Mode
- func (e *Exoscale) Name() string
- func (e *Exoscale) NetworkConfiguration(ctx context.Context, _ state.State, ch chan<- *runtime.PlatformNetworkConfig) error
- func (e *Exoscale) ParseMetadata(metadata *MetadataConfig) (*runtime.PlatformNetworkConfig, error)
- type MetadataConfig
Constants ¶
View Source
const ( // ExoscaleMetadataEndpoint is the local Exoscale endpoint. ExoscaleMetadataEndpoint = "http://169.254.169.254/1.0/meta-data" // ExoscaleUserDataEndpoint is the local Exoscale endpoint for the config. ExoscaleUserDataEndpoint = "http://169.254.169.254/1.0/user-data" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Exoscale ¶
type Exoscale struct{}
Exoscale is the concrete type that implements the runtime.Platform interface.
func (*Exoscale) Configuration ¶
Configuration implements the runtime.Platform interface.
func (*Exoscale) KernelArgs ¶
func (e *Exoscale) KernelArgs() procfs.Parameters
KernelArgs implements the runtime.Platform interface.
func (*Exoscale) NetworkConfiguration ¶
func (e *Exoscale) NetworkConfiguration(ctx context.Context, _ state.State, ch chan<- *runtime.PlatformNetworkConfig) error
NetworkConfiguration implements the runtime.Platform interface.
func (*Exoscale) ParseMetadata ¶
func (e *Exoscale) ParseMetadata(metadata *MetadataConfig) (*runtime.PlatformNetworkConfig, error)
ParseMetadata converts Exoscale platform metadata into platform network config.
type MetadataConfig ¶
type MetadataConfig struct { Hostname string `json:"local-hostname,omitempty"` InstanceID string `json:"instance-id,omitempty"` InstanceType string `json:"service-offering,omitempty"` PublicIPv4 string `json:"public-ipv4,omitempty"` Zone string `json:"availability-zone,omitempty"` }
MetadataConfig represents a metadata Exoscale instance.
Click to show internal directories.
Click to hide internal directories.