fixture

package
v0.4.10-1rc0 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OptionNone          = 0
	OptionRandomizeName = 1 << iota
)

Variables

This section is empty.

Functions

func RandomizeName

func RandomizeName(baseName string) string

func Teardown

func Teardown(ft *Fixture) error

Types

type Fixture

type Fixture struct {
	// Client defines the API client to run CRUD operations, that will be used for testing
	Client client.Client
	// K8sClient defines k8s client to run subresource operations, for example you should use it to get pod logs
	K8sClient *kubernetes.Clientset
	Namespace corev1.Namespace
}

func Setup

func Setup(baseName string) (*Fixture, error)

func SetupWithOptions

func SetupWithOptions(name string, options Options) (*Fixture, error)

type Options

type Options uint

Jump to

Keyboard shortcuts

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