package
1.7.0
Repository: https://github.com/rancher/k3d.git
Documentation: pkg.go.dev

# Functions

AddNode adds a node to an existing cluster.
CheckClusterName ensures that a cluster name is also a valid host name according to RFC 1123.
CheckTools checks if the docker API server is responding.
CreateCluster creates a new single-node cluster container and initializes the cluster directory.
CreatePublishedPorts is the factory function for PublishedPorts.
DeleteCluster removes the containers belonging to a cluster and its local directory.
GenerateRandomString thanks to https://stackoverflow.com/a/31832326/6450189 GenerateRandomString is used to generate a random string that is used as a cluster secret.
GetAllContainerNames returns a list of all containernames that will be created.
GetContainerName generates the container names.
GetKubeConfig grabs the kubeconfig from the running cluster and prints the path to stdout.
ImportImage saves an image locally and imports it into the k3d containers.
ListClusters prints a list of created clusters.
MergeLabels merges list of labels into a label map.
MergeLabelSpecs merges labels for a given node.
MergePortSpecs merges published ports for a given node.
No description provided by the author
Shell starts a new subshell with the KUBECONFIG pointing to the selected cluster.
StartCluster starts a stopped cluster container.
StopCluster stops a running cluster container (restartable).
ValidateHostname ensures that a cluster name is also a valid host name according to RFC 1123.

# Constants

Globally used constants.
Globally used constants.

# Structs

Cluster describes an existing cluster.
ClusterSpec defines the specs for a cluster that's up for creation.
Mirror contains the config related to the registry mirror.
PublishedPorts is a struct used for exposing container ports on the host system.
Registry is registry settings configured.
No description provided by the author