Documentation
¶
Overview ¶
Code generated by MockGen. DO NOT EDIT. Source: config.go
Generated by this command:
mockgen -source=config.go -package=config -destination=mock_config.go ConfigGetter,configHelperAPI
Package config is a generated GoMock package.
Index ¶
- Variables
- type Config
- type ConfigGetter
- type Job
- type LeaderElection
- type Metrics
- type MockConfigGetter
- func (m *MockConfigGetter) EXPECT() *MockConfigGetterMockRecorder
- func (m *MockConfigGetter) GetConfig(ctx context.Context, userConfigMapName, userConfigMapNamespace string, ...) (*Config, error)
- func (m *MockConfigGetter) GetManagerOptionsFromConfig(conf *Config, scheme *runtime.Scheme) manager.Options
- type MockConfigGetterMockRecorder
- type MockconfigHelperAPI
- type MockconfigHelperAPIMockRecorder
- type Webhook
- type Worker
Constants ¶
This section is empty.
Variables ¶
var ErrCannotUseCustomConfig = errors.New("cannot use custom config on top of the default config; using default configs")
Functions ¶
This section is empty.
Types ¶
type ConfigGetter ¶
type ConfigGetter interface { GetConfig(ctx context.Context, userConfigMapName, userConfigMapNamespace string, isHubConfig bool) (*Config, error) GetManagerOptionsFromConfig(conf *Config, scheme *runtime.Scheme) manager.Options }
func NewConfigGetter ¶
func NewConfigGetter(logger logr.Logger) ConfigGetter
type LeaderElection ¶
type MockConfigGetter ¶
type MockConfigGetter struct {
// contains filtered or unexported fields
}
MockConfigGetter is a mock of ConfigGetter interface.
func NewMockConfigGetter ¶
func NewMockConfigGetter(ctrl *gomock.Controller) *MockConfigGetter
NewMockConfigGetter creates a new mock instance.
func (*MockConfigGetter) EXPECT ¶
func (m *MockConfigGetter) EXPECT() *MockConfigGetterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockConfigGetter) GetConfig ¶
func (m *MockConfigGetter) GetConfig(ctx context.Context, userConfigMapName, userConfigMapNamespace string, isHubConfig bool) (*Config, error)
GetConfig mocks base method.
func (*MockConfigGetter) GetManagerOptionsFromConfig ¶
func (m *MockConfigGetter) GetManagerOptionsFromConfig(conf *Config, scheme *runtime.Scheme) manager.Options
GetManagerOptionsFromConfig mocks base method.
type MockConfigGetterMockRecorder ¶
type MockConfigGetterMockRecorder struct {
// contains filtered or unexported fields
}
MockConfigGetterMockRecorder is the mock recorder for MockConfigGetter.
func (*MockConfigGetterMockRecorder) GetConfig ¶
func (mr *MockConfigGetterMockRecorder) GetConfig(ctx, userConfigMapName, userConfigMapNamespace, isHubConfig any) *gomock.Call
GetConfig indicates an expected call of GetConfig.
func (*MockConfigGetterMockRecorder) GetManagerOptionsFromConfig ¶
func (mr *MockConfigGetterMockRecorder) GetManagerOptionsFromConfig(conf, scheme any) *gomock.Call
GetManagerOptionsFromConfig indicates an expected call of GetManagerOptionsFromConfig.
type MockconfigHelperAPI ¶
type MockconfigHelperAPI struct {
// contains filtered or unexported fields
}
MockconfigHelperAPI is a mock of configHelperAPI interface.
func NewMockconfigHelperAPI ¶
func NewMockconfigHelperAPI(ctrl *gomock.Controller) *MockconfigHelperAPI
NewMockconfigHelperAPI creates a new mock instance.
func (*MockconfigHelperAPI) EXPECT ¶
func (m *MockconfigHelperAPI) EXPECT() *MockconfigHelperAPIMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockconfigHelperAPIMockRecorder ¶
type MockconfigHelperAPIMockRecorder struct {
// contains filtered or unexported fields
}
MockconfigHelperAPIMockRecorder is the mock recorder for MockconfigHelperAPI.