kubeconfig

package
v0.25.1 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const UseFSContext = ""

UseFSContext is used to indicate a context switch to the file system Kubeconfig context

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context struct {
	Name string `json:"name"`
}

Context describes a kube config context.

type KubeConfigContextManager added in v0.18.0

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

func NewKubeConfigContextManager added in v0.18.0

func NewKubeConfigContextManager(ctx context.Context, opts ...KubeConfigOption) (*KubeConfigContextManager, error)

func (*KubeConfigContextManager) ClusterClient added in v0.18.0

func (*KubeConfigContextManager) Contexts added in v0.18.0

func (k *KubeConfigContextManager) Contexts() []Context

func (*KubeConfigContextManager) CurrentContext added in v0.18.0

func (k *KubeConfigContextManager) CurrentContext() string

func (*KubeConfigContextManager) SwitchContext added in v0.18.0

func (k *KubeConfigContextManager) SwitchContext(ctx context.Context, contextName string) error

type KubeConfigOption added in v0.18.0

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

func FromClusterOption added in v0.18.0

func FromClusterOption(clusterOption internalCluster.ClusterOption) KubeConfigOption

func Noop added in v0.18.0

func Noop() KubeConfigOption

func WithContextName added in v0.18.0

func WithContextName(contextName string) KubeConfigOption

func WithKubeConfigList added in v0.18.0

func WithKubeConfigList(kubeConfigList string) KubeConfigOption

Jump to

Keyboard shortcuts

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