scaleway

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: MPL-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package scaleway provides the Scaleway platform implementation.

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, r state.State) ([]byte, error)

Configuration implements the runtime.Platform interface.

func (*Scaleway) KernelArgs

func (s *Scaleway) KernelArgs(string) 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

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

NetworkConfiguration implements the runtime.Platform interface.

func (*Scaleway) ParseMetadata

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

ParseMetadata converts Scaleway platform metadata into platform network config.

Jump to

Keyboard shortcuts

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