Documentation
¶
Overview ¶
Package config is a generated GoMock package.
Index ¶
- Constants
- type Config
- type DefaultConfig
- func (config *DefaultConfig) DeleteValue(key string)
- func (config *DefaultConfig) GetValue(key string) string
- func (config *DefaultConfig) InitConfig() error
- func (config *DefaultConfig) SetValue(key string, value interface{}) error
- func (config *DefaultConfig) WatchConfigChange() error
- func (config *DefaultConfig) WriteConfig() error
- type MockConfig
- type MockConfigMockRecorder
- func (mr *MockConfigMockRecorder) DeleteValue(arg0 any) *gomock.Call
- func (mr *MockConfigMockRecorder) GetValue(arg0 any) *gomock.Call
- func (mr *MockConfigMockRecorder) InitConfig() *gomock.Call
- func (mr *MockConfigMockRecorder) SetValue(arg0, arg1 any) *gomock.Call
- func (mr *MockConfigMockRecorder) WriteConfig() *gomock.Call
Constants ¶
const Subsystem = "config"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DefaultConfig ¶
type DefaultConfig struct {
// contains filtered or unexported fields
}
func CreateDefaultConfig ¶
func CreateDefaultConfig(configFileName, clabName, clabNameKey string, helper helpers.Helper) (*DefaultConfig, error)
func NewDefaultConfig ¶
func NewDefaultConfig() (*DefaultConfig, error)
func (*DefaultConfig) DeleteValue ¶
func (config *DefaultConfig) DeleteValue(key string)
func (*DefaultConfig) GetValue ¶
func (config *DefaultConfig) GetValue(key string) string
func (*DefaultConfig) InitConfig ¶
func (config *DefaultConfig) InitConfig() error
func (*DefaultConfig) SetValue ¶
func (config *DefaultConfig) SetValue(key string, value interface{}) error
func (*DefaultConfig) WatchConfigChange ¶
func (config *DefaultConfig) WatchConfigChange() error
func (*DefaultConfig) WriteConfig ¶
func (config *DefaultConfig) WriteConfig() error
type MockConfig ¶
type MockConfig struct {
// contains filtered or unexported fields
}
MockConfig is a mock of Config interface.
func NewMockConfig ¶
func NewMockConfig(ctrl *gomock.Controller) *MockConfig
NewMockConfig creates a new mock instance.
func (*MockConfig) DeleteValue ¶
func (m *MockConfig) DeleteValue(arg0 string)
DeleteValue mocks base method.
func (*MockConfig) EXPECT ¶
func (m *MockConfig) EXPECT() *MockConfigMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockConfig) GetValue ¶
func (m *MockConfig) GetValue(arg0 string) string
GetValue mocks base method.
func (*MockConfig) InitConfig ¶
func (m *MockConfig) InitConfig() error
InitConfig mocks base method.
func (*MockConfig) SetValue ¶
func (m *MockConfig) SetValue(arg0 string, arg1 any) error
SetValue mocks base method.
func (*MockConfig) WriteConfig ¶
func (m *MockConfig) WriteConfig() error
WriteConfig mocks base method.
type MockConfigMockRecorder ¶
type MockConfigMockRecorder struct {
// contains filtered or unexported fields
}
MockConfigMockRecorder is the mock recorder for MockConfig.
func (*MockConfigMockRecorder) DeleteValue ¶
func (mr *MockConfigMockRecorder) DeleteValue(arg0 any) *gomock.Call
DeleteValue indicates an expected call of DeleteValue.
func (*MockConfigMockRecorder) GetValue ¶
func (mr *MockConfigMockRecorder) GetValue(arg0 any) *gomock.Call
GetValue indicates an expected call of GetValue.
func (*MockConfigMockRecorder) InitConfig ¶
func (mr *MockConfigMockRecorder) InitConfig() *gomock.Call
InitConfig indicates an expected call of InitConfig.
func (*MockConfigMockRecorder) SetValue ¶
func (mr *MockConfigMockRecorder) SetValue(arg0, arg1 any) *gomock.Call
SetValue indicates an expected call of SetValue.
func (*MockConfigMockRecorder) WriteConfig ¶
func (mr *MockConfigMockRecorder) WriteConfig() *gomock.Call
WriteConfig indicates an expected call of WriteConfig.