images

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

View Source
const (
	EQ = "="
)

Variables

This section is empty.

Functions

func NewFilterOperation

func NewFilterOperation(filter string) filterOperation

func ParseFilterOpration

func ParseFilterOpration(filter string) (filterOperation, error)

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

type MockGetImagesApplication struct {
	mock.Mock
}

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

Jump to

Keyboard shortcuts

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