Documentation ¶
Overview ¶
Package task provides support for running Amazon ECS tasks.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClusterGetter ¶ added in v0.7.0
ClusterGetter wraps the method of getting a cluster ARN.
type ConfigRunner ¶ added in v1.6.0
type ConfigRunner struct { // Count of the tasks to be launched. Count int // Group Name of the tasks that use the same task definition. GroupName string // The ARN of the cluster to run the task. Cluster string // Network configuration Subnets []string SecurityGroups []string // Interfaces to interact with dependencies. Must not be nil. ClusterGetter DefaultClusterGetter Starter Runner // Must not be nil if using default subnets. VPCGetter VPCGetter }
ConfigRunner runs an Amazon ECS task in the subnets, security groups, and cluster. It uses the default subnets and the default cluster if the corresponding field is empty.
func (*ConfigRunner) Run ¶ added in v1.6.0
func (r *ConfigRunner) Run() ([]*Task, error)
Run runs tasks given subnets, security groups and the cluster, and returns the tasks. If subnets are not provided, it uses the default subnets. If cluster is not provided, it uses the default cluster.
type DefaultClusterGetter ¶
DefaultClusterGetter wraps the method of getting a default cluster ARN.
type EnvRunner ¶
type EnvRunner struct { // Count of the tasks to be launched. Count int // Group Name of the tasks that use the same task definition. GroupName string // App and Env in which the tasks will be launched. App string Env string // Interfaces to interact with dependencies. Must not be nil. VPCGetter VPCGetter ClusterGetter ClusterGetter Starter Runner EnvironmentDescriber EnvironmentDescriber }
EnvRunner can run an Amazon ECS task in the VPC and the cluster of an environment.
type EnvironmentDescriber ¶ added in v1.4.0
type EnvironmentDescriber interface {
Describe() (*describe.EnvDescription, error)
}
type Runner ¶ added in v0.4.0
type Runner interface {
RunTask(input ecs.RunTaskInput) ([]*ecs.Task, error)
}
Runner wraps the method of running tasks.