forked from cloudfoundry/bosh-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mocks.go
159 lines (129 loc) · 4.69 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
// Automatically generated by MockGen. DO NOT EDIT!
// Source: github.com/cloudfoundry/bosh-cli/deployment/instance/state (interfaces: BuilderFactory,Builder,State)
package mocks
import (
agentclient "github.com/cloudfoundry/bosh-agent/agentclient"
applyspec "github.com/cloudfoundry/bosh-agent/agentclient/applyspec"
blobstore "github.com/cloudfoundry/bosh-cli/blobstore"
state "github.com/cloudfoundry/bosh-cli/deployment/instance/state"
manifest "github.com/cloudfoundry/bosh-cli/deployment/manifest"
ui "github.com/cloudfoundry/bosh-cli/ui"
gomock "github.com/golang/mock/gomock"
)
// Mock of BuilderFactory interface
type MockBuilderFactory struct {
ctrl *gomock.Controller
recorder *_MockBuilderFactoryRecorder
}
// Recorder for MockBuilderFactory (not exported)
type _MockBuilderFactoryRecorder struct {
mock *MockBuilderFactory
}
func NewMockBuilderFactory(ctrl *gomock.Controller) *MockBuilderFactory {
mock := &MockBuilderFactory{ctrl: ctrl}
mock.recorder = &_MockBuilderFactoryRecorder{mock}
return mock
}
func (_m *MockBuilderFactory) EXPECT() *_MockBuilderFactoryRecorder {
return _m.recorder
}
func (_m *MockBuilderFactory) NewBuilder(_param0 blobstore.Blobstore, _param1 agentclient.AgentClient) state.Builder {
ret := _m.ctrl.Call(_m, "NewBuilder", _param0, _param1)
ret0, _ := ret[0].(state.Builder)
return ret0
}
func (_mr *_MockBuilderFactoryRecorder) NewBuilder(arg0, arg1 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "NewBuilder", arg0, arg1)
}
// Mock of Builder interface
type MockBuilder struct {
ctrl *gomock.Controller
recorder *_MockBuilderRecorder
}
// Recorder for MockBuilder (not exported)
type _MockBuilderRecorder struct {
mock *MockBuilder
}
func NewMockBuilder(ctrl *gomock.Controller) *MockBuilder {
mock := &MockBuilder{ctrl: ctrl}
mock.recorder = &_MockBuilderRecorder{mock}
return mock
}
func (_m *MockBuilder) EXPECT() *_MockBuilderRecorder {
return _m.recorder
}
func (_m *MockBuilder) Build(_param0 string, _param1 int, _param2 manifest.Manifest, _param3 ui.Stage, _param4 agentclient.AgentState) (state.State, error) {
ret := _m.ctrl.Call(_m, "Build", _param0, _param1, _param2, _param3, _param4)
ret0, _ := ret[0].(state.State)
ret1, _ := ret[1].(error)
return ret0, ret1
}
func (_mr *_MockBuilderRecorder) Build(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "Build", arg0, arg1, arg2, arg3, arg4)
}
func (_m *MockBuilder) BuildInitialState(_param0 string, _param1 int, _param2 manifest.Manifest) (state.State, error) {
ret := _m.ctrl.Call(_m, "BuildInitialState", _param0, _param1, _param2)
ret0, _ := ret[0].(state.State)
ret1, _ := ret[1].(error)
return ret0, ret1
}
func (_mr *_MockBuilderRecorder) BuildInitialState(arg0, arg1, arg2 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "BuildInitialState", arg0, arg1, arg2)
}
// Mock of State interface
type MockState struct {
ctrl *gomock.Controller
recorder *_MockStateRecorder
}
// Recorder for MockState (not exported)
type _MockStateRecorder struct {
mock *MockState
}
func NewMockState(ctrl *gomock.Controller) *MockState {
mock := &MockState{ctrl: ctrl}
mock.recorder = &_MockStateRecorder{mock}
return mock
}
func (_m *MockState) EXPECT() *_MockStateRecorder {
return _m.recorder
}
func (_m *MockState) CompiledPackages() []state.PackageRef {
ret := _m.ctrl.Call(_m, "CompiledPackages")
ret0, _ := ret[0].([]state.PackageRef)
return ret0
}
func (_mr *_MockStateRecorder) CompiledPackages() *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "CompiledPackages")
}
func (_m *MockState) NetworkInterfaces() []state.NetworkRef {
ret := _m.ctrl.Call(_m, "NetworkInterfaces")
ret0, _ := ret[0].([]state.NetworkRef)
return ret0
}
func (_mr *_MockStateRecorder) NetworkInterfaces() *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "NetworkInterfaces")
}
func (_m *MockState) RenderedJobListArchive() state.BlobRef {
ret := _m.ctrl.Call(_m, "RenderedJobListArchive")
ret0, _ := ret[0].(state.BlobRef)
return ret0
}
func (_mr *_MockStateRecorder) RenderedJobListArchive() *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "RenderedJobListArchive")
}
func (_m *MockState) RenderedJobs() []state.JobRef {
ret := _m.ctrl.Call(_m, "RenderedJobs")
ret0, _ := ret[0].([]state.JobRef)
return ret0
}
func (_mr *_MockStateRecorder) RenderedJobs() *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "RenderedJobs")
}
func (_m *MockState) ToApplySpec() applyspec.ApplySpec {
ret := _m.ctrl.Call(_m, "ToApplySpec")
ret0, _ := ret[0].(applyspec.ApplySpec)
return ret0
}
func (_mr *_MockStateRecorder) ToApplySpec() *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "ToApplySpec")
}