e2e_test

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2017 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Inittest

func Inittest(k *Kubectl) (func(), error)

Types

type Kubectl

type Kubectl struct {
	Context, Namespace string
}

func NewKubectl

func NewKubectl(kubectlctx string) *Kubectl

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) Run

func (k *Kubectl) Run(args ...string) 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, dbgger string) (*models.DebugConfig, error)

func (*Squash) Service

func (s *Squash) Service(image, service, dbgger string, bp ...string) (*models.DebugConfig, error)

func (*Squash) Wait

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