kubectl

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2023 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigCurrentContext

func ConfigCurrentContext(k *KubectlFlags, ku *KubeFlags) []string

func ConfigGetContext

func ConfigGetContext(k *KubectlFlags, ku *KubeFlags, context string) []string

func ConfigSetCluster

func ConfigSetCluster(k *KubectlFlags, ku *KubeFlags, cluster string, data map[string]string) []string

func Cp

func Cp(k *KubectlFlags, ku *KubeFlags, target, src, dest string) []string

func Exec

func Exec(k *KubectlFlags, ku *KubeFlags, target string, stdin, tty bool, exec ...string) []string

func GetConfigmap added in v0.2.0

func GetConfigmap(k *KubectlFlags, ku *KubeFlags, name string) []string

func GetPods

func GetPods(k *KubectlFlags, ku *KubeFlags, labels map[string]string) []string

func Kubectl added in v0.2.0

func Kubectl(k *KubectlFlags, ku *KubeFlags, args ...string) []string

func PortForward

func PortForward(k *KubectlFlags, ku *KubeFlags, target string, mappings map[string]string) []string

func Version

func Version(k *KubectlFlags, ku *KubeFlags) []string

func WatchPods added in v0.2.0

func WatchPods(k *KubectlFlags, ku *KubeFlags, labels map[string]string, allNamespaces bool) []string

Types

type KubeFlags

type KubeFlags struct {
	ConfigOverrides clientcmd.ConfigOverrides
	Kubeconfig      string
}

func (*KubeFlags) CustomFlags added in v0.2.0

func (k *KubeFlags) CustomFlags(flagInfo *clientcmd.ConfigOverrideFlags, kubeconfigFlag string) map[string]string

func (*KubeFlags) Flags

func (k *KubeFlags) Flags() map[string]string

func (*KubeFlags) Override

func (k *KubeFlags) Override(k2 *KubeFlags)

type KubectlFlags

type KubectlFlags struct {
	Command []string
}

func (*KubectlFlags) Override

func (k *KubectlFlags) Override(k2 *KubectlFlags)

type RawKubeFlags added in v0.2.0

type RawKubeFlags struct {
	Kubeconfig     string                `json:"kubeconfig,omitempty"`
	User           clientcmdapi.AuthInfo `json:"user,omitempty"`
	Cluster        clientcmdapi.Cluster  `json:"cluster,omitempty"`
	Context        clientcmdapi.Context  `json:"context,omitempty"`
	CurrentContext string                `json:"current-context,omitempty"`
	RequestTimeout string                `json:"request-timeout,omitempty"`
}

func (*RawKubeFlags) Format added in v0.2.0

func (r *RawKubeFlags) Format() KubeFlags

Jump to

Keyboard shortcuts

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