github.com/m3db/m3@v1.5.1-0.20231129193456-75a402aa583b/src/ctl/service/r2/store/store_mock.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: github.com/m3db/m3/src/ctl/service/r2/store (interfaces: Store)
     3  
     4  // Copyright (c) 2021 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 store is a generated GoMock package.
    25  package store
    26  
    27  import (
    28  	"reflect"
    29  
    30  	"github.com/m3db/m3/src/metrics/rules/view"
    31  	"github.com/m3db/m3/src/metrics/rules/view/changes"
    32  
    33  	"github.com/golang/mock/gomock"
    34  )
    35  
    36  // MockStore is a mock of Store interface.
    37  type MockStore struct {
    38  	ctrl     *gomock.Controller
    39  	recorder *MockStoreMockRecorder
    40  }
    41  
    42  // MockStoreMockRecorder is the mock recorder for MockStore.
    43  type MockStoreMockRecorder struct {
    44  	mock *MockStore
    45  }
    46  
    47  // NewMockStore creates a new mock instance.
    48  func NewMockStore(ctrl *gomock.Controller) *MockStore {
    49  	mock := &MockStore{ctrl: ctrl}
    50  	mock.recorder = &MockStoreMockRecorder{mock}
    51  	return mock
    52  }
    53  
    54  // EXPECT returns an object that allows the caller to indicate expected use.
    55  func (m *MockStore) EXPECT() *MockStoreMockRecorder {
    56  	return m.recorder
    57  }
    58  
    59  // Close mocks base method.
    60  func (m *MockStore) Close() {
    61  	m.ctrl.T.Helper()
    62  	m.ctrl.Call(m, "Close")
    63  }
    64  
    65  // Close indicates an expected call of Close.
    66  func (mr *MockStoreMockRecorder) Close() *gomock.Call {
    67  	mr.mock.ctrl.T.Helper()
    68  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockStore)(nil).Close))
    69  }
    70  
    71  // CreateMappingRule mocks base method.
    72  func (m *MockStore) CreateMappingRule(arg0 string, arg1 view.MappingRule, arg2 UpdateOptions) (view.MappingRule, error) {
    73  	m.ctrl.T.Helper()
    74  	ret := m.ctrl.Call(m, "CreateMappingRule", arg0, arg1, arg2)
    75  	ret0, _ := ret[0].(view.MappingRule)
    76  	ret1, _ := ret[1].(error)
    77  	return ret0, ret1
    78  }
    79  
    80  // CreateMappingRule indicates an expected call of CreateMappingRule.
    81  func (mr *MockStoreMockRecorder) CreateMappingRule(arg0, arg1, arg2 interface{}) *gomock.Call {
    82  	mr.mock.ctrl.T.Helper()
    83  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateMappingRule", reflect.TypeOf((*MockStore)(nil).CreateMappingRule), arg0, arg1, arg2)
    84  }
    85  
    86  // CreateNamespace mocks base method.
    87  func (m *MockStore) CreateNamespace(arg0 string, arg1 UpdateOptions) (view.Namespace, error) {
    88  	m.ctrl.T.Helper()
    89  	ret := m.ctrl.Call(m, "CreateNamespace", arg0, arg1)
    90  	ret0, _ := ret[0].(view.Namespace)
    91  	ret1, _ := ret[1].(error)
    92  	return ret0, ret1
    93  }
    94  
    95  // CreateNamespace indicates an expected call of CreateNamespace.
    96  func (mr *MockStoreMockRecorder) CreateNamespace(arg0, arg1 interface{}) *gomock.Call {
    97  	mr.mock.ctrl.T.Helper()
    98  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateNamespace", reflect.TypeOf((*MockStore)(nil).CreateNamespace), arg0, arg1)
    99  }
   100  
   101  // CreateRollupRule mocks base method.
   102  func (m *MockStore) CreateRollupRule(arg0 string, arg1 view.RollupRule, arg2 UpdateOptions) (view.RollupRule, error) {
   103  	m.ctrl.T.Helper()
   104  	ret := m.ctrl.Call(m, "CreateRollupRule", arg0, arg1, arg2)
   105  	ret0, _ := ret[0].(view.RollupRule)
   106  	ret1, _ := ret[1].(error)
   107  	return ret0, ret1
   108  }
   109  
   110  // CreateRollupRule indicates an expected call of CreateRollupRule.
   111  func (mr *MockStoreMockRecorder) CreateRollupRule(arg0, arg1, arg2 interface{}) *gomock.Call {
   112  	mr.mock.ctrl.T.Helper()
   113  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateRollupRule", reflect.TypeOf((*MockStore)(nil).CreateRollupRule), arg0, arg1, arg2)
   114  }
   115  
   116  // DeleteMappingRule mocks base method.
   117  func (m *MockStore) DeleteMappingRule(arg0, arg1 string, arg2 UpdateOptions) error {
   118  	m.ctrl.T.Helper()
   119  	ret := m.ctrl.Call(m, "DeleteMappingRule", arg0, arg1, arg2)
   120  	ret0, _ := ret[0].(error)
   121  	return ret0
   122  }
   123  
   124  // DeleteMappingRule indicates an expected call of DeleteMappingRule.
   125  func (mr *MockStoreMockRecorder) DeleteMappingRule(arg0, arg1, arg2 interface{}) *gomock.Call {
   126  	mr.mock.ctrl.T.Helper()
   127  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteMappingRule", reflect.TypeOf((*MockStore)(nil).DeleteMappingRule), arg0, arg1, arg2)
   128  }
   129  
   130  // DeleteNamespace mocks base method.
   131  func (m *MockStore) DeleteNamespace(arg0 string, arg1 UpdateOptions) error {
   132  	m.ctrl.T.Helper()
   133  	ret := m.ctrl.Call(m, "DeleteNamespace", arg0, arg1)
   134  	ret0, _ := ret[0].(error)
   135  	return ret0
   136  }
   137  
   138  // DeleteNamespace indicates an expected call of DeleteNamespace.
   139  func (mr *MockStoreMockRecorder) DeleteNamespace(arg0, arg1 interface{}) *gomock.Call {
   140  	mr.mock.ctrl.T.Helper()
   141  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteNamespace", reflect.TypeOf((*MockStore)(nil).DeleteNamespace), arg0, arg1)
   142  }
   143  
   144  // DeleteRollupRule mocks base method.
   145  func (m *MockStore) DeleteRollupRule(arg0, arg1 string, arg2 UpdateOptions) error {
   146  	m.ctrl.T.Helper()
   147  	ret := m.ctrl.Call(m, "DeleteRollupRule", arg0, arg1, arg2)
   148  	ret0, _ := ret[0].(error)
   149  	return ret0
   150  }
   151  
   152  // DeleteRollupRule indicates an expected call of DeleteRollupRule.
   153  func (mr *MockStoreMockRecorder) DeleteRollupRule(arg0, arg1, arg2 interface{}) *gomock.Call {
   154  	mr.mock.ctrl.T.Helper()
   155  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteRollupRule", reflect.TypeOf((*MockStore)(nil).DeleteRollupRule), arg0, arg1, arg2)
   156  }
   157  
   158  // FetchMappingRule mocks base method.
   159  func (m *MockStore) FetchMappingRule(arg0, arg1 string) (view.MappingRule, error) {
   160  	m.ctrl.T.Helper()
   161  	ret := m.ctrl.Call(m, "FetchMappingRule", arg0, arg1)
   162  	ret0, _ := ret[0].(view.MappingRule)
   163  	ret1, _ := ret[1].(error)
   164  	return ret0, ret1
   165  }
   166  
   167  // FetchMappingRule indicates an expected call of FetchMappingRule.
   168  func (mr *MockStoreMockRecorder) FetchMappingRule(arg0, arg1 interface{}) *gomock.Call {
   169  	mr.mock.ctrl.T.Helper()
   170  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FetchMappingRule", reflect.TypeOf((*MockStore)(nil).FetchMappingRule), arg0, arg1)
   171  }
   172  
   173  // FetchMappingRuleHistory mocks base method.
   174  func (m *MockStore) FetchMappingRuleHistory(arg0, arg1 string) ([]view.MappingRule, error) {
   175  	m.ctrl.T.Helper()
   176  	ret := m.ctrl.Call(m, "FetchMappingRuleHistory", arg0, arg1)
   177  	ret0, _ := ret[0].([]view.MappingRule)
   178  	ret1, _ := ret[1].(error)
   179  	return ret0, ret1
   180  }
   181  
   182  // FetchMappingRuleHistory indicates an expected call of FetchMappingRuleHistory.
   183  func (mr *MockStoreMockRecorder) FetchMappingRuleHistory(arg0, arg1 interface{}) *gomock.Call {
   184  	mr.mock.ctrl.T.Helper()
   185  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FetchMappingRuleHistory", reflect.TypeOf((*MockStore)(nil).FetchMappingRuleHistory), arg0, arg1)
   186  }
   187  
   188  // FetchNamespaces mocks base method.
   189  func (m *MockStore) FetchNamespaces() (view.Namespaces, error) {
   190  	m.ctrl.T.Helper()
   191  	ret := m.ctrl.Call(m, "FetchNamespaces")
   192  	ret0, _ := ret[0].(view.Namespaces)
   193  	ret1, _ := ret[1].(error)
   194  	return ret0, ret1
   195  }
   196  
   197  // FetchNamespaces indicates an expected call of FetchNamespaces.
   198  func (mr *MockStoreMockRecorder) FetchNamespaces() *gomock.Call {
   199  	mr.mock.ctrl.T.Helper()
   200  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FetchNamespaces", reflect.TypeOf((*MockStore)(nil).FetchNamespaces))
   201  }
   202  
   203  // FetchRollupRule mocks base method.
   204  func (m *MockStore) FetchRollupRule(arg0, arg1 string) (view.RollupRule, error) {
   205  	m.ctrl.T.Helper()
   206  	ret := m.ctrl.Call(m, "FetchRollupRule", arg0, arg1)
   207  	ret0, _ := ret[0].(view.RollupRule)
   208  	ret1, _ := ret[1].(error)
   209  	return ret0, ret1
   210  }
   211  
   212  // FetchRollupRule indicates an expected call of FetchRollupRule.
   213  func (mr *MockStoreMockRecorder) FetchRollupRule(arg0, arg1 interface{}) *gomock.Call {
   214  	mr.mock.ctrl.T.Helper()
   215  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FetchRollupRule", reflect.TypeOf((*MockStore)(nil).FetchRollupRule), arg0, arg1)
   216  }
   217  
   218  // FetchRollupRuleHistory mocks base method.
   219  func (m *MockStore) FetchRollupRuleHistory(arg0, arg1 string) ([]view.RollupRule, error) {
   220  	m.ctrl.T.Helper()
   221  	ret := m.ctrl.Call(m, "FetchRollupRuleHistory", arg0, arg1)
   222  	ret0, _ := ret[0].([]view.RollupRule)
   223  	ret1, _ := ret[1].(error)
   224  	return ret0, ret1
   225  }
   226  
   227  // FetchRollupRuleHistory indicates an expected call of FetchRollupRuleHistory.
   228  func (mr *MockStoreMockRecorder) FetchRollupRuleHistory(arg0, arg1 interface{}) *gomock.Call {
   229  	mr.mock.ctrl.T.Helper()
   230  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FetchRollupRuleHistory", reflect.TypeOf((*MockStore)(nil).FetchRollupRuleHistory), arg0, arg1)
   231  }
   232  
   233  // FetchRuleSetSnapshot mocks base method.
   234  func (m *MockStore) FetchRuleSetSnapshot(arg0 string) (view.RuleSet, error) {
   235  	m.ctrl.T.Helper()
   236  	ret := m.ctrl.Call(m, "FetchRuleSetSnapshot", arg0)
   237  	ret0, _ := ret[0].(view.RuleSet)
   238  	ret1, _ := ret[1].(error)
   239  	return ret0, ret1
   240  }
   241  
   242  // FetchRuleSetSnapshot indicates an expected call of FetchRuleSetSnapshot.
   243  func (mr *MockStoreMockRecorder) FetchRuleSetSnapshot(arg0 interface{}) *gomock.Call {
   244  	mr.mock.ctrl.T.Helper()
   245  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FetchRuleSetSnapshot", reflect.TypeOf((*MockStore)(nil).FetchRuleSetSnapshot), arg0)
   246  }
   247  
   248  // UpdateMappingRule mocks base method.
   249  func (m *MockStore) UpdateMappingRule(arg0, arg1 string, arg2 view.MappingRule, arg3 UpdateOptions) (view.MappingRule, error) {
   250  	m.ctrl.T.Helper()
   251  	ret := m.ctrl.Call(m, "UpdateMappingRule", arg0, arg1, arg2, arg3)
   252  	ret0, _ := ret[0].(view.MappingRule)
   253  	ret1, _ := ret[1].(error)
   254  	return ret0, ret1
   255  }
   256  
   257  // UpdateMappingRule indicates an expected call of UpdateMappingRule.
   258  func (mr *MockStoreMockRecorder) UpdateMappingRule(arg0, arg1, arg2, arg3 interface{}) *gomock.Call {
   259  	mr.mock.ctrl.T.Helper()
   260  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateMappingRule", reflect.TypeOf((*MockStore)(nil).UpdateMappingRule), arg0, arg1, arg2, arg3)
   261  }
   262  
   263  // UpdateRollupRule mocks base method.
   264  func (m *MockStore) UpdateRollupRule(arg0, arg1 string, arg2 view.RollupRule, arg3 UpdateOptions) (view.RollupRule, error) {
   265  	m.ctrl.T.Helper()
   266  	ret := m.ctrl.Call(m, "UpdateRollupRule", arg0, arg1, arg2, arg3)
   267  	ret0, _ := ret[0].(view.RollupRule)
   268  	ret1, _ := ret[1].(error)
   269  	return ret0, ret1
   270  }
   271  
   272  // UpdateRollupRule indicates an expected call of UpdateRollupRule.
   273  func (mr *MockStoreMockRecorder) UpdateRollupRule(arg0, arg1, arg2, arg3 interface{}) *gomock.Call {
   274  	mr.mock.ctrl.T.Helper()
   275  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateRollupRule", reflect.TypeOf((*MockStore)(nil).UpdateRollupRule), arg0, arg1, arg2, arg3)
   276  }
   277  
   278  // UpdateRuleSet mocks base method.
   279  func (m *MockStore) UpdateRuleSet(arg0 changes.RuleSetChanges, arg1 int, arg2 UpdateOptions) (view.RuleSet, error) {
   280  	m.ctrl.T.Helper()
   281  	ret := m.ctrl.Call(m, "UpdateRuleSet", arg0, arg1, arg2)
   282  	ret0, _ := ret[0].(view.RuleSet)
   283  	ret1, _ := ret[1].(error)
   284  	return ret0, ret1
   285  }
   286  
   287  // UpdateRuleSet indicates an expected call of UpdateRuleSet.
   288  func (mr *MockStoreMockRecorder) UpdateRuleSet(arg0, arg1, arg2 interface{}) *gomock.Call {
   289  	mr.mock.ctrl.T.Helper()
   290  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateRuleSet", reflect.TypeOf((*MockStore)(nil).UpdateRuleSet), arg0, arg1, arg2)
   291  }
   292  
   293  // ValidateRuleSet mocks base method.
   294  func (m *MockStore) ValidateRuleSet(arg0 view.RuleSet) error {
   295  	m.ctrl.T.Helper()
   296  	ret := m.ctrl.Call(m, "ValidateRuleSet", arg0)
   297  	ret0, _ := ret[0].(error)
   298  	return ret0
   299  }
   300  
   301  // ValidateRuleSet indicates an expected call of ValidateRuleSet.
   302  func (mr *MockStoreMockRecorder) ValidateRuleSet(arg0 interface{}) *gomock.Call {
   303  	mr.mock.ctrl.T.Helper()
   304  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ValidateRuleSet", reflect.TypeOf((*MockStore)(nil).ValidateRuleSet), arg0)
   305  }