Documentation
¶
Index ¶
- func DisableVerbose()
- func EnableVerbose()
- type KubectlContext
- func (k *KubectlContext) Apply(file string) (stdout string, err error)
- func (k *KubectlContext) DeleteByFile(file string) (stdout string, err error)
- func (k *KubectlContext) ExecInPod(name string) *KubectlExec
- func (k *KubectlContext) Get(resource string) *KubectlGet
- func (k *KubectlContext) KubeConfigFile(conf string) *KubectlContext
- func (k *KubectlContext) Log(name string, container string) *KubectlLog
- func (k *KubectlContext) Namespace(ns string) *KubectlContext
- func (k *KubectlContext) WaitAllDeployments()
- type KubectlExec
- type KubectlGet
- type KubectlGetOutput
- func (k KubectlGetOutput) Exist() (bool, error)
- func (k KubectlGetOutput) JSON() (string, error)
- func (k KubectlGetOutput) ObjectField(path string) (string, error)
- func (k KubectlGetOutput) ObjectFields(paths []string) (fields []string, err error)
- func (k KubectlGetOutput) ObjectsField(path string) ([]string, error)
- func (k KubectlGetOutput) ObjectsFields(paths []string) (out [][]string, err error)
- func (k KubectlGetOutput) YAML() (string, error)
- type KubectlLog
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DisableVerbose ¶
func DisableVerbose()
func EnableVerbose ¶
func EnableVerbose()
Types ¶
type KubectlContext ¶
type KubectlContext kubectlContext
func Kubectl ¶
func Kubectl() *KubectlContext
func (*KubectlContext) Apply ¶
func (k *KubectlContext) Apply(file string) (stdout string, err error)
func (*KubectlContext) DeleteByFile ¶
func (k *KubectlContext) DeleteByFile(file string) (stdout string, err error)
func (*KubectlContext) ExecInPod ¶
func (k *KubectlContext) ExecInPod(name string) *KubectlExec
func (*KubectlContext) Get ¶
func (k *KubectlContext) Get(resource string) *KubectlGet
func (*KubectlContext) KubeConfigFile ¶
func (k *KubectlContext) KubeConfigFile(conf string) *KubectlContext
func (*KubectlContext) Log ¶
func (k *KubectlContext) Log(name string, container string) *KubectlLog
func (*KubectlContext) Namespace ¶
func (k *KubectlContext) Namespace(ns string) *KubectlContext
func (*KubectlContext) WaitAllDeployments ¶
func (k *KubectlContext) WaitAllDeployments()
type KubectlExec ¶
type KubectlExec kubectlExecCtx
func (*KubectlExec) InContainer ¶
func (e *KubectlExec) InContainer(c string) *KubectlExec
type KubectlGet ¶
type KubectlGet kubectlGetCtx
func (*KubectlGet) All ¶
func (k *KubectlGet) All() KubectlGetOutput
func (*KubectlGet) ByLabel ¶
func (k *KubectlGet) ByLabel(labelSelector string) KubectlGetOutput
func (*KubectlGet) ByName ¶
func (k *KubectlGet) ByName(name string) KubectlGetOutput
type KubectlGetOutput ¶
type KubectlGetOutput kubectlGetCtx
func (KubectlGetOutput) Exist ¶
func (k KubectlGetOutput) Exist() (bool, error)
func (KubectlGetOutput) JSON ¶
func (k KubectlGetOutput) JSON() (string, error)
func (KubectlGetOutput) ObjectField ¶
func (k KubectlGetOutput) ObjectField(path string) (string, error)
func (KubectlGetOutput) ObjectFields ¶
func (k KubectlGetOutput) ObjectFields(paths []string) (fields []string, err error)
func (KubectlGetOutput) ObjectsField ¶
func (k KubectlGetOutput) ObjectsField(path string) ([]string, error)
func (KubectlGetOutput) ObjectsFields ¶
func (k KubectlGetOutput) ObjectsFields(paths []string) (out [][]string, err error)
func (KubectlGetOutput) YAML ¶
func (k KubectlGetOutput) YAML() (string, error)
type KubectlLog ¶
type KubectlLog kubectlExecCtx
Click to show internal directories.
Click to hide internal directories.