Documentation ¶
Index ¶
- type FilterFactorier
- type FilterOperationer
- type GetBuildersApplication
- type MockGetBuildersApplication
- type Options
- type OptionsFunc
- func WithBuildersStore(store repository.BuildersStorerReader) OptionsFunc
- func WithFilterFactory(filterFactory FilterFactorier) OptionsFunc
- func WithImagesStore(store repository.ImagesStorerReader) OptionsFunc
- func WithOutput(output repository.BuildersOutputter) OptionsFunc
- func WithSelector(selectors map[string]repository.BuildersSelector) OptionsFunc
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 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 ¶
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