-
Notifications
You must be signed in to change notification settings - Fork 161
/
mocks.go
234 lines (196 loc) · 8.09 KB
/
mocks.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
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/cloudfoundry/bosh-cli/cloud (interfaces: Cloud,Factory)
// Package mocks is a generated GoMock package.
package mocks
import (
cloud "github.com/cloudfoundry/bosh-cli/cloud"
installation "github.com/cloudfoundry/bosh-cli/installation"
property "github.com/cloudfoundry/bosh-utils/property"
gomock "github.com/golang/mock/gomock"
reflect "reflect"
)
// MockCloud is a mock of Cloud interface
type MockCloud struct {
ctrl *gomock.Controller
recorder *MockCloudMockRecorder
}
// MockCloudMockRecorder is the mock recorder for MockCloud
type MockCloudMockRecorder struct {
mock *MockCloud
}
// NewMockCloud creates a new mock instance
func NewMockCloud(ctrl *gomock.Controller) *MockCloud {
mock := &MockCloud{ctrl: ctrl}
mock.recorder = &MockCloudMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockCloud) EXPECT() *MockCloudMockRecorder {
return m.recorder
}
// AttachDisk mocks base method
func (m *MockCloud) AttachDisk(arg0, arg1 string) (interface{}, error) {
ret := m.ctrl.Call(m, "AttachDisk", arg0, arg1)
ret0, _ := ret[0].(interface{})
ret1, _ := ret[1].(error)
return ret0, ret1
}
// AttachDisk indicates an expected call of AttachDisk
func (mr *MockCloudMockRecorder) AttachDisk(arg0, arg1 interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AttachDisk", reflect.TypeOf((*MockCloud)(nil).AttachDisk), arg0, arg1)
}
// CreateDisk mocks base method
func (m *MockCloud) CreateDisk(arg0 int, arg1 property.Map, arg2 string) (string, error) {
ret := m.ctrl.Call(m, "CreateDisk", arg0, arg1, arg2)
ret0, _ := ret[0].(string)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// CreateDisk indicates an expected call of CreateDisk
func (mr *MockCloudMockRecorder) CreateDisk(arg0, arg1, arg2 interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateDisk", reflect.TypeOf((*MockCloud)(nil).CreateDisk), arg0, arg1, arg2)
}
// CreateStemcell mocks base method
func (m *MockCloud) CreateStemcell(arg0 string, arg1 property.Map) (string, error) {
ret := m.ctrl.Call(m, "CreateStemcell", arg0, arg1)
ret0, _ := ret[0].(string)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// CreateStemcell indicates an expected call of CreateStemcell
func (mr *MockCloudMockRecorder) CreateStemcell(arg0, arg1 interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateStemcell", reflect.TypeOf((*MockCloud)(nil).CreateStemcell), arg0, arg1)
}
// CreateVM mocks base method
func (m *MockCloud) CreateVM(arg0, arg1 string, arg2 property.Map, arg3 map[string]property.Map, arg4 property.Map) (string, error) {
ret := m.ctrl.Call(m, "CreateVM", arg0, arg1, arg2, arg3, arg4)
ret0, _ := ret[0].(string)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// CreateVM indicates an expected call of CreateVM
func (mr *MockCloudMockRecorder) CreateVM(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateVM", reflect.TypeOf((*MockCloud)(nil).CreateVM), arg0, arg1, arg2, arg3, arg4)
}
// DeleteDisk mocks base method
func (m *MockCloud) DeleteDisk(arg0 string) error {
ret := m.ctrl.Call(m, "DeleteDisk", arg0)
ret0, _ := ret[0].(error)
return ret0
}
// DeleteDisk indicates an expected call of DeleteDisk
func (mr *MockCloudMockRecorder) DeleteDisk(arg0 interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteDisk", reflect.TypeOf((*MockCloud)(nil).DeleteDisk), arg0)
}
// DeleteStemcell mocks base method
func (m *MockCloud) DeleteStemcell(arg0 string) error {
ret := m.ctrl.Call(m, "DeleteStemcell", arg0)
ret0, _ := ret[0].(error)
return ret0
}
// DeleteStemcell indicates an expected call of DeleteStemcell
func (mr *MockCloudMockRecorder) DeleteStemcell(arg0 interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteStemcell", reflect.TypeOf((*MockCloud)(nil).DeleteStemcell), arg0)
}
// DeleteVM mocks base method
func (m *MockCloud) DeleteVM(arg0 string) error {
ret := m.ctrl.Call(m, "DeleteVM", arg0)
ret0, _ := ret[0].(error)
return ret0
}
// DeleteVM indicates an expected call of DeleteVM
func (mr *MockCloudMockRecorder) DeleteVM(arg0 interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteVM", reflect.TypeOf((*MockCloud)(nil).DeleteVM), arg0)
}
// DetachDisk mocks base method
func (m *MockCloud) DetachDisk(arg0, arg1 string) error {
ret := m.ctrl.Call(m, "DetachDisk", arg0, arg1)
ret0, _ := ret[0].(error)
return ret0
}
// DetachDisk indicates an expected call of DetachDisk
func (mr *MockCloudMockRecorder) DetachDisk(arg0, arg1 interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DetachDisk", reflect.TypeOf((*MockCloud)(nil).DetachDisk), arg0, arg1)
}
// HasVM mocks base method
func (m *MockCloud) HasVM(arg0 string) (bool, error) {
ret := m.ctrl.Call(m, "HasVM", arg0)
ret0, _ := ret[0].(bool)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// HasVM indicates an expected call of HasVM
func (mr *MockCloudMockRecorder) HasVM(arg0 interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HasVM", reflect.TypeOf((*MockCloud)(nil).HasVM), arg0)
}
// Info mocks base method
func (m *MockCloud) Info() (cloud.CpiInfo, error) {
ret := m.ctrl.Call(m, "Info")
ret0, _ := ret[0].(cloud.CpiInfo)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Info indicates an expected call of Info
func (mr *MockCloudMockRecorder) Info() *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Info", reflect.TypeOf((*MockCloud)(nil).Info))
}
// SetDiskMetadata mocks base method
func (m *MockCloud) SetDiskMetadata(arg0 string, arg1 cloud.DiskMetadata) error {
ret := m.ctrl.Call(m, "SetDiskMetadata", arg0, arg1)
ret0, _ := ret[0].(error)
return ret0
}
// SetDiskMetadata indicates an expected call of SetDiskMetadata
func (mr *MockCloudMockRecorder) SetDiskMetadata(arg0, arg1 interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetDiskMetadata", reflect.TypeOf((*MockCloud)(nil).SetDiskMetadata), arg0, arg1)
}
// SetVMMetadata mocks base method
func (m *MockCloud) SetVMMetadata(arg0 string, arg1 cloud.VMMetadata) error {
ret := m.ctrl.Call(m, "SetVMMetadata", arg0, arg1)
ret0, _ := ret[0].(error)
return ret0
}
// SetVMMetadata indicates an expected call of SetVMMetadata
func (mr *MockCloudMockRecorder) SetVMMetadata(arg0, arg1 interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetVMMetadata", reflect.TypeOf((*MockCloud)(nil).SetVMMetadata), arg0, arg1)
}
// String mocks base method
func (m *MockCloud) String() string {
ret := m.ctrl.Call(m, "String")
ret0, _ := ret[0].(string)
return ret0
}
// String indicates an expected call of String
func (mr *MockCloudMockRecorder) String() *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "String", reflect.TypeOf((*MockCloud)(nil).String))
}
// MockFactory is a mock of Factory interface
type MockFactory struct {
ctrl *gomock.Controller
recorder *MockFactoryMockRecorder
}
// MockFactoryMockRecorder is the mock recorder for MockFactory
type MockFactoryMockRecorder struct {
mock *MockFactory
}
// NewMockFactory creates a new mock instance
func NewMockFactory(ctrl *gomock.Controller) *MockFactory {
mock := &MockFactory{ctrl: ctrl}
mock.recorder = &MockFactoryMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockFactory) EXPECT() *MockFactoryMockRecorder {
return m.recorder
}
// NewCloud mocks base method
func (m *MockFactory) NewCloud(arg0 installation.Installation, arg1 string, arg2 int) (cloud.Cloud, error) {
ret := m.ctrl.Call(m, "NewCloud", arg0, arg1, arg2)
ret0, _ := ret[0].(cloud.Cloud)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// NewCloud indicates an expected call of NewCloud
func (mr *MockFactoryMockRecorder) NewCloud(arg0, arg1, arg2 interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NewCloud", reflect.TypeOf((*MockFactory)(nil).NewCloud), arg0, arg1, arg2)
}