kubecdl

package
v0.5.12 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2019 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Kubecdl

type Kubecdl struct {
	Context, Namespace string

	ProxyAddress *string

	OutputWriter io.Writer
	// contains filtered or unexported fields
}

func NewKubecdl

func NewKubecdl(namespace string, kubectlctx string, w io.Writer) *Kubecdl

func (*Kubecdl) Apply

func (k *Kubecdl) Apply(yamlfile string, modifier ...func(string) string) error

func (*Kubecdl) Cp

func (k *Kubecdl) Cp(local, remote, pod, container string) error

func (*Kubecdl) Create

func (k *Kubecdl) Create(yamlfile string) error

func (*Kubecdl) CreateLocalRolesAndSleep

func (k *Kubecdl) CreateLocalRolesAndSleep(yamlfile string) error

func (*Kubecdl) CreateNS

func (k *Kubecdl) CreateNS() error

func (*Kubecdl) CreateSleep

func (k *Kubecdl) CreateSleep(yamlfile string) error

func (*Kubecdl) DeleteDebugAttachment

func (k *Kubecdl) DeleteDebugAttachment(name string) error

func (*Kubecdl) DeleteNS

func (k *Kubecdl) DeleteNS() error

func (*Kubecdl) Exec

func (k *Kubecdl) Exec(pod, container, cmd string, args ...string) error

func (*Kubecdl) ExecAsync

func (k *Kubecdl) ExecAsync(pod, container, cmd string, args ...string) error

func (*Kubecdl) GrantClusterAdminPermissions

func (k *Kubecdl) GrantClusterAdminPermissions(clusterRoleBindingName string) error

func (*Kubecdl) Logs

func (k *Kubecdl) Logs(name string) ([]byte, error)

func (*Kubecdl) Pods

func (k *Kubecdl) Pods() (*v1.PodList, error)

func (*Kubecdl) PortForward

func (k *Kubecdl) PortForward(name string) (*os.Process, string, error)

func (*Kubecdl) Prepare

func (k *Kubecdl) Prepare(args ...string) *exec.Cmd

func (*Kubecdl) Proxy

func (k *Kubecdl) Proxy() error

func (*Kubecdl) RemoveClusterAdminPermissions

func (k *Kubecdl) RemoveClusterAdminPermissions(clusterRoleBindingName string) error

func (*Kubecdl) StopProxy

func (k *Kubecdl) StopProxy()

func (*Kubecdl) String

func (k *Kubecdl) String() string

func (*Kubecdl) WaitPods

func (k *Kubecdl) WaitPods(ctx context.Context) error

Jump to

Keyboard shortcuts

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