-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathNATService_mock.go
225 lines (195 loc) · 9.54 KB
/
NATService_mock.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
//
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing,
// software distributed under the License is distributed on an
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
// under the License.
//
// Code generated by MockGen. DO NOT EDIT.
// Source: ./cloudstack/NATService.go
//
// Generated by this command:
//
// mockgen -destination=./cloudstack/NATService_mock.go -package=cloudstack -copyright_file=header.txt -source=./cloudstack/NATService.go
//
// Package cloudstack is a generated GoMock package.
package cloudstack
import (
reflect "reflect"
gomock "go.uber.org/mock/gomock"
)
// MockNATServiceIface is a mock of NATServiceIface interface.
type MockNATServiceIface struct {
ctrl *gomock.Controller
recorder *MockNATServiceIfaceMockRecorder
isgomock struct{}
}
// MockNATServiceIfaceMockRecorder is the mock recorder for MockNATServiceIface.
type MockNATServiceIfaceMockRecorder struct {
mock *MockNATServiceIface
}
// NewMockNATServiceIface creates a new mock instance.
func NewMockNATServiceIface(ctrl *gomock.Controller) *MockNATServiceIface {
mock := &MockNATServiceIface{ctrl: ctrl}
mock.recorder = &MockNATServiceIfaceMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockNATServiceIface) EXPECT() *MockNATServiceIfaceMockRecorder {
return m.recorder
}
// CreateIpForwardingRule mocks base method.
func (m *MockNATServiceIface) CreateIpForwardingRule(p *CreateIpForwardingRuleParams) (*CreateIpForwardingRuleResponse, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "CreateIpForwardingRule", p)
ret0, _ := ret[0].(*CreateIpForwardingRuleResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// CreateIpForwardingRule indicates an expected call of CreateIpForwardingRule.
func (mr *MockNATServiceIfaceMockRecorder) CreateIpForwardingRule(p any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateIpForwardingRule", reflect.TypeOf((*MockNATServiceIface)(nil).CreateIpForwardingRule), p)
}
// DeleteIpForwardingRule mocks base method.
func (m *MockNATServiceIface) DeleteIpForwardingRule(p *DeleteIpForwardingRuleParams) (*DeleteIpForwardingRuleResponse, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "DeleteIpForwardingRule", p)
ret0, _ := ret[0].(*DeleteIpForwardingRuleResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// DeleteIpForwardingRule indicates an expected call of DeleteIpForwardingRule.
func (mr *MockNATServiceIfaceMockRecorder) DeleteIpForwardingRule(p any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteIpForwardingRule", reflect.TypeOf((*MockNATServiceIface)(nil).DeleteIpForwardingRule), p)
}
// DisableStaticNat mocks base method.
func (m *MockNATServiceIface) DisableStaticNat(p *DisableStaticNatParams) (*DisableStaticNatResponse, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "DisableStaticNat", p)
ret0, _ := ret[0].(*DisableStaticNatResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// DisableStaticNat indicates an expected call of DisableStaticNat.
func (mr *MockNATServiceIfaceMockRecorder) DisableStaticNat(p any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DisableStaticNat", reflect.TypeOf((*MockNATServiceIface)(nil).DisableStaticNat), p)
}
// EnableStaticNat mocks base method.
func (m *MockNATServiceIface) EnableStaticNat(p *EnableStaticNatParams) (*EnableStaticNatResponse, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "EnableStaticNat", p)
ret0, _ := ret[0].(*EnableStaticNatResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// EnableStaticNat indicates an expected call of EnableStaticNat.
func (mr *MockNATServiceIfaceMockRecorder) EnableStaticNat(p any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EnableStaticNat", reflect.TypeOf((*MockNATServiceIface)(nil).EnableStaticNat), p)
}
// GetIpForwardingRuleByID mocks base method.
func (m *MockNATServiceIface) GetIpForwardingRuleByID(id string, opts ...OptionFunc) (*IpForwardingRule, int, error) {
m.ctrl.T.Helper()
varargs := []any{id}
for _, a := range opts {
varargs = append(varargs, a)
}
ret := m.ctrl.Call(m, "GetIpForwardingRuleByID", varargs...)
ret0, _ := ret[0].(*IpForwardingRule)
ret1, _ := ret[1].(int)
ret2, _ := ret[2].(error)
return ret0, ret1, ret2
}
// GetIpForwardingRuleByID indicates an expected call of GetIpForwardingRuleByID.
func (mr *MockNATServiceIfaceMockRecorder) GetIpForwardingRuleByID(id any, opts ...any) *gomock.Call {
mr.mock.ctrl.T.Helper()
varargs := append([]any{id}, opts...)
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetIpForwardingRuleByID", reflect.TypeOf((*MockNATServiceIface)(nil).GetIpForwardingRuleByID), varargs...)
}
// ListIpForwardingRules mocks base method.
func (m *MockNATServiceIface) ListIpForwardingRules(p *ListIpForwardingRulesParams) (*ListIpForwardingRulesResponse, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ListIpForwardingRules", p)
ret0, _ := ret[0].(*ListIpForwardingRulesResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// ListIpForwardingRules indicates an expected call of ListIpForwardingRules.
func (mr *MockNATServiceIfaceMockRecorder) ListIpForwardingRules(p any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListIpForwardingRules", reflect.TypeOf((*MockNATServiceIface)(nil).ListIpForwardingRules), p)
}
// NewCreateIpForwardingRuleParams mocks base method.
func (m *MockNATServiceIface) NewCreateIpForwardingRuleParams(ipaddressid, protocol string, startport int) *CreateIpForwardingRuleParams {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "NewCreateIpForwardingRuleParams", ipaddressid, protocol, startport)
ret0, _ := ret[0].(*CreateIpForwardingRuleParams)
return ret0
}
// NewCreateIpForwardingRuleParams indicates an expected call of NewCreateIpForwardingRuleParams.
func (mr *MockNATServiceIfaceMockRecorder) NewCreateIpForwardingRuleParams(ipaddressid, protocol, startport any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NewCreateIpForwardingRuleParams", reflect.TypeOf((*MockNATServiceIface)(nil).NewCreateIpForwardingRuleParams), ipaddressid, protocol, startport)
}
// NewDeleteIpForwardingRuleParams mocks base method.
func (m *MockNATServiceIface) NewDeleteIpForwardingRuleParams(id string) *DeleteIpForwardingRuleParams {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "NewDeleteIpForwardingRuleParams", id)
ret0, _ := ret[0].(*DeleteIpForwardingRuleParams)
return ret0
}
// NewDeleteIpForwardingRuleParams indicates an expected call of NewDeleteIpForwardingRuleParams.
func (mr *MockNATServiceIfaceMockRecorder) NewDeleteIpForwardingRuleParams(id any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NewDeleteIpForwardingRuleParams", reflect.TypeOf((*MockNATServiceIface)(nil).NewDeleteIpForwardingRuleParams), id)
}
// NewDisableStaticNatParams mocks base method.
func (m *MockNATServiceIface) NewDisableStaticNatParams(ipaddressid string) *DisableStaticNatParams {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "NewDisableStaticNatParams", ipaddressid)
ret0, _ := ret[0].(*DisableStaticNatParams)
return ret0
}
// NewDisableStaticNatParams indicates an expected call of NewDisableStaticNatParams.
func (mr *MockNATServiceIfaceMockRecorder) NewDisableStaticNatParams(ipaddressid any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NewDisableStaticNatParams", reflect.TypeOf((*MockNATServiceIface)(nil).NewDisableStaticNatParams), ipaddressid)
}
// NewEnableStaticNatParams mocks base method.
func (m *MockNATServiceIface) NewEnableStaticNatParams(ipaddressid, virtualmachineid string) *EnableStaticNatParams {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "NewEnableStaticNatParams", ipaddressid, virtualmachineid)
ret0, _ := ret[0].(*EnableStaticNatParams)
return ret0
}
// NewEnableStaticNatParams indicates an expected call of NewEnableStaticNatParams.
func (mr *MockNATServiceIfaceMockRecorder) NewEnableStaticNatParams(ipaddressid, virtualmachineid any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NewEnableStaticNatParams", reflect.TypeOf((*MockNATServiceIface)(nil).NewEnableStaticNatParams), ipaddressid, virtualmachineid)
}
// NewListIpForwardingRulesParams mocks base method.
func (m *MockNATServiceIface) NewListIpForwardingRulesParams() *ListIpForwardingRulesParams {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "NewListIpForwardingRulesParams")
ret0, _ := ret[0].(*ListIpForwardingRulesParams)
return ret0
}
// NewListIpForwardingRulesParams indicates an expected call of NewListIpForwardingRulesParams.
func (mr *MockNATServiceIfaceMockRecorder) NewListIpForwardingRulesParams() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NewListIpForwardingRulesParams", reflect.TypeOf((*MockNATServiceIface)(nil).NewListIpForwardingRulesParams))
}