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 )
Click to show internal directories.
Click to hide internal directories.