e2e_test

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2018 License: Apache-2.0 Imports: 13 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
}

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) Create added in v0.2.1

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

func (*Kubectl) CreateLocalRoles added in v0.2.1

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

func (*Kubectl) CreateNS

func (k *Kubectl) CreateNS() error

func (*Kubectl) DeleteNS

func (k *Kubectl) DeleteNS() error

func (*Kubectl) Logs

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

func (*Kubectl) Pods

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

func (*Kubectl) Prepare

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

func (*Kubectl) WaitPods added in v0.2.1

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

type Squash

type Squash struct {
	Namespace string
}

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) 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
JackTT - Gopher 🇻🇳