Documentation
¶
Index ¶
- func CreateProvider(registry *cloud.ProviderRegistry, name, profile, region string) (cloud.Provider, error)
- func InitializeProviders(registry *cloud.ProviderRegistry)
- type AWSProviderWrapper
- func (w *AWSProviderWrapper) ApproveAction(ctx context.Context, action cloud.ApprovalAction, approved bool, ...) error
- func (w *AWSProviderWrapper) Authenticate(method string, authConfig map[string]string) error
- func (w *AWSProviderWrapper) Configure(config map[string]string) error
- func (w *AWSProviderWrapper) Description() string
- func (w *AWSProviderWrapper) GetApprovals(ctx context.Context) ([]cloud.ApprovalAction, error)
- func (w *AWSProviderWrapper) GetAuthConfigKeys(method string) []string
- func (w *AWSProviderWrapper) GetAuthenticationMethods() []string
- func (w *AWSProviderWrapper) GetCodePipelineManualApprovalOperation() (cloud.CodePipelineManualApprovalOperation, error)
- func (w *AWSProviderWrapper) GetConfigKeys() []string
- func (w *AWSProviderWrapper) GetConfigOptions(key string) ([]string, error)
- func (w *AWSProviderWrapper) GetFunctionStatusOperation() (cloud.FunctionStatusOperation, error)
- func (w *AWSProviderWrapper) GetLambdaExecuteOperation() (cloud.LambdaExecuteOperation, error)
- func (w *AWSProviderWrapper) GetPipelineStatusOperation() (cloud.PipelineStatusOperation, error)
- func (w *AWSProviderWrapper) GetProfiles() ([]string, error)
- func (w *AWSProviderWrapper) GetStartPipelineOperation() (cloud.StartPipelineOperation, error)
- func (w *AWSProviderWrapper) GetStatus(ctx context.Context) ([]cloud.PipelineStatus, error)
- func (w *AWSProviderWrapper) IsAuthenticated() bool
- func (w *AWSProviderWrapper) LoadConfig(profile, region string) error
- func (w *AWSProviderWrapper) Name() string
- func (w *AWSProviderWrapper) Services() []cloud.Service
- func (w *AWSProviderWrapper) StartPipeline(ctx context.Context, pipelineName string, commitID string) error
- type CodePipelineServiceWrapper
- type LambdaServiceWrapper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateProvider ¶
func CreateProvider(registry *cloud.ProviderRegistry, name, profile, region string) (cloud.Provider, error)
CreateProvider creates a provider with the given name and configuration
func InitializeProviders ¶
func InitializeProviders(registry *cloud.ProviderRegistry)
InitializeProviders registers all available providers with the registry
Types ¶
type AWSProviderWrapper ¶
type AWSProviderWrapper struct {
// contains filtered or unexported fields
}
AWSProviderWrapper wraps the AWS provider to ensure it implements the cloud.Provider interface
func NewAWSProviderWrapper ¶
func NewAWSProviderWrapper(provider *aws.Provider) *AWSProviderWrapper
NewAWSProviderWrapper creates a new wrapper for the AWS provider
func (*AWSProviderWrapper) ApproveAction ¶
func (w *AWSProviderWrapper) ApproveAction(ctx context.Context, action cloud.ApprovalAction, approved bool, comment string) error
ApproveAction approves or rejects an approval action
func (*AWSProviderWrapper) Authenticate ¶
func (w *AWSProviderWrapper) Authenticate(method string, authConfig map[string]string) error
Authenticate authenticates with the provider using the given method and configuration
func (*AWSProviderWrapper) Configure ¶
func (w *AWSProviderWrapper) Configure(config map[string]string) error
Configure configures the provider with the given configuration
func (*AWSProviderWrapper) Description ¶
func (w *AWSProviderWrapper) Description() string
Description returns the provider's description
func (*AWSProviderWrapper) GetApprovals ¶
func (w *AWSProviderWrapper) GetApprovals(ctx context.Context) ([]cloud.ApprovalAction, error)
GetApprovals returns all pending approvals for the provider
func (*AWSProviderWrapper) GetAuthConfigKeys ¶
func (w *AWSProviderWrapper) GetAuthConfigKeys(method string) []string
GetAuthConfigKeys returns the configuration keys required for an authentication method
func (*AWSProviderWrapper) GetAuthenticationMethods ¶
func (w *AWSProviderWrapper) GetAuthenticationMethods() []string
GetAuthenticationMethods returns the available authentication methods
func (*AWSProviderWrapper) GetCodePipelineManualApprovalOperation ¶
func (w *AWSProviderWrapper) GetCodePipelineManualApprovalOperation() (cloud.CodePipelineManualApprovalOperation, error)
GetCodePipelineManualApprovalOperation returns the CodePipeline manual approval operation
func (*AWSProviderWrapper) GetConfigKeys ¶
func (w *AWSProviderWrapper) GetConfigKeys() []string
GetConfigKeys returns the configuration keys required by this provider
func (*AWSProviderWrapper) GetConfigOptions ¶
func (w *AWSProviderWrapper) GetConfigOptions(key string) ([]string, error)
GetConfigOptions returns the available options for a configuration key
func (*AWSProviderWrapper) GetFunctionStatusOperation ¶
func (w *AWSProviderWrapper) GetFunctionStatusOperation() (cloud.FunctionStatusOperation, error)
GetFunctionStatusOperation returns the function status operation
func (*AWSProviderWrapper) GetLambdaExecuteOperation ¶
func (w *AWSProviderWrapper) GetLambdaExecuteOperation() (cloud.LambdaExecuteOperation, error)
GetLambdaExecuteOperation returns the Lambda execute operation
func (*AWSProviderWrapper) GetPipelineStatusOperation ¶
func (w *AWSProviderWrapper) GetPipelineStatusOperation() (cloud.PipelineStatusOperation, error)
GetPipelineStatusOperation returns the pipeline status operation
func (*AWSProviderWrapper) GetProfiles ¶
func (w *AWSProviderWrapper) GetProfiles() ([]string, error)
GetProfiles returns all available profiles for this provider
func (*AWSProviderWrapper) GetStartPipelineOperation ¶
func (w *AWSProviderWrapper) GetStartPipelineOperation() (cloud.StartPipelineOperation, error)
GetStartPipelineOperation returns the start pipeline operation
func (*AWSProviderWrapper) GetStatus ¶
func (w *AWSProviderWrapper) GetStatus(ctx context.Context) ([]cloud.PipelineStatus, error)
GetStatus returns the status of all pipelines
func (*AWSProviderWrapper) IsAuthenticated ¶
func (w *AWSProviderWrapper) IsAuthenticated() bool
IsAuthenticated returns whether the provider is authenticated
func (*AWSProviderWrapper) LoadConfig ¶
func (w *AWSProviderWrapper) LoadConfig(profile, region string) error
LoadConfig loads the provider configuration with the given profile and region
func (*AWSProviderWrapper) Name ¶
func (w *AWSProviderWrapper) Name() string
Name returns the provider's name
func (*AWSProviderWrapper) Services ¶
func (w *AWSProviderWrapper) Services() []cloud.Service
Services returns all available services for this provider
func (*AWSProviderWrapper) StartPipeline ¶
func (w *AWSProviderWrapper) StartPipeline(ctx context.Context, pipelineName string, commitID string) error
StartPipeline starts a pipeline execution
type CodePipelineServiceWrapper ¶
type CodePipelineServiceWrapper struct {
// contains filtered or unexported fields
}
CodePipelineServiceWrapper wraps the CodePipeline service
func (*CodePipelineServiceWrapper) Categories ¶
func (s *CodePipelineServiceWrapper) Categories() []cloud.Category
Categories returns the service categories
func (*CodePipelineServiceWrapper) Description ¶
func (s *CodePipelineServiceWrapper) Description() string
Description returns the service description
func (*CodePipelineServiceWrapper) Name ¶
func (s *CodePipelineServiceWrapper) Name() string
Name returns the service name
type LambdaServiceWrapper ¶
type LambdaServiceWrapper struct {
// contains filtered or unexported fields
}
LambdaServiceWrapper wraps the Lambda service
func (*LambdaServiceWrapper) Categories ¶
func (s *LambdaServiceWrapper) Categories() []cloud.Category
Categories returns the service categories
func (*LambdaServiceWrapper) Description ¶
func (s *LambdaServiceWrapper) Description() string
Description returns the service description
func (*LambdaServiceWrapper) Name ¶
func (s *LambdaServiceWrapper) Name() string
Name returns the service name