credentials

package
v0.11.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 5, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

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

type MockCreateCredentialsApplication struct {
	mock.Mock
}

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

Jump to

Keyboard shortcuts

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