Documentation ¶
Index ¶
- type Environment
- type TestClient
- func (c *TestClient) CountChildrenResources(ctx context.Context, owner runtimeclient.Object, childrenGVK kotclient.GVK) (int, error)
- func (c *TestClient) CreateAndWait(ctx context.Context, resource runtimeclient.Object) error
- func (c *TestClient) WaitUntilResouceExists(ctx context.Context, obj runtimeclient.Object) error
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
Click to show internal directories.
Click to hide internal directories.