kottesting

package
v0.0.0-...-8262c23 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Environment

type Environment struct {
	Config  *rest.Config
	Manager ctrl.Manager
	Client  runtimeclient.Client
	// contains filtered or unexported fields
}

func NewEnvironment

func NewEnvironment() *Environment

func (*Environment) CRDDirectoryPaths

func (e *Environment) CRDDirectoryPaths(paths ...string) *Environment

func (*Environment) Start

func (e *Environment) Start(logOutput io.Writer)

func (*Environment) StartManager

func (e *Environment) StartManager(ctx context.Context) error

func (*Environment) Stop

func (e *Environment) Stop() error

func (*Environment) WithScheme

func (e *Environment) WithScheme(fn func(*apiruntime.Scheme)) *Environment

type TestClient

type TestClient struct {
	kotclient.Client
	Scheme *apiruntime.Scheme
}

func (*TestClient) CountChildrenResources

func (c *TestClient) CountChildrenResources(ctx context.Context, owner runtimeclient.Object, childrenGVK kotclient.GVK) (int, error)

func (*TestClient) CreateAndWait

func (c *TestClient) CreateAndWait(ctx context.Context, resource runtimeclient.Object) error

func (*TestClient) WaitUntilResouceExists

func (c *TestClient) WaitUntilResouceExists(ctx context.Context, obj runtimeclient.Object) error

Directories

Path Synopsis
Package kotmocks is a generated GoMock package.
Package kotmocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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