Documentation ¶
Index ¶
- Variables
- func SDK(ctx context.Context, p specs.Platform) (compute.Computable[K3D], error)
- func ValidateDocker(ctx context.Context, cli docker.Client) error
- type Cluster
- type K3D
- func (k3d K3D) CreateCluster(ctx context.Context, name, registry, image string, updateDefault bool) error
- func (k3d K3D) CreateRegistry(ctx context.Context, name string, port int) error
- func (k3d K3D) DeleteCluster(ctx context.Context, name string) error
- func (k3d K3D) DeleteRegistry(ctx context.Context, name string) error
- func (k3d K3D) ListClusters(ctx context.Context) ([]Cluster, error)
- func (k3d K3D) ListRegistries(ctx context.Context) ([]Registry, error)
- func (k3d K3D) MergeConfiguration(ctx context.Context, name string) error
- func (k3d K3D) StartNode(ctx context.Context, nodeName string) error
- func (k3d K3D) StopNode(ctx context.Context, nodeName string) error
- type Node
- type Registry
- type State
Constants ¶
This section is empty.
Variables ¶
View Source
var IgnoreZfsCheck = false
View Source
var Pins = map[string]artifacts.Reference{ "linux/amd64": { URL: fmt.Sprintf("https://github.com/rancher/k3d/releases/download/v%s/k3d-linux-amd64", version), Digest: schema.Digest{ Algorithm: "sha256", Hex: "7ddb900e6e50120b65d61568f6af007a82331bf83918608a6a7be8910792faef", }, }, "linux/arm64": { URL: fmt.Sprintf("https://github.com/rancher/k3d/releases/download/v%s/k3d-linux-arm64", version), Digest: schema.Digest{ Algorithm: "sha256", Hex: "ccf1dafc1eddfef083375377a52ef0ca269a41c5bc4f0f4d7e11a7c56da08833", }, }, "darwin/arm64": { URL: fmt.Sprintf("https://github.com/rancher/k3d/releases/download/v%s/k3d-darwin-arm64", version), Digest: schema.Digest{ Algorithm: "sha256", Hex: "d0149ecb9b3fb831d617a0a880d8235722a70b9131f45f1389235e586050f8f9", }, }, "darwin/amd64": { URL: fmt.Sprintf("https://github.com/rancher/k3d/releases/download/v%s/k3d-darwin-amd64", version), Digest: schema.Digest{ Algorithm: "sha256", Hex: "40ac312bc762611de80daff24cb66d79aaaf17bf90e5e8d61caf90e63b57542d", }, }, }
Functions ¶
Types ¶
type K3D ¶
type K3D string
func (K3D) CreateCluster ¶
func (K3D) CreateRegistry ¶
If port is 0, an open port is allocated dynamically.
func (K3D) MergeConfiguration ¶
Click to show internal directories.
Click to hide internal directories.