Documentation ¶
Index ¶
- type MockManager
- func (mgr *MockManager) AddHealthzCheck(name string, check healthz.Checker) error
- func (mgr *MockManager) AddReadyzCheck(name string, check healthz.Checker) error
- func (mgr *MockManager) GetAPIReader() client.Reader
- func (mgr *MockManager) GetClient() client.Client
- func (mgr *MockManager) GetConfig() *rest.Config
- func (mgr *MockManager) GetScheme() *runtime.Scheme
- func (mgr *MockManager) GetWebhookServer() webhook.Server
- func (mgr *MockManager) Start(ctx context.Context) error
- type MockProvider
- type Provider
- type TestManager
- func (mgr *TestManager) Add(manager.Runnable) error
- func (mgr *TestManager) GetAPIReader() client.Reader
- func (mgr *TestManager) GetCache() cache.Cache
- func (mgr *TestManager) GetClient() client.Client
- func (mgr *TestManager) GetControllerOptions() config.Controller
- func (mgr *TestManager) GetLogger() logr.Logger
- func (mgr *TestManager) GetRESTMapper() meta.RESTMapper
- func (mgr *TestManager) GetScheme() *runtime.Scheme
- func (mgr *TestManager) SetFields(any) error
- func (mgr *TestManager) Start(_ context.Context) error
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
type MockProvider ¶
func (*MockProvider) CreateManager ¶
type TestManager ¶
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
Click to show internal directories.
Click to hide internal directories.