config

package
v0.0.0-...-12d6079 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2025 License: Apache-2.0 Imports: 22 Imported by: 0

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

Constants

This section is empty.

Variables

View Source
var ErrCannotUseCustomConfig = errors.New("cannot use custom config on top of the default config; using default configs")

Functions

This section is empty.

Types

type Config

type Config struct {
	HealthProbeBindAddress string         `yaml:"healthProbeBindAddress"`
	Job                    Job            `yaml:"job"`
	LeaderElection         LeaderElection `yaml:"leaderElection"`
	Metrics                Metrics        `yaml:"metrics"`
	Webhook                Webhook        `yaml:"webhook"`
	Worker                 Worker         `yaml:"worker"`
}

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 Job

type Job struct {
	GCDelay time.Duration `yaml:"gcDelay,omitempty"`
}

type LeaderElection

type LeaderElection struct {
	Enabled    bool   `yaml:"enabled"`
	ResourceID string `yaml:"resourceID"`
}

type Metrics

type Metrics struct {
	BindAddress      string `yaml:"bindAddress"`
	DisableHTTP2     bool   `yaml:"disableHTTP2"`
	EnableAuthnAuthz bool   `yaml:"enableAuthnAuthz"`
	SecureServing    bool   `yaml:"secureServing"`
}

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

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

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.

type Webhook

type Webhook struct {
	DisableHTTP2 bool `yaml:"disableHTTP2"`
	Port         int  `yaml:"port"`
}

type Worker

type Worker struct {
	RunAsUser        *int64  `yaml:"runAsUser"`
	SELinuxType      string  `yaml:"seLinuxType"`
	FirmwareHostPath *string `yaml:"firmwareHostPath,omitempty"`
}

Jump to

Keyboard shortcuts

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