Documentation
¶
Index ¶
- Variables
- func CreateCommand() cli.Command
- func EnvCommand() cli.Command
- func InspectCommand() cli.Command
- func LsCommand() cli.Command
- func RmCommand() cli.Command
- func SetConfigToFile(config KubeConfig) error
- func UpdateCommand() cli.Command
- type ConfigCluster
- type ConfigContext
- type ConfigUser
- type ContextData
- type DataCluster
- type KubeConfig
- type UserData
Constants ¶
This section is empty.
Variables ¶
View Source
var GlobalFlag = []cli.Flag{ cli.BoolFlag{ Name: "debug", Usage: "Enable verbose logging", }, cli.StringFlag{ Name: "plugin-listen-addr", Usage: "The listening address for rpc plugin server", }, }
Functions ¶
func CreateCommand ¶
func EnvCommand ¶
func InspectCommand ¶
func SetConfigToFile ¶
func SetConfigToFile(config KubeConfig) error
func UpdateCommand ¶
Types ¶
type ConfigCluster ¶
type ConfigCluster struct { Cluster DataCluster `yaml:"cluster,omitempty"` Name string `yaml:"name,omitempty"` }
type ConfigContext ¶
type ConfigContext struct { Context ContextData `yaml:"context,omitempty"` Name string `yaml:"name,omitempty"` }
type ConfigUser ¶
type ContextData ¶
type DataCluster ¶
type KubeConfig ¶
type KubeConfig struct { APIVersion string `yaml:"apiVersion,omitempty"` Clusters []ConfigCluster `yaml:"clusters,omitempty"` Contexts []ConfigContext `yaml:"contexts,omitempty"` Users []ConfigUser `yaml:"users,omitempty"` CurrentContext string `yaml:"current-context,omitempty"` Kind string `yaml:"kind,omitempty"` Preferences string `yaml:"preferences,omitempty"` }
func GetConfigFromFile ¶
func GetConfigFromFile() (KubeConfig, error)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.