1
2
3
4
5 package libdevfile
6
7 import (
8 context "context"
9 reflect "reflect"
10
11 v1alpha2 "github.com/devfile/api/v2/pkg/apis/workspaces/v1alpha2"
12 gomock "github.com/golang/mock/gomock"
13 )
14
15
16 type MockHandler struct {
17 ctrl *gomock.Controller
18 recorder *MockHandlerMockRecorder
19 }
20
21
22 type MockHandlerMockRecorder struct {
23 mock *MockHandler
24 }
25
26
27 func NewMockHandler(ctrl *gomock.Controller) *MockHandler {
28 mock := &MockHandler{ctrl: ctrl}
29 mock.recorder = &MockHandlerMockRecorder{mock}
30 return mock
31 }
32
33
34 func (m *MockHandler) EXPECT() *MockHandlerMockRecorder {
35 return m.recorder
36 }
37
38
39 func (m *MockHandler) ApplyImage(image v1alpha2.Component) error {
40 m.ctrl.T.Helper()
41 ret := m.ctrl.Call(m, "ApplyImage", image)
42 ret0, _ := ret[0].(error)
43 return ret0
44 }
45
46
47 func (mr *MockHandlerMockRecorder) ApplyImage(image interface{}) *gomock.Call {
48 mr.mock.ctrl.T.Helper()
49 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplyImage", reflect.TypeOf((*MockHandler)(nil).ApplyImage), image)
50 }
51
52
53 func (m *MockHandler) ApplyKubernetes(kubernetes v1alpha2.Component, kind v1alpha2.CommandGroupKind) error {
54 m.ctrl.T.Helper()
55 ret := m.ctrl.Call(m, "ApplyKubernetes", kubernetes, kind)
56 ret0, _ := ret[0].(error)
57 return ret0
58 }
59
60
61 func (mr *MockHandlerMockRecorder) ApplyKubernetes(kubernetes, kind interface{}) *gomock.Call {
62 mr.mock.ctrl.T.Helper()
63 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplyKubernetes", reflect.TypeOf((*MockHandler)(nil).ApplyKubernetes), kubernetes, kind)
64 }
65
66
67 func (m *MockHandler) ApplyOpenShift(openshift v1alpha2.Component, kind v1alpha2.CommandGroupKind) error {
68 m.ctrl.T.Helper()
69 ret := m.ctrl.Call(m, "ApplyOpenShift", openshift, kind)
70 ret0, _ := ret[0].(error)
71 return ret0
72 }
73
74
75 func (mr *MockHandlerMockRecorder) ApplyOpenShift(openshift, kind interface{}) *gomock.Call {
76 mr.mock.ctrl.T.Helper()
77 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplyOpenShift", reflect.TypeOf((*MockHandler)(nil).ApplyOpenShift), openshift, kind)
78 }
79
80
81 func (m *MockHandler) ExecuteNonTerminatingCommand(ctx context.Context, command v1alpha2.Command) error {
82 m.ctrl.T.Helper()
83 ret := m.ctrl.Call(m, "ExecuteNonTerminatingCommand", ctx, command)
84 ret0, _ := ret[0].(error)
85 return ret0
86 }
87
88
89 func (mr *MockHandlerMockRecorder) ExecuteNonTerminatingCommand(ctx, command interface{}) *gomock.Call {
90 mr.mock.ctrl.T.Helper()
91 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExecuteNonTerminatingCommand", reflect.TypeOf((*MockHandler)(nil).ExecuteNonTerminatingCommand), ctx, command)
92 }
93
94
95 func (m *MockHandler) ExecuteTerminatingCommand(ctx context.Context, command v1alpha2.Command) error {
96 m.ctrl.T.Helper()
97 ret := m.ctrl.Call(m, "ExecuteTerminatingCommand", ctx, command)
98 ret0, _ := ret[0].(error)
99 return ret0
100 }
101
102
103 func (mr *MockHandlerMockRecorder) ExecuteTerminatingCommand(ctx, command interface{}) *gomock.Call {
104 mr.mock.ctrl.T.Helper()
105 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExecuteTerminatingCommand", reflect.TypeOf((*MockHandler)(nil).ExecuteTerminatingCommand), ctx, command)
106 }
107
View as plain text