scope

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: May 12, 2020 License: MIT Imports: 6 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
	ForEach(fn func(entries Entries) error) error
}

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 (*MockEntriesMap) Add

func (_m *MockEntriesMap) Add(scope config.Scope, entry string) error

Add 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

type MockEntriesMapBuilder

type MockEntriesMapBuilder struct {
	mock.Mock
}

MockEntriesMapBuilder is an autogenerated mock type for the EntriesMapBuilder type

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 (*MockObject) Entry

func (_m *MockObject) Entry() string

Entry provides a mock function with given fields:

func (*MockObject) IncludeAuthor

func (_m *MockObject) IncludeAuthor()

IncludeAuthor provides a mock function with given fields:

func (*MockObject) Labels

func (_m *MockObject) Labels() []string

Labels provides a mock function with given 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