Documentation
¶
Index ¶
- type AWSConfig
- type AWSProvider
- func (p *AWSProvider) Dependencies() []plugin.PluginDependency
- func (p *AWSProvider) Deploy(ctx context.Context, req provider.DeployRequest) (*provider.DeployResult, error)
- func (p *AWSProvider) Description() string
- func (p *AWSProvider) GetDeploymentStatus(ctx context.Context, deployID string) (*provider.DeployStatus, error)
- func (p *AWSProvider) GetMetrics(ctx context.Context, deployID string, window time.Duration) (*provider.Metrics, error)
- func (p *AWSProvider) ListImages(ctx context.Context, repo string) ([]provider.ImageTag, error)
- func (p *AWSProvider) Name() string
- func (p *AWSProvider) OnDisable(_ plugin.PluginContext) error
- func (p *AWSProvider) OnEnable(_ plugin.PluginContext) error
- func (p *AWSProvider) PullImage(ctx context.Context, image string, auth provider.RegistryAuth) error
- func (p *AWSProvider) PushImage(ctx context.Context, image string, auth provider.RegistryAuth) error
- func (p *AWSProvider) RegisterRoutes(mux *http.ServeMux)
- func (p *AWSProvider) Rollback(ctx context.Context, deployID string) error
- func (p *AWSProvider) TestConnection(ctx context.Context, config map[string]any) (*provider.ConnectionResult, error)
- func (p *AWSProvider) UIPages() []plugin.UIPageDef
- func (p *AWSProvider) Version() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AWSConfig ¶
type AWSConfig struct {
Region string `json:"region" yaml:"region"`
AccessKeyID string `json:"access_key_id" yaml:"access_key_id"`
SecretAccessKey string `json:"secret_access_key" yaml:"secret_access_key"`
RoleARN string `json:"role_arn" yaml:"role_arn"`
ECSCluster string `json:"ecs_cluster" yaml:"ecs_cluster"`
Service string `json:"service" yaml:"service"`
}
AWSConfig holds configuration for the AWS cloud provider.
type AWSProvider ¶
type AWSProvider struct {
// contains filtered or unexported fields
}
AWSProvider implements CloudProvider for Amazon Web Services.
func NewAWSProvider ¶
func NewAWSProvider(config AWSConfig) *AWSProvider
NewAWSProvider creates a new AWSProvider with the given configuration.
func (*AWSProvider) Dependencies ¶
func (p *AWSProvider) Dependencies() []plugin.PluginDependency
func (*AWSProvider) Deploy ¶
func (p *AWSProvider) Deploy(ctx context.Context, req provider.DeployRequest) (*provider.DeployResult, error)
func (*AWSProvider) Description ¶
func (p *AWSProvider) Description() string
func (*AWSProvider) GetDeploymentStatus ¶
func (p *AWSProvider) GetDeploymentStatus(ctx context.Context, deployID string) (*provider.DeployStatus, error)
func (*AWSProvider) GetMetrics ¶
func (*AWSProvider) ListImages ¶
ListImages lists container images in an Amazon ECR repository.
func (*AWSProvider) Name ¶
func (p *AWSProvider) Name() string
func (*AWSProvider) OnDisable ¶
func (p *AWSProvider) OnDisable(_ plugin.PluginContext) error
func (*AWSProvider) OnEnable ¶
func (p *AWSProvider) OnEnable(_ plugin.PluginContext) error
func (*AWSProvider) PullImage ¶
func (p *AWSProvider) PullImage(ctx context.Context, image string, auth provider.RegistryAuth) error
PullImage pulls a container image from Amazon ECR.
func (*AWSProvider) PushImage ¶
func (p *AWSProvider) PushImage(ctx context.Context, image string, auth provider.RegistryAuth) error
PushImage pushes a container image to Amazon ECR.
func (*AWSProvider) RegisterRoutes ¶
func (p *AWSProvider) RegisterRoutes(mux *http.ServeMux)
func (*AWSProvider) Rollback ¶
func (p *AWSProvider) Rollback(ctx context.Context, deployID string) error
func (*AWSProvider) TestConnection ¶
func (p *AWSProvider) TestConnection(ctx context.Context, config map[string]any) (*provider.ConnectionResult, error)
func (*AWSProvider) UIPages ¶
func (p *AWSProvider) UIPages() []plugin.UIPageDef
func (*AWSProvider) Version ¶
func (p *AWSProvider) Version() string
Click to show internal directories.
Click to hide internal directories.