...

Source file src/github.com/redhat-developer/odo/pkg/binding/backend/mock.go

Documentation: github.com/redhat-developer/odo/pkg/binding/backend

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: pkg/binding/backend/interface.go
     3  
     4  // Package backend is a generated GoMock package.
     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  // MockAddBindingBackend is a mock of AddBindingBackend interface.
    17  type MockAddBindingBackend struct {
    18  	ctrl     *gomock.Controller
    19  	recorder *MockAddBindingBackendMockRecorder
    20  }
    21  
    22  // MockAddBindingBackendMockRecorder is the mock recorder for MockAddBindingBackend.
    23  type MockAddBindingBackendMockRecorder struct {
    24  	mock *MockAddBindingBackend
    25  }
    26  
    27  // NewMockAddBindingBackend creates a new mock instance.
    28  func NewMockAddBindingBackend(ctrl *gomock.Controller) *MockAddBindingBackend {
    29  	mock := &MockAddBindingBackend{ctrl: ctrl}
    30  	mock.recorder = &MockAddBindingBackendMockRecorder{mock}
    31  	return mock
    32  }
    33  
    34  // EXPECT returns an object that allows the caller to indicate expected use.
    35  func (m *MockAddBindingBackend) EXPECT() *MockAddBindingBackendMockRecorder {
    36  	return m.recorder
    37  }
    38  
    39  // AskBindAsFiles mocks base method.
    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  // AskBindAsFiles indicates an expected call of AskBindAsFiles.
    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  // AskBindingName mocks base method.
    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  // AskBindingName indicates an expected call of AskBindingName.
    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  // AskNamingStrategy mocks base method.
    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  // AskNamingStrategy indicates an expected call of AskNamingStrategy.
    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  // AskOutputFilePath mocks base method.
    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  // AskOutputFilePath indicates an expected call of AskOutputFilePath.
    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  // SelectCreationOptions mocks base method.
   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  // SelectCreationOptions indicates an expected call of SelectCreationOptions.
   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  // SelectNamespace mocks base method.
   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  // SelectNamespace indicates an expected call of SelectNamespace.
   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  // SelectServiceInstance mocks base method.
   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  // SelectServiceInstance indicates an expected call of SelectServiceInstance.
   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  // SelectWorkloadInstance mocks base method.
   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  // SelectWorkloadInstance indicates an expected call of SelectWorkloadInstance.
   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  // Validate mocks base method.
   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  // Validate indicates an expected call of Validate.
   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