package
0.0.0-20240501174442-826af499e579
Repository: https://github.com/minhaz00/k3d.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
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 creating a PublishedPorts struct based on the provided port specifications Parameters: - specs []string: A slice of strings representing the port specifications.
DeleteCluster removes the containers belonging to a cluster and its local directory.
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.
ListClusters prints a list of created clusters.
MergePortSpecs merges published ports for a given node nodeToPortSpecMap => map: node -> []portSpec role => server or worker name => container name.
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.

# Structs

PublishedPorts is a struct used for exposing container ports on the host system.