facade

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2017 License: Apache-2.0 Imports: 8 Imported by: 10

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

type MockClusterState added in v0.2.0

type MockClusterState struct {
	// contains filtered or unexported fields
}

Mock of ClusterState interface

func NewMockClusterState added in v0.2.0

func NewMockClusterState(ctrl *gomock.Controller) *MockClusterState

func (*MockClusterState) EXPECT added in v0.2.0

func (_m *MockClusterState) EXPECT() *_MockClusterStateRecorder

func (*MockClusterState) ListInstances added in v0.2.0

func (_m *MockClusterState) ListInstances(cluster string) ([]*models.ContainerInstance, error)

func (*MockClusterState) ListTasks added in v0.2.0

func (_m *MockClusterState) ListTasks(cluster string) ([]*models.Task, error)

Jump to

Keyboard shortcuts

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