coreutil

package
v0.0.0-...-2561dba Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ModuleName is the prefix given to all the functions in this module.
	ModuleName = "util"
)

Variables

This section is empty.

Functions

func HostnameMapper

func HostnameMapper(ctx context.Context, input []types.Value) (types.Value, error)

HostnameMapper takes a map from mac address to hostname, and finds a hostname that corresponds to one of the mac addresses on this machine. If it cannot find a match, it returns the empty string. If it's ambiguous, it errors. This is useful for bootstrapping the hostname setup on hosts.

XXX: This should produce new values if the list of interfaces change.

Types

This section is empty.

Jump to

Keyboard shortcuts

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