config

package
v0.0.0-...-d01dfd4 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	mock.Mock
}

Manager is an autogenerated mock type for the Manager type

func NewManager

func NewManager(t interface {
	mock.TestingT
	Cleanup(func())
}) *Manager

NewManager creates a new instance of Manager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Manager) Get

func (_m *Manager) Get(ctx context.Context, key string) *metadata.ConfigureValue

Get provides a mock function with given fields: ctx, key

func (*Manager) GetAll

func (_m *Manager) GetAll(ctx context.Context) map[string]interface{}

GetAll provides a mock function with given fields: ctx

func (*Manager) GetDatabaseCfg

func (_m *Manager) GetDatabaseCfg() *models.Database

GetDatabaseCfg provides a mock function with given fields:

func (*Manager) GetUserCfgs

func (_m *Manager) GetUserCfgs(ctx context.Context) map[string]interface{}

GetUserCfgs provides a mock function with given fields: ctx

func (*Manager) Load

func (_m *Manager) Load(ctx context.Context) error

Load provides a mock function with given fields: ctx

func (*Manager) Save

func (_m *Manager) Save(ctx context.Context) error

Save provides a mock function with given fields: ctx

func (*Manager) Set

func (_m *Manager) Set(ctx context.Context, key string, value interface{})

Set provides a mock function with given fields: ctx, key, value

func (*Manager) UpdateConfig

func (_m *Manager) UpdateConfig(ctx context.Context, cfgs map[string]interface{}) error

UpdateConfig provides a mock function with given fields: ctx, cfgs

func (*Manager) ValidateCfg

func (_m *Manager) ValidateCfg(ctx context.Context, cfgs map[string]interface{}) error

ValidateCfg provides a mock function with given fields: ctx, cfgs

Jump to

Keyboard shortcuts

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