scope

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entries

type Entries struct {
	ScopeName string
	Entries   []string
}

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

func NewEntriesMap(order config.Order, names config.Names) (EntriesMap, error)

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 EntriesMapFactory func(order config.Order, names config.Names) (EntriesMap, error)

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

type MockEntriesMap struct {
	mock.Mock
}

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

type MockEntriesMapBuilder struct {
	mock.Mock
}

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

type MockObject struct {
	mock.Mock
}

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

type Object

type Object interface {
	IncludeAuthor()
	Labels() config.Labels
	Entry() string
}

Jump to

Keyboard shortcuts

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