setup

package
v0.24.0 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDruidTestEnvironment

func NewDruidTestEnvironment(loggerName string, crdDirectoryPaths []string) (DruidTestEnvironment, DruidTestEnvCloser, error)

Types

type AddToManagerFn

type AddToManagerFn func(mgr manager.Manager)

type DruidTestEnvCloser

type DruidTestEnvCloser func()

type DruidTestEnvironment

type DruidTestEnvironment interface {
	ManagerRegisterer
	GetClient() client.Client
	CreateTestNamespace(name string) error
	GetLogger() logr.Logger
	GetContext() context.Context
	GetEnvTestEnvironment() *envtest.Environment
}

type ManagerRegisterer

type ManagerRegisterer interface {
	RegisterReconciler(addToMgrFn AddToManagerFn)
	CreateManager(clientBuilder *testutils.TestClientBuilder) error
	StartManager() error
}

Jump to

Keyboard shortcuts

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