cloudproviders

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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

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

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

Jump to

Keyboard shortcuts

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