/
mq.go
256 lines (227 loc) · 10.5 KB
/
mq.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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
// Code generated by MockGen. DO NOT EDIT.
// Source: mq.go
// Package mocks is a generated GoMock package.
package mocks
import (
context "context"
reflect "reflect"
mq "github.com/aws/aws-sdk-go-v2/service/mq"
gomock "github.com/golang/mock/gomock"
)
// MockMqClient is a mock of MqClient interface.
type MockMqClient struct {
ctrl *gomock.Controller
recorder *MockMqClientMockRecorder
}
// MockMqClientMockRecorder is the mock recorder for MockMqClient.
type MockMqClientMockRecorder struct {
mock *MockMqClient
}
// NewMockMqClient creates a new mock instance.
func NewMockMqClient(ctrl *gomock.Controller) *MockMqClient {
mock := &MockMqClient{ctrl: ctrl}
mock.recorder = &MockMqClientMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockMqClient) EXPECT() *MockMqClientMockRecorder {
return m.recorder
}
// DescribeBroker mocks base method.
func (m *MockMqClient) DescribeBroker(arg0 context.Context, arg1 *mq.DescribeBrokerInput, arg2 ...func(*mq.Options)) (*mq.DescribeBrokerOutput, error) {
m.ctrl.T.Helper()
varargs := []interface{}{arg0, arg1}
for _, a := range arg2 {
varargs = append(varargs, a)
}
ret := m.ctrl.Call(m, "DescribeBroker", varargs...)
ret0, _ := ret[0].(*mq.DescribeBrokerOutput)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// DescribeBroker indicates an expected call of DescribeBroker.
func (mr *MockMqClientMockRecorder) DescribeBroker(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
varargs := append([]interface{}{arg0, arg1}, arg2...)
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeBroker", reflect.TypeOf((*MockMqClient)(nil).DescribeBroker), varargs...)
}
// DescribeBrokerEngineTypes mocks base method.
func (m *MockMqClient) DescribeBrokerEngineTypes(arg0 context.Context, arg1 *mq.DescribeBrokerEngineTypesInput, arg2 ...func(*mq.Options)) (*mq.DescribeBrokerEngineTypesOutput, error) {
m.ctrl.T.Helper()
varargs := []interface{}{arg0, arg1}
for _, a := range arg2 {
varargs = append(varargs, a)
}
ret := m.ctrl.Call(m, "DescribeBrokerEngineTypes", varargs...)
ret0, _ := ret[0].(*mq.DescribeBrokerEngineTypesOutput)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// DescribeBrokerEngineTypes indicates an expected call of DescribeBrokerEngineTypes.
func (mr *MockMqClientMockRecorder) DescribeBrokerEngineTypes(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
varargs := append([]interface{}{arg0, arg1}, arg2...)
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeBrokerEngineTypes", reflect.TypeOf((*MockMqClient)(nil).DescribeBrokerEngineTypes), varargs...)
}
// DescribeBrokerInstanceOptions mocks base method.
func (m *MockMqClient) DescribeBrokerInstanceOptions(arg0 context.Context, arg1 *mq.DescribeBrokerInstanceOptionsInput, arg2 ...func(*mq.Options)) (*mq.DescribeBrokerInstanceOptionsOutput, error) {
m.ctrl.T.Helper()
varargs := []interface{}{arg0, arg1}
for _, a := range arg2 {
varargs = append(varargs, a)
}
ret := m.ctrl.Call(m, "DescribeBrokerInstanceOptions", varargs...)
ret0, _ := ret[0].(*mq.DescribeBrokerInstanceOptionsOutput)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// DescribeBrokerInstanceOptions indicates an expected call of DescribeBrokerInstanceOptions.
func (mr *MockMqClientMockRecorder) DescribeBrokerInstanceOptions(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
varargs := append([]interface{}{arg0, arg1}, arg2...)
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeBrokerInstanceOptions", reflect.TypeOf((*MockMqClient)(nil).DescribeBrokerInstanceOptions), varargs...)
}
// DescribeConfiguration mocks base method.
func (m *MockMqClient) DescribeConfiguration(arg0 context.Context, arg1 *mq.DescribeConfigurationInput, arg2 ...func(*mq.Options)) (*mq.DescribeConfigurationOutput, error) {
m.ctrl.T.Helper()
varargs := []interface{}{arg0, arg1}
for _, a := range arg2 {
varargs = append(varargs, a)
}
ret := m.ctrl.Call(m, "DescribeConfiguration", varargs...)
ret0, _ := ret[0].(*mq.DescribeConfigurationOutput)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// DescribeConfiguration indicates an expected call of DescribeConfiguration.
func (mr *MockMqClientMockRecorder) DescribeConfiguration(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
varargs := append([]interface{}{arg0, arg1}, arg2...)
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeConfiguration", reflect.TypeOf((*MockMqClient)(nil).DescribeConfiguration), varargs...)
}
// DescribeConfigurationRevision mocks base method.
func (m *MockMqClient) DescribeConfigurationRevision(arg0 context.Context, arg1 *mq.DescribeConfigurationRevisionInput, arg2 ...func(*mq.Options)) (*mq.DescribeConfigurationRevisionOutput, error) {
m.ctrl.T.Helper()
varargs := []interface{}{arg0, arg1}
for _, a := range arg2 {
varargs = append(varargs, a)
}
ret := m.ctrl.Call(m, "DescribeConfigurationRevision", varargs...)
ret0, _ := ret[0].(*mq.DescribeConfigurationRevisionOutput)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// DescribeConfigurationRevision indicates an expected call of DescribeConfigurationRevision.
func (mr *MockMqClientMockRecorder) DescribeConfigurationRevision(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
varargs := append([]interface{}{arg0, arg1}, arg2...)
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeConfigurationRevision", reflect.TypeOf((*MockMqClient)(nil).DescribeConfigurationRevision), varargs...)
}
// DescribeUser mocks base method.
func (m *MockMqClient) DescribeUser(arg0 context.Context, arg1 *mq.DescribeUserInput, arg2 ...func(*mq.Options)) (*mq.DescribeUserOutput, error) {
m.ctrl.T.Helper()
varargs := []interface{}{arg0, arg1}
for _, a := range arg2 {
varargs = append(varargs, a)
}
ret := m.ctrl.Call(m, "DescribeUser", varargs...)
ret0, _ := ret[0].(*mq.DescribeUserOutput)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// DescribeUser indicates an expected call of DescribeUser.
func (mr *MockMqClientMockRecorder) DescribeUser(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
varargs := append([]interface{}{arg0, arg1}, arg2...)
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeUser", reflect.TypeOf((*MockMqClient)(nil).DescribeUser), varargs...)
}
// ListBrokers mocks base method.
func (m *MockMqClient) ListBrokers(arg0 context.Context, arg1 *mq.ListBrokersInput, arg2 ...func(*mq.Options)) (*mq.ListBrokersOutput, error) {
m.ctrl.T.Helper()
varargs := []interface{}{arg0, arg1}
for _, a := range arg2 {
varargs = append(varargs, a)
}
ret := m.ctrl.Call(m, "ListBrokers", varargs...)
ret0, _ := ret[0].(*mq.ListBrokersOutput)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// ListBrokers indicates an expected call of ListBrokers.
func (mr *MockMqClientMockRecorder) ListBrokers(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
varargs := append([]interface{}{arg0, arg1}, arg2...)
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListBrokers", reflect.TypeOf((*MockMqClient)(nil).ListBrokers), varargs...)
}
// ListConfigurationRevisions mocks base method.
func (m *MockMqClient) ListConfigurationRevisions(arg0 context.Context, arg1 *mq.ListConfigurationRevisionsInput, arg2 ...func(*mq.Options)) (*mq.ListConfigurationRevisionsOutput, error) {
m.ctrl.T.Helper()
varargs := []interface{}{arg0, arg1}
for _, a := range arg2 {
varargs = append(varargs, a)
}
ret := m.ctrl.Call(m, "ListConfigurationRevisions", varargs...)
ret0, _ := ret[0].(*mq.ListConfigurationRevisionsOutput)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// ListConfigurationRevisions indicates an expected call of ListConfigurationRevisions.
func (mr *MockMqClientMockRecorder) ListConfigurationRevisions(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
varargs := append([]interface{}{arg0, arg1}, arg2...)
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListConfigurationRevisions", reflect.TypeOf((*MockMqClient)(nil).ListConfigurationRevisions), varargs...)
}
// ListConfigurations mocks base method.
func (m *MockMqClient) ListConfigurations(arg0 context.Context, arg1 *mq.ListConfigurationsInput, arg2 ...func(*mq.Options)) (*mq.ListConfigurationsOutput, error) {
m.ctrl.T.Helper()
varargs := []interface{}{arg0, arg1}
for _, a := range arg2 {
varargs = append(varargs, a)
}
ret := m.ctrl.Call(m, "ListConfigurations", varargs...)
ret0, _ := ret[0].(*mq.ListConfigurationsOutput)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// ListConfigurations indicates an expected call of ListConfigurations.
func (mr *MockMqClientMockRecorder) ListConfigurations(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
varargs := append([]interface{}{arg0, arg1}, arg2...)
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListConfigurations", reflect.TypeOf((*MockMqClient)(nil).ListConfigurations), varargs...)
}
// ListTags mocks base method.
func (m *MockMqClient) ListTags(arg0 context.Context, arg1 *mq.ListTagsInput, arg2 ...func(*mq.Options)) (*mq.ListTagsOutput, error) {
m.ctrl.T.Helper()
varargs := []interface{}{arg0, arg1}
for _, a := range arg2 {
varargs = append(varargs, a)
}
ret := m.ctrl.Call(m, "ListTags", varargs...)
ret0, _ := ret[0].(*mq.ListTagsOutput)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// ListTags indicates an expected call of ListTags.
func (mr *MockMqClientMockRecorder) ListTags(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
varargs := append([]interface{}{arg0, arg1}, arg2...)
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTags", reflect.TypeOf((*MockMqClient)(nil).ListTags), varargs...)
}
// ListUsers mocks base method.
func (m *MockMqClient) ListUsers(arg0 context.Context, arg1 *mq.ListUsersInput, arg2 ...func(*mq.Options)) (*mq.ListUsersOutput, error) {
m.ctrl.T.Helper()
varargs := []interface{}{arg0, arg1}
for _, a := range arg2 {
varargs = append(varargs, a)
}
ret := m.ctrl.Call(m, "ListUsers", varargs...)
ret0, _ := ret[0].(*mq.ListUsersOutput)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// ListUsers indicates an expected call of ListUsers.
func (mr *MockMqClientMockRecorder) ListUsers(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
varargs := append([]interface{}{arg0, arg1}, arg2...)
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListUsers", reflect.TypeOf((*MockMqClient)(nil).ListUsers), varargs...)
}