Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClusterState ¶
type ClusterState interface { ListInstances(cluster string) ([]*models.ContainerInstance, error) ListTasks(cluster string) ([]*models.Task, error) }
ClusterState defines methods to get cluster and task state
func NewClusterState ¶
func NewClusterState(css *client.BloxCSS) (ClusterState, error)
type ECS ¶
type ECS interface { StartTask( clusterArn string, containerInstances []*string, startedBy string, taskDefinition string) (*ecs.StartTaskOutput, error) ListClusters() ([]*string, error) DescribeCluster(cluster *string) (*ecs.Cluster, error) DescribeTaskDefinition(taskDefinition *string) (*ecs.TaskDefinition, error) ListTasks(cluster string, startedBy string) ([]*string, error) ListTasksByInstance(cluster string, instanceARN string) ([]*string, error) DescribeTasks(cluster string, tasks []*string) (*ecs.DescribeTasksOutput, error) StopTask(clusterArn string, taskArn string) error }
Click to show internal directories.
Click to hide internal directories.