forked from cloudfoundry/bosh-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mocks.go
177 lines (143 loc) · 5.1 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
// Automatically generated by MockGen. DO NOT EDIT!
// Source: github.com/cloudfoundry/bosh-agent/agentclient (interfaces: AgentClient)
package mocks
import (
agentclient "github.com/cloudfoundry/bosh-agent/agentclient"
applyspec "github.com/cloudfoundry/bosh-agent/agentclient/applyspec"
settings "github.com/cloudfoundry/bosh-agent/settings"
gomock "github.com/golang/mock/gomock"
)
// Mock of AgentClient interface
type MockAgentClient struct {
ctrl *gomock.Controller
recorder *_MockAgentClientRecorder
}
// Recorder for MockAgentClient (not exported)
type _MockAgentClientRecorder struct {
mock *MockAgentClient
}
func NewMockAgentClient(ctrl *gomock.Controller) *MockAgentClient {
mock := &MockAgentClient{ctrl: ctrl}
mock.recorder = &_MockAgentClientRecorder{mock}
return mock
}
func (_m *MockAgentClient) EXPECT() *_MockAgentClientRecorder {
return _m.recorder
}
func (_m *MockAgentClient) Apply(_param0 applyspec.ApplySpec) error {
ret := _m.ctrl.Call(_m, "Apply", _param0)
ret0, _ := ret[0].(error)
return ret0
}
func (_mr *_MockAgentClientRecorder) Apply(arg0 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "Apply", arg0)
}
func (_m *MockAgentClient) CompilePackage(_param0 agentclient.BlobRef, _param1 []agentclient.BlobRef) (agentclient.BlobRef, error) {
ret := _m.ctrl.Call(_m, "CompilePackage", _param0, _param1)
ret0, _ := ret[0].(agentclient.BlobRef)
ret1, _ := ret[1].(error)
return ret0, ret1
}
func (_mr *_MockAgentClientRecorder) CompilePackage(arg0, arg1 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "CompilePackage", arg0, arg1)
}
func (_m *MockAgentClient) DeleteARPEntries(_param0 []string) error {
ret := _m.ctrl.Call(_m, "DeleteARPEntries", _param0)
ret0, _ := ret[0].(error)
return ret0
}
func (_mr *_MockAgentClientRecorder) DeleteARPEntries(arg0 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "DeleteARPEntries", arg0)
}
func (_m *MockAgentClient) GetState() (agentclient.AgentState, error) {
ret := _m.ctrl.Call(_m, "GetState")
ret0, _ := ret[0].(agentclient.AgentState)
ret1, _ := ret[1].(error)
return ret0, ret1
}
func (_mr *_MockAgentClientRecorder) GetState() *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "GetState")
}
func (_m *MockAgentClient) ListDisk() ([]string, error) {
ret := _m.ctrl.Call(_m, "ListDisk")
ret0, _ := ret[0].([]string)
ret1, _ := ret[1].(error)
return ret0, ret1
}
func (_mr *_MockAgentClientRecorder) ListDisk() *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "ListDisk")
}
func (_m *MockAgentClient) MigrateDisk() error {
ret := _m.ctrl.Call(_m, "MigrateDisk")
ret0, _ := ret[0].(error)
return ret0
}
func (_mr *_MockAgentClientRecorder) MigrateDisk() *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "MigrateDisk")
}
func (_m *MockAgentClient) MountDisk(_param0 string) error {
ret := _m.ctrl.Call(_m, "MountDisk", _param0)
ret0, _ := ret[0].(error)
return ret0
}
func (_mr *_MockAgentClientRecorder) MountDisk(arg0 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "MountDisk", arg0)
}
func (_m *MockAgentClient) Ping() (string, error) {
ret := _m.ctrl.Call(_m, "Ping")
ret0, _ := ret[0].(string)
ret1, _ := ret[1].(error)
return ret0, ret1
}
func (_mr *_MockAgentClientRecorder) Ping() *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "Ping")
}
func (_m *MockAgentClient) RunScript(_param0 string, _param1 map[string]interface{}) error {
ret := _m.ctrl.Call(_m, "RunScript", _param0, _param1)
ret0, _ := ret[0].(error)
return ret0
}
func (_mr *_MockAgentClientRecorder) RunScript(arg0, arg1 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "RunScript", arg0, arg1)
}
func (_m *MockAgentClient) Start() error {
ret := _m.ctrl.Call(_m, "Start")
ret0, _ := ret[0].(error)
return ret0
}
func (_mr *_MockAgentClientRecorder) Start() *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "Start")
}
func (_m *MockAgentClient) Stop() error {
ret := _m.ctrl.Call(_m, "Stop")
ret0, _ := ret[0].(error)
return ret0
}
func (_mr *_MockAgentClientRecorder) Stop() *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "Stop")
}
func (_m *MockAgentClient) SyncDNS(_param0 string, _param1 string) (string, error) {
ret := _m.ctrl.Call(_m, "SyncDNS", _param0, _param1)
ret0, _ := ret[0].(string)
ret1, _ := ret[1].(error)
return ret0, ret1
}
func (_mr *_MockAgentClientRecorder) SyncDNS(arg0, arg1 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "SyncDNS", arg0, arg1)
}
func (_m *MockAgentClient) UnmountDisk(_param0 string) error {
ret := _m.ctrl.Call(_m, "UnmountDisk", _param0)
ret0, _ := ret[0].(error)
return ret0
}
func (_mr *_MockAgentClientRecorder) UnmountDisk(arg0 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "UnmountDisk", arg0)
}
func (_m *MockAgentClient) UpdateSettings(_param0 settings.Settings) error {
ret := _m.ctrl.Call(_m, "UpdateSettings", _param0)
ret0, _ := ret[0].(error)
return ret0
}
func (_mr *_MockAgentClientRecorder) UpdateSettings(arg0 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "UpdateSettings", arg0)
}