k3d

package
v0.1.14 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClusterExists

func ClusterExists(clusterName string) bool

ClusterExists checks if a cluster with the given name exists by parsing JSON output.

func CreateCluster

func CreateCluster(clusterName, k3dOptions string, wait time.Duration) (time.Duration, error)

CreateCluster creates a new k3d cluster with the given name and options.

func DeleteCluster

func DeleteCluster(clusterName string, wait bool)

DeleteCluster deletes the k3d cluster with the given name

func IsInstalled

func IsInstalled() bool

IsInstalled checks if the k3d binary is available in PATH.

Types

type K3d

type K3d struct {
	// contains filtered or unexported fields
}

K3d represents a k3d cluster configuration.

func New

func New(clusterName string, k3dOptions string) *K3d

func (*K3d) ClusterExists

func (k *K3d) ClusterExists() bool

func (*K3d) CreateCluster

func (k *K3d) CreateCluster() (time.Duration, error)

func (*K3d) DeleteCluster

func (k *K3d) DeleteCluster(wait bool)

func (*K3d) GetName

func (k *K3d) GetName() string

func (*K3d) IsInstalled

func (k *K3d) IsInstalled() bool

Implement cluster.Provider interface

Jump to

Keyboard shortcuts

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