github.com/m3db/m3@v1.5.1-0.20231129193456-75a402aa583b/src/dbnode/namespace/kvadmin/kvadmin_mock.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: ../../namespace/kvadmin/types.go 3 4 // Copyright (c) 2022 Uber Technologies, Inc. 5 // 6 // Permission is hereby granted, free of charge, to any person obtaining a copy 7 // of this software and associated documentation files (the "Software"), to deal 8 // in the Software without restriction, including without limitation the rights 9 // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 // copies of the Software, and to permit persons to whom the Software is 11 // furnished to do so, subject to the following conditions: 12 // 13 // The above copyright notice and this permission notice shall be included in 14 // all copies or substantial portions of the Software. 15 // 16 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 22 // THE SOFTWARE. 23 24 // Package kvadmin is a generated GoMock package. 25 package kvadmin 26 27 import ( 28 "reflect" 29 30 "github.com/m3db/m3/src/dbnode/generated/proto/namespace" 31 32 "github.com/golang/mock/gomock" 33 ) 34 35 // MockNamespaceMetadataAdminService is a mock of NamespaceMetadataAdminService interface. 36 type MockNamespaceMetadataAdminService struct { 37 ctrl *gomock.Controller 38 recorder *MockNamespaceMetadataAdminServiceMockRecorder 39 } 40 41 // MockNamespaceMetadataAdminServiceMockRecorder is the mock recorder for MockNamespaceMetadataAdminService. 42 type MockNamespaceMetadataAdminServiceMockRecorder struct { 43 mock *MockNamespaceMetadataAdminService 44 } 45 46 // NewMockNamespaceMetadataAdminService creates a new mock instance. 47 func NewMockNamespaceMetadataAdminService(ctrl *gomock.Controller) *MockNamespaceMetadataAdminService { 48 mock := &MockNamespaceMetadataAdminService{ctrl: ctrl} 49 mock.recorder = &MockNamespaceMetadataAdminServiceMockRecorder{mock} 50 return mock 51 } 52 53 // EXPECT returns an object that allows the caller to indicate expected use. 54 func (m *MockNamespaceMetadataAdminService) EXPECT() *MockNamespaceMetadataAdminServiceMockRecorder { 55 return m.recorder 56 } 57 58 // Add mocks base method. 59 func (m *MockNamespaceMetadataAdminService) Add(name string, options *namespace.NamespaceOptions) error { 60 m.ctrl.T.Helper() 61 ret := m.ctrl.Call(m, "Add", name, options) 62 ret0, _ := ret[0].(error) 63 return ret0 64 } 65 66 // Add indicates an expected call of Add. 67 func (mr *MockNamespaceMetadataAdminServiceMockRecorder) Add(name, options interface{}) *gomock.Call { 68 mr.mock.ctrl.T.Helper() 69 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Add", reflect.TypeOf((*MockNamespaceMetadataAdminService)(nil).Add), name, options) 70 } 71 72 // Delete mocks base method. 73 func (m *MockNamespaceMetadataAdminService) Delete(name string) error { 74 m.ctrl.T.Helper() 75 ret := m.ctrl.Call(m, "Delete", name) 76 ret0, _ := ret[0].(error) 77 return ret0 78 } 79 80 // Delete indicates an expected call of Delete. 81 func (mr *MockNamespaceMetadataAdminServiceMockRecorder) Delete(name interface{}) *gomock.Call { 82 mr.mock.ctrl.T.Helper() 83 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockNamespaceMetadataAdminService)(nil).Delete), name) 84 } 85 86 // DeploySchema mocks base method. 87 func (m *MockNamespaceMetadataAdminService) DeploySchema(name, protoFileName, msgName string, protos map[string]string) (string, error) { 88 m.ctrl.T.Helper() 89 ret := m.ctrl.Call(m, "DeploySchema", name, protoFileName, msgName, protos) 90 ret0, _ := ret[0].(string) 91 ret1, _ := ret[1].(error) 92 return ret0, ret1 93 } 94 95 // DeploySchema indicates an expected call of DeploySchema. 96 func (mr *MockNamespaceMetadataAdminServiceMockRecorder) DeploySchema(name, protoFileName, msgName, protos interface{}) *gomock.Call { 97 mr.mock.ctrl.T.Helper() 98 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeploySchema", reflect.TypeOf((*MockNamespaceMetadataAdminService)(nil).DeploySchema), name, protoFileName, msgName, protos) 99 } 100 101 // Get mocks base method. 102 func (m *MockNamespaceMetadataAdminService) Get(name string) (*namespace.NamespaceOptions, error) { 103 m.ctrl.T.Helper() 104 ret := m.ctrl.Call(m, "Get", name) 105 ret0, _ := ret[0].(*namespace.NamespaceOptions) 106 ret1, _ := ret[1].(error) 107 return ret0, ret1 108 } 109 110 // Get indicates an expected call of Get. 111 func (mr *MockNamespaceMetadataAdminServiceMockRecorder) Get(name interface{}) *gomock.Call { 112 mr.mock.ctrl.T.Helper() 113 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockNamespaceMetadataAdminService)(nil).Get), name) 114 } 115 116 // GetAll mocks base method. 117 func (m *MockNamespaceMetadataAdminService) GetAll() (*namespace.Registry, error) { 118 m.ctrl.T.Helper() 119 ret := m.ctrl.Call(m, "GetAll") 120 ret0, _ := ret[0].(*namespace.Registry) 121 ret1, _ := ret[1].(error) 122 return ret0, ret1 123 } 124 125 // GetAll indicates an expected call of GetAll. 126 func (mr *MockNamespaceMetadataAdminServiceMockRecorder) GetAll() *gomock.Call { 127 mr.mock.ctrl.T.Helper() 128 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAll", reflect.TypeOf((*MockNamespaceMetadataAdminService)(nil).GetAll)) 129 } 130 131 // ResetSchema mocks base method. 132 func (m *MockNamespaceMetadataAdminService) ResetSchema(name string) error { 133 m.ctrl.T.Helper() 134 ret := m.ctrl.Call(m, "ResetSchema", name) 135 ret0, _ := ret[0].(error) 136 return ret0 137 } 138 139 // ResetSchema indicates an expected call of ResetSchema. 140 func (mr *MockNamespaceMetadataAdminServiceMockRecorder) ResetSchema(name interface{}) *gomock.Call { 141 mr.mock.ctrl.T.Helper() 142 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ResetSchema", reflect.TypeOf((*MockNamespaceMetadataAdminService)(nil).ResetSchema), name) 143 } 144 145 // Set mocks base method. 146 func (m *MockNamespaceMetadataAdminService) Set(name string, options *namespace.NamespaceOptions) error { 147 m.ctrl.T.Helper() 148 ret := m.ctrl.Call(m, "Set", name, options) 149 ret0, _ := ret[0].(error) 150 return ret0 151 } 152 153 // Set indicates an expected call of Set. 154 func (mr *MockNamespaceMetadataAdminServiceMockRecorder) Set(name, options interface{}) *gomock.Call { 155 mr.mock.ctrl.T.Helper() 156 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Set", reflect.TypeOf((*MockNamespaceMetadataAdminService)(nil).Set), name, options) 157 }