aws

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrConfigNotFound      = fmt.Errorf("AWS config file not found")
	ErrCredentialsNotFound = fmt.Errorf("AWS credentials file not found")
	ErrNoProfiles          = fmt.Errorf("no AWS profiles found")
	ErrNoRegions           = fmt.Errorf("no AWS regions found")
)

Common errors

View Source
var (
	ErrNotAuthenticated = fmt.Errorf("not authenticated")
	ErrNotImplemented   = fmt.Errorf("not implemented")
)

Common errors

Functions

This section is empty.

Types

type Provider

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

Provider represents the AWS cloud provider.

func New

func New() *Provider

New creates a new AWS provider.

func (*Provider) ApproveAction added in v0.1.5

func (p *Provider) ApproveAction(ctx context.Context, action cloud.ApprovalAction, approved bool, comment string) error

ApproveAction approves or rejects an approval action

func (*Provider) Authenticate added in v0.1.5

func (p *Provider) Authenticate(method string, authConfig map[string]string) error

Authenticate authenticates with the provider using the given method and configuration

func (*Provider) Configure added in v0.1.5

func (p *Provider) Configure(config map[string]string) error

Configure configures the provider with the given configuration

func (*Provider) Description

func (p *Provider) Description() string

Description returns the provider's description.

func (*Provider) GetApprovals added in v0.1.5

func (p *Provider) GetApprovals(ctx context.Context) ([]cloud.ApprovalAction, error)

GetApprovals returns all pending approvals for the provider

func (*Provider) GetAuthConfigKeys added in v0.1.5

func (p *Provider) GetAuthConfigKeys(method string) []string

GetAuthConfigKeys returns the configuration keys required for an authentication method

func (*Provider) GetAuthenticationMethods added in v0.1.5

func (p *Provider) GetAuthenticationMethods() []string

GetAuthenticationMethods returns the available authentication methods

func (*Provider) GetCodePipelineManualApprovalOperation added in v0.1.5

func (p *Provider) GetCodePipelineManualApprovalOperation() (cloud.CodePipelineManualApprovalOperation, error)

GetCodePipelineManualApprovalOperation returns the CodePipeline manual approval operation

func (*Provider) GetConfigKeys added in v0.1.5

func (p *Provider) GetConfigKeys() []string

GetConfigKeys returns the configuration keys required by this provider

func (*Provider) GetConfigOptions added in v0.1.5

func (p *Provider) GetConfigOptions(key string) ([]string, error)

GetConfigOptions returns the available options for a configuration key

func (*Provider) GetFunctionStatusOperation added in v0.1.5

func (p *Provider) GetFunctionStatusOperation() (cloud.FunctionStatusOperation, error)

GetFunctionStatusOperation returns the function status operation

func (*Provider) GetLambdaExecuteOperation added in v0.1.5

func (p *Provider) GetLambdaExecuteOperation() (cloud.LambdaExecuteOperation, error)

GetLambdaExecuteOperation returns the Lambda execute operation

func (*Provider) GetPipelineStatusOperation added in v0.1.5

func (p *Provider) GetPipelineStatusOperation() (cloud.PipelineStatusOperation, error)

GetPipelineStatusOperation returns the pipeline status operation

func (*Provider) GetProfiles

func (p *Provider) GetProfiles() ([]string, error)

GetProfiles returns all available profiles for this provider.

func (*Provider) GetStartPipelineOperation added in v0.1.5

func (p *Provider) GetStartPipelineOperation() (cloud.StartPipelineOperation, error)

GetStartPipelineOperation returns the start pipeline operation

func (*Provider) GetStatus added in v0.1.5

func (p *Provider) GetStatus(ctx context.Context) ([]cloud.PipelineStatus, error)

GetStatus returns the status of all pipelines

func (*Provider) IsAuthenticated added in v0.1.5

func (p *Provider) IsAuthenticated() bool

IsAuthenticated returns whether the provider is authenticated

func (*Provider) LoadConfig

func (p *Provider) LoadConfig(profile, region string) error

LoadConfig loads the provider configuration with the given profile and region.

func (*Provider) Name

func (p *Provider) Name() string

Name returns the provider's name.

func (*Provider) Services

func (p *Provider) Services() []cloud.Service

Services returns all available services for this provider.

func (*Provider) StartPipeline added in v0.1.5

func (p *Provider) StartPipeline(ctx context.Context, pipelineName string, commitID string) error

StartPipeline starts a pipeline execution

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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