credentials

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

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

type MockApplication struct {
	mock.Mock
}

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

Jump to

Keyboard shortcuts

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