Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FetchPropertyFromContext ¶ added in v1.0.0
FetchPropertyFromContext is a helper function to retrieve a specific config property from the Config store in ctx, rather than retrieving the entire Config object.
Types ¶
type Config ¶ added in v1.0.0
type MockConfig ¶ added in v1.4.3
MockConfig is an autogenerated mock type for the Config type
func NewMockConfig ¶ added in v1.4.3
func NewMockConfig(t interface { mock.TestingT Cleanup(func()) }) *MockConfig
NewMockConfig creates a new instance of MockConfig. 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 (*MockConfig) Get ¶ added in v1.4.3
func (_m *MockConfig) Get(_a0 string) (interface{}, error)
Get provides a mock function with given fields: _a0
func (*MockConfig) Refresh ¶ added in v1.4.3
func (_m *MockConfig) Refresh(_a0 context.Context) error
Refresh provides a mock function with given fields: _a0
func (*MockConfig) Set ¶ added in v1.4.3
func (_m *MockConfig) Set(_a0 string, _a1 interface{}) error
Set provides a mock function with given fields: _a0, _a1
func (*MockConfig) Upgrade ¶ added in v1.4.3
func (_m *MockConfig) Upgrade() error
Upgrade provides a mock function with given fields:
func (*MockConfig) Validate ¶ added in v1.4.3
func (_m *MockConfig) Validate() error
Validate provides a mock function with given fields: