Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Application ¶
type Application struct {
// contains filtered or unexported fields
}
Application is an application service
func NewApplication ¶
func NewApplication(options ...OptionsFunc) *Application
NewApplication creats a new application service
func (*Application) Options ¶
func (a *Application) Options(opts ...OptionsFunc)
Options configure the service
func (*Application) Run ¶
func (a *Application) Run(ctx context.Context, optionsFunc ...OptionsFunc) error
Run method carries out the application tasks
type MockApplication ¶
MockApplication is a mock of build application
func NewMockApplication ¶
func NewMockApplication() *MockApplication
NewMockApplication return a mock of build application
func (*MockApplication) Run ¶
func (m *MockApplication) Run(ctx context.Context, optionsFunc ...OptionsFunc) error
Run provides a mock function with given fields: ctx, optionsFunc
type OptionsFunc ¶
type OptionsFunc func(*Application)
OptionsFunc is a function used to configure the service
func WithCredentials ¶
func WithCredentials(credentials repository.CredentialsFilterer) OptionsFunc
func WithOutput ¶
func WithOutput(output repository.CredentialsPrinter) OptionsFunc
Click to show internal directories.
Click to hide internal directories.