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 }
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)
Click to show internal directories.
Click to hide internal directories.