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: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FilterFactorier

type FilterFactorier interface {
	FilterOperation() *operationfilter.FilterOperation
}

type FilterOperationer

type FilterOperationer interface {
	ParseFilterOpration(filter string) error
	Attribute() string
	Operation() string
	Item() interface{}
	IsDefined() bool
}

type GetBuildersApplication

type GetBuildersApplication struct {
	// contains filtered or unexported fields
}

GetBuildersApplication is an application service

func NewGetBuildersApplication

func NewGetBuildersApplication(options ...OptionsFunc) *GetBuildersApplication

NewGetBuildersApplication creats a new application service

func (*GetBuildersApplication) Options

func (a *GetBuildersApplication) Options(opts ...OptionsFunc)

Options configure the service

func (*GetBuildersApplication) Run

func (a *GetBuildersApplication) Run(ctx context.Context, options *Options, optionsFunc ...OptionsFunc) error

Run method carries out the application tasks

type MockGetBuildersApplication

type MockGetBuildersApplication struct {
	mock.Mock
}

MockGetBuildersApplication is a mock of build application

func NewMockGetBuildersApplication

func NewMockGetBuildersApplication() *MockGetBuildersApplication

NewMockGetBuildersApplication return a mock of build application

func (*MockGetBuildersApplication) Run

func (m *MockGetBuildersApplication) Run(ctx context.Context, options *Options, optionsFunc ...OptionsFunc) error

Run provides a mock function to carry out the application tasks

type Options

type Options struct {
	// Filter is a list of filters
	Filter []string
}

Options for get builders application

type OptionsFunc

type OptionsFunc func(*GetBuildersApplication)

OptionsFunc is a function used to configure the service

func WithBuildersStore

func WithBuildersStore(store repository.BuildersStorerReader) OptionsFunc

WithBuildersStore sets the images store

func WithFilterFactory

func WithFilterFactory(filterFactory FilterFactorier) OptionsFunc

WithFilterFactory set the output

func WithImagesStore

func WithImagesStore(store repository.ImagesStorerReader) OptionsFunc

WithImagesStore sets the images store

func WithOutput

func WithOutput(output repository.BuildersOutputter) OptionsFunc

WithOutput set the output

func WithSelector

func WithSelector(selectors map[string]repository.BuildersSelector) OptionsFunc

WithSelector set the images selector

Jump to

Keyboard shortcuts

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