Documentation ¶
Index ¶
Constants ¶
View Source
const ( Info = "info" Success = "warning" Error = "error" )
View Source
const DefaultPollInterval = 5 * time.Second
Variables ¶
This section is empty.
Functions ¶
func UpdateImageTag ¶
Types ¶
type DeployStatus ¶
type DeployStatus struct { Stage Stage `json:"stage,omitempty"` Message *Message `json:"message,omitempty"` Current Current `json:"current,omitempty"` Previous Previous `json:"previous,omitempty"` Done bool `json:"done"` Service string `json:"service,omitempty"` Cluster string `json:"cluster,omitempty"` TaskDefinition string `json:"task_definition,omitempty"` }
type Deployer ¶
type Deployer struct { // How frequently to poll for deploy status. PollInterval time.Duration // contains filtered or unexported fields }
func NewDeployer ¶
func NewDeployer(svc *ecs.ECS, cw *cloudwatchevents.CloudWatchEvents, reporter Reporter) *Deployer
func (*Deployer) OverrideImages ¶
func (d *Deployer) OverrideImages(td *ecs.TaskDefinition, r *Request) error
type Message ¶
type Message struct { Type MessageType `json:"type,omitempty"` Text string `json:"text,omitempty"` }
type MessageType ¶
type MessageType string
type Reporter ¶
type Reporter interface { Report(status *DeployStatus) Wait(ctx context.Context) error }
type ScheduledTask ¶
type ScheduledTask struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.