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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Applicationer

type Applicationer interface {
	Run(ctx context.Context, id string, credential *credentials.Credential, optionsFunc ...application.OptionsFunc) error
}

Applicationer is the service for build commands

type CreateCredentialsHandler

type CreateCredentialsHandler struct {
	// contains filtered or unexported fields
}

CreateCredentialsHandler is a handler for get credentials commands

func NewCreateCredentialsHandler

func NewCreateCredentialsHandler(options ...OptionsFunc) *CreateCredentialsHandler

NewCreateCredentialsHandler creates a new handler for build commands

func (*CreateCredentialsHandler) Handler

func (h *CreateCredentialsHandler) Handler(ctx context.Context, id string, options *Options) error

CreateCredentialsHandler handles build commands

func (*CreateCredentialsHandler) Options

func (h *CreateCredentialsHandler) Options(opts ...OptionsFunc)

Options configure the service

type MockCreateCredentialsHandler

type MockCreateCredentialsHandler struct {
	mock.Mock
}

MockCreateCredentialsHandler is a handler for create credentials commands

func NewMockCreateCredentialsHandler

func NewMockCreateCredentialsHandler() *MockCreateCredentialsHandler

NewMockCreateCredentialsHandler creates a new handler for create credentials commands

func (*MockCreateCredentialsHandler) Handler

func (h *MockCreateCredentialsHandler) Handler(ctx context.Context, id string, options *Options) error

MockCreateCredentialsHandler handles create credentials commands

type Options

type Options struct {
	AllowUseSSHAgent              bool
	AWSAccessKeyID                string
	AWSProfile                    string
	AWSRegion                     string
	AWSRoleARN                    string
	AWSSecretAccessKey            string
	AWSSharedConfigFiles          []string
	AWSSharedCredentialsFiles     []string
	AWSUseDefaultCredentialsChain bool
	GitSSHUser                    string
	Password                      string
	PrivateKeyFile                string
	PrivateKeyPassword            string
	Username                      string
}

Options is the options for the create credentials handler

type OptionsFunc

type OptionsFunc func(*CreateCredentialsHandler)

OptionsFunc is a function used to configure the handler

func WithApplication

func WithApplication(app Applicationer) OptionsFunc

Jump to

Keyboard shortcuts

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