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 ¶
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.
Click to show internal directories.
Click to hide internal directories.