types

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2018 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cluster

type Cluster struct {
	Cluster map[string]string `yaml:"cluster"`
	Name    string            `yaml:"name"`
}

Cluster instance

type Context

type Context struct {
	Context map[string]string `yaml:"context"`
	Name    string            `yaml:"name"`
}

Context instance

type KubeConfig

type KubeConfig struct {
	CurrentContext string    `yaml:"current-context"`
	Clusters       []Cluster `yaml:"clusters"`
	Users          []User    `yaml:"users"`
	Contexts       []Context `yaml:"contexts"`
}

KubeConfig instance

func (*KubeConfig) Parse

func (k *KubeConfig) Parse(data []byte) error

Parse data into KubeConfig instance.

type User

type User struct {
	Name string `yaml:"name"`
}

User instance

Jump to

Keyboard shortcuts

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