fixture

package
v0.19.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fixture

type Fixture struct {
	Ctx     context.Context
	Cli     client.Client
	K8SCli  *kubernetes.Clientset
	TopoCli *topologyclientset.Clientset
	ApiExt  *apiextension.Clientset
	NS      *corev1.Namespace
}

func New

func New() *Fixture

func (*Fixture) CreateNamespace

func (fxt *Fixture) CreateNamespace(prefix string) (func() error, error)

CreateNamespace creates a namespace with the given prefix and return a cleanup function for the newly created namespace

Jump to

Keyboard shortcuts

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