kubeconfig

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

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 FSLoader

type FSLoader struct {
}

FSLoader loads kube configs from the file system.

func NewFSLoader

func NewFSLoader(options ...FSLoaderOpt) *FSLoader

NewFSLoader creates an instance of FSLoader.

func (*FSLoader) Load

func (l *FSLoader) Load(fileList string) (*KubeConfig, error)

Load loads a kube config contexts from a list of files.

type FSLoaderOpt

type FSLoaderOpt func(loader *FSLoader)

FSLoaderOpt is an option for configuring FSLoader.

type KubeConfig

type KubeConfig struct {
	Contexts       []Context
	CurrentContext string
}

KubeConfig describes a kube config for dash.

type Loader

type Loader interface {
	Load(filename string) (*KubeConfig, error)
}

Loader is an interface for loading kube config.

Directories

Path Synopsis
Package fake is a generated GoMock package.
Package fake is a generated GoMock package.

Jump to

Keyboard shortcuts

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