forked from cloudfoundry-attic/bosh-init
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mocks.go
187 lines (153 loc) · 5.59 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
// Automatically generated by MockGen. DO NOT EDIT!
// Source: github.com/cloudfoundry/bosh-init/deployment (interfaces: Deployment,Factory,Deployer,Manager,ManagerFactory)
package mocks
import (
agentclient "github.com/cloudfoundry/bosh-agent/agentclient"
blobstore "github.com/cloudfoundry/bosh-init/blobstore"
cloud "github.com/cloudfoundry/bosh-init/cloud"
deployment "github.com/cloudfoundry/bosh-init/deployment"
disk "github.com/cloudfoundry/bosh-init/deployment/disk"
instance "github.com/cloudfoundry/bosh-init/deployment/instance"
manifest "github.com/cloudfoundry/bosh-init/deployment/manifest"
vm "github.com/cloudfoundry/bosh-init/deployment/vm"
manifest0 "github.com/cloudfoundry/bosh-init/installation/manifest"
stemcell "github.com/cloudfoundry/bosh-init/stemcell"
ui "github.com/cloudfoundry/bosh-init/ui"
gomock "github.com/golang/mock/gomock"
)
// Mock of Deployment interface
type MockDeployment struct {
ctrl *gomock.Controller
recorder *_MockDeploymentRecorder
}
// Recorder for MockDeployment (not exported)
type _MockDeploymentRecorder struct {
mock *MockDeployment
}
func NewMockDeployment(ctrl *gomock.Controller) *MockDeployment {
mock := &MockDeployment{ctrl: ctrl}
mock.recorder = &_MockDeploymentRecorder{mock}
return mock
}
func (_m *MockDeployment) EXPECT() *_MockDeploymentRecorder {
return _m.recorder
}
func (_m *MockDeployment) Delete(_param0 ui.Stage) error {
ret := _m.ctrl.Call(_m, "Delete", _param0)
ret0, _ := ret[0].(error)
return ret0
}
func (_mr *_MockDeploymentRecorder) Delete(arg0 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "Delete", arg0)
}
// Mock of Factory interface
type MockFactory struct {
ctrl *gomock.Controller
recorder *_MockFactoryRecorder
}
// Recorder for MockFactory (not exported)
type _MockFactoryRecorder struct {
mock *MockFactory
}
func NewMockFactory(ctrl *gomock.Controller) *MockFactory {
mock := &MockFactory{ctrl: ctrl}
mock.recorder = &_MockFactoryRecorder{mock}
return mock
}
func (_m *MockFactory) EXPECT() *_MockFactoryRecorder {
return _m.recorder
}
func (_m *MockFactory) NewDeployment(_param0 []instance.Instance, _param1 []disk.Disk, _param2 []stemcell.CloudStemcell) deployment.Deployment {
ret := _m.ctrl.Call(_m, "NewDeployment", _param0, _param1, _param2)
ret0, _ := ret[0].(deployment.Deployment)
return ret0
}
func (_mr *_MockFactoryRecorder) NewDeployment(arg0, arg1, arg2 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "NewDeployment", arg0, arg1, arg2)
}
// Mock of Deployer interface
type MockDeployer struct {
ctrl *gomock.Controller
recorder *_MockDeployerRecorder
}
// Recorder for MockDeployer (not exported)
type _MockDeployerRecorder struct {
mock *MockDeployer
}
func NewMockDeployer(ctrl *gomock.Controller) *MockDeployer {
mock := &MockDeployer{ctrl: ctrl}
mock.recorder = &_MockDeployerRecorder{mock}
return mock
}
func (_m *MockDeployer) EXPECT() *_MockDeployerRecorder {
return _m.recorder
}
func (_m *MockDeployer) Deploy(_param0 cloud.Cloud, _param1 manifest.Manifest, _param2 stemcell.CloudStemcell, _param3 manifest0.Registry, _param4 vm.Manager, _param5 blobstore.Blobstore, _param6 ui.Stage) (deployment.Deployment, error) {
ret := _m.ctrl.Call(_m, "Deploy", _param0, _param1, _param2, _param3, _param4, _param5, _param6)
ret0, _ := ret[0].(deployment.Deployment)
ret1, _ := ret[1].(error)
return ret0, ret1
}
func (_mr *_MockDeployerRecorder) Deploy(arg0, arg1, arg2, arg3, arg4, arg5, arg6 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "Deploy", arg0, arg1, arg2, arg3, arg4, arg5, arg6)
}
// Mock of Manager interface
type MockManager struct {
ctrl *gomock.Controller
recorder *_MockManagerRecorder
}
// Recorder for MockManager (not exported)
type _MockManagerRecorder struct {
mock *MockManager
}
func NewMockManager(ctrl *gomock.Controller) *MockManager {
mock := &MockManager{ctrl: ctrl}
mock.recorder = &_MockManagerRecorder{mock}
return mock
}
func (_m *MockManager) EXPECT() *_MockManagerRecorder {
return _m.recorder
}
func (_m *MockManager) Cleanup(_param0 ui.Stage) error {
ret := _m.ctrl.Call(_m, "Cleanup", _param0)
ret0, _ := ret[0].(error)
return ret0
}
func (_mr *_MockManagerRecorder) Cleanup(arg0 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "Cleanup", arg0)
}
func (_m *MockManager) FindCurrent() (deployment.Deployment, bool, error) {
ret := _m.ctrl.Call(_m, "FindCurrent")
ret0, _ := ret[0].(deployment.Deployment)
ret1, _ := ret[1].(bool)
ret2, _ := ret[2].(error)
return ret0, ret1, ret2
}
func (_mr *_MockManagerRecorder) FindCurrent() *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "FindCurrent")
}
// Mock of ManagerFactory interface
type MockManagerFactory struct {
ctrl *gomock.Controller
recorder *_MockManagerFactoryRecorder
}
// Recorder for MockManagerFactory (not exported)
type _MockManagerFactoryRecorder struct {
mock *MockManagerFactory
}
func NewMockManagerFactory(ctrl *gomock.Controller) *MockManagerFactory {
mock := &MockManagerFactory{ctrl: ctrl}
mock.recorder = &_MockManagerFactoryRecorder{mock}
return mock
}
func (_m *MockManagerFactory) EXPECT() *_MockManagerFactoryRecorder {
return _m.recorder
}
func (_m *MockManagerFactory) NewManager(_param0 cloud.Cloud, _param1 agentclient.AgentClient, _param2 blobstore.Blobstore) deployment.Manager {
ret := _m.ctrl.Call(_m, "NewManager", _param0, _param1, _param2)
ret0, _ := ret[0].(deployment.Manager)
return ret0
}
func (_mr *_MockManagerFactoryRecorder) NewManager(arg0, arg1, arg2 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "NewManager", arg0, arg1, arg2)
}