package
4.5.0-dev.1
Repository: https://github.com/rancher/k3d.git
Documentation: pkg.go.dev

# Functions

FilterNodes takes a string filter to return a filtered list of nodes.
FilterNodesByRole returns a stripped list of nodes which do match the given role.
GenerateRandomString thanks to https://stackoverflow.com/a/31832326/6450189 GenerateRandomString is used to generate a random string that is used as a cluster token.
GetConfigDirOrCreate will return the base path of the k3d config directory or create it if it doesn't exist yet k3d's config directory will be $HOME/.k3d (Unix).
GetFakeMeminfoPathForName returns a path to (existent or not) fake meminfo file for a given node/container name.
GetFreePort tries to fetch an open port from the OS-Kernel.
GetNodeFakerDirOrCreate creates or gets a hidden folder in k3d home dir to keep container(node)-specific fake files in it.
MakeFakeEdac creates an empty edac folder to force cadvisor to use meminfo even for ECC memory.
MakeFakeMeminfo creates a fake meminfo file to be mounted and provide a specific RAM capacity.
MapSubexpNames maps regex capturing group names to corresponding matches.
ParseRegistryRef returns a registry struct parsed from a simplified definition string.
SplitLabelKeyValue separates the label key from the label value (if any).

# Constants

No description provided by the author
No description provided by the author