1
2
3
4
5 package backend
6
7 import (
8 reflect "reflect"
9
10 gomock "github.com/golang/mock/gomock"
11 asker "github.com/redhat-developer/odo/pkg/binding/asker"
12 unstructured "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
13 schema "k8s.io/apimachinery/pkg/runtime/schema"
14 )
15
16
17 type MockAddBindingBackend struct {
18 ctrl *gomock.Controller
19 recorder *MockAddBindingBackendMockRecorder
20 }
21
22
23 type MockAddBindingBackendMockRecorder struct {
24 mock *MockAddBindingBackend
25 }
26
27
28 func NewMockAddBindingBackend(ctrl *gomock.Controller) *MockAddBindingBackend {
29 mock := &MockAddBindingBackend{ctrl: ctrl}
30 mock.recorder = &MockAddBindingBackendMockRecorder{mock}
31 return mock
32 }
33
34
35 func (m *MockAddBindingBackend) EXPECT() *MockAddBindingBackendMockRecorder {
36 return m.recorder
37 }
38
39
40 func (m *MockAddBindingBackend) AskBindAsFiles(flags map[string]string) (bool, error) {
41 m.ctrl.T.Helper()
42 ret := m.ctrl.Call(m, "AskBindAsFiles", flags)
43 ret0, _ := ret[0].(bool)
44 ret1, _ := ret[1].(error)
45 return ret0, ret1
46 }
47
48
49 func (mr *MockAddBindingBackendMockRecorder) AskBindAsFiles(flags interface{}) *gomock.Call {
50 mr.mock.ctrl.T.Helper()
51 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AskBindAsFiles", reflect.TypeOf((*MockAddBindingBackend)(nil).AskBindAsFiles), flags)
52 }
53
54
55 func (m *MockAddBindingBackend) AskBindingName(defaultName string, flags map[string]string) (string, error) {
56 m.ctrl.T.Helper()
57 ret := m.ctrl.Call(m, "AskBindingName", defaultName, flags)
58 ret0, _ := ret[0].(string)
59 ret1, _ := ret[1].(error)
60 return ret0, ret1
61 }
62
63
64 func (mr *MockAddBindingBackendMockRecorder) AskBindingName(defaultName, flags interface{}) *gomock.Call {
65 mr.mock.ctrl.T.Helper()
66 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AskBindingName", reflect.TypeOf((*MockAddBindingBackend)(nil).AskBindingName), defaultName, flags)
67 }
68
69
70 func (m *MockAddBindingBackend) AskNamingStrategy(flags map[string]string) (string, error) {
71 m.ctrl.T.Helper()
72 ret := m.ctrl.Call(m, "AskNamingStrategy", flags)
73 ret0, _ := ret[0].(string)
74 ret1, _ := ret[1].(error)
75 return ret0, ret1
76 }
77
78
79 func (mr *MockAddBindingBackendMockRecorder) AskNamingStrategy(flags interface{}) *gomock.Call {
80 mr.mock.ctrl.T.Helper()
81 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AskNamingStrategy", reflect.TypeOf((*MockAddBindingBackend)(nil).AskNamingStrategy), flags)
82 }
83
84
85 func (m *MockAddBindingBackend) AskOutputFilePath(flags map[string]string, defaultValue string) (string, error) {
86 m.ctrl.T.Helper()
87 ret := m.ctrl.Call(m, "AskOutputFilePath", flags, defaultValue)
88 ret0, _ := ret[0].(string)
89 ret1, _ := ret[1].(error)
90 return ret0, ret1
91 }
92
93
94 func (mr *MockAddBindingBackendMockRecorder) AskOutputFilePath(flags, defaultValue interface{}) *gomock.Call {
95 mr.mock.ctrl.T.Helper()
96 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AskOutputFilePath", reflect.TypeOf((*MockAddBindingBackend)(nil).AskOutputFilePath), flags, defaultValue)
97 }
98
99
100 func (m *MockAddBindingBackend) SelectCreationOptions(flags map[string]string) ([]asker.CreationOption, error) {
101 m.ctrl.T.Helper()
102 ret := m.ctrl.Call(m, "SelectCreationOptions", flags)
103 ret0, _ := ret[0].([]asker.CreationOption)
104 ret1, _ := ret[1].(error)
105 return ret0, ret1
106 }
107
108
109 func (mr *MockAddBindingBackendMockRecorder) SelectCreationOptions(flags interface{}) *gomock.Call {
110 mr.mock.ctrl.T.Helper()
111 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SelectCreationOptions", reflect.TypeOf((*MockAddBindingBackend)(nil).SelectCreationOptions), flags)
112 }
113
114
115 func (m *MockAddBindingBackend) SelectNamespace(flags map[string]string) (string, error) {
116 m.ctrl.T.Helper()
117 ret := m.ctrl.Call(m, "SelectNamespace", flags)
118 ret0, _ := ret[0].(string)
119 ret1, _ := ret[1].(error)
120 return ret0, ret1
121 }
122
123
124 func (mr *MockAddBindingBackendMockRecorder) SelectNamespace(flags interface{}) *gomock.Call {
125 mr.mock.ctrl.T.Helper()
126 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SelectNamespace", reflect.TypeOf((*MockAddBindingBackend)(nil).SelectNamespace), flags)
127 }
128
129
130 func (m *MockAddBindingBackend) SelectServiceInstance(serviceName string, serviceMap map[string]unstructured.Unstructured) (string, error) {
131 m.ctrl.T.Helper()
132 ret := m.ctrl.Call(m, "SelectServiceInstance", serviceName, serviceMap)
133 ret0, _ := ret[0].(string)
134 ret1, _ := ret[1].(error)
135 return ret0, ret1
136 }
137
138
139 func (mr *MockAddBindingBackendMockRecorder) SelectServiceInstance(serviceName, serviceMap interface{}) *gomock.Call {
140 mr.mock.ctrl.T.Helper()
141 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SelectServiceInstance", reflect.TypeOf((*MockAddBindingBackend)(nil).SelectServiceInstance), serviceName, serviceMap)
142 }
143
144
145 func (m *MockAddBindingBackend) SelectWorkloadInstance(workloadName string) (string, schema.GroupVersionKind, error) {
146 m.ctrl.T.Helper()
147 ret := m.ctrl.Call(m, "SelectWorkloadInstance", workloadName)
148 ret0, _ := ret[0].(string)
149 ret1, _ := ret[1].(schema.GroupVersionKind)
150 ret2, _ := ret[2].(error)
151 return ret0, ret1, ret2
152 }
153
154
155 func (mr *MockAddBindingBackendMockRecorder) SelectWorkloadInstance(workloadName interface{}) *gomock.Call {
156 mr.mock.ctrl.T.Helper()
157 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SelectWorkloadInstance", reflect.TypeOf((*MockAddBindingBackend)(nil).SelectWorkloadInstance), workloadName)
158 }
159
160
161 func (m *MockAddBindingBackend) Validate(flags map[string]string, withDevfile bool) error {
162 m.ctrl.T.Helper()
163 ret := m.ctrl.Call(m, "Validate", flags, withDevfile)
164 ret0, _ := ret[0].(error)
165 return ret0
166 }
167
168
169 func (mr *MockAddBindingBackendMockRecorder) Validate(flags, withDevfile interface{}) *gomock.Call {
170 mr.mock.ctrl.T.Helper()
171 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Validate", reflect.TypeOf((*MockAddBindingBackend)(nil).Validate), flags, withDevfile)
172 }
173
View as plain text