framework

package
v0.2.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2020 License: Apache-2.0 Imports: 23 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExecOptions

type ExecOptions struct {
	Command []string

	Namespace     string
	PodName       string
	ContainerName string

	Stdin         io.Reader
	CaptureStdout bool
	CaptureStderr bool
	// If false, whitespace in std{err,out} will be removed.
	PreserveWhitespace bool
}

ExecOptions passed to ExecWithOptions

type Framework

type Framework struct {
	*framework.Framework
}

Framework supports common operations used by e2e tests; it will keep a client & a namespace.

func New added in v0.2.0

func New(baseName string) *Framework

New makes a new framework and sets up a BeforeEach/AfterEach

func (*Framework) DeleteService

func (f *Framework) DeleteService(cluster framework.ClusterIndex, serviceName string)

func (*Framework) ExecWithOptions

func (f *Framework) ExecWithOptions(options ExecOptions, index framework.ClusterIndex) (string, string, error)

ExecWithOptions executes a command in the specified container, returning stdout, stderr and error. `options` allowed for additional parameters to be passed.

func (*Framework) NewNetShootDeployment

func (f *Framework) NewNetShootDeployment(cluster framework.ClusterIndex) *v1.PodList

func (*Framework) NewNginxDeployment

func (f *Framework) NewNginxDeployment(cluster framework.ClusterIndex) *v1.PodList

func (*Framework) NewNginxService

func (f *Framework) NewNginxService(cluster framework.ClusterIndex) *corev1.Service

type ServiceType

type ServiceType int

Jump to

Keyboard shortcuts

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