metal

package
v1.3.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2022 License: MPL-2.0 Imports: 23 Imported by: 0

Documentation

Overview

Package metal contains the metal implementation of the [platform.Platform].

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PopulateURLParameters

func PopulateURLParameters(ctx context.Context, downloadURL string, r state.State) (string, error)

PopulateURLParameters fills in empty parameters in the download URL.

Types

type Metal

type Metal struct{}

Metal is a discoverer for non-cloud environments.

func (*Metal) Configuration

func (m *Metal) Configuration(ctx context.Context, r state.State) ([]byte, error)

Configuration implements the platform.Platform interface.

func (*Metal) KernelArgs

func (m *Metal) KernelArgs() procfs.Parameters

KernelArgs implements the runtime.Platform interface.

func (*Metal) Mode

func (m *Metal) Mode() runtime.Mode

Mode implements the platform.Platform interface.

func (*Metal) Name

func (m *Metal) Name() string

Name implements the platform.Platform interface.

func (*Metal) NetworkConfiguration

func (m *Metal) NetworkConfiguration(ctx context.Context, st state.State, ch chan<- *runtime.PlatformNetworkConfig) error

NetworkConfiguration implements the runtime.Platform interface.

Jump to

Keyboard shortcuts

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