envtest

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(m *testing.M, setupFunc func(e *Environment)) (code int)

Types

type Environment

type Environment struct {
	Context context.Context
	// contains filtered or unexported fields
}

func NewEnvironment

func NewEnvironment() *Environment

func (*Environment) Client

func (e *Environment) Client(namespace string) client.Client

func (*Environment) CreateNamespace

func (e *Environment) CreateNamespace(t *testing.T) string

func (*Environment) RestConfig added in v0.3.0

func (e *Environment) RestConfig() *rest.Config

Jump to

Keyboard shortcuts

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