types

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2017 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Deployment

type Deployment struct {
	ID               string
	Status           DeploymentStatus
	Health           DeploymentHealth
	TaskDefinition   string
	DesiredTaskCount int
	Token            string

	FailedInstances []*ecs.Failure
	StartTime       time.Time
	EndTime         time.Time
}

func NewDeployment

func NewDeployment(taskDefinition string, token string) (*Deployment, error)

func (*Deployment) UpdateDeploymentToCompleted

func (d *Deployment) UpdateDeploymentToCompleted(failedInstances []*ecs.Failure) error

func (*Deployment) UpdateDeploymentToInProgress

func (d *Deployment) UpdateDeploymentToInProgress(
	desiredTaskCount int,
	failedInstances []*ecs.Failure) error

type DeploymentHealth

type DeploymentHealth uint8
const (
	DeploymentHealthy DeploymentHealth = iota
	DeploymentUnhealthy
)

type DeploymentStatus

type DeploymentStatus uint8
const (
	DeploymentPending DeploymentStatus = iota
	DeploymentInProgress
	DeploymentCompleted
)

Jump to

Keyboard shortcuts

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