internal

package
v0.0.0-...-4593c21 Latest Latest
Warning

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

Go to latest
Published: May 8, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ServiceNotFound = errors.New("service not found")
View Source
var TaskDefinitionContainerMismatch = errors.New("number of containers in task definition does not match number of containers in update")
View Source
var TaskDefinitionNotFound = errors.New("no family definitions found")

Functions

This section is empty.

Types

type ContainerImage

type ContainerImage struct {
	Name  string `json:"name"`
	Image string `json:"image"`
}

type DeployServiceInput

type DeployServiceInput struct {
	Cluster        string
	Service        string
	TaskDefinition *types.TaskDefinition
}

type Deployer

type Deployer interface {
	UpdateTask(ctx context.Context, input *UpdateTaskInput) (*types.TaskDefinition, error)
	DeployService(ctx context.Context, input *DeployServiceInput) (*types.Service, error)
}

func NewDeployer

func NewDeployer(config DeployerConfig) Deployer

type DeployerConfig

type DeployerConfig struct {
	ECSClient *ecs.Client
}

type UpdateTaskInput

type UpdateTaskInput struct {
	Family string
	Images []ContainerImage

	// Deregister (optional) will deregister the previous task definition
	Deregister bool
}

Jump to

Keyboard shortcuts

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