k8s

package
v0.32.0 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package k8s manages the local zero-config Kubernetes clusters using k3s.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Remove

func Remove(runtime, name string) error

Remove stops the cluster and deletes the isolated config.

Types

type Cluster

type Cluster struct {
	Name          string `json:"name"`
	ContainerName string `json:"container"`
	Port          int    `json:"port"`
	ConfigPath    string `json:"config_path"`
	Status        string `json:"status"`
}

func List

func List(runtime string) ([]Cluster, error)

List returns all active devx k3s clusters.

func Spawn

func Spawn(runtime, name string) (*Cluster, error)

Spawn boots a new k3s container and provisions its isolated kubeconfig.

Jump to

Keyboard shortcuts

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