deploy

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultVersion = "0.0"

Variables

This section is empty.

Functions

This section is empty.

Types

type AppSpec

type AppSpec struct {
	Version   Version    `json:"version"`
	Resources []Resource `json:"Resources"`
}

AppSpec provides an application specification for CodeDeploy. Reference: https://docs.aws.amazon.com/codedeploy/latest/userguide/reference-appspec-file.html

func NewECS

func NewECS(taskDefinitionARN, containerName string, containerPort int) *AppSpec

NewECS creates a new instance of AppSpec incorporating commonly used default values for ECS deployments.

func (*AppSpec) MarshalJSON

func (a *AppSpec) MarshalJSON() ([]byte, error)

type CodeDeployContext

type CodeDeployContext struct {
	Client *codedeploy.Client
}

func (*CodeDeployContext) CreateDeployment

func (c *CodeDeployContext) CreateDeployment(ctx context.Context, applicationName, deploymentGroupName string, appSpec json.Marshaler) (string, error)

func (*CodeDeployContext) WaitForSuccessfulDeployment

func (c *CodeDeployContext) WaitForSuccessfulDeployment(ctx context.Context, deploymentID string, maxWaitDur time.Duration) error

type LoadBalancerInfo

type LoadBalancerInfo struct {
	ContainerName string `json:"ContainerName"`
	ContainerPort int    `json:"ContainerPort"`
}

type Properties

type Properties struct {
	TaskDefinition   string           `json:"TaskDefinition"`
	LoadBalancerInfo LoadBalancerInfo `json:"LoadBalancerInfo"`
}

type Resource

type Resource struct {
	TargetService TargetService `json:"TargetService"`
}

type TargetService

type TargetService struct {
	Type       TargetServiceType `json:"Type"`
	Properties Properties        `json:"Properties"`
}

type TargetServiceType

type TargetServiceType string
const ECSTargetServiceType TargetServiceType = "AWS::ECS::Service"

type Version

type Version string

Jump to

Keyboard shortcuts

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