kubectx

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CurrentKubeConfigNameEnv = "KS_CURRENT_KUBECONFIG_NAME"
	CurrentNamespaceEnv      = "KS_CURRENT_NAMESPACE"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type KubeContext

type KubeContext struct {
	ConfigName string `json:"configName"`
	ConfigPath string `json:"configPath"`

	Namespace string `json:"namespace"`

	Alias string `json:"alias"`

	Current bool `json:"current"`
	// contains filtered or unexported fields
}

type KubeManager

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

func BuildKubeManager

func BuildKubeManager(meta *metadata.Metadata) (*KubeManager, error)

func (*KubeManager) Delete

func (m *KubeManager) Delete(name string) error

func (*KubeManager) Get

func (m *KubeManager) Get(name string) (*KubeContext, error)

func (*KubeManager) GetCurrent

func (m *KubeManager) GetCurrent() (*KubeContext, error)

func (*KubeManager) List

func (m *KubeManager) List() []*KubeContext

func (*KubeManager) Rename

func (m *KubeManager) Rename(ctx *KubeContext, name string) error

func (*KubeManager) Set

func (m *KubeManager) Set(name string, data []byte) (*KubeContext, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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