builders

package
v0.11.4 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockStore

type MockStore struct {
	mock.Mock
}

MockStore is a mock of Builders

func NewMockStore

func NewMockStore() *MockStore

NewMockStore return a new MockStore

func (*MockStore) Find

func (b *MockStore) Find(name string) (*builder.Builder, error)

Find a builder by name

func (*MockStore) List

func (b *MockStore) List() ([]*builder.Builder, error)

All return all builders

func (*MockStore) Store

func (b *MockStore) Store(builder *builder.Builder) error

AddBuilder add a builder

type Store

type Store struct {
	Builders map[string]*builder.Builder
	// contains filtered or unexported fields
}

Store contains builders details

func NewStore

func NewStore() *Store

NewStore creates a new builders configuration

func (*Store) Find

func (b *Store) Find(name string) (*builder.Builder, error)

Find returns the builder registered with input name

func (*Store) List

func (f *Store) List() ([]*builder.Builder, error)

All return all builders

func (*Store) Store

func (b *Store) Store(builder *builder.Builder) error

Store include a new builder to builders

Jump to

Keyboard shortcuts

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