This repository has been archived by the owner on Jul 12, 2018. It is now read-only.
forked from cloudfoundry-attic/bosh-init
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mocks.go
146 lines (118 loc) · 4.18 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
// Automatically generated by MockGen. DO NOT EDIT!
// Source: agent_client_interface.go
package mocks
import (
. "github.com/cloudfoundry/bosh-init/internal/github.com/cloudfoundry/bosh-agent/agentclient"
applyspec "github.com/cloudfoundry/bosh-init/internal/github.com/cloudfoundry/bosh-agent/agentclient/applyspec"
settings "github.com/cloudfoundry/bosh-init/internal/github.com/cloudfoundry/bosh-agent/settings"
gomock "github.com/cloudfoundry/bosh-init/internal/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) 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) 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) 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) 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) GetState() (AgentState, error) {
ret := _m.ctrl.Call(_m, "GetState")
ret0, _ := ret[0].(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) 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) 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) 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) CompilePackage(packageSource BlobRef, compiledPackageDependencies []BlobRef) (BlobRef, error) {
ret := _m.ctrl.Call(_m, "CompilePackage", packageSource, compiledPackageDependencies)
ret0, _ := ret[0].(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) UpdateSettings(settings settings.Settings) error {
ret := _m.ctrl.Call(_m, "UpdateSettings", settings)
ret0, _ := ret[0].(error)
return ret0
}
func (_mr *_MockAgentClientRecorder) UpdateSettings(arg0 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "UpdateSettings", arg0)
}