Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EntriesMap ¶
type EntriesMap interface {
Add(scope config.Scope, entry string) error
AddToFront(scope config.Scope, entry string) error
ForEach(fn func(entries Entries) error) error
Len() int
}
func NewEntriesMap ¶
type EntriesMapBuilder ¶
type EntriesMapBuilder interface {
Build(objects []Object) (EntriesMap, error)
}
func NewEntriesMapBuilder ¶
func NewEntriesMapBuilder(configuration config.Configuration) EntriesMapBuilder
func NewEntriesMapBuilderWithFactory ¶
func NewEntriesMapBuilderWithFactory(configuration config.Configuration, factory EntriesMapFactory) EntriesMapBuilder
type EntriesMapFactory ¶
type ErrMissingScopeName ¶
type ErrMissingScopeName struct {
// contains filtered or unexported fields
}
func (*ErrMissingScopeName) Error ¶
func (e *ErrMissingScopeName) Error() string
func (*ErrMissingScopeName) Is ¶
func (e *ErrMissingScopeName) Is(err error) bool
type ErrUnknownScope ¶
type ErrUnknownScope struct {
// contains filtered or unexported fields
}
func (*ErrUnknownScope) Error ¶
func (e *ErrUnknownScope) Error() string
func (*ErrUnknownScope) Is ¶
func (e *ErrUnknownScope) Is(err error) bool
type MockEntriesMap ¶
MockEntriesMap is an autogenerated mock type for the EntriesMap type
func NewMockEntriesMap ¶ added in v0.7.0
func NewMockEntriesMap(t interface {
mock.TestingT
Cleanup(func())
}) *MockEntriesMap
NewMockEntriesMap creates a new instance of MockEntriesMap. 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 (*MockEntriesMap) Add ¶
func (_m *MockEntriesMap) Add(scope config.Scope, entry string) error
Add provides a mock function with given fields: scope, entry
func (*MockEntriesMap) AddToFront ¶ added in v0.7.0
func (_m *MockEntriesMap) AddToFront(scope config.Scope, entry string) error
AddToFront provides a mock function with given fields: scope, entry
func (*MockEntriesMap) ForEach ¶
func (_m *MockEntriesMap) ForEach(fn func(Entries) error) error
ForEach provides a mock function with given fields: fn
func (*MockEntriesMap) Len ¶ added in v0.7.0
func (_m *MockEntriesMap) Len() int
Len provides a mock function with no fields
type MockEntriesMapBuilder ¶
MockEntriesMapBuilder is an autogenerated mock type for the EntriesMapBuilder type
func NewMockEntriesMapBuilder ¶ added in v0.7.0
func NewMockEntriesMapBuilder(t interface {
mock.TestingT
Cleanup(func())
}) *MockEntriesMapBuilder
NewMockEntriesMapBuilder creates a new instance of MockEntriesMapBuilder. 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 (*MockEntriesMapBuilder) Build ¶
func (_m *MockEntriesMapBuilder) Build(objects []Object) (EntriesMap, error)
Build provides a mock function with given fields: objects
type MockObject ¶
MockObject is an autogenerated mock type for the Object type
func NewMockObject ¶ added in v0.7.0
func NewMockObject(t interface {
mock.TestingT
Cleanup(func())
}) *MockObject
NewMockObject creates a new instance of MockObject. 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 (*MockObject) Entry ¶
func (_m *MockObject) Entry() string
Entry provides a mock function with no fields
func (*MockObject) IncludeAuthor ¶
func (_m *MockObject) IncludeAuthor()
IncludeAuthor provides a mock function with no fields
func (*MockObject) Labels ¶
func (_m *MockObject) Labels() []string
Labels provides a mock function with no fields