utils

package
v0.0.0-...-ef1d371 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

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

func (*KubectlExec) Shell

func (e *KubectlExec) Shell(cmd string) (string, error)

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

func (*KubectlLog) Last

func (e *KubectlLog) Last(size int) (string, error)

Jump to

Keyboard shortcuts

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