cmd

package
Version: v0.0.0-...-9f4c442 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2020 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChangeKubectl

func ChangeKubectl() *cobra.Command

func ConfigCommand

func ConfigCommand() *cobra.Command

func GCPConfigSwitch

func GCPConfigSwitch() *cobra.Command

func GetLogsCmd

func GetLogsCmd() *cobra.Command

GetLogsCmd builds the logs cobra command for suich

func PortForward

func PortForward() *cobra.Command

func RemoveContext

func RemoveContext() *cobra.Command

func RootCmd

func RootCmd() *cobra.Command

func SuichNamespaceCMD

func SuichNamespaceCMD() *cobra.Command

func SwitchCmd

func SwitchCmd() *cobra.Command

Types

type Kubectl

type Kubectl struct{}

func (*Kubectl) Downloads

func (k *Kubectl) Downloads(cmd *cobra.Command) error

func (*Kubectl) Validate

func (k *Kubectl) Validate(cmd *cobra.Command) error

type KubectlCluster

type KubectlCluster struct {
	Server                   string `json:"server,omitempty"`
	CertificateAuthorityData []byte `json:"certificate-authority-data,omitempty"`
}

type KubectlClusterWithName

type KubectlClusterWithName struct {
	Name    string         `json:"name"`
	Cluster KubectlCluster `json:"cluster"`
}

type KubectlConfig

type KubectlConfig struct {
	Kind           string                    `json:"kind"`
	ApiVersion     string                    `json:"apiVersion"`
	CurrentContext string                    `json:"current-context"`
	Clusters       []*KubectlClusterWithName `json:"clusters"`
	Contexts       []*KubectlContextWithName `json:"contexts"`
	Users          []*KubectlUserWithName    `json:"users"`
}

type KubectlContext

type KubectlContext struct {
	Cluster string `json:"cluster"`
	User    string `json:"user"`
}

type KubectlContextWithName

type KubectlContextWithName struct {
	Name    string         `json:"name"`
	Context KubectlContext `json:"context"`
}

type KubectlUser

type KubectlUser struct {
	ClientCertificateData []byte `json:"client-certificate-data,omitempty"`
	ClientKeyData         []byte `json:"client-key-data,omitempty"`
	Password              string `json:"password,omitempty"`
	Username              string `json:"username,omitempty"`
	Token                 string `json:"token,omitempty"`
}

type KubectlUserWithName

type KubectlUserWithName struct {
	Name string      `json:"name"`
	User KubectlUser `json:"user"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL