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: 14

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Environment

type Environment struct {
	Token                 string
	Name                  string
	DesiredTaskDefinition string
	DesiredTaskCount      int
	Cluster               string
	Health                EnvironmentHealth

	// ID of the deployment created by the latest create-deployment call.
	PendingDeploymentID string
	// ID of the deployment that is currently in-progress. Background workers will pick
	// up this deployment to launch tasks on new instances if there is an in-progress deployment.
	// Otherwise, if no in-progress deployment exists, background workers pick up the latest completed deployment.
	InProgressDeploymentID string

	// deploymentID -> deployment
	Deployments map[string]types.Deployment
}

func NewEnvironment

func NewEnvironment(name string, taskDefinition string, cluster string) (*Environment, error)

func (*Environment) AddPendingDeployment

func (e *Environment) AddPendingDeployment(d types.Deployment) error

func (*Environment) SortDeploymentsReverseChronologically

func (e *Environment) SortDeploymentsReverseChronologically() ([]types.Deployment, error)

SortDeploymentsReverseChronologically returns deployments ordered reverse-chronologically: latest startTime first

func (*Environment) UpdatePendingDeploymentToInProgress

func (e *Environment) UpdatePendingDeploymentToInProgress() error

type EnvironmentHealth

type EnvironmentHealth uint8
const (
	EnvironmentHealthy EnvironmentHealth = iota
	EnvironmentUnhealthy
)

Jump to

Keyboard shortcuts

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