facade

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 30, 2016 License: Apache-2.0 Imports: 6 Imported by: 0

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
}

func NewECS

func NewECS(ecs ecsiface.ECSAPI) ECS

Jump to

Keyboard shortcuts

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