metal

package
v0.12.3 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2021 License: MPL-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PopulateURLParameters added in v0.11.0

func PopulateURLParameters(downloadURL string, getSystemUUID func() (uuid.UUID, error)) (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) ([]byte, error)

Configuration implements the platform.Platform interface.

func (*Metal) ExternalIPs

func (m *Metal) ExternalIPs(context.Context) (addrs []net.IP, err error)

ExternalIPs implements the platform.Platform interface.

func (*Metal) Hostname

func (m *Metal) Hostname(context.Context) (hostname []byte, err error)

Hostname 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.

Jump to

Keyboard shortcuts

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