manager

package
v1.1.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 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 {
	mock.Mock
}

MockManager is an autogenerated mock type for the Manager type

func NewMockManager

func NewMockManager(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockManager

NewMockManager creates a new instance of MockManager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockManager) Add

func (_m *MockManager) Add(_a0 manager.Runnable) error

Add provides a mock function with given fields: _a0

func (*MockManager) AddHealthzCheck

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

AddHealthzCheck provides a mock function with given fields: name, check

func (*MockManager) AddReadyzCheck

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

AddReadyzCheck provides a mock function with given fields: name, check

func (*MockManager) EXPECT

func (_m *MockManager) EXPECT() *MockManager_Expecter

func (*MockManager) Elected

func (_m *MockManager) Elected() <-chan struct{}

Elected provides a mock function with given fields:

func (*MockManager) GetAPIReader

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

GetAPIReader provides a mock function with given fields:

func (*MockManager) GetCache

func (_m *MockManager) GetCache() cache.Cache

GetCache provides a mock function with given fields:

func (*MockManager) GetClient

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

GetClient provides a mock function with given fields:

func (*MockManager) GetConfig

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

GetConfig provides a mock function with given fields:

func (*MockManager) GetControllerOptions

func (_m *MockManager) GetControllerOptions() config.Controller

GetControllerOptions provides a mock function with given fields:

func (*MockManager) GetEventRecorderFor

func (_m *MockManager) GetEventRecorderFor(name string) record.EventRecorder

GetEventRecorderFor provides a mock function with given fields: name

func (*MockManager) GetFieldIndexer

func (_m *MockManager) GetFieldIndexer() client.FieldIndexer

GetFieldIndexer provides a mock function with given fields:

func (*MockManager) GetHTTPClient

func (_m *MockManager) GetHTTPClient() *http.Client

GetHTTPClient provides a mock function with given fields:

func (*MockManager) GetLogger

func (_m *MockManager) GetLogger() logr.Logger

GetLogger provides a mock function with given fields:

func (*MockManager) GetRESTMapper

func (_m *MockManager) GetRESTMapper() meta.RESTMapper

GetRESTMapper provides a mock function with given fields:

func (*MockManager) GetScheme

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

GetScheme provides a mock function with given fields:

func (*MockManager) GetWebhookServer

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

GetWebhookServer provides a mock function with given fields:

func (*MockManager) Start

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

Start provides a mock function with given fields: ctx

type MockManager_AddHealthzCheck_Call

type MockManager_AddHealthzCheck_Call struct {
	*mock.Call
}

MockManager_AddHealthzCheck_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddHealthzCheck'

func (*MockManager_AddHealthzCheck_Call) Return

func (*MockManager_AddHealthzCheck_Call) Run

func (*MockManager_AddHealthzCheck_Call) RunAndReturn

type MockManager_AddReadyzCheck_Call

type MockManager_AddReadyzCheck_Call struct {
	*mock.Call
}

MockManager_AddReadyzCheck_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddReadyzCheck'

func (*MockManager_AddReadyzCheck_Call) Return

func (*MockManager_AddReadyzCheck_Call) Run

func (*MockManager_AddReadyzCheck_Call) RunAndReturn

type MockManager_Add_Call

type MockManager_Add_Call struct {
	*mock.Call
}

MockManager_Add_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Add'

func (*MockManager_Add_Call) Return

func (*MockManager_Add_Call) Run

func (*MockManager_Add_Call) RunAndReturn

func (_c *MockManager_Add_Call) RunAndReturn(run func(manager.Runnable) error) *MockManager_Add_Call

type MockManager_Elected_Call

type MockManager_Elected_Call struct {
	*mock.Call
}

MockManager_Elected_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Elected'

func (*MockManager_Elected_Call) Return

func (_c *MockManager_Elected_Call) Return(_a0 <-chan struct{}) *MockManager_Elected_Call

func (*MockManager_Elected_Call) Run

