1
16
17
18
19
20
21 package testing
22
23 import (
24 reflect "reflect"
25
26 gomock "github.com/golang/mock/gomock"
27 v1 "github.com/google/cadvisor/info/v1"
28 v2 "github.com/google/cadvisor/info/v2"
29 )
30
31
32 type MockInterface struct {
33 ctrl *gomock.Controller
34 recorder *MockInterfaceMockRecorder
35 }
36
37
38 type MockInterfaceMockRecorder struct {
39 mock *MockInterface
40 }
41
42
43 func NewMockInterface(ctrl *gomock.Controller) *MockInterface {
44 mock := &MockInterface{ctrl: ctrl}
45 mock.recorder = &MockInterfaceMockRecorder{mock}
46 return mock
47 }
48
49
50 func (m *MockInterface) EXPECT() *MockInterfaceMockRecorder {
51 return m.recorder
52 }
53
54
55 func (m *MockInterface) ContainerFsInfo() (v2.FsInfo, error) {
56 m.ctrl.T.Helper()
57 ret := m.ctrl.Call(m, "ContainerFsInfo")
58 ret0, _ := ret[0].(v2.FsInfo)
59 ret1, _ := ret[1].(error)
60 return ret0, ret1
61 }
62
63
64 func (mr *MockInterfaceMockRecorder) ContainerFsInfo() *gomock.Call {
65 mr.mock.ctrl.T.Helper()
66 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ContainerFsInfo", reflect.TypeOf((*MockInterface)(nil).ContainerFsInfo))
67 }
68
69
70 func (m *MockInterface) ContainerInfoV2(name string, options v2.RequestOptions) (map[string]v2.ContainerInfo, error) {
71 m.ctrl.T.Helper()
72 ret := m.ctrl.Call(m, "ContainerInfoV2", name, options)
73 ret0, _ := ret[0].(map[string]v2.ContainerInfo)
74 ret1, _ := ret[1].(error)
75 return ret0, ret1
76 }
77
78
79 func (mr *MockInterfaceMockRecorder) ContainerInfoV2(name, options interface{}) *gomock.Call {
80 mr.mock.ctrl.T.Helper()
81 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ContainerInfoV2", reflect.TypeOf((*MockInterface)(nil).ContainerInfoV2), name, options)
82 }
83
84
85 func (m *MockInterface) GetDirFsInfo(path string) (v2.FsInfo, error) {
86 m.ctrl.T.Helper()
87 ret := m.ctrl.Call(m, "GetDirFsInfo", path)
88 ret0, _ := ret[0].(v2.FsInfo)
89 ret1, _ := ret[1].(error)
90 return ret0, ret1
91 }
92
93
94 func (mr *MockInterfaceMockRecorder) GetDirFsInfo(path interface{}) *gomock.Call {
95 mr.mock.ctrl.T.Helper()
96 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDirFsInfo", reflect.TypeOf((*MockInterface)(nil).GetDirFsInfo), path)
97 }
98
99
100 func (m *MockInterface) GetRequestedContainersInfo(containerName string, options v2.RequestOptions) (map[string]*v1.ContainerInfo, error) {
101 m.ctrl.T.Helper()
102 ret := m.ctrl.Call(m, "GetRequestedContainersInfo", containerName, options)
103 ret0, _ := ret[0].(map[string]*v1.ContainerInfo)
104 ret1, _ := ret[1].(error)
105 return ret0, ret1
106 }
107
108
109 func (mr *MockInterfaceMockRecorder) GetRequestedContainersInfo(containerName, options interface{}) *gomock.Call {
110 mr.mock.ctrl.T.Helper()
111 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRequestedContainersInfo", reflect.TypeOf((*MockInterface)(nil).GetRequestedContainersInfo), containerName, options)
112 }
113
114
115 func (m *MockInterface) ImagesFsInfo() (v2.FsInfo, error) {
116 m.ctrl.T.Helper()
117 ret := m.ctrl.Call(m, "ImagesFsInfo")
118 ret0, _ := ret[0].(v2.FsInfo)
119 ret1, _ := ret[1].(error)
120 return ret0, ret1
121 }
122
123
124 func (mr *MockInterfaceMockRecorder) ImagesFsInfo() *gomock.Call {
125 mr.mock.ctrl.T.Helper()
126 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ImagesFsInfo", reflect.TypeOf((*MockInterface)(nil).ImagesFsInfo))
127 }
128
129
130 func (m *MockInterface) MachineInfo() (*v1.MachineInfo, error) {
131 m.ctrl.T.Helper()
132 ret := m.ctrl.Call(m, "MachineInfo")
133 ret0, _ := ret[0].(*v1.MachineInfo)
134 ret1, _ := ret[1].(error)
135 return ret0, ret1
136 }
137
138
139 func (mr *MockInterfaceMockRecorder) MachineInfo() *gomock.Call {
140 mr.mock.ctrl.T.Helper()
141 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MachineInfo", reflect.TypeOf((*MockInterface)(nil).MachineInfo))
142 }
143
144
145 func (m *MockInterface) RootFsInfo() (v2.FsInfo, error) {
146 m.ctrl.T.Helper()
147 ret := m.ctrl.Call(m, "RootFsInfo")
148 ret0, _ := ret[0].(v2.FsInfo)
149 ret1, _ := ret[1].(error)
150 return ret0, ret1
151 }
152
153
154 func (mr *MockInterfaceMockRecorder) RootFsInfo() *gomock.Call {
155 mr.mock.ctrl.T.Helper()
156 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RootFsInfo", reflect.TypeOf((*MockInterface)(nil).RootFsInfo))
157 }
158
159
160 func (m *MockInterface) Start() error {
161 m.ctrl.T.Helper()
162 ret := m.ctrl.Call(m, "Start")
163 ret0, _ := ret[0].(error)
164 return ret0
165 }
166
167
168 func (mr *MockInterfaceMockRecorder) Start() *gomock.Call {
169 mr.mock.ctrl.T.Helper()
170 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Start", reflect.TypeOf((*MockInterface)(nil).Start))
171 }
172
173
174 func (m *MockInterface) VersionInfo() (*v1.VersionInfo, error) {
175 m.ctrl.T.Helper()
176 ret := m.ctrl.Call(m, "VersionInfo")
177 ret0, _ := ret[0].(*v1.VersionInfo)
178 ret1, _ := ret[1].(error)
179 return ret0, ret1
180 }
181
182
183 func (mr *MockInterfaceMockRecorder) VersionInfo() *gomock.Call {
184 mr.mock.ctrl.T.Helper()
185 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "VersionInfo", reflect.TypeOf((*MockInterface)(nil).VersionInfo))
186 }
187
188
189 type MockImageFsInfoProvider struct {
190 ctrl *gomock.Controller
191 recorder *MockImageFsInfoProviderMockRecorder
192 }
193
194
195 type MockImageFsInfoProviderMockRecorder struct {
196 mock *MockImageFsInfoProvider
197 }
198
199
200 func NewMockImageFsInfoProvider(ctrl *gomock.Controller) *MockImageFsInfoProvider {
201 mock := &MockImageFsInfoProvider{ctrl: ctrl}
202 mock.recorder = &MockImageFsInfoProviderMockRecorder{mock}
203 return mock
204 }
205
206
207 func (m *MockImageFsInfoProvider) EXPECT() *MockImageFsInfoProviderMockRecorder {
208 return m.recorder
209 }
210
211
212 func (m *MockImageFsInfoProvider) ContainerFsInfoLabel() (string, error) {
213 m.ctrl.T.Helper()
214 ret := m.ctrl.Call(m, "ContainerFsInfoLabel")
215 ret0, _ := ret[0].(string)
216 ret1, _ := ret[1].(error)
217 return ret0, ret1
218 }
219
220
221 func (mr *MockImageFsInfoProviderMockRecorder) ContainerFsInfoLabel() *gomock.Call {
222 mr.mock.ctrl.T.Helper()
223 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ContainerFsInfoLabel", reflect.TypeOf((*MockImageFsInfoProvider)(nil).ContainerFsInfoLabel))
224 }
225
226
227 func (m *MockImageFsInfoProvider) ImageFsInfoLabel() (string, error) {
228 m.ctrl.T.Helper()
229 ret := m.ctrl.Call(m, "ImageFsInfoLabel")
230 ret0, _ := ret[0].(string)
231 ret1, _ := ret[1].(error)
232 return ret0, ret1
233 }
234
235
236 func (mr *MockImageFsInfoProviderMockRecorder) ImageFsInfoLabel() *gomock.Call {
237 mr.mock.ctrl.T.Helper()
238 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ImageFsInfoLabel", reflect.TypeOf((*MockImageFsInfoProvider)(nil).ImageFsInfoLabel))
239 }
240
View as plain text