Documentation ¶
Index ¶
- func ConfigCurrentContext(k *KubectlFlags, ku *KubeFlags) []string
- func ConfigGetContext(k *KubectlFlags, ku *KubeFlags, context string) []string
- func ConfigSetCluster(k *KubectlFlags, ku *KubeFlags, cluster string, data map[string]string) []string
- func Cp(k *KubectlFlags, ku *KubeFlags, target, src, dest string) []string
- func Exec(k *KubectlFlags, ku *KubeFlags, target string, stdin, tty bool, exec ...string) []string
- func GetConfigmap(k *KubectlFlags, ku *KubeFlags, name string) []string
- func GetPods(k *KubectlFlags, ku *KubeFlags, labels map[string]string) []string
- func Kubectl(k *KubectlFlags, ku *KubeFlags, args ...string) []string
- func PortForward(k *KubectlFlags, ku *KubeFlags, target string, mappings map[string]string) []string
- func Version(k *KubectlFlags, ku *KubeFlags) []string
- func WatchPods(k *KubectlFlags, ku *KubeFlags, labels map[string]string, allNamespaces bool) []string
- type KubeFlags
- type KubectlFlags
- type RawKubeFlags
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 GetConfigmap ¶ added in v0.2.0
func GetConfigmap(k *KubectlFlags, ku *KubeFlags, name string) []string
func Kubectl ¶ added in v0.2.0
func Kubectl(k *KubectlFlags, ku *KubeFlags, args ...string) []string
func PortForward ¶
func Version ¶
func Version(k *KubectlFlags, ku *KubeFlags) []string
Types ¶
type KubeFlags ¶
type KubeFlags struct { ConfigOverrides clientcmd.ConfigOverrides Kubeconfig string }
func (*KubeFlags) CustomFlags ¶ added in v0.2.0
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
Click to show internal directories.
Click to hide internal directories.