kubeconfig

package
v1.23.0 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2018 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 string, ocPath string, sshCommander provision.SSHCommander) 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