github.com/portworx/kvdb@v0.0.0-20241107215734-a185a966f535/mock/mock_kvdb.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: github.com/portworx/kvdb (interfaces: Kvdb)
     3  
     4  // Package mock is a generated GoMock package.
     5  package mock
     6  
     7  import (
     8  	reflect "reflect"
     9  	time "time"
    10  
    11  	gomock "github.com/golang/mock/gomock"
    12  	kvdb "github.com/portworx/kvdb"
    13  )
    14  
    15  // MockKvdb is a mock of Kvdb interface.
    16  type MockKvdb struct {
    17  	ctrl     *gomock.Controller
    18  	recorder *MockKvdbMockRecorder
    19  }
    20  
    21  // MockKvdbMockRecorder is the mock recorder for MockKvdb.
    22  type MockKvdbMockRecorder struct {
    23  	mock *MockKvdb
    24  }
    25  
    26  // NewMockKvdb creates a new mock instance.
    27  func NewMockKvdb(ctrl *gomock.Controller) *MockKvdb {
    28  	mock := &MockKvdb{ctrl: ctrl}
    29  	mock.recorder = &MockKvdbMockRecorder{mock}
    30  	return mock
    31  }
    32  
    33  // EXPECT returns an object that allows the caller to indicate expected use.
    34  func (m *MockKvdb) EXPECT() *MockKvdbMockRecorder {
    35  	return m.recorder
    36  }
    37  
    38  // AddLearner mocks base method.
    39  func (m *MockKvdb) AddLearner(arg0, arg1, arg2 string) (map[string][]string, error) {
    40  	m.ctrl.T.Helper()
    41  	ret := m.ctrl.Call(m, "AddLearner", arg0, arg1, arg2)
    42  	ret0, _ := ret[0].(map[string][]string)
    43  	ret1, _ := ret[1].(error)
    44  	return ret0, ret1
    45  }
    46  
    47  // AddLearner indicates an expected call of AddLearner.
    48  func (mr *MockKvdbMockRecorder) AddLearner(arg0, arg1, arg2 interface{}) *gomock.Call {
    49  	mr.mock.ctrl.T.Helper()
    50  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddLearner", reflect.TypeOf((*MockKvdb)(nil).AddLearner), arg0, arg1, arg2)
    51  }
    52  
    53  // AddMember mocks base method.
    54  func (m *MockKvdb) AddMember(arg0, arg1, arg2 string) (map[string][]string, error) {
    55  	m.ctrl.T.Helper()
    56  	ret := m.ctrl.Call(m, "AddMember", arg0, arg1, arg2)
    57  	ret0, _ := ret[0].(map[string][]string)
    58  	ret1, _ := ret[1].(error)
    59  	return ret0, ret1
    60  }
    61  
    62  // AddMember indicates an expected call of AddMember.
    63  func (mr *MockKvdbMockRecorder) AddMember(arg0, arg1, arg2 interface{}) *gomock.Call {
    64  	mr.mock.ctrl.T.Helper()
    65  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddMember", reflect.TypeOf((*MockKvdb)(nil).AddMember), arg0, arg1, arg2)
    66  }
    67  
    68  // AddUser mocks base method.
    69  func (m *MockKvdb) AddUser(arg0, arg1 string) error {
    70  	m.ctrl.T.Helper()
    71  	ret := m.ctrl.Call(m, "AddUser", arg0, arg1)
    72  	ret0, _ := ret[0].(error)
    73  	return ret0
    74  }
    75  
    76  // AddUser indicates an expected call of AddUser.
    77  func (mr *MockKvdbMockRecorder) AddUser(arg0, arg1 interface{}) *gomock.Call {
    78  	mr.mock.ctrl.T.Helper()
    79  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddUser", reflect.TypeOf((*MockKvdb)(nil).AddUser), arg0, arg1)
    80  }
    81  
    82  // Capabilities mocks base method.
    83  func (m *MockKvdb) Capabilities() int {
    84  	m.ctrl.T.Helper()
    85  	ret := m.ctrl.Call(m, "Capabilities")
    86  	ret0, _ := ret[0].(int)
    87  	return ret0
    88  }
    89  
    90  // Capabilities indicates an expected call of Capabilities.
    91  func (mr *MockKvdbMockRecorder) Capabilities() *gomock.Call {
    92  	mr.mock.ctrl.T.Helper()
    93  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Capabilities", reflect.TypeOf((*MockKvdb)(nil).Capabilities))
    94  }
    95  
    96  // Compact mocks base method.
    97  func (m *MockKvdb) Compact(arg0 uint64) error {
    98  	m.ctrl.T.Helper()
    99  	ret := m.ctrl.Call(m, "Compact", arg0)
   100  	ret0, _ := ret[0].(error)
   101  	return ret0
   102  }
   103  
   104  // Compact indicates an expected call of Compact.
   105  func (mr *MockKvdbMockRecorder) Compact(arg0 interface{}) *gomock.Call {
   106  	mr.mock.ctrl.T.Helper()
   107  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Compact", reflect.TypeOf((*MockKvdb)(nil).Compact), arg0)
   108  }
   109  
   110  // CompareAndDelete mocks base method.
   111  func (m *MockKvdb) CompareAndDelete(arg0 *kvdb.KVPair, arg1 kvdb.KVFlags) (*kvdb.KVPair, error) {
   112  	m.ctrl.T.Helper()
   113  	ret := m.ctrl.Call(m, "CompareAndDelete", arg0, arg1)
   114  	ret0, _ := ret[0].(*kvdb.KVPair)
   115  	ret1, _ := ret[1].(error)
   116  	return ret0, ret1
   117  }
   118  
   119  // CompareAndDelete indicates an expected call of CompareAndDelete.
   120  func (mr *MockKvdbMockRecorder) CompareAndDelete(arg0, arg1 interface{}) *gomock.Call {
   121  	mr.mock.ctrl.T.Helper()
   122  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CompareAndDelete", reflect.TypeOf((*MockKvdb)(nil).CompareAndDelete), arg0, arg1)
   123  }
   124  
   125  // CompareAndSet mocks base method.
   126  func (m *MockKvdb) CompareAndSet(arg0 *kvdb.KVPair, arg1 kvdb.KVFlags, arg2 []byte) (*kvdb.KVPair, error) {
   127  	m.ctrl.T.Helper()
   128  	ret := m.ctrl.Call(m, "CompareAndSet", arg0, arg1, arg2)
   129  	ret0, _ := ret[0].(*kvdb.KVPair)
   130  	ret1, _ := ret[1].(error)
   131  	return ret0, ret1
   132  }
   133  
   134  // CompareAndSet indicates an expected call of CompareAndSet.
   135  func (mr *MockKvdbMockRecorder) CompareAndSet(arg0, arg1, arg2 interface{}) *gomock.Call {
   136  	mr.mock.ctrl.T.Helper()
   137  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CompareAndSet", reflect.TypeOf((*MockKvdb)(nil).CompareAndSet), arg0, arg1, arg2)
   138  }
   139  
   140  // Create mocks base method.
   141  func (m *MockKvdb) Create(arg0 string, arg1 interface{}, arg2 uint64) (*kvdb.KVPair, error) {
   142  	m.ctrl.T.Helper()
   143  	ret := m.ctrl.Call(m, "Create", arg0, arg1, arg2)
   144  	ret0, _ := ret[0].(*kvdb.KVPair)
   145  	ret1, _ := ret[1].(error)
   146  	return ret0, ret1
   147  }
   148  
   149  // Create indicates an expected call of Create.
   150  func (mr *MockKvdbMockRecorder) Create(arg0, arg1, arg2 interface{}) *gomock.Call {
   151  	mr.mock.ctrl.T.Helper()
   152  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockKvdb)(nil).Create), arg0, arg1, arg2)
   153  }
   154  
   155  // Defragment mocks base method.
   156  func (m *MockKvdb) Defragment(arg0 string, arg1 int) error {
   157  	m.ctrl.T.Helper()
   158  	ret := m.ctrl.Call(m, "Defragment", arg0, arg1)
   159  	ret0, _ := ret[0].(error)
   160  	return ret0
   161  }
   162  
   163  // Defragment indicates an expected call of Defragment.
   164  func (mr *MockKvdbMockRecorder) Defragment(arg0, arg1 interface{}) *gomock.Call {
   165  	mr.mock.ctrl.T.Helper()
   166  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Defragment", reflect.TypeOf((*MockKvdb)(nil).Defragment), arg0, arg1)
   167  }
   168  
   169  // Delete mocks base method.
   170  func (m *MockKvdb) Delete(arg0 string) (*kvdb.KVPair, error) {
   171  	m.ctrl.T.Helper()
   172  	ret := m.ctrl.Call(m, "Delete", arg0)
   173  	ret0, _ := ret[0].(*kvdb.KVPair)
   174  	ret1, _ := ret[1].(error)
   175  	return ret0, ret1
   176  }
   177  
   178  // Delete indicates an expected call of Delete.
   179  func (mr *MockKvdbMockRecorder) Delete(arg0 interface{}) *gomock.Call {
   180  	mr.mock.ctrl.T.Helper()
   181  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockKvdb)(nil).Delete), arg0)
   182  }
   183  
   184  // DeleteTree mocks base method.
   185  func (m *MockKvdb) DeleteTree(arg0 string) error {
   186  	m.ctrl.T.Helper()
   187  	ret := m.ctrl.Call(m, "DeleteTree", arg0)
   188  	ret0, _ := ret[0].(error)
   189  	return ret0
   190  }
   191  
   192  // DeleteTree indicates an expected call of DeleteTree.
   193  func (mr *MockKvdbMockRecorder) DeleteTree(arg0 interface{}) *gomock.Call {
   194  	mr.mock.ctrl.T.Helper()
   195  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteTree", reflect.TypeOf((*MockKvdb)(nil).DeleteTree), arg0)
   196  }
   197  
   198  // Deserialize mocks base method.
   199  func (m *MockKvdb) Deserialize(arg0 []byte) (kvdb.KVPairs, error) {
   200  	m.ctrl.T.Helper()
   201  	ret := m.ctrl.Call(m, "Deserialize", arg0)
   202  	ret0, _ := ret[0].(kvdb.KVPairs)
   203  	ret1, _ := ret[1].(error)
   204  	return ret0, ret1
   205  }
   206  
   207  // Deserialize indicates an expected call of Deserialize.
   208  func (mr *MockKvdbMockRecorder) Deserialize(arg0 interface{}) *gomock.Call {
   209  	mr.mock.ctrl.T.Helper()
   210  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Deserialize", reflect.TypeOf((*MockKvdb)(nil).Deserialize), arg0)
   211  }
   212  
   213  // Enumerate mocks base method.
   214  func (m *MockKvdb) Enumerate(arg0 string) (kvdb.KVPairs, error) {
   215  	m.ctrl.T.Helper()
   216  	ret := m.ctrl.Call(m, "Enumerate", arg0)
   217  	ret0, _ := ret[0].(kvdb.KVPairs)
   218  	ret1, _ := ret[1].(error)
   219  	return ret0, ret1
   220  }
   221  
   222  // Enumerate indicates an expected call of Enumerate.
   223  func (mr *MockKvdbMockRecorder) Enumerate(arg0 interface{}) *gomock.Call {
   224  	mr.mock.ctrl.T.Helper()
   225  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Enumerate", reflect.TypeOf((*MockKvdb)(nil).Enumerate), arg0)
   226  }
   227  
   228  // EnumerateKVPWithSelect mocks base method.
   229  func (m *MockKvdb) EnumerateKVPWithSelect(arg0 string, arg1 kvdb.EnumerateKVPSelect, arg2 kvdb.CopyKVPSelect) (kvdb.KVPairs, error) {
   230  	m.ctrl.T.Helper()
   231  	ret := m.ctrl.Call(m, "EnumerateKVPWithSelect", arg0, arg1, arg2)
   232  	ret0, _ := ret[0].(kvdb.KVPairs)
   233  	ret1, _ := ret[1].(error)
   234  	return ret0, ret1
   235  }
   236  
   237  // EnumerateKVPWithSelect indicates an expected call of EnumerateKVPWithSelect.
   238  func (mr *MockKvdbMockRecorder) EnumerateKVPWithSelect(arg0, arg1, arg2 interface{}) *gomock.Call {
   239  	mr.mock.ctrl.T.Helper()
   240  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EnumerateKVPWithSelect", reflect.TypeOf((*MockKvdb)(nil).EnumerateKVPWithSelect), arg0, arg1, arg2)
   241  }
   242  
   243  // EnumerateWithSelect mocks base method.
   244  func (m *MockKvdb) EnumerateWithSelect(arg0 string, arg1 kvdb.EnumerateSelect, arg2 kvdb.CopySelect) ([]interface{}, error) {
   245  	m.ctrl.T.Helper()
   246  	ret := m.ctrl.Call(m, "EnumerateWithSelect", arg0, arg1, arg2)
   247  	ret0, _ := ret[0].([]interface{})
   248  	ret1, _ := ret[1].(error)
   249  	return ret0, ret1
   250  }
   251  
   252  // EnumerateWithSelect indicates an expected call of EnumerateWithSelect.
   253  func (mr *MockKvdbMockRecorder) EnumerateWithSelect(arg0, arg1, arg2 interface{}) *gomock.Call {
   254  	mr.mock.ctrl.T.Helper()
   255  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EnumerateWithSelect", reflect.TypeOf((*MockKvdb)(nil).EnumerateWithSelect), arg0, arg1, arg2)
   256  }
   257  
   258  // Get mocks base method.
   259  func (m *MockKvdb) Get(arg0 string) (*kvdb.KVPair, error) {
   260  	m.ctrl.T.Helper()
   261  	ret := m.ctrl.Call(m, "Get", arg0)
   262  	ret0, _ := ret[0].(*kvdb.KVPair)
   263  	ret1, _ := ret[1].(error)
   264  	return ret0, ret1
   265  }
   266  
   267  // Get indicates an expected call of Get.
   268  func (mr *MockKvdbMockRecorder) Get(arg0 interface{}) *gomock.Call {
   269  	mr.mock.ctrl.T.Helper()
   270  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockKvdb)(nil).Get), arg0)
   271  }
   272  
   273  // GetEndpoints mocks base method.
   274  func (m *MockKvdb) GetEndpoints() []string {
   275  	m.ctrl.T.Helper()
   276  	ret := m.ctrl.Call(m, "GetEndpoints")
   277  	ret0, _ := ret[0].([]string)
   278  	return ret0
   279  }
   280  
   281  // GetEndpoints indicates an expected call of GetEndpoints.
   282  func (mr *MockKvdbMockRecorder) GetEndpoints() *gomock.Call {
   283  	mr.mock.ctrl.T.Helper()
   284  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetEndpoints", reflect.TypeOf((*MockKvdb)(nil).GetEndpoints))
   285  }
   286  
   287  // GetLockHoldDuration mocks base method.
   288  func (m *MockKvdb) GetLockHoldDuration() time.Duration {
   289  	m.ctrl.T.Helper()
   290  	ret := m.ctrl.Call(m, "GetLockHoldDuration")
   291  	ret0, _ := ret[0].(time.Duration)
   292  	return ret0
   293  }
   294  
   295  // GetLockHoldDuration indicates an expected call of GetLockHoldDuration.
   296  func (mr *MockKvdbMockRecorder) GetLockHoldDuration() *gomock.Call {
   297  	mr.mock.ctrl.T.Helper()
   298  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetLockHoldDuration", reflect.TypeOf((*MockKvdb)(nil).GetLockHoldDuration))
   299  }
   300  
   301  // GetLockTryDuration mocks base method.
   302  func (m *MockKvdb) GetLockTryDuration() time.Duration {
   303  	m.ctrl.T.Helper()
   304  	ret := m.ctrl.Call(m, "GetLockTryDuration")
   305  	ret0, _ := ret[0].(time.Duration)
   306  	return ret0
   307  }
   308  
   309  // GetLockTryDuration indicates an expected call of GetLockTryDuration.
   310  func (mr *MockKvdbMockRecorder) GetLockTryDuration() *gomock.Call {
   311  	mr.mock.ctrl.T.Helper()
   312  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetLockTryDuration", reflect.TypeOf((*MockKvdb)(nil).GetLockTryDuration))
   313  }
   314  
   315  // GetVal mocks base method.
   316  func (m *MockKvdb) GetVal(arg0 string, arg1 interface{}) (*kvdb.KVPair, error) {
   317  	m.ctrl.T.Helper()
   318  	ret := m.ctrl.Call(m, "GetVal", arg0, arg1)
   319  	ret0, _ := ret[0].(*kvdb.KVPair)
   320  	ret1, _ := ret[1].(error)
   321  	return ret0, ret1
   322  }
   323  
   324  // GetVal indicates an expected call of GetVal.
   325  func (mr *MockKvdbMockRecorder) GetVal(arg0, arg1 interface{}) *gomock.Call {
   326  	mr.mock.ctrl.T.Helper()
   327  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetVal", reflect.TypeOf((*MockKvdb)(nil).GetVal), arg0, arg1)
   328  }
   329  
   330  // GetWithCopy mocks base method.
   331  func (m *MockKvdb) GetWithCopy(arg0 string, arg1 kvdb.CopySelect) (interface{}, error) {
   332  	m.ctrl.T.Helper()
   333  	ret := m.ctrl.Call(m, "GetWithCopy", arg0, arg1)
   334  	ret0, _ := ret[0].(interface{})
   335  	ret1, _ := ret[1].(error)
   336  	return ret0, ret1
   337  }
   338  
   339  // GetWithCopy indicates an expected call of GetWithCopy.
   340  func (mr *MockKvdbMockRecorder) GetWithCopy(arg0, arg1 interface{}) *gomock.Call {
   341  	mr.mock.ctrl.T.Helper()
   342  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetWithCopy", reflect.TypeOf((*MockKvdb)(nil).GetWithCopy), arg0, arg1)
   343  }
   344  
   345  // GrantUserAccess mocks base method.
   346  func (m *MockKvdb) GrantUserAccess(arg0 string, arg1 kvdb.PermissionType, arg2 string) error {
   347  	m.ctrl.T.Helper()
   348  	ret := m.ctrl.Call(m, "GrantUserAccess", arg0, arg1, arg2)
   349  	ret0, _ := ret[0].(error)
   350  	return ret0
   351  }
   352  
   353  // GrantUserAccess indicates an expected call of GrantUserAccess.
   354  func (mr *MockKvdbMockRecorder) GrantUserAccess(arg0, arg1, arg2 interface{}) *gomock.Call {
   355  	mr.mock.ctrl.T.Helper()
   356  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GrantUserAccess", reflect.TypeOf((*MockKvdb)(nil).GrantUserAccess), arg0, arg1, arg2)
   357  }
   358  
   359  // IsKeyLocked mocks base method.
   360  func (m *MockKvdb) IsKeyLocked(arg0 string) (bool, string, error) {
   361  	m.ctrl.T.Helper()
   362  	ret := m.ctrl.Call(m, "IsKeyLocked", arg0)
   363  	ret0, _ := ret[0].(bool)
   364  	ret1, _ := ret[1].(string)
   365  	ret2, _ := ret[2].(error)
   366  	return ret0, ret1, ret2
   367  }
   368  
   369  // IsKeyLocked indicates an expected call of IsKeyLocked.
   370  func (mr *MockKvdbMockRecorder) IsKeyLocked(arg0 interface{}) *gomock.Call {
   371  	mr.mock.ctrl.T.Helper()
   372  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsKeyLocked", reflect.TypeOf((*MockKvdb)(nil).IsKeyLocked), arg0)
   373  }
   374  
   375  // Keys mocks base method.
   376  func (m *MockKvdb) Keys(arg0, arg1 string) ([]string, error) {
   377  	m.ctrl.T.Helper()
   378  	ret := m.ctrl.Call(m, "Keys", arg0, arg1)
   379  	ret0, _ := ret[0].([]string)
   380  	ret1, _ := ret[1].(error)
   381  	return ret0, ret1
   382  }
   383  
   384  // Keys indicates an expected call of Keys.
   385  func (mr *MockKvdbMockRecorder) Keys(arg0, arg1 interface{}) *gomock.Call {
   386  	mr.mock.ctrl.T.Helper()
   387  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Keys", reflect.TypeOf((*MockKvdb)(nil).Keys), arg0, arg1)
   388  }
   389  
   390  // ListMembers mocks base method.
   391  func (m *MockKvdb) ListMembers() (map[uint64]*kvdb.MemberInfo, error) {
   392  	m.ctrl.T.Helper()
   393  	ret := m.ctrl.Call(m, "ListMembers")
   394  	ret0, _ := ret[0].(map[uint64]*kvdb.MemberInfo)
   395  	ret1, _ := ret[1].(error)
   396  	return ret0, ret1
   397  }
   398  
   399  // ListMembers indicates an expected call of ListMembers.
   400  func (mr *MockKvdbMockRecorder) ListMembers() *gomock.Call {
   401  	mr.mock.ctrl.T.Helper()
   402  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListMembers", reflect.TypeOf((*MockKvdb)(nil).ListMembers))
   403  }
   404  
   405  // Lock mocks base method.
   406  func (m *MockKvdb) Lock(arg0 string) (*kvdb.KVPair, error) {
   407  	m.ctrl.T.Helper()
   408  	ret := m.ctrl.Call(m, "Lock", arg0)
   409  	ret0, _ := ret[0].(*kvdb.KVPair)
   410  	ret1, _ := ret[1].(error)
   411  	return ret0, ret1
   412  }
   413  
   414  // Lock indicates an expected call of Lock.
   415  func (mr *MockKvdbMockRecorder) Lock(arg0 interface{}) *gomock.Call {
   416  	mr.mock.ctrl.T.Helper()
   417  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Lock", reflect.TypeOf((*MockKvdb)(nil).Lock), arg0)
   418  }
   419  
   420  // LockWithID mocks base method.
   421  func (m *MockKvdb) LockWithID(arg0, arg1 string) (*kvdb.KVPair, error) {
   422  	m.ctrl.T.Helper()
   423  	ret := m.ctrl.Call(m, "LockWithID", arg0, arg1)
   424  	ret0, _ := ret[0].(*kvdb.KVPair)
   425  	ret1, _ := ret[1].(error)
   426  	return ret0, ret1
   427  }
   428  
   429  // LockWithID indicates an expected call of LockWithID.
   430  func (mr *MockKvdbMockRecorder) LockWithID(arg0, arg1 interface{}) *gomock.Call {
   431  	mr.mock.ctrl.T.Helper()
   432  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LockWithID", reflect.TypeOf((*MockKvdb)(nil).LockWithID), arg0, arg1)
   433  }
   434  
   435  // LockWithTimeout mocks base method.
   436  func (m *MockKvdb) LockWithTimeout(arg0, arg1 string, arg2, arg3 time.Duration) (*kvdb.KVPair, error) {
   437  	m.ctrl.T.Helper()
   438  	ret := m.ctrl.Call(m, "LockWithTimeout", arg0, arg1, arg2, arg3)
   439  	ret0, _ := ret[0].(*kvdb.KVPair)
   440  	ret1, _ := ret[1].(error)
   441  	return ret0, ret1
   442  }
   443  
   444  // LockWithTimeout indicates an expected call of LockWithTimeout.
   445  func (mr *MockKvdbMockRecorder) LockWithTimeout(arg0, arg1, arg2, arg3 interface{}) *gomock.Call {
   446  	mr.mock.ctrl.T.Helper()
   447  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LockWithTimeout", reflect.TypeOf((*MockKvdb)(nil).LockWithTimeout), arg0, arg1, arg2, arg3)
   448  }
   449  
   450  // Put mocks base method.
   451  func (m *MockKvdb) Put(arg0 string, arg1 interface{}, arg2 uint64) (*kvdb.KVPair, error) {
   452  	m.ctrl.T.Helper()
   453  	ret := m.ctrl.Call(m, "Put", arg0, arg1, arg2)
   454  	ret0, _ := ret[0].(*kvdb.KVPair)
   455  	ret1, _ := ret[1].(error)
   456  	return ret0, ret1
   457  }
   458  
   459  // Put indicates an expected call of Put.
   460  func (mr *MockKvdbMockRecorder) Put(arg0, arg1, arg2 interface{}) *gomock.Call {
   461  	mr.mock.ctrl.T.Helper()
   462  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Put", reflect.TypeOf((*MockKvdb)(nil).Put), arg0, arg1, arg2)
   463  }
   464  
   465  // RemoveMember mocks base method.
   466  func (m *MockKvdb) RemoveMember(arg0, arg1 string) error {
   467  	m.ctrl.T.Helper()
   468  	ret := m.ctrl.Call(m, "RemoveMember", arg0, arg1)
   469  	ret0, _ := ret[0].(error)
   470  	return ret0
   471  }
   472  
   473  // RemoveMember indicates an expected call of RemoveMember.
   474  func (mr *MockKvdbMockRecorder) RemoveMember(arg0, arg1 interface{}) *gomock.Call {
   475  	mr.mock.ctrl.T.Helper()
   476  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemoveMember", reflect.TypeOf((*MockKvdb)(nil).RemoveMember), arg0, arg1)
   477  }
   478  
   479  // RemoveMemberByID mocks base method.
   480  func (m *MockKvdb) RemoveMemberByID(arg0 uint64) error {
   481  	m.ctrl.T.Helper()
   482  	ret := m.ctrl.Call(m, "RemoveMemberByID", arg0)
   483  	ret0, _ := ret[0].(error)
   484  	return ret0
   485  }
   486  
   487  // RemoveMemberByID indicates an expected call of RemoveMemberByID.
   488  func (mr *MockKvdbMockRecorder) RemoveMemberByID(arg0 interface{}) *gomock.Call {
   489  	mr.mock.ctrl.T.Helper()
   490  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemoveMemberByID", reflect.TypeOf((*MockKvdb)(nil).RemoveMemberByID), arg0)
   491  }
   492  
   493  // RemoveUser mocks base method.
   494  func (m *MockKvdb) RemoveUser(arg0 string) error {
   495  	m.ctrl.T.Helper()
   496  	ret := m.ctrl.Call(m, "RemoveUser", arg0)
   497  	ret0, _ := ret[0].(error)
   498  	return ret0
   499  }
   500  
   501  // RemoveUser indicates an expected call of RemoveUser.
   502  func (mr *MockKvdbMockRecorder) RemoveUser(arg0 interface{}) *gomock.Call {
   503  	mr.mock.ctrl.T.Helper()
   504  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemoveUser", reflect.TypeOf((*MockKvdb)(nil).RemoveUser), arg0)
   505  }
   506  
   507  // Removed mocks base method.
   508  func (m *MockKvdb) Removed() {
   509  	m.ctrl.T.Helper()
   510  	m.ctrl.Call(m, "Removed")
   511  }
   512  
   513  // Removed indicates an expected call of Removed.
   514  func (mr *MockKvdbMockRecorder) Removed() *gomock.Call {
   515  	mr.mock.ctrl.T.Helper()
   516  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Removed", reflect.TypeOf((*MockKvdb)(nil).Removed))
   517  }
   518  
   519  // RevokeUsersAccess mocks base method.
   520  func (m *MockKvdb) RevokeUsersAccess(arg0 string, arg1 kvdb.PermissionType, arg2 string) error {
   521  	m.ctrl.T.Helper()
   522  	ret := m.ctrl.Call(m, "RevokeUsersAccess", arg0, arg1, arg2)
   523  	ret0, _ := ret[0].(error)
   524  	return ret0
   525  }
   526  
   527  // RevokeUsersAccess indicates an expected call of RevokeUsersAccess.
   528  func (mr *MockKvdbMockRecorder) RevokeUsersAccess(arg0, arg1, arg2 interface{}) *gomock.Call {
   529  	mr.mock.ctrl.T.Helper()
   530  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RevokeUsersAccess", reflect.TypeOf((*MockKvdb)(nil).RevokeUsersAccess), arg0, arg1, arg2)
   531  }
   532  
   533  // Serialize mocks base method.
   534  func (m *MockKvdb) Serialize() ([]byte, error) {
   535  	m.ctrl.T.Helper()
   536  	ret := m.ctrl.Call(m, "Serialize")
   537  	ret0, _ := ret[0].([]byte)
   538  	ret1, _ := ret[1].(error)
   539  	return ret0, ret1
   540  }
   541  
   542  // Serialize indicates an expected call of Serialize.
   543  func (mr *MockKvdbMockRecorder) Serialize() *gomock.Call {
   544  	mr.mock.ctrl.T.Helper()
   545  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Serialize", reflect.TypeOf((*MockKvdb)(nil).Serialize))
   546  }
   547  
   548  // SetEndpoints mocks base method.
   549  func (m *MockKvdb) SetEndpoints(arg0 []string) error {
   550  	m.ctrl.T.Helper()
   551  	ret := m.ctrl.Call(m, "SetEndpoints", arg0)
   552  	ret0, _ := ret[0].(error)
   553  	return ret0
   554  }
   555  
   556  // SetEndpoints indicates an expected call of SetEndpoints.
   557  func (mr *MockKvdbMockRecorder) SetEndpoints(arg0 interface{}) *gomock.Call {
   558  	mr.mock.ctrl.T.Helper()
   559  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetEndpoints", reflect.TypeOf((*MockKvdb)(nil).SetEndpoints), arg0)
   560  }
   561  
   562  // SetFatalCb mocks base method.
   563  func (m *MockKvdb) SetFatalCb(arg0 kvdb.FatalErrorCB) {
   564  	m.ctrl.T.Helper()
   565  	m.ctrl.Call(m, "SetFatalCb", arg0)
   566  }
   567  
   568  // SetFatalCb indicates an expected call of SetFatalCb.
   569  func (mr *MockKvdbMockRecorder) SetFatalCb(arg0 interface{}) *gomock.Call {
   570  	mr.mock.ctrl.T.Helper()
   571  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetFatalCb", reflect.TypeOf((*MockKvdb)(nil).SetFatalCb), arg0)
   572  }
   573  
   574  // SetLockHoldDuration mocks base method.
   575  func (m *MockKvdb) SetLockHoldDuration(arg0 time.Duration) {
   576  	m.ctrl.T.Helper()
   577  	m.ctrl.Call(m, "SetLockHoldDuration", arg0)
   578  }
   579  
   580  // SetLockHoldDuration indicates an expected call of SetLockHoldDuration.
   581  func (mr *MockKvdbMockRecorder) SetLockHoldDuration(arg0 interface{}) *gomock.Call {
   582  	mr.mock.ctrl.T.Helper()
   583  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetLockHoldDuration", reflect.TypeOf((*MockKvdb)(nil).SetLockHoldDuration), arg0)
   584  }
   585  
   586  // SetWrappedKvdb mocks base method.
   587  func (m *MockKvdb) SetWrappedKvdb(arg0 kvdb.Kvdb) error {
   588  	m.ctrl.T.Helper()
   589  	ret := m.ctrl.Call(m, "SetWrappedKvdb", arg0)
   590  	ret0, _ := ret[0].(error)
   591  	return ret0
   592  }
   593  
   594  // SetWrappedKvdb indicates an expected call of SetWrappedKvdb.
   595  func (mr *MockKvdbMockRecorder) SetWrappedKvdb(arg0 interface{}) *gomock.Call {
   596  	mr.mock.ctrl.T.Helper()
   597  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetWrappedKvdb", reflect.TypeOf((*MockKvdb)(nil).SetWrappedKvdb), arg0)
   598  }
   599  
   600  // SnapPut mocks base method.
   601  func (m *MockKvdb) SnapPut(arg0 *kvdb.KVPair) (*kvdb.KVPair, error) {
   602  	m.ctrl.T.Helper()
   603  	ret := m.ctrl.Call(m, "SnapPut", arg0)
   604  	ret0, _ := ret[0].(*kvdb.KVPair)
   605  	ret1, _ := ret[1].(error)
   606  	return ret0, ret1
   607  }
   608  
   609  // SnapPut indicates an expected call of SnapPut.
   610  func (mr *MockKvdbMockRecorder) SnapPut(arg0 interface{}) *gomock.Call {
   611  	mr.mock.ctrl.T.Helper()
   612  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SnapPut", reflect.TypeOf((*MockKvdb)(nil).SnapPut), arg0)
   613  }
   614  
   615  // Snapshot mocks base method.
   616  func (m *MockKvdb) Snapshot(arg0 []string, arg1 bool) (kvdb.Kvdb, uint64, error) {
   617  	m.ctrl.T.Helper()
   618  	ret := m.ctrl.Call(m, "Snapshot", arg0, arg1)
   619  	ret0, _ := ret[0].(kvdb.Kvdb)
   620  	ret1, _ := ret[1].(uint64)
   621  	ret2, _ := ret[2].(error)
   622  	return ret0, ret1, ret2
   623  }
   624  
   625  // Snapshot indicates an expected call of Snapshot.
   626  func (mr *MockKvdbMockRecorder) Snapshot(arg0, arg1 interface{}) *gomock.Call {
   627  	mr.mock.ctrl.T.Helper()
   628  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Snapshot", reflect.TypeOf((*MockKvdb)(nil).Snapshot), arg0, arg1)
   629  }
   630  
   631  // String mocks base method.
   632  func (m *MockKvdb) String() string {
   633  	m.ctrl.T.Helper()
   634  	ret := m.ctrl.Call(m, "String")
   635  	ret0, _ := ret[0].(string)
   636  	return ret0
   637  }
   638  
   639  // String indicates an expected call of String.
   640  func (mr *MockKvdbMockRecorder) String() *gomock.Call {
   641  	mr.mock.ctrl.T.Helper()
   642  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "String", reflect.TypeOf((*MockKvdb)(nil).String))
   643  }
   644  
   645  // TxNew mocks base method.
   646  func (m *MockKvdb) TxNew() (kvdb.Tx, error) {
   647  	m.ctrl.T.Helper()
   648  	ret := m.ctrl.Call(m, "TxNew")
   649  	ret0, _ := ret[0].(kvdb.Tx)
   650  	ret1, _ := ret[1].(error)
   651  	return ret0, ret1
   652  }
   653  
   654  // TxNew indicates an expected call of TxNew.
   655  func (mr *MockKvdbMockRecorder) TxNew() *gomock.Call {
   656  	mr.mock.ctrl.T.Helper()
   657  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TxNew", reflect.TypeOf((*MockKvdb)(nil).TxNew))
   658  }
   659  
   660  // Unlock mocks base method.
   661  func (m *MockKvdb) Unlock(arg0 *kvdb.KVPair) error {
   662  	m.ctrl.T.Helper()
   663  	ret := m.ctrl.Call(m, "Unlock", arg0)
   664  	ret0, _ := ret[0].(error)
   665  	return ret0
   666  }
   667  
   668  // Unlock indicates an expected call of Unlock.
   669  func (mr *MockKvdbMockRecorder) Unlock(arg0 interface{}) *gomock.Call {
   670  	mr.mock.ctrl.T.Helper()
   671  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Unlock", reflect.TypeOf((*MockKvdb)(nil).Unlock), arg0)
   672  }
   673  
   674  // Update mocks base method.
   675  func (m *MockKvdb) Update(arg0 string, arg1 interface{}, arg2 uint64) (*kvdb.KVPair, error) {
   676  	m.ctrl.T.Helper()
   677  	ret := m.ctrl.Call(m, "Update", arg0, arg1, arg2)
   678  	ret0, _ := ret[0].(*kvdb.KVPair)
   679  	ret1, _ := ret[1].(error)
   680  	return ret0, ret1
   681  }
   682  
   683  // Update indicates an expected call of Update.
   684  func (mr *MockKvdbMockRecorder) Update(arg0, arg1, arg2 interface{}) *gomock.Call {
   685  	mr.mock.ctrl.T.Helper()
   686  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockKvdb)(nil).Update), arg0, arg1, arg2)
   687  }
   688  
   689  // UpdateMember mocks base method.
   690  func (m *MockKvdb) UpdateMember(arg0, arg1, arg2 string) (map[string][]string, error) {
   691  	m.ctrl.T.Helper()
   692  	ret := m.ctrl.Call(m, "UpdateMember", arg0, arg1, arg2)
   693  	ret0, _ := ret[0].(map[string][]string)
   694  	ret1, _ := ret[1].(error)
   695  	return ret0, ret1
   696  }
   697  
   698  // UpdateMember indicates an expected call of UpdateMember.
   699  func (mr *MockKvdbMockRecorder) UpdateMember(arg0, arg1, arg2 interface{}) *gomock.Call {
   700  	mr.mock.ctrl.T.Helper()
   701  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateMember", reflect.TypeOf((*MockKvdb)(nil).UpdateMember), arg0, arg1, arg2)
   702  }
   703  
   704  // WatchKey mocks base method.
   705  func (m *MockKvdb) WatchKey(arg0 string, arg1 uint64, arg2 interface{}, arg3 kvdb.WatchCB) error {
   706  	m.ctrl.T.Helper()
   707  	ret := m.ctrl.Call(m, "WatchKey", arg0, arg1, arg2, arg3)
   708  	ret0, _ := ret[0].(error)
   709  	return ret0
   710  }
   711  
   712  // WatchKey indicates an expected call of WatchKey.
   713  func (mr *MockKvdbMockRecorder) WatchKey(arg0, arg1, arg2, arg3 interface{}) *gomock.Call {
   714  	mr.mock.ctrl.T.Helper()
   715  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WatchKey", reflect.TypeOf((*MockKvdb)(nil).WatchKey), arg0, arg1, arg2, arg3)
   716  }
   717  
   718  // WatchTree mocks base method.
   719  func (m *MockKvdb) WatchTree(arg0 string, arg1 uint64, arg2 interface{}, arg3 kvdb.WatchCB) error {
   720  	m.ctrl.T.Helper()
   721  	ret := m.ctrl.Call(m, "WatchTree", arg0, arg1, arg2, arg3)
   722  	ret0, _ := ret[0].(error)
   723  	return ret0
   724  }
   725  
   726  // WatchTree indicates an expected call of WatchTree.
   727  func (mr *MockKvdbMockRecorder) WatchTree(arg0, arg1, arg2, arg3 interface{}) *gomock.Call {
   728  	mr.mock.ctrl.T.Helper()
   729  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WatchTree", reflect.TypeOf((*MockKvdb)(nil).WatchTree), arg0, arg1, arg2, arg3)
   730  }
   731  
   732  // WrappedKvdb mocks base method.
   733  func (m *MockKvdb) WrappedKvdb() kvdb.Kvdb {
   734  	m.ctrl.T.Helper()
   735  	ret := m.ctrl.Call(m, "WrappedKvdb")
   736  	ret0, _ := ret[0].(kvdb.Kvdb)
   737  	return ret0
   738  }
   739  
   740  // WrappedKvdb indicates an expected call of WrappedKvdb.
   741  func (mr *MockKvdbMockRecorder) WrappedKvdb() *gomock.Call {
   742  	mr.mock.ctrl.T.Helper()
   743  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WrappedKvdb", reflect.TypeOf((*MockKvdb)(nil).WrappedKvdb))
   744  }
   745  
   746  // WrapperName mocks base method.
   747  func (m *MockKvdb) WrapperName() kvdb.WrapperName {
   748  	m.ctrl.T.Helper()
   749  	ret := m.ctrl.Call(m, "WrapperName")
   750  	ret0, _ := ret[0].(kvdb.WrapperName)
   751  	return ret0
   752  }
   753  
   754  // WrapperName indicates an expected call of WrapperName.
   755  func (mr *MockKvdbMockRecorder) WrapperName() *gomock.Call {
   756  	mr.mock.ctrl.T.Helper()
   757  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WrapperName", reflect.TypeOf((*MockKvdb)(nil).WrapperName))
   758  }