action

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ECSDeploy

func ECSDeploy(ctx context.Context, clusterName string, serviceName string, client ECSDeployClient, timeout time.Duration, config ECSDeployTaskConfig, dryRun bool, noWait bool) error

ECSDeploy deploy an ecs service

Types

type ECSDeployClient

type ECSDeployClient interface {
	GetService(ctx context.Context, clusterName string, serviceName string) (*types.Service, error)
	LooksGood(ctx context.Context, service *types.Service) (bool, error)
	WaitUntilGood(ctx context.Context, service *types.Service, timeout *time.Duration) error
	CopyTaskDefinition(ctx context.Context, service *types.Service) (*ecssdk.RegisterTaskDefinitionInput, *types.TaskDefinition, error)
	RegisterTaskDefinition(ctx context.Context, input *ecssdk.RegisterTaskDefinitionInput) (*types.TaskDefinition, error)
	UpdateTaskDefinition(ctx context.Context, service *types.Service, task *types.TaskDefinition) (*types.Service, error)
}

ECSDeployClient defines a simple interface for our required ecs stuffs

type ECSDeployTaskConfig

type ECSDeployTaskConfig interface {
	ApplyTo(input *ecssdk.RegisterTaskDefinitionInput) (*ecssdk.RegisterTaskDefinitionInput, *ecs.TaskConfigDiff)
}

ECSDeployTaskConfig defines a simple interface of how we want a config thing to do

Directories

Path Synopsis
Package mock_action is a generated GoMock package.
Package mock_action is a generated GoMock package.

Jump to

Keyboard shortcuts

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