/
mock_service.go
103 lines (87 loc) · 3.7 KB
/
mock_service.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
// Code generated by MockGen. DO NOT EDIT.
// Source: ./internal/pkg/describe/service.go
// Package mocks is a generated GoMock package.
package mocks
import (
ecs "github.com/aws/amazon-ecs-cli-v2/internal/pkg/aws/ecs"
cloudformation "github.com/aws/aws-sdk-go/service/cloudformation"
gomock "github.com/golang/mock/gomock"
reflect "reflect"
)
// MockstackAndResourcesDescriber is a mock of stackAndResourcesDescriber interface
type MockstackAndResourcesDescriber struct {
ctrl *gomock.Controller
recorder *MockstackAndResourcesDescriberMockRecorder
}
// MockstackAndResourcesDescriberMockRecorder is the mock recorder for MockstackAndResourcesDescriber
type MockstackAndResourcesDescriberMockRecorder struct {
mock *MockstackAndResourcesDescriber
}
// NewMockstackAndResourcesDescriber creates a new mock instance
func NewMockstackAndResourcesDescriber(ctrl *gomock.Controller) *MockstackAndResourcesDescriber {
mock := &MockstackAndResourcesDescriber{ctrl: ctrl}
mock.recorder = &MockstackAndResourcesDescriberMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockstackAndResourcesDescriber) EXPECT() *MockstackAndResourcesDescriberMockRecorder {
return m.recorder
}
// Stack mocks base method
func (m *MockstackAndResourcesDescriber) Stack(stackName string) (*cloudformation.Stack, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Stack", stackName)
ret0, _ := ret[0].(*cloudformation.Stack)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Stack indicates an expected call of Stack
func (mr *MockstackAndResourcesDescriberMockRecorder) Stack(stackName interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Stack", reflect.TypeOf((*MockstackAndResourcesDescriber)(nil).Stack), stackName)
}
// StackResources mocks base method
func (m *MockstackAndResourcesDescriber) StackResources(stackName string) ([]*cloudformation.StackResource, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "StackResources", stackName)
ret0, _ := ret[0].([]*cloudformation.StackResource)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// StackResources indicates an expected call of StackResources
func (mr *MockstackAndResourcesDescriberMockRecorder) StackResources(stackName interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StackResources", reflect.TypeOf((*MockstackAndResourcesDescriber)(nil).StackResources), stackName)
}
// MockecsClient is a mock of ecsClient interface
type MockecsClient struct {
ctrl *gomock.Controller
recorder *MockecsClientMockRecorder
}
// MockecsClientMockRecorder is the mock recorder for MockecsClient
type MockecsClientMockRecorder struct {
mock *MockecsClient
}
// NewMockecsClient creates a new mock instance
func NewMockecsClient(ctrl *gomock.Controller) *MockecsClient {
mock := &MockecsClient{ctrl: ctrl}
mock.recorder = &MockecsClientMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockecsClient) EXPECT() *MockecsClientMockRecorder {
return m.recorder
}
// TaskDefinition mocks base method
func (m *MockecsClient) TaskDefinition(taskDefName string) (*ecs.TaskDefinition, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "TaskDefinition", taskDefName)
ret0, _ := ret[0].(*ecs.TaskDefinition)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// TaskDefinition indicates an expected call of TaskDefinition
func (mr *MockecsClientMockRecorder) TaskDefinition(taskDefName interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TaskDefinition", reflect.TypeOf((*MockecsClient)(nil).TaskDefinition), taskDefName)
}