ecs

package
v0.0.0-...-c83230f Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2017 License: MIT Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	CreateCluster(cluster string) (*ecs.Cluster, error)
	DeleteCluster(cluster string) (*ecs.Cluster, error)
	DescribeClusters(clusters []*string) (*ecs.DescribeClustersOutput, error)
	ListClusters(maxResult int) (*ecs.ListClustersOutput, error)
	ListContainerInstances(cluster string) (*ecs.ListContainerInstancesOutput, error)
	CreateService(params *ecs.CreateServiceInput) (*ecs.Service, error)
	UpdateService(params *ecs.UpdateServiceInput) (*ecs.Service, error)
	DescribeService(cluster string, services []*string) (*ecs.DescribeServicesOutput, error)
	DeleteService(cluster string, service string) (*ecs.Service, error)
	ListServices(cluster string) (*ecs.ListServicesOutput, error)
	DescribeTaskDefinition(td string) (*ecs.TaskDefinition, error)
	RegisterTaskDefinition(taskName string, containers []*ecs.ContainerDefinition, volumes []*ecs.Volume) (*ecs.TaskDefinition, error)
	DeregisterTaskDefinition(taskName string) (*ecs.TaskDefinition, error)
	ListTasks(cluster string, service string) (*ecs.ListTasksOutput, error)
	DescribeTasks(cluster string, tasks []*string) (*ecs.DescribeTasksOutput, error)
	StopTask(cluster string, task string) (*ecs.Task, error)
}

func NewClient

func NewClient(ses *session.Session, conf *Config) Client

type Config

type Config struct {
	IsMock bool
	Region string
}

type DefaultClient

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

func (DefaultClient) CreateCluster

func (c DefaultClient) CreateCluster(cluster string) (*ecs.Cluster, error)

func (DefaultClient) CreateService

func (c DefaultClient) CreateService(params *ecs.CreateServiceInput) (*ecs.Service, error)

func (DefaultClient) DeleteCluster

func (c DefaultClient) DeleteCluster(cluster string) (*ecs.Cluster, error)

func (DefaultClient) DeleteService

func (c DefaultClient) DeleteService(cluster string, service string) (*ecs.Service, error)

func (DefaultClient) DeregisterTaskDefinition

func (c DefaultClient) DeregisterTaskDefinition(taskName string) (*ecs.TaskDefinition, error)

func (DefaultClient) DescribeClusters

func (c DefaultClient) DescribeClusters(clusters []*string) (*ecs.DescribeClustersOutput, error)

func (DefaultClient) DescribeService

func (c DefaultClient) DescribeService(cluster string, services []*string) (*ecs.DescribeServicesOutput, error)

func (DefaultClient) DescribeTaskDefinition

func (c DefaultClient) DescribeTaskDefinition(td string) (*ecs.TaskDefinition, error)

func (DefaultClient) DescribeTasks

func (c DefaultClient) DescribeTasks(cluster string, tasks []*string) (*ecs.DescribeTasksOutput, error)

func (DefaultClient) ListClusters

func (c DefaultClient) ListClusters(maxResult int) (*ecs.ListClustersOutput, error)

func (DefaultClient) ListContainerInstances

func (c DefaultClient) ListContainerInstances(cluster string) (*ecs.ListContainerInstancesOutput, error)

func (DefaultClient) ListServices

func (c DefaultClient) ListServices(cluster string) (*ecs.ListServicesOutput, error)

func (DefaultClient) ListTasks

func (c DefaultClient) ListTasks(cluster string, service string) (*ecs.ListTasksOutput, error)

func (DefaultClient) RegisterTaskDefinition

func (c DefaultClient) RegisterTaskDefinition(taskName string, containers []*ecs.ContainerDefinition, volumes []*ecs.Volume) (*ecs.TaskDefinition, error)

func (DefaultClient) StopTask

func (c DefaultClient) StopTask(cluster string, task string) (*ecs.Task, error)

func (DefaultClient) UpdateService

func (c DefaultClient) UpdateService(params *ecs.UpdateServiceInput) (*ecs.Service, error)

type MockClient

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

Mock of Client interface

func NewMockClient

func NewMockClient(ctrl *gomock.Controller) *MockClient

func (*MockClient) CreateCluster

func (_m *MockClient) CreateCluster(cluster string) (*ecs.Cluster, error)

func (*MockClient) CreateService

func (_m *MockClient) CreateService(params *ecs.CreateServiceInput) (*ecs.Service, error)

func (*MockClient) DeleteCluster

func (_m *MockClient) DeleteCluster(cluster string) (*ecs.Cluster, error)

func (*MockClient) DeleteService

func (_m *MockClient) DeleteService(cluster string, service string) (*ecs.Service, error)

func (*MockClient) DeregisterTaskDefinition

func (_m *MockClient) DeregisterTaskDefinition(taskName string) (*ecs.TaskDefinition, error)

func (*MockClient) DescribeClusters

func (_m *MockClient) DescribeClusters(clusters []*string) (*ecs.DescribeClustersOutput, error)

func (*MockClient) DescribeService

func (_m *MockClient) DescribeService(cluster string, services []*string) (*ecs.DescribeServicesOutput, error)

func (*MockClient) DescribeTaskDefinition

func (_m *MockClient) DescribeTaskDefinition(td string) (*ecs.TaskDefinition, error)

func (*MockClient) DescribeTasks

func (_m *MockClient) DescribeTasks(cluster string, tasks []*string) (*ecs.DescribeTasksOutput, error)

func (*MockClient) EXPECT

func (_m *MockClient) EXPECT() *_MockClientRecorder

func (*MockClient) ListClusters

func (_m *MockClient) ListClusters(maxResult int) (*ecs.ListClustersOutput, error)

func (*MockClient) ListContainerInstances

func (_m *MockClient) ListContainerInstances(cluster string) (*ecs.ListContainerInstancesOutput, error)

func (*MockClient) ListServices

func (_m *MockClient) ListServices(cluster string) (*ecs.ListServicesOutput, error)

func (*MockClient) ListTasks

func (_m *MockClient) ListTasks(cluster string, service string) (*ecs.ListTasksOutput, error)

func (*MockClient) RegisterTaskDefinition

func (_m *MockClient) RegisterTaskDefinition(taskName string, containers []*ecs.ContainerDefinition, volumes []*ecs.Volume) (*ecs.TaskDefinition, error)

func (*MockClient) StopTask

func (_m *MockClient) StopTask(cluster string, task string) (*ecs.Task, error)

func (*MockClient) UpdateService

func (_m *MockClient) UpdateService(params *ecs.UpdateServiceInput) (*ecs.Service, error)

Jump to

Keyboard shortcuts

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