config

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package config is a generated GoMock package.

Index

Constants

View Source
const Subsystem = "config"

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config interface {
	InitConfig() error
	GetValue(string) string
	DeleteValue(string)
	SetValue(string, interface{}) error
	WriteConfig() error
}

type DefaultConfig

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

func CreateDefaultConfig

func CreateDefaultConfig(configFileName, clabName, clabNameKey string, helper helpers.Helper) (error, *DefaultConfig)

func NewDefaultConfig

func NewDefaultConfig() (error, *DefaultConfig)

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.

Jump to

Keyboard shortcuts

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