-
Notifications
You must be signed in to change notification settings - Fork 1.3k
/
generated_mock_mount.go
86 lines (68 loc) · 2.54 KB
/
generated_mock_mount.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
// Automatically generated by MockGen. DO NOT EDIT!
// Source: mount.go
package container_disk
import (
time "time"
gomock "github.com/golang/mock/gomock"
v1 "kubevirt.io/client-go/api/v1"
container_disk "kubevirt.io/kubevirt/pkg/container-disk"
)
// Mock of Mounter interface
type MockMounter struct {
ctrl *gomock.Controller
recorder *_MockMounterRecorder
}
// Recorder for MockMounter (not exported)
type _MockMounterRecorder struct {
mock *MockMounter
}
func NewMockMounter(ctrl *gomock.Controller) *MockMounter {
mock := &MockMounter{ctrl: ctrl}
mock.recorder = &_MockMounterRecorder{mock}
return mock
}
func (_m *MockMounter) EXPECT() *_MockMounterRecorder {
return _m.recorder
}
func (_m *MockMounter) ContainerDisksReady(vmi *v1.VirtualMachineInstance, notInitializedSince time.Time) (bool, error) {
ret := _m.ctrl.Call(_m, "ContainerDisksReady", vmi, notInitializedSince)
ret0, _ := ret[0].(bool)
ret1, _ := ret[1].(error)
return ret0, ret1
}
func (_mr *_MockMounterRecorder) ContainerDisksReady(arg0, arg1 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "ContainerDisksReady", arg0, arg1)
}
func (_m *MockMounter) MountAndVerify(vmi *v1.VirtualMachineInstance) (map[string]*container_disk.DiskInfo, error) {
ret := _m.ctrl.Call(_m, "MountAndVerify", vmi)
ret0, _ := ret[0].(map[string]*container_disk.DiskInfo)
ret1, _ := ret[1].(error)
return ret0, ret1
}
func (_mr *_MockMounterRecorder) MountAndVerify(arg0 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "MountAndVerify", arg0)
}
func (_m *MockMounter) MountKernelArtifacts(vmi *v1.VirtualMachineInstance, verify bool) error {
ret := _m.ctrl.Call(_m, "MountKernelArtifacts", vmi, verify)
ret0, _ := ret[0].(error)
return ret0
}
func (_mr *_MockMounterRecorder) MountKernelArtifacts(arg0, arg1 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "MountKernelArtifacts", arg0, arg1)
}
func (_m *MockMounter) Unmount(vmi *v1.VirtualMachineInstance) error {
ret := _m.ctrl.Call(_m, "Unmount", vmi)
ret0, _ := ret[0].(error)
return ret0
}
func (_mr *_MockMounterRecorder) Unmount(arg0 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "Unmount", arg0)
}
func (_m *MockMounter) UnmountKernelArtifacts(vmi *v1.VirtualMachineInstance) error {
ret := _m.ctrl.Call(_m, "UnmountKernelArtifacts", vmi)
ret0, _ := ret[0].(error)
return ret0
}
func (_mr *_MockMounterRecorder) UnmountKernelArtifacts(arg0 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "UnmountKernelArtifacts", arg0)
}