Documentation ¶
Index ¶
Constants ¶
View Source
const (
EQ = "="
)
Variables ¶
This section is empty.
Functions ¶
func NewFilterOperation ¶
func NewFilterOperation(filter string) filterOperation
func ParseFilterOpration ¶
Types ¶
type GetImagesApplication ¶
type GetImagesApplication struct {
// contains filtered or unexported fields
}
GetImagesApplication is an application service
func NewGetImagesApplication ¶
func NewGetImagesApplication(options ...OptionsFunc) *GetImagesApplication
NewGetImagesApplication creats a new application service
func (*GetImagesApplication) Options ¶
func (a *GetImagesApplication) Options(opts ...OptionsFunc)
Options configure the service
func (*GetImagesApplication) Run ¶
func (a *GetImagesApplication) Run(ctx context.Context, options *Options, optionsFunc ...OptionsFunc) error
Run method carries out the application tasks
type MockGetImagesApplication ¶
MockGetImagesApplication is a mock of build application
func NewMockGetImagesApplication ¶
func NewMockGetImagesApplication() *MockGetImagesApplication
NewMockGetImagesApplication return a mock of build application
func (*MockGetImagesApplication) Run ¶
func (m *MockGetImagesApplication) Run(ctx context.Context, options *Options, optionsFunc ...OptionsFunc) error
Run provides a mock method to carry out the application tasks
type Options ¶
type Options struct { // Filter is a list of filters Filter []string }
Options for get images application
type OptionsFunc ¶
type OptionsFunc func(*GetImagesApplication)
OptionsFunc is a function used to configure the service
func WithOutput ¶
func WithOutput(output repository.ImagesOutputter) OptionsFunc
WithOutput set the output
func WithSelector ¶
func WithSelector(selectors map[string]repository.ImagesSelector) OptionsFunc
WithSelector set the images selector
func WithStore ¶
func WithStore(store repository.ImagesStorerReader) OptionsFunc
WithStore sets the images store
Click to show internal directories.
Click to hide internal directories.