scaleway

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2022 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ScalewayMetadataEndpoint is the local Scaleway endpoint.
	ScalewayMetadataEndpoint = "http://169.254.42.42/conf?format=json"
	// ScalewayUserDataEndpoint is the local Scaleway endpoint for the config.
	ScalewayUserDataEndpoint = "http://169.254.42.42/user_data/cloud-init"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Scaleway

type Scaleway struct{}

Scaleway is the concrete type that implements the runtime.Platform interface.

func (*Scaleway) Configuration

func (s *Scaleway) Configuration(ctx context.Context) ([]byte, error)

Configuration implements the runtime.Platform interface.

func (*Scaleway) KernelArgs

func (s *Scaleway) KernelArgs() procfs.Parameters

KernelArgs implements the runtime.Platform interface.

func (*Scaleway) Mode

func (s *Scaleway) Mode() runtime.Mode

Mode implements the runtime.Platform interface.

func (*Scaleway) Name

func (s *Scaleway) Name() string

Name implements the runtime.Platform interface.

func (*Scaleway) NetworkConfiguration added in v1.0.0

func (s *Scaleway) NetworkConfiguration(ctx context.Context, ch chan<- *runtime.PlatformNetworkConfig) error

NetworkConfiguration implements the runtime.Platform interface.

func (*Scaleway) ParseMetadata added in v1.0.0

func (s *Scaleway) ParseMetadata(metadataConfig *instance.Metadata) (*runtime.PlatformNetworkConfig, error)

ParseMetadata converts Scaleway met.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL