Skip to content

Commit 731195a

Browse files
committed
Remove UpdateServiceCount from ECS Client interface; regenerate mocks
1 parent 0b67612 commit 731195a

File tree

2 files changed

+0
-15
lines changed

2 files changed

+0
-15
lines changed

ecs-cli/modules/clients/aws/ecs/client.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ type ECSClient interface {
4545

4646
// Service related
4747
CreateService(serviceName, taskDefName string, loadBalancer *ecs.LoadBalancer, role string, deploymentConfig *ecs.DeploymentConfiguration, networkConfig *ecs.NetworkConfiguration, launchType string, healthCheckGracePeriod *int64) error
48-
UpdateServiceCount(serviceName string, count int64, deploymentConfig *ecs.DeploymentConfiguration, networkConfig *ecs.NetworkConfiguration, healthCheckGracePeriod *int64, force bool) error
4948
UpdateService(serviceName, taskDefinitionName string, count int64, deploymentConfig *ecs.DeploymentConfiguration, networkConfig *ecs.NetworkConfiguration, healthCheckGracePeriod *int64, force bool) error
5049
DescribeService(serviceName string) (*ecs.DescribeServicesOutput, error)
5150
DeleteService(serviceName string) error
@@ -181,10 +180,6 @@ func (c *ecsClient) CreateService(serviceName, taskDefName string, loadBalancer
181180
return nil
182181
}
183182

184-
func (c *ecsClient) UpdateServiceCount(serviceName string, count int64, deploymentConfig *ecs.DeploymentConfiguration, networkConfig *ecs.NetworkConfiguration, healthCheckGracePeriod *int64, force bool) error {
185-
return c.UpdateService(serviceName, "", count, deploymentConfig, networkConfig, healthCheckGracePeriod, force)
186-
}
187-
188183
func (c *ecsClient) UpdateService(serviceName, taskDefinition string, count int64, deploymentConfig *ecs.DeploymentConfiguration, networkConfig *ecs.NetworkConfiguration, healthCheckGracePeriod *int64, force bool) error {
189184
input := &ecs.UpdateServiceInput{
190185
DesiredCount: aws.Int64(count),

ecs-cli/modules/clients/aws/ecs/mock/client.go

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -223,13 +223,3 @@ func (_m *MockECSClient) UpdateService(_param0 string, _param1 string, _param2 i
223223
func (_mr *_MockECSClientRecorder) UpdateService(arg0, arg1, arg2, arg3, arg4, arg5, arg6 interface{}) *gomock.Call {
224224
return _mr.mock.ctrl.RecordCall(_mr.mock, "UpdateService", arg0, arg1, arg2, arg3, arg4, arg5, arg6)
225225
}
226-
227-
func (_m *MockECSClient) UpdateServiceCount(_param0 string, _param1 int64, _param2 *ecs.DeploymentConfiguration, _param3 *ecs.NetworkConfiguration, _param4 *int64, _param5 bool) error {
228-
ret := _m.ctrl.Call(_m, "UpdateServiceCount", _param0, _param1, _param2, _param3, _param4, _param5)
229-
ret0, _ := ret[0].(error)
230-
return ret0
231-
}
232-
233-
func (_mr *_MockECSClientRecorder) UpdateServiceCount(arg0, arg1, arg2, arg3, arg4, arg5 interface{}) *gomock.Call {
234-
return _mr.mock.ctrl.RecordCall(_mr.mock, "UpdateServiceCount", arg0, arg1, arg2, arg3, arg4, arg5)
235-
}

0 commit comments

Comments
 (0)