properties

package
v0.70.0 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2023 License: Apache-2.0 Imports: 6 Imported by: 1

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add added in v0.70.0

func Add(property string, value string)

func AsMap added in v0.70.0

func AsMap() map[string]string

func Get added in v0.70.0

func Get(property string) string

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

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.

func (*MockPropertiesMockRecorder) Get

func (mr *MockPropertiesMockRecorder) Get(property any) *gomock.Call

Get indicates an expected call of Get.

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

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

AsMap indicates an expected call of AsMap.

func (*MockPropertySourceMockRecorder) Get

func (mr *MockPropertySourceMockRecorder) Get(property any) *gomock.Call

Get indicates an expected call of Get.

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

type PropertySource

type PropertySource interface {
	Get(property string) string
	AsMap() map[string]any
}

Jump to

Keyboard shortcuts

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