func (*MockManager_Elected_Call) RunAndReturn

func (_c *MockManager_Elected_Call) RunAndReturn(run func() <-chan struct{}) *MockManager_Elected_Call

type MockManager_Expecter

type MockManager_Expecter struct {
	// contains filtered or unexported fields
}

func (*MockManager_Expecter) Add

func (_e *MockManager_Expecter) Add(_a0 interface{}) *MockManager_Add_Call

Add is a helper method to define mock.On call

  • _a0 manager.Runnable

func (*MockManager_Expecter) AddHealthzCheck

func (_e *MockManager_Expecter) AddHealthzCheck(name interface{}, check interface{}) *MockManager_AddHealthzCheck_Call

AddHealthzCheck is a helper method to define mock.On call

  • name string
  • check healthz.Checker

func (*MockManager_Expecter) AddReadyzCheck

func (_e *MockManager_Expecter) AddReadyzCheck(name interface{}, check interface{}) *MockManager_AddReadyzCheck_Call

AddReadyzCheck is a helper method to define mock.On call

  • name string
  • check healthz.Checker

func (*MockManager_Expecter) Elected

Elected is a helper method to define mock.On call

func (*MockManager_Expecter) GetAPIReader

GetAPIReader is a helper method to define mock.On call

func (*MockManager_Expecter) GetCache

GetCache is a helper method to define mock.On call

func (*MockManager_Expecter) GetClient

GetClient is a helper method to define mock.On call

func (*MockManager_Expecter) GetConfig

GetConfig is a helper method to define mock.On call

func (*MockManager_Expecter) GetControllerOptions

func (_e *MockManager_Expecter) GetControllerOptions() *MockManager_GetControllerOptions_Call

GetControllerOptions is a helper method to define mock.On call

func (*MockManager_Expecter) GetEventRecorderFor

func (_e *MockManager_Expecter) GetEventRecorderFor(name interface{}) *MockManager_GetEventRecorderFor_Call

GetEventRecorderFor is a helper method to define mock.On call

  • name string

func (*MockManager_Expecter) GetFieldIndexer

GetFieldIndexer is a helper method to define mock.On call

func (*MockManager_Expecter) GetHTTPClient

GetHTTPClient is a helper method to define mock.On call

func (*MockManager_Expecter) GetLogger

GetLogger is a helper method to define mock.On call

func (*MockManager_Expecter) GetRESTMapper

GetRESTMapper is a helper method to define mock.On call

func (*MockManager_Expecter) GetScheme

GetScheme is a helper method to define mock.On call

func (*MockManager_Expecter) GetWebhookServer

GetWebhookServer is a helper method to define mock.On call

func (*MockManager_Expecter) Start

func (_e *MockManager_Expecter) Start(ctx interface{}) *MockManager_Start_Call

Start is a helper method to define mock.On call

  • ctx context.Context

type MockManager_GetAPIReader_Call

type MockManager_GetAPIReader_Call struct {
	*mock.Call
}

MockManager_GetAPIReader_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAPIReader'

func (*MockManager_GetAPIReader_Call) Return

func (*MockManager_GetAPIReader_Call) Run

func (*MockManager_GetAPIReader_Call) RunAndReturn

type MockManager_GetCache_Call

type MockManager_GetCache_Call struct {
	*mock.Call
}

MockManager_GetCache_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCache'

func (*MockManager_GetCache_Call) Return

func (*MockManager_GetCache_Call) Run

func (*MockManager_GetCache_Call) RunAndReturn

func (_c *MockManager_GetCache_Call) RunAndReturn(run func() cache.Cache) *MockManager_GetCache_Call

type MockManager_GetClient_Call

type MockManager_GetClient_Call struct {
	*mock.Call
}

MockManager_GetClient_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetClient'

func (*MockManager_GetClient_Call) Return

func (*MockManager_GetClient_Call) Run

func (*MockManager_GetClient_Call) RunAndReturn

type MockManager_GetConfig_Call

type MockManager_GetConfig_Call struct {
	*mock.Call
}

MockManager_GetConfig_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetConfig'

func (*MockManager_GetConfig_Call) Return

func (*MockManager_GetConfig_Call) Run

func (*MockManager_GetConfig_Call) RunAndReturn

func (_c *MockManager_GetConfig_Call) RunAndReturn(run func() *rest.Config) *MockManager_GetConfig_Call

type MockManager_GetControllerOptions_Call

type MockManager_GetControllerOptions_Call struct {
	*mock.Call
}

MockManager_GetControllerOptions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetControllerOptions'

func (*MockManager_GetControllerOptions_Call) Return

func (*MockManager_GetControllerOptions_Call) Run

func (*MockManager_GetControllerOptions_Call) RunAndReturn

type MockManager_GetEventRecorderFor_Call

type MockManager_GetEventRecorderFor_Call struct {
	*mock.Call
}

MockManager_GetEventRecorderFor_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetEventRecorderFor'

func (*MockManager_GetEventRecorderFor_Call) Return

func (*MockManager_GetEventRecorderFor_Call) Run

func (*MockManager_GetEventRecorderFor_Call) RunAndReturn

type MockManager_GetFieldIndexer_Call

type MockManager_GetFieldIndexer_Call struct {
	*mock.Call
}

MockManager_GetFieldIndexer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetFieldIndexer'

func (*MockManager_GetFieldIndexer_Call) Return

func (*MockManager_GetFieldIndexer_Call) Run

func (*MockManager_GetFieldIndexer_Call) RunAndReturn

type MockManager_GetHTTPClient_Call

type MockManager_GetHTTPClient_Call struct {
	*mock.Call
}

MockManager_GetHTTPClient_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetHTTPClient'

func (*MockManager_GetHTTPClient_Call) Return

func (*MockManager_GetHTTPClient_Call) Run

func (*MockManager_GetHTTPClient_Call) RunAndReturn

type MockManager_GetLogger_Call

type MockManager_GetLogger_Call struct {
	*mock.Call
}

MockManager_GetLogger_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetLogger'

func (*MockManager_GetLogger_Call) Return

func (*MockManager_GetLogger_Call) Run

func (*MockManager_GetLogger_Call) RunAndReturn

func (_c *MockManager_GetLogger_Call) RunAndReturn(run func() logr.Logger) *MockManager_GetLogger_Call

type MockManager_GetRESTMapper_Call

type MockManager_GetRESTMapper_Call struct {
	*mock.Call
}

MockManager_GetRESTMapper_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetRESTMapper'

func (*MockManager_GetRESTMapper_Call) Return

func (*MockManager_GetRESTMapper_Call) Run

func (*MockManager_GetRESTMapper_Call) RunAndReturn

type MockManager_GetScheme_Call

type MockManager_GetScheme_Call struct {
	*mock.Call
}

MockManager_GetScheme_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetScheme'

func (*MockManager_GetScheme_Call) Return

func (*MockManager_GetScheme_Call) Run

func (*MockManager_GetScheme_Call) RunAndReturn

type MockManager_GetWebhookServer_Call

type MockManager_GetWebhookServer_Call struct {
	*mock.Call
}

MockManager_GetWebhookServer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetWebhookServer'

func (*MockManager_GetWebhookServer_Call) Return

func (*MockManager_GetWebhookServer_Call) Run

func (*MockManager_GetWebhookServer_Call) RunAndReturn

type MockManager_Start_Call

type MockManager_Start_Call struct {
	*mock.Call
}

MockManager_Start_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Start'

func (*MockManager_Start_Call) Return

func (*MockManager_Start_Call) Run

func (*MockManager_Start_Call) RunAndReturn

func (_c *MockManager_Start_Call) RunAndReturn(run func(context.Context) error) *MockManager_Start_Call

Jump to

Keyboard shortcuts

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