Documentation
¶
Index ¶
- type Client
- type Config
- type DefaultClient
- func (c DefaultClient) CreateCluster(cluster string) (*ecs.Cluster, error)
- func (c DefaultClient) CreateService(params *ecs.CreateServiceInput) (*ecs.Service, error)
- func (c DefaultClient) DeleteCluster(cluster string) (*ecs.Cluster, error)
- func (c DefaultClient) DeleteService(cluster string, service string) (*ecs.Service, error)
- func (c DefaultClient) DeregisterTaskDefinition(taskName string) (*ecs.TaskDefinition, error)
- func (c DefaultClient) DescribeClusters(clusters []*string) (*ecs.DescribeClustersOutput, error)
- func (c DefaultClient) DescribeService(cluster string, services []*string) (*ecs.DescribeServicesOutput, error)
- func (c DefaultClient) DescribeTaskDefinition(td string) (*ecs.TaskDefinition, error)
- func (c DefaultClient) DescribeTasks(cluster string, tasks []*string) (*ecs.DescribeTasksOutput, error)
- func (c DefaultClient) ListClusters(maxResult int) (*ecs.ListClustersOutput, error)
- func (c DefaultClient) ListContainerInstances(cluster string) (*ecs.ListContainerInstancesOutput, error)
- func (c DefaultClient) ListServices(cluster string) (*ecs.ListServicesOutput, error)
- func (c DefaultClient) ListTasks(cluster string, service string) (*ecs.ListTasksOutput, error)
- func (c DefaultClient) RegisterTaskDefinition(taskName string, containers []*ecs.ContainerDefinition, volumes []*ecs.Volume) (*ecs.TaskDefinition, error)
- func (c DefaultClient) StopTask(cluster string, task string) (*ecs.Task, error)
- func (c DefaultClient) UpdateService(params *ecs.UpdateServiceInput) (*ecs.Service, error)
- type MockClient
- func (_m *MockClient) CreateCluster(cluster string) (*ecs.Cluster, error)
- func (_m *MockClient) CreateService(params *ecs.CreateServiceInput) (*ecs.Service, error)
- func (_m *MockClient) DeleteCluster(cluster string) (*ecs.Cluster, error)
- func (_m *MockClient) DeleteService(cluster string, service string) (*ecs.Service, error)
- func (_m *MockClient) DeregisterTaskDefinition(taskName string) (*ecs.TaskDefinition, error)
- func (_m *MockClient) DescribeClusters(clusters []*string) (*ecs.DescribeClustersOutput, error)
- func (_m *MockClient) DescribeService(cluster string, services []*string) (*ecs.DescribeServicesOutput, error)
- func (_m *MockClient) DescribeTaskDefinition(td string) (*ecs.TaskDefinition, error)
- func (_m *MockClient) DescribeTasks(cluster string, tasks []*string) (*ecs.DescribeTasksOutput, error)
- func (_m *MockClient) EXPECT() *_MockClientRecorder
- func (_m *MockClient) ListClusters(maxResult int) (*ecs.ListClustersOutput, error)
- func (_m *MockClient) ListContainerInstances(cluster string) (*ecs.ListContainerInstancesOutput, error)
- func (_m *MockClient) ListServices(cluster string) (*ecs.ListServicesOutput, error)
- func (_m *MockClient) ListTasks(cluster string, service string) (*ecs.ListTasksOutput, error)
- func (_m *MockClient) RegisterTaskDefinition(taskName string, containers []*ecs.ContainerDefinition, volumes []*ecs.Volume) (*ecs.TaskDefinition, error)
- func (_m *MockClient) StopTask(cluster string, task string) (*ecs.Task, error)
- func (_m *MockClient) UpdateService(params *ecs.UpdateServiceInput) (*ecs.Service, error)
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) }
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 (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) 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 (*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) UpdateService ¶
func (_m *MockClient) UpdateService(params *ecs.UpdateServiceInput) (*ecs.Service, error)
Click to show internal directories.
Click to hide internal directories.