Documentation
¶
Index ¶
- Constants
- Variables
- type ECSPlugin
- func (p *ECSPlugin) BuildPipelineSyncStages(_ context.Context, _ *ecsconfig.ECSPluginConfig, ...) (*sdk.BuildPipelineSyncStagesResponse, error)
- func (p *ECSPlugin) BuildQuickSyncStages(ctx context.Context, cfg *ecsconfig.ECSPluginConfig, ...) (*sdk.BuildQuickSyncStagesResponse, error)
- func (p *ECSPlugin) DetermineStrategy(ctx context.Context, cfg *ecsconfig.ECSPluginConfig, ...) (*sdk.DetermineStrategyResponse, error)
- func (p *ECSPlugin) DetermineVersions(ctx context.Context, cfg *ecsconfig.ECSPluginConfig, ...) (*sdk.DetermineVersionsResponse, error)
- func (p *ECSPlugin) ExecuteStage(ctx context.Context, cfg *ecsconfig.ECSPluginConfig, ...) (*sdk.ExecuteStageResponse, error)
- func (p *ECSPlugin) FetchDefinedStages() []string
Constants ¶
View Source
const ( // StageECSSync represents the ECS sync stage. StageECSSync = "ECS_SYNC" // StageECSPrimaryRollout represents the ECS primary rollout stage. StageECSPrimaryRollout = "ECS_PRIMARY_ROLLOUT" // StageECSCanaryRollout represents the ECS canary rollout stage. StageECSCanaryRollout = "ECS_CANARY_ROLLOUT" // StageECSCanaryClean represents the ECS canary clean stage. StageECSCanaryClean = "ECS_CANARY_CLEAN" // StageECSTrafficRouting represents the ECS traffic routing stage. StageECSTrafficRouting = "ECS_TRAFFIC_ROUTING" // StageECSRollback represents the ECS rollback stage. StageECSRollback = "ECS_ROLLBACK" )
View Source
const ( StageECSSyncDescription = "Sync ECS service with given task definition" StageECSPrimaryRolloutDescription = "Roll out new task set as primary" StageECSCanaryRolloutDescription = "Roll out new task set as canary" StageECSCanaryCleanDescription = "Clean up canary task set" StageECSTrafficRoutingDescription = "Route traffic between primary and canary task sets" StageECSRollbackDescription = "Rollback to previous task set" )
Variables ¶
View Source
var ErrUnsupportedStage = errors.New("unsupported stage")
Functions ¶
This section is empty.
Types ¶
type ECSPlugin ¶
type ECSPlugin struct {
}
func (*ECSPlugin) BuildPipelineSyncStages ¶
func (p *ECSPlugin) BuildPipelineSyncStages( _ context.Context, _ *ecsconfig.ECSPluginConfig, input *sdk.BuildPipelineSyncStagesInput, ) (*sdk.BuildPipelineSyncStagesResponse, error)
BuildPipelineSyncStages builds the stages that will be executed by the plugin.
func (*ECSPlugin) BuildQuickSyncStages ¶
func (p *ECSPlugin) BuildQuickSyncStages( ctx context.Context, cfg *ecsconfig.ECSPluginConfig, input *sdk.BuildQuickSyncStagesInput, ) (*sdk.BuildQuickSyncStagesResponse, error)
BuildQuickSyncStages builds the stages that will be executed during the quick sync process.
func (*ECSPlugin) DetermineStrategy ¶
func (p *ECSPlugin) DetermineStrategy( ctx context.Context, cfg *ecsconfig.ECSPluginConfig, input *sdk.DetermineStrategyInput[ecsconfig.ECSApplicationSpec], ) (*sdk.DetermineStrategyResponse, error)
DetermineStrategy determines the strategy to deploy the resources.
Use PipelineSync if any container image added, removed, or changed.
Use QuickSync if no image difference.
func (*ECSPlugin) DetermineVersions ¶
func (p *ECSPlugin) DetermineVersions( ctx context.Context, cfg *ecsconfig.ECSPluginConfig, input *sdk.DetermineVersionsInput[ecsconfig.ECSApplicationSpec], ) (*sdk.DetermineVersionsResponse, error)
DetermineVersions determines the versions of the resources that will be deployed.
func (*ECSPlugin) ExecuteStage ¶
func (p *ECSPlugin) ExecuteStage( ctx context.Context, cfg *ecsconfig.ECSPluginConfig, deployTargets []*sdk.DeployTarget[ecsconfig.ECSDeployTargetConfig], input *sdk.ExecuteStageInput[ecsconfig.ECSApplicationSpec], ) (*sdk.ExecuteStageResponse, error)
ExecuteStage executes the given stage.
func (*ECSPlugin) FetchDefinedStages ¶
FetchDefinedStages returns the list of stages that the plugin can execute.
Click to show internal directories.
Click to hide internal directories.