Documentation
¶
Index ¶
- Variables
- type Provider
- func (p *Provider) ApproveAction(ctx context.Context, action cloud.ApprovalAction, approved bool, ...) error
- func (p *Provider) Authenticate(method string, authConfig map[string]string) error
- func (p *Provider) Configure(config map[string]string) error
- func (p *Provider) Description() string
- func (p *Provider) GetApprovals(ctx context.Context) ([]cloud.ApprovalAction, error)
- func (p *Provider) GetAuthConfigKeys(method string) []string
- func (p *Provider) GetAuthenticationMethods() []string
- func (p *Provider) GetCodePipelineManualApprovalOperation() (cloud.CodePipelineManualApprovalOperation, error)
- func (p *Provider) GetConfigKeys() []string
- func (p *Provider) GetConfigOptions(key string) ([]string, error)
- func (p *Provider) GetFunctionStatusOperation() (cloud.FunctionStatusOperation, error)
- func (p *Provider) GetLambdaExecuteOperation() (cloud.LambdaExecuteOperation, error)
- func (p *Provider) GetPipelineStatusOperation() (cloud.PipelineStatusOperation, error)
- func (p *Provider) GetProfiles() ([]string, error)
- func (p *Provider) GetStartPipelineOperation() (cloud.StartPipelineOperation, error)
- func (p *Provider) GetStatus(ctx context.Context) ([]cloud.PipelineStatus, error)
- func (p *Provider) IsAuthenticated() bool
- func (p *Provider) LoadConfig(profile, region string) error
- func (p *Provider) Name() string
- func (p *Provider) Services() []cloud.Service
- func (p *Provider) StartPipeline(ctx context.Context, pipelineName string, commitID string) error
Constants ¶
This section is empty.
Variables ¶
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
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 (*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
Authenticate authenticates with the provider using the given method and configuration
func (*Provider) Configure ¶ added in v0.1.5
Configure configures the provider with the given configuration
func (*Provider) Description ¶
Description returns the provider's description.
func (*Provider) GetApprovals ¶ added in v0.1.5
GetApprovals returns all pending approvals for the provider
func (*Provider) GetAuthConfigKeys ¶ added in v0.1.5
GetAuthConfigKeys returns the configuration keys required for an authentication method
func (*Provider) GetAuthenticationMethods ¶ added in v0.1.5
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
GetConfigKeys returns the configuration keys required by this provider
func (*Provider) GetConfigOptions ¶ added in v0.1.5
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 ¶
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) IsAuthenticated ¶ added in v0.1.5
IsAuthenticated returns whether the provider is authenticated
func (*Provider) LoadConfig ¶
LoadConfig loads the provider configuration with the given profile and region.