e2e_test

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2018 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Kubectl

type Kubectl struct {
	Context, Namespace string
	// contains filtered or unexported fields
}

func NewKubectl

func NewKubectl(kubectlctx string) *Kubectl

func (*Kubectl) Apply added in v0.2.1

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

func (*Kubectl) Cp added in v0.3.0

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

func (*Kubectl) Create added in v0.2.1

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

func (*Kubectl) CreateLocalRolesAndSleep added in v0.3.0

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

func (*Kubectl) CreateNS

func (k *Kubectl) CreateNS() error

func (*Kubectl) CreateSleep added in v0.3.0

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

func (*Kubectl) DeleteNS

func (k *Kubectl) DeleteNS() error

func (*Kubectl) Exec added in v0.3.0

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

func (*Kubectl) ExecAsync added in v0.3.0

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

func (*Kubectl) Logs

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

func (*Kubectl) Pods

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

func (*Kubectl) PortForward added in v0.3.0

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

func (*Kubectl) Prepare

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

func (*Kubectl) Proxy added in v0.3.0

func (k *Kubectl) Proxy() error

func (*Kubectl) StopProxy added in v0.3.0

func (k *Kubectl) StopProxy()

func (*Kubectl) WaitPods added in v0.2.1

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

type Squash

type Squash struct {
	Namespace string
	// contains filtered or unexported fields
}

func NewSquash

func NewSquash(k *Kubectl) *Squash

func (*Squash) Attach

func (s *Squash) Attach(image, pod, container, processName, dbgger string) (*models.DebugAttachment, error)

func (*Squash) Delete added in v0.3.0

func (s *Squash) Delete(da *models.DebugAttachment) error

func (*Squash) Wait

func (s *Squash) Wait(id string) (*models.DebugAttachment, error)

Jump to

Keyboard shortcuts

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