Documentation
¶
Overview ¶
Code generated by MockGen. DO NOT EDIT. Source: ../pkg/properties/types.go
Generated by this command:
mockgen -source ../pkg/properties/types.go -destination ../pkg/properties/mocks.go -package=properties
Package properties is a generated GoMock package.
Index ¶
- func Add(property string, value string)
- func AsMap() map[string]string
- func Get(property string) string
- type DefaultProperties
- type DefaultPropertiesOption
- type DefaultPropertySource
- type MockProperties
- type MockPropertiesMockRecorder
- type MockPropertySource
- type MockPropertySourceMockRecorder
- type Properties
- type PropertySource
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DefaultProperties ¶
type DefaultProperties struct {
// contains filtered or unexported fields
}
func NewDefaultProperties ¶
func NewDefaultProperties(options ...DefaultPropertiesOption) *DefaultProperties
func (*DefaultProperties) Add ¶
func (p *DefaultProperties) Add(property string, value string)
func (*DefaultProperties) AsMap ¶
func (p *DefaultProperties) AsMap() map[string]string
func (*DefaultProperties) Get ¶
func (p *DefaultProperties) Get(property string) string
type DefaultPropertiesOption ¶
type DefaultPropertiesOption func(properties *DefaultProperties)
func FromArray ¶
func FromArray(array []string) DefaultPropertiesOption
type DefaultPropertySource ¶
type DefaultPropertySource struct {
// contains filtered or unexported fields
}
func NewDefaultPropertySource ¶
func NewDefaultPropertySource(name string, properties Properties) *DefaultPropertySource
func (*DefaultPropertySource) AsMap ¶
func (source *DefaultPropertySource) AsMap() map[string]any
func (*DefaultPropertySource) Get ¶
func (source *DefaultPropertySource) Get(property string) string
type MockProperties ¶
type MockProperties struct {
// contains filtered or unexported fields
}
MockProperties is a mock of Properties interface.
func NewMockProperties ¶
func NewMockProperties(ctrl *gomock.Controller) *MockProperties
NewMockProperties creates a new mock instance.
func (*MockProperties) Add ¶
func (m *MockProperties) Add(property, value string)
Add mocks base method.
func (*MockProperties) AsMap ¶
func (m *MockProperties) AsMap() map[string]string
AsMap mocks base method.
func (*MockProperties) EXPECT ¶
func (m *MockProperties) EXPECT() *MockPropertiesMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockProperties) Get ¶
func (m *MockProperties) Get(property string) string
Get mocks base method.
type MockPropertiesMockRecorder ¶
type MockPropertiesMockRecorder struct {
// contains filtered or unexported fields
}
MockPropertiesMockRecorder is the mock recorder for MockProperties.
func (*MockPropertiesMockRecorder) Add ¶
func (mr *MockPropertiesMockRecorder) Add(property, value any) *gomock.Call
Add indicates an expected call of Add.
func (*MockPropertiesMockRecorder) AsMap ¶
func (mr *MockPropertiesMockRecorder) AsMap() *gomock.Call
AsMap indicates an expected call of AsMap.
type MockPropertySource ¶
type MockPropertySource struct {
// contains filtered or unexported fields
}
MockPropertySource is a mock of PropertySource interface.
func NewMockPropertySource ¶
func NewMockPropertySource(ctrl *gomock.Controller) *MockPropertySource
NewMockPropertySource creates a new mock instance.
func (*MockPropertySource) AsMap ¶
func (m *MockPropertySource) AsMap() map[string]any
AsMap mocks base method.
func (*MockPropertySource) EXPECT ¶
func (m *MockPropertySource) EXPECT() *MockPropertySourceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockPropertySource) Get ¶
func (m *MockPropertySource) Get(property string) string
Get mocks base method.
type MockPropertySourceMockRecorder ¶
type MockPropertySourceMockRecorder struct {
// contains filtered or unexported fields
}
MockPropertySourceMockRecorder is the mock recorder for MockPropertySource.
func (*MockPropertySourceMockRecorder) AsMap ¶
func (mr *MockPropertySourceMockRecorder) AsMap() *gomock.Call
AsMap indicates an expected call of AsMap.
type Properties ¶
type Properties interface { Add(property string, value string) Get(property string) string AsMap() map[string]string }
func Custom ¶ added in v0.70.0
func Custom(array []string) Properties
func Default ¶ added in v0.70.0
func Default() Properties