cmd

package
v0.0.2-dev Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2017 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

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 CreateCommand() cli.Command

func EnvCommand

func EnvCommand() cli.Command

func InspectCommand

func InspectCommand() cli.Command

func LsCommand

func LsCommand() cli.Command

func RmCommand

func RmCommand() cli.Command

func SetConfigToFile

func SetConfigToFile(config KubeConfig) error

func UpdateCommand

func UpdateCommand() cli.Command

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 ConfigUser struct {
	Name string   `yaml:"name,omitempty"`
	User UserData `yaml:"user,omitempty"`
}

type ContextData

type ContextData struct {
	Cluster string `yaml:"cluster,omitempty"`
	User    string `yaml:"user,omitempty"`
}

type DataCluster

type DataCluster struct {
	CertificateAuthorityData string `yaml:"certificate-authority-data,omitempty"`
	Server                   string `yaml:"server,omitempty"`
}

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)

type UserData

type UserData struct {
	Token    string `yaml:"token,omitempty"`
	Username string `yaml:"username,omitempty"`
	Password string `yaml:"password,omitempty"`
}

Jump to

Keyboard shortcuts

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