-
Notifications
You must be signed in to change notification settings - Fork 1.3k
/
generated_mock_client.go
102 lines (81 loc) · 2.88 KB
/
generated_mock_client.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
// Automatically generated by MockGen. DO NOT EDIT!
// Source: client.go
package cmdclient
import (
gomock "github.com/golang/mock/gomock"
v1 "kubevirt.io/kubevirt/pkg/api/v1"
api "kubevirt.io/kubevirt/pkg/virt-launcher/virtwrap/api"
)
// Mock of LauncherClient interface
type MockLauncherClient struct {
ctrl *gomock.Controller
recorder *_MockLauncherClientRecorder
}
// Recorder for MockLauncherClient (not exported)
type _MockLauncherClientRecorder struct {
mock *MockLauncherClient
}
func NewMockLauncherClient(ctrl *gomock.Controller) *MockLauncherClient {
mock := &MockLauncherClient{ctrl: ctrl}
mock.recorder = &_MockLauncherClientRecorder{mock}
return mock
}
func (_m *MockLauncherClient) EXPECT() *_MockLauncherClientRecorder {
return _m.recorder
}
func (_m *MockLauncherClient) SyncVirtualMachine(vmi *v1.VirtualMachineInstance) error {
ret := _m.ctrl.Call(_m, "SyncVirtualMachine", vmi)
ret0, _ := ret[0].(error)
return ret0
}
func (_mr *_MockLauncherClientRecorder) SyncVirtualMachine(arg0 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "SyncVirtualMachine", arg0)
}
func (_m *MockLauncherClient) ShutdownVirtualMachine(vmi *v1.VirtualMachineInstance) error {
ret := _m.ctrl.Call(_m, "ShutdownVirtualMachine", vmi)
ret0, _ := ret[0].(error)
return ret0
}
func (_mr *_MockLauncherClientRecorder) ShutdownVirtualMachine(arg0 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "ShutdownVirtualMachine", arg0)
}
func (_m *MockLauncherClient) KillVirtualMachine(vmi *v1.VirtualMachineInstance) error {
ret := _m.ctrl.Call(_m, "KillVirtualMachine", vmi)
ret0, _ := ret[0].(error)
return ret0
}
func (_mr *_MockLauncherClientRecorder) KillVirtualMachine(arg0 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "KillVirtualMachine", arg0)
}
func (_m *MockLauncherClient) DeleteDomain(vmi *v1.VirtualMachineInstance) error {
ret := _m.ctrl.Call(_m, "DeleteDomain", vmi)
ret0, _ := ret[0].(error)
return ret0
}
func (_mr *_MockLauncherClientRecorder) DeleteDomain(arg0 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "DeleteDomain", arg0)
}
func (_m *MockLauncherClient) GetDomain() (*api.Domain, bool, error) {
ret := _m.ctrl.Call(_m, "GetDomain")
ret0, _ := ret[0].(*api.Domain)
ret1, _ := ret[1].(bool)
ret2, _ := ret[2].(error)
return ret0, ret1, ret2
}
func (_mr *_MockLauncherClientRecorder) GetDomain() *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "GetDomain")
}
func (_m *MockLauncherClient) Ping() error {
ret := _m.ctrl.Call(_m, "Ping")
ret0, _ := ret[0].(error)
return ret0
}
func (_mr *_MockLauncherClientRecorder) Ping() *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "Ping")
}
func (_m *MockLauncherClient) Close() {
_m.ctrl.Call(_m, "Close")
}
func (_mr *_MockLauncherClientRecorder) Close() *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "Close")
}