config

package
v0.0.0-...-ec1f93b Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package config is a generated GoMock package.

Package config is a generated GoMock package.

Index

Constants

This section is empty.

Variables

View Source
var ConfigLoader = &viperLoader{}

ConfigLoader is the default configuration loader.

View Source
var SecretsLoader = &keyringLoader{}

SecretsLoader is the default secrets loader.

Functions

This section is empty.

Types

type Config

type Config interface {
	IsSet(key string) bool
	GetString(key string) string
	Set(key string, value interface{})
	Save() error
}

Config is the interface for reading and writing configuration.

type Keyring

type Keyring interface {
	Get(key string) (keyring.Item, error)
	Set(item keyring.Item) error
}

Keyring is our interface for a Keyring implementation.

type Loader

type Loader interface {
	Load(name string) (Config, error)
}

Loader loads Config by name.

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) EXPECT

func (m *MockConfig) EXPECT() *MockConfigMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockConfig) GetString

func (m *MockConfig) GetString(key string) string

GetString mocks base method.

func (*MockConfig) IsSet

func (m *MockConfig) IsSet(key string) bool

IsSet mocks base method.

func (*MockConfig) Save

func (m *MockConfig) Save() error

Save mocks base method.

func (*MockConfig) Set

func (m *MockConfig) Set(key string, value interface{})

Set mocks base method.

type MockConfigMockRecorder

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

MockConfigMockRecorder is the mock recorder for MockConfig.

func (*MockConfigMockRecorder) GetString

func (mr *MockConfigMockRecorder) GetString(key interface{}) *gomock.Call

GetString indicates an expected call of GetString.

func (*MockConfigMockRecorder) IsSet

func (mr *MockConfigMockRecorder) IsSet(key interface{}) *gomock.Call

IsSet indicates an expected call of IsSet.

func (*MockConfigMockRecorder) Save

func (mr *MockConfigMockRecorder) Save() *gomock.Call

Save indicates an expected call of Save.

func (*MockConfigMockRecorder) Set

func (mr *MockConfigMockRecorder) Set(key, value interface{}) *gomock.Call

Set indicates an expected call of Set.

type MockKeyring

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

MockKeyring is a mock of Keyring interface.

func NewMockKeyring

func NewMockKeyring(ctrl *gomock.Controller) *MockKeyring

NewMockKeyring creates a new mock instance.

func (*MockKeyring) EXPECT

func (m *MockKeyring) EXPECT() *MockKeyringMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockKeyring) Get

func (m *MockKeyring) Get(key string) (keyring.Item, error)

Get mocks base method.

func (*MockKeyring) Set

func (m *MockKeyring) Set(item keyring.Item) error

Set mocks base method.

type MockKeyringMockRecorder

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

MockKeyringMockRecorder is the mock recorder for MockKeyring.

func (*MockKeyringMockRecorder) Get

func (mr *MockKeyringMockRecorder) Get(key interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockKeyringMockRecorder) Set

func (mr *MockKeyringMockRecorder) Set(item interface{}) *gomock.Call

Set indicates an expected call of Set.

type MockLoader

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

MockLoader is a mock of Loader interface.

func NewMockLoader

func NewMockLoader(ctrl *gomock.Controller) *MockLoader

NewMockLoader creates a new mock instance.

func (*MockLoader) EXPECT

func (m *MockLoader) EXPECT() *MockLoaderMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockLoader) Load

func (m *MockLoader) Load(name string) (Config, error)

Load mocks base method.

type MockLoaderMockRecorder

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

MockLoaderMockRecorder is the mock recorder for MockLoader.

func (*MockLoaderMockRecorder) Load

func (mr *MockLoaderMockRecorder) Load(name interface{}) *gomock.Call

Load indicates an expected call of Load.

Jump to

Keyboard shortcuts

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