-
Notifications
You must be signed in to change notification settings - Fork 0
/
mock_aws.go
264 lines (227 loc) · 9.56 KB
/
mock_aws.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
257
258
259
260
261
262
263
264
// Code generated by MockGen. DO NOT EDIT.
// Source: aws.go
// Package mock_interfaces is a generated GoMock package.
package mock_interfaces
import (
context "context"
reflect "reflect"
aws "github.com/aws/aws-sdk-go-v2/aws"
types "github.com/aws/aws-sdk-go-v2/service/acm/types"
types0 "github.com/aws/aws-sdk-go-v2/service/ec2/types"
eks "github.com/aws/aws-sdk-go-v2/service/eks"
lambda "github.com/aws/aws-sdk-go-v2/service/lambda"
rds "github.com/aws/aws-sdk-go-v2/service/rds"
gomock "github.com/golang/mock/gomock"
rest "k8s.io/client-go/rest"
)
// MockAWSClient is a mock of AWSClient interface.
type MockAWSClient struct {
ctrl *gomock.Controller
recorder *MockAWSClientMockRecorder
}
// MockAWSClientMockRecorder is the mock recorder for MockAWSClient.
type MockAWSClientMockRecorder struct {
mock *MockAWSClient
}
// NewMockAWSClient creates a new mock instance.
func NewMockAWSClient(ctrl *gomock.Controller) *MockAWSClient {
mock := &MockAWSClient{ctrl: ctrl}
mock.recorder = &MockAWSClientMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockAWSClient) EXPECT() *MockAWSClientMockRecorder {
return m.recorder
}
// DescribeAMIs mocks base method.
func (m *MockAWSClient) DescribeAMIs(imageIds []string) ([]types0.Image, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "DescribeAMIs", imageIds)
ret0, _ := ret[0].([]types0.Image)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// DescribeAMIs indicates an expected call of DescribeAMIs.
func (mr *MockAWSClientMockRecorder) DescribeAMIs(imageIds interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeAMIs", reflect.TypeOf((*MockAWSClient)(nil).DescribeAMIs), imageIds)
}
// DescribeEKSCluster mocks base method.
func (m *MockAWSClient) DescribeEKSCluster(cluster string) (*eks.DescribeClusterOutput, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "DescribeEKSCluster", cluster)
ret0, _ := ret[0].(*eks.DescribeClusterOutput)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// DescribeEKSCluster indicates an expected call of DescribeEKSCluster.
func (mr *MockAWSClientMockRecorder) DescribeEKSCluster(cluster interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeEKSCluster", reflect.TypeOf((*MockAWSClient)(nil).DescribeEKSCluster), cluster)
}
// DescribeEKSClusterAddon mocks base method.
func (m *MockAWSClient) DescribeEKSClusterAddon(cluster, addon string) (*eks.DescribeAddonOutput, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "DescribeEKSClusterAddon", cluster, addon)
ret0, _ := ret[0].(*eks.DescribeAddonOutput)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// DescribeEKSClusterAddon indicates an expected call of DescribeEKSClusterAddon.
func (mr *MockAWSClientMockRecorder) DescribeEKSClusterAddon(cluster, addon interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeEKSClusterAddon", reflect.TypeOf((*MockAWSClient)(nil).DescribeEKSClusterAddon), cluster, addon)
}
// DescribeRDSClusters mocks base method.
func (m *MockAWSClient) DescribeRDSClusters() (*rds.DescribeDBClustersOutput, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "DescribeRDSClusters")
ret0, _ := ret[0].(*rds.DescribeDBClustersOutput)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// DescribeRDSClusters indicates an expected call of DescribeRDSClusters.
func (mr *MockAWSClientMockRecorder) DescribeRDSClusters() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeRDSClusters", reflect.TypeOf((*MockAWSClient)(nil).DescribeRDSClusters))
}
// GetAccountId mocks base method.
func (m *MockAWSClient) GetAccountId() string {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetAccountId")
ret0, _ := ret[0].(string)
return ret0
}
// GetAccountId indicates an expected call of GetAccountId.
func (mr *MockAWSClientMockRecorder) GetAccountId() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAccountId", reflect.TypeOf((*MockAWSClient)(nil).GetAccountId))
}
// GetConfig mocks base method.
func (m *MockAWSClient) GetConfig() *aws.Config {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetConfig")
ret0, _ := ret[0].(*aws.Config)
return ret0
}
// GetConfig indicates an expected call of GetConfig.
func (mr *MockAWSClientMockRecorder) GetConfig() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetConfig", reflect.TypeOf((*MockAWSClient)(nil).GetConfig))
}
// GetEKSClusters mocks base method.
func (m *MockAWSClient) GetEKSClusters() ([]string, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetEKSClusters")
ret0, _ := ret[0].([]string)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetEKSClusters indicates an expected call of GetEKSClusters.
func (mr *MockAWSClientMockRecorder) GetEKSClusters() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetEKSClusters", reflect.TypeOf((*MockAWSClient)(nil).GetEKSClusters))
}
// GetEKSConfig mocks base method.
func (m *MockAWSClient) GetEKSConfig(ctx context.Context, clusterInfo *eks.DescribeClusterOutput) (*rest.Config, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetEKSConfig", ctx, clusterInfo)
ret0, _ := ret[0].(*rest.Config)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetEKSConfig indicates an expected call of GetEKSConfig.
func (mr *MockAWSClientMockRecorder) GetEKSConfig(ctx, clusterInfo interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetEKSConfig", reflect.TypeOf((*MockAWSClient)(nil).GetEKSConfig), ctx, clusterInfo)
}
// GetEKSNamespaces mocks base method.
func (m *MockAWSClient) GetEKSNamespaces(ctx context.Context, config *rest.Config) ([]string, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetEKSNamespaces", ctx, config)
ret0, _ := ret[0].([]string)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetEKSNamespaces indicates an expected call of GetEKSNamespaces.
func (mr *MockAWSClientMockRecorder) GetEKSNamespaces(ctx, config interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetEKSNamespaces", reflect.TypeOf((*MockAWSClient)(nil).GetEKSNamespaces), ctx, config)
}
// GetProfile mocks base method.
func (m *MockAWSClient) GetProfile() string {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetProfile")
ret0, _ := ret[0].(string)
return ret0
}
// GetProfile indicates an expected call of GetProfile.
func (mr *MockAWSClientMockRecorder) GetProfile() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetProfile", reflect.TypeOf((*MockAWSClient)(nil).GetProfile))
}
// ListACMCertificates mocks base method.
func (m *MockAWSClient) ListACMCertificates() ([]types.CertificateSummary, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ListACMCertificates")
ret0, _ := ret[0].([]types.CertificateSummary)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// ListACMCertificates indicates an expected call of ListACMCertificates.
func (mr *MockAWSClientMockRecorder) ListACMCertificates() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListACMCertificates", reflect.TypeOf((*MockAWSClient)(nil).ListACMCertificates))
}
// ListEC2Instances mocks base method.
func (m *MockAWSClient) ListEC2Instances() ([]types0.Instance, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ListEC2Instances")
ret0, _ := ret[0].([]types0.Instance)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// ListEC2Instances indicates an expected call of ListEC2Instances.
func (mr *MockAWSClientMockRecorder) ListEC2Instances() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListEC2Instances", reflect.TypeOf((*MockAWSClient)(nil).ListEC2Instances))
}
// ListEKSAddons mocks base method.
func (m *MockAWSClient) ListEKSAddons(cluster string) (*eks.ListAddonsOutput, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ListEKSAddons", cluster)
ret0, _ := ret[0].(*eks.ListAddonsOutput)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// ListEKSAddons indicates an expected call of ListEKSAddons.
func (mr *MockAWSClientMockRecorder) ListEKSAddons(cluster interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListEKSAddons", reflect.TypeOf((*MockAWSClient)(nil).ListEKSAddons), cluster)
}
// ListLambdaFunctions mocks base method.
func (m *MockAWSClient) ListLambdaFunctions() (*lambda.ListFunctionsOutput, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ListLambdaFunctions")
ret0, _ := ret[0].(*lambda.ListFunctionsOutput)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// ListLambdaFunctions indicates an expected call of ListLambdaFunctions.
func (mr *MockAWSClientMockRecorder) ListLambdaFunctions() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListLambdaFunctions", reflect.TypeOf((*MockAWSClient)(nil).ListLambdaFunctions))
}
// ListVolumes mocks base method.
func (m *MockAWSClient) ListVolumes() ([]types0.Volume, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ListVolumes")
ret0, _ := ret[0].([]types0.Volume)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// ListVolumes indicates an expected call of ListVolumes.
func (mr *MockAWSClientMockRecorder) ListVolumes() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListVolumes", reflect.TypeOf((*MockAWSClient)(nil).ListVolumes))
}