Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateCredentialsApplication ¶
type CreateCredentialsApplication struct {
// contains filtered or unexported fields
}
CreateCredentialsApplication is an application service
func NewCreateCredentialsApplication ¶
func NewCreateCredentialsApplication(options ...OptionsFunc) *CreateCredentialsApplication
NewCreateCredentialsApplication creats a new application service
func (*CreateCredentialsApplication) Options ¶
func (a *CreateCredentialsApplication) Options(opts ...OptionsFunc)
Options configure the service
func (*CreateCredentialsApplication) Run ¶
func (a *CreateCredentialsApplication) Run(ctx context.Context, id string, credential *credentials.Credential, optionsFunc ...OptionsFunc) error
Run method carries out the application tasks
type CredentialsStorer ¶
type CredentialsStorer interface {
Store(id string, credential *credentials.Credential) error
}
CredentialsStorer interface defines the storage of credentials
type MockCreateCredentialsApplication ¶
MockCreateCredentialsApplication is a mock of build application
func NewMockCreateCredentialsApplication ¶
func NewMockCreateCredentialsApplication() *MockCreateCredentialsApplication
NewMockCreateCredentialsApplication return a mock of build application
func (*MockCreateCredentialsApplication) Run ¶
func (m *MockCreateCredentialsApplication) Run(ctx context.Context, id string, credential *credentials.Credential, optionsFunc ...OptionsFunc) error
Build provides a mock function with given fields: ctx, buildPlan, name, version, options, optionsFunc
type OptionsFunc ¶
type OptionsFunc func(*CreateCredentialsApplication)
OptionsFunc is a function used to configure the service
func WithCredentialsStore ¶
func WithCredentialsStore(store CredentialsStorer) OptionsFunc
WithCredentialsStore provides a function to configure the credentials store
Click to show internal directories.
Click to hide internal directories.