envtest

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2025 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, input Input) int

Types

type Environment

type Environment struct {
	client.Client
	// contains filtered or unexported fields
}

func (*Environment) CreateNamespace

func (e *Environment) CreateNamespace(ctx context.Context, ns string) (*corev1.Namespace, error)

type Input

type Input struct {
	M                *testing.M
	SetupReconcilers func(ctx context.Context, mgr ctrl.Manager)
	SetupEnv         func(e *Environment)
}

Jump to

Keyboard shortcuts

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