kubeconfig

package
v1.0.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2017 License: Apache-2.0 Imports: 7 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CacheSystemAdminEntries added in v1.0.0

func CacheSystemAdminEntries(systemEntriesConfigPath, clusterName string) error

Cache system admin entries to be used to run oc commands

func GetConfigPath added in v1.0.0

func GetConfigPath() string

Types

type ClusterType added in v1.0.0

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

kubeconfig Data types

type ContextType added in v1.0.0

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

type SystemKubeConfig added in v1.0.0

type SystemKubeConfig struct {
	ApiVersion     string        `yaml:"apiVersion"`
	Clusters       []ClusterType `yaml:"clusters"`
	Contexts       []ContextType `yaml:"contexts"`
	CurrentContext string        `yaml:"current-context"`
	Users          []UserType    `yaml:"users"`
}

func Read added in v1.0.0

func Read(configPath string) (SystemKubeConfig, error)

type UserType added in v1.0.0

type UserType struct {
	User map[string]string `yaml:"user"`
	Name string            `yaml:"name"`
}

Jump to

Keyboard shortcuts

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