tests

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2020 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 TestCli

type TestCli struct {
	Cli client.Client
}

TestCli contains clients

var TestClient *TestCli

TestClient encapsulates many kinds of clients

func (*TestCli) CreateNamespace

func (e *TestCli) CreateNamespace(name string) error

CreateNamespace creates the specified namespace and enable admission webhook if not exist.

func (*TestCli) DeleteNamespace

func (e *TestCli) DeleteNamespace(name string) error

DeleteNamespace delete the specified namespace

func (*TestCli) GetNodes

func (e *TestCli) GetNodes() (*corev1.NodeList, error)

GetNodes gets physical nodes

Jump to

Keyboard shortcuts

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