manager

package
v0.14.2 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockManager

type MockManager struct {
	TestManager
	mock.Mock
}

func (*MockManager) AddHealthzCheck

func (mgr *MockManager) AddHealthzCheck(name string, check healthz.Checker) error

func (*MockManager) AddReadyzCheck

func (mgr *MockManager) AddReadyzCheck(name string, check healthz.Checker) error

func (*MockManager) GetAPIReader added in v0.10.0

func (mgr *MockManager) GetAPIReader() client.Reader

func (*MockManager) GetClient added in v0.10.0

func (mgr *MockManager) GetClient() client.Client

func (*MockManager) GetConfig added in v0.10.0

func (mgr *MockManager) GetConfig() *rest.Config

func (*MockManager) GetScheme added in v0.10.0

func (mgr *MockManager) GetScheme() *runtime.Scheme

func (*MockManager) GetWebhookServer

func (mgr *MockManager) GetWebhookServer() webhook.Server

func (*MockManager) Start

func (mgr *MockManager) Start(ctx context.Context) error

type MockProvider

type MockProvider struct {
	mock.Mock
}

func (*MockProvider) CreateManager

func (provider *MockProvider) CreateManager(namespace string, cfg *rest.Config) (manager.Manager, error)

type Provider

type Provider interface {
	CreateManager(namespace string, config *rest.Config) (manager.Manager, error)
}

type TestManager

type TestManager struct {
	manager.Manager
}

func (*TestManager) Add

func (mgr *TestManager) Add(manager.Runnable) error

func (*TestManager) GetAPIReader

func (mgr *TestManager) GetAPIReader() client.Reader

func (*TestManager) GetCache added in v0.14.0

func (mgr *TestManager) GetCache() cache.Cache

func (*TestManager) GetClient

func (mgr *TestManager) GetClient() client.Client

func (*TestManager) GetControllerOptions

func (mgr *TestManager) GetControllerOptions() config.Controller

func (*TestManager) GetLogger

func (mgr *TestManager) GetLogger() logr.Logger

func (*TestManager) GetRESTMapper added in v0.14.0

func (mgr *TestManager) GetRESTMapper() meta.RESTMapper

func (*TestManager) GetScheme

func (mgr *TestManager) GetScheme() *runtime.Scheme

func (*TestManager) SetFields

func (mgr *TestManager) SetFields(any) error

func (*TestManager) Start

func (mgr *TestManager) Start(_ context.Context) error

Jump to

Keyboard shortcuts

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