mock

package
v0.0.0-...-5ea66d8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 17, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package mock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockKvdb

type MockKvdb struct {
	// contains filtered or unexported fields
}

MockKvdb is a mock of Kvdb interface.

func NewMockKvdb

func NewMockKvdb(ctrl *gomock.Controller) *MockKvdb

NewMockKvdb creates a new mock instance.

func (*MockKvdb) AddLearner

func (m *MockKvdb) AddLearner(arg0, arg1, arg2 string) (map[string][]string, error)

AddLearner mocks base method.

func (*MockKvdb) AddMember

func (m *MockKvdb) AddMember(arg0, arg1, arg2 string) (map[string][]string, error)

AddMember mocks base method.

func (*MockKvdb) AddUser

func (m *MockKvdb) AddUser(arg0, arg1 string) error

AddUser mocks base method.

func (*MockKvdb) Capabilities

func (m *MockKvdb) Capabilities() int

Capabilities mocks base method.

func (*MockKvdb) Compact

func (m *MockKvdb) Compact(arg0 uint64) error

Compact mocks base method.

func (*MockKvdb) CompareAndDelete

func (m *MockKvdb) CompareAndDelete(arg0 *kvdb.KVPair, arg1 kvdb.KVFlags) (*kvdb.KVPair, error)

CompareAndDelete mocks base method.

func (*MockKvdb) CompareAndSet

func (m *MockKvdb) CompareAndSet(arg0 *kvdb.KVPair, arg1 kvdb.KVFlags, arg2 []byte) (*kvdb.KVPair, error)

CompareAndSet mocks base method.

func (*MockKvdb) Create

func (m *MockKvdb) Create(arg0 string, arg1 interface{}, arg2 uint64) (*kvdb.KVPair, error)

Create mocks base method.

func (*MockKvdb) Defragment

func (m *MockKvdb) Defragment(arg0 string, arg1 int) error

Defragment mocks base method.

func (*MockKvdb) Delete

func (m *MockKvdb) Delete(arg0 string) (*kvdb.KVPair, error)

Delete mocks base method.

func (*MockKvdb) DeleteTree

func (m *MockKvdb) DeleteTree(arg0 string) error

DeleteTree mocks base method.

func (*MockKvdb) Deserialize

func (m *MockKvdb) Deserialize(arg0 []byte) (kvdb.KVPairs, error)

Deserialize mocks base method.

func (*MockKvdb) EXPECT

func (m *MockKvdb) EXPECT() *MockKvdbMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockKvdb) Enumerate

func (m *MockKvdb) Enumerate(arg0 string) (kvdb.KVPairs, error)

Enumerate mocks base method.

func (*MockKvdb) EnumerateKVPWithSelect

func (m *MockKvdb) EnumerateKVPWithSelect(arg0 string, arg1 kvdb.EnumerateKVPSelect, arg2 kvdb.CopyKVPSelect) (kvdb.KVPairs, error)

EnumerateKVPWithSelect mocks base method.

func (*MockKvdb) EnumerateWithSelect

func (m *MockKvdb) EnumerateWithSelect(arg0 string, arg1 kvdb.EnumerateSelect, arg2 kvdb.CopySelect) ([]interface{}, error)

EnumerateWithSelect mocks base method.

func (*MockKvdb) Get

func (m *MockKvdb) Get(arg0 string) (*kvdb.KVPair, error)

Get mocks base method.

func (*MockKvdb) GetEndpoints

func (m *MockKvdb) GetEndpoints() []string

GetEndpoints mocks base method.

func (*MockKvdb) GetLockHoldDuration

func (m *MockKvdb) GetLockHoldDuration() time.Duration

GetLockHoldDuration mocks base method.

func (*MockKvdb) GetLockTryDuration

func (m *MockKvdb) GetLockTryDuration() time.Duration

GetLockTryDuration mocks base method.

func (*MockKvdb) GetVal

func (m *MockKvdb) GetVal(arg0 string, arg1 interface{}) (*kvdb.KVPair, error)

GetVal mocks base method.

func (*MockKvdb) GetWithCopy

func (m *MockKvdb) GetWithCopy(arg0 string, arg1 kvdb.CopySelect) (interface{}, error)

GetWithCopy mocks base method.

func (*MockKvdb) GrantUserAccess

func (m *MockKvdb) GrantUserAccess(arg0 string, arg1 kvdb.PermissionType, arg2 string) error

GrantUserAccess mocks base method.

func (*MockKvdb) IsKeyLocked

func (m *MockKvdb) IsKeyLocked(arg0 string) (bool, string, error)

IsKeyLocked mocks base method.

func (*MockKvdb) Keys

func (m *MockKvdb) Keys(arg0, arg1 string) ([]string, error)

Keys mocks base method.

func (*MockKvdb) ListMembers

func (m *MockKvdb) ListMembers() (map[uint64]*kvdb.MemberInfo, error)

ListMembers mocks base method.

func (*MockKvdb) Lock

func (m *MockKvdb) Lock(arg0 string) (*kvdb.KVPair, error)

Lock mocks base method.

func (*MockKvdb) LockWithID

func (m *MockKvdb) LockWithID(arg0, arg1 string) (*kvdb.KVPair, error)

LockWithID mocks base method.

func (*MockKvdb) LockWithTimeout

func (m *MockKvdb) LockWithTimeout(arg0, arg1 string, arg2, arg3 time.Duration) (*kvdb.KVPair, error)

LockWithTimeout mocks base method.

func (*MockKvdb) Put

func (m *MockKvdb) Put(arg0 string, arg1 interface{}, arg2 uint64) (*kvdb.KVPair, error)

Put mocks base method.

func (*MockKvdb) RemoveMember

func (m *MockKvdb) RemoveMember(arg0, arg1 string) error

RemoveMember mocks base method.

func (*MockKvdb) RemoveMemberByID

func (m *MockKvdb) RemoveMemberByID(arg0 uint64) error

RemoveMemberByID mocks base method.

func (*MockKvdb) RemoveUser

func (m *MockKvdb) RemoveUser(arg0 string) error

RemoveUser mocks base method.

func (*MockKvdb) Removed

func (m *MockKvdb) Removed()

Removed mocks base method.

func (*MockKvdb) RevokeUsersAccess

func (m *MockKvdb) RevokeUsersAccess(arg0 string, arg1 kvdb.PermissionType, arg2 string) error

RevokeUsersAccess mocks base method.

func (*MockKvdb) Serialize

func (m *MockKvdb) Serialize() ([]byte, error)

Serialize mocks base method.

func (*MockKvdb) SetEndpoints

func (m *MockKvdb) SetEndpoints(arg0 []string) error

SetEndpoints mocks base method.

func (*MockKvdb) SetFatalCb

func (m *MockKvdb) SetFatalCb(arg0 kvdb.FatalErrorCB)

SetFatalCb mocks base method.

func (*MockKvdb) SetLockHoldDuration

func (m *MockKvdb) SetLockHoldDuration(arg0 time.Duration)

SetLockHoldDuration mocks base method.

func (*MockKvdb) SetWrappedKvdb

func (m *MockKvdb) SetWrappedKvdb(arg0 kvdb.Kvdb) error

SetWrappedKvdb mocks base method.

func (*MockKvdb) SnapPut

func (m *MockKvdb) SnapPut(arg0 *kvdb.KVPair) (*kvdb.KVPair, error)

SnapPut mocks base method.

func (*MockKvdb) Snapshot

func (m *MockKvdb) Snapshot(arg0 []string, arg1 bool) (kvdb.Kvdb, uint64, error)

Snapshot mocks base method.

func (*MockKvdb) String

func (m *MockKvdb) String() string

String mocks base method.

func (*MockKvdb) TxNew

func (m *MockKvdb) TxNew() (kvdb.Tx, error)

TxNew mocks base method.

func (*MockKvdb) Unlock

func (m *MockKvdb) Unlock(arg0 *kvdb.KVPair) error

Unlock mocks base method.

func (*MockKvdb) Update

func (m *MockKvdb) Update(arg0 string, arg1 interface{}, arg2 uint64) (*kvdb.KVPair, error)

Update mocks base method.

func (*MockKvdb) UpdateMember

func (m *MockKvdb) UpdateMember(arg0, arg1, arg2 string) (map[string][]string, error)

UpdateMember mocks base method.

func (*MockKvdb) WatchKey

func (m *MockKvdb) WatchKey(arg0 string, arg1 uint64, arg2 interface{}, arg3 kvdb.WatchCB) error

WatchKey mocks base method.

func (*MockKvdb) WatchTree

func (m *MockKvdb) WatchTree(arg0 string, arg1 uint64, arg2 interface{}, arg3 kvdb.WatchCB) error

WatchTree mocks base method.

func (*MockKvdb) WrappedKvdb

func (m *MockKvdb) WrappedKvdb() kvdb.Kvdb

WrappedKvdb mocks base method.

func (*MockKvdb) WrapperName

func (m *MockKvdb) WrapperName() kvdb.WrapperName

WrapperName mocks base method.

type MockKvdbMockRecorder

type MockKvdbMockRecorder struct {
	// contains filtered or unexported fields
}

MockKvdbMockRecorder is the mock recorder for MockKvdb.

func (*MockKvdbMockRecorder) AddLearner

func (mr *MockKvdbMockRecorder) AddLearner(arg0, arg1, arg2 interface{}) *gomock.Call

AddLearner indicates an expected call of AddLearner.

func (*MockKvdbMockRecorder) AddMember

func (mr *MockKvdbMockRecorder) AddMember(arg0, arg1, arg2 interface{}) *gomock.Call

AddMember indicates an expected call of AddMember.

func (*MockKvdbMockRecorder) AddUser

func (mr *MockKvdbMockRecorder) AddUser(arg0, arg1 interface{}) *gomock.Call

AddUser indicates an expected call of AddUser.

func (*MockKvdbMockRecorder) Capabilities

func (mr *MockKvdbMockRecorder) Capabilities() *gomock.Call

Capabilities indicates an expected call of Capabilities.

func (*MockKvdbMockRecorder) Compact

func (mr *MockKvdbMockRecorder) Compact(arg0 interface{}) *gomock.Call

Compact indicates an expected call of Compact.

func (*MockKvdbMockRecorder) CompareAndDelete

func (mr *MockKvdbMockRecorder) CompareAndDelete(arg0, arg1 interface{}) *gomock.Call

CompareAndDelete indicates an expected call of CompareAndDelete.

func (*MockKvdbMockRecorder) CompareAndSet

func (mr *MockKvdbMockRecorder) CompareAndSet(arg0, arg1, arg2 interface{}) *gomock.Call

CompareAndSet indicates an expected call of CompareAndSet.

func (*MockKvdbMockRecorder) Create

func (mr *MockKvdbMockRecorder) Create(arg0, arg1, arg2 interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockKvdbMockRecorder) Defragment

func (mr *MockKvdbMockRecorder) Defragment(arg0, arg1 interface{}) *gomock.Call

Defragment indicates an expected call of Defragment.

func (*MockKvdbMockRecorder) Delete

func (mr *MockKvdbMockRecorder) Delete(arg0 interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockKvdbMockRecorder) DeleteTree

func (mr *MockKvdbMockRecorder) DeleteTree(arg0 interface{}) *gomock.Call

DeleteTree indicates an expected call of DeleteTree.

func (*MockKvdbMockRecorder) Deserialize

func (mr *MockKvdbMockRecorder) Deserialize(arg0 interface{}) *gomock.Call

Deserialize indicates an expected call of Deserialize.

func (*MockKvdbMockRecorder) Enumerate

func (mr *MockKvdbMockRecorder) Enumerate(arg0 interface{}) *gomock.Call

Enumerate indicates an expected call of Enumerate.

func (*MockKvdbMockRecorder) EnumerateKVPWithSelect

func (mr *MockKvdbMockRecorder) EnumerateKVPWithSelect(arg0, arg1, arg2 interface{}) *gomock.Call

EnumerateKVPWithSelect indicates an expected call of EnumerateKVPWithSelect.

func (*MockKvdbMockRecorder) EnumerateWithSelect

func (mr *MockKvdbMockRecorder) EnumerateWithSelect(arg0, arg1, arg2 interface{}) *gomock.Call

EnumerateWithSelect indicates an expected call of EnumerateWithSelect.

func (*MockKvdbMockRecorder) Get

func (mr *MockKvdbMockRecorder) Get(arg0 interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockKvdbMockRecorder) GetEndpoints

func (mr *MockKvdbMockRecorder) GetEndpoints() *gomock.Call

GetEndpoints indicates an expected call of GetEndpoints.

func (*MockKvdbMockRecorder) GetLockHoldDuration

func (mr *MockKvdbMockRecorder) GetLockHoldDuration() *gomock.Call

GetLockHoldDuration indicates an expected call of GetLockHoldDuration.

func (*MockKvdbMockRecorder) GetLockTryDuration

func (mr *MockKvdbMockRecorder) GetLockTryDuration() *gomock.Call

GetLockTryDuration indicates an expected call of GetLockTryDuration.

func (*MockKvdbMockRecorder) GetVal

func (mr *MockKvdbMockRecorder) GetVal(arg0, arg1 interface{}) *gomock.Call

GetVal indicates an expected call of GetVal.

func (*MockKvdbMockRecorder) GetWithCopy

func (mr *MockKvdbMockRecorder) GetWithCopy(arg0, arg1 interface{}) *gomock.Call

GetWithCopy indicates an expected call of GetWithCopy.

func (*MockKvdbMockRecorder) GrantUserAccess

func (mr *MockKvdbMockRecorder) GrantUserAccess(arg0, arg1, arg2 interface{}) *gomock.Call

GrantUserAccess indicates an expected call of GrantUserAccess.

func (*MockKvdbMockRecorder) IsKeyLocked

func (mr *MockKvdbMockRecorder) IsKeyLocked(arg0 interface{}) *gomock.Call

IsKeyLocked indicates an expected call of IsKeyLocked.

func (*MockKvdbMockRecorder) Keys

func (mr *MockKvdbMockRecorder) Keys(arg0, arg1 interface{}) *gomock.Call

Keys indicates an expected call of Keys.

func (*MockKvdbMockRecorder) ListMembers

func (mr *MockKvdbMockRecorder) ListMembers() *gomock.Call

ListMembers indicates an expected call of ListMembers.

func (*MockKvdbMockRecorder) Lock

func (mr *MockKvdbMockRecorder) Lock(arg0 interface{}) *gomock.Call

Lock indicates an expected call of Lock.

func (*MockKvdbMockRecorder) LockWithID

func (mr *MockKvdbMockRecorder) LockWithID(arg0, arg1 interface{}) *gomock.Call

LockWithID indicates an expected call of LockWithID.

func (*MockKvdbMockRecorder) LockWithTimeout

func (mr *MockKvdbMockRecorder) LockWithTimeout(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

LockWithTimeout indicates an expected call of LockWithTimeout.

func (*MockKvdbMockRecorder) Put

func (mr *MockKvdbMockRecorder) Put(arg0, arg1, arg2 interface{}) *gomock.Call

Put indicates an expected call of Put.

func (*MockKvdbMockRecorder) RemoveMember

func (mr *MockKvdbMockRecorder) RemoveMember(arg0, arg1 interface{}) *gomock.Call

RemoveMember indicates an expected call of RemoveMember.

func (*MockKvdbMockRecorder) RemoveMemberByID

func (mr *MockKvdbMockRecorder) RemoveMemberByID(arg0 interface{}) *gomock.Call

RemoveMemberByID indicates an expected call of RemoveMemberByID.

func (*MockKvdbMockRecorder) RemoveUser

func (mr *MockKvdbMockRecorder) RemoveUser(arg0 interface{}) *gomock.Call

RemoveUser indicates an expected call of RemoveUser.

func (*MockKvdbMockRecorder) Removed

func (mr *MockKvdbMockRecorder) Removed() *gomock.Call

Removed indicates an expected call of Removed.

func (*MockKvdbMockRecorder) RevokeUsersAccess

func (mr *MockKvdbMockRecorder) RevokeUsersAccess(arg0, arg1, arg2 interface{}) *gomock.Call

RevokeUsersAccess indicates an expected call of RevokeUsersAccess.

func (*MockKvdbMockRecorder) Serialize

func (mr *MockKvdbMockRecorder) Serialize() *gomock.Call

Serialize indicates an expected call of Serialize.

func (*MockKvdbMockRecorder) SetEndpoints

func (mr *MockKvdbMockRecorder) SetEndpoints(arg0 interface{}) *gomock.Call

SetEndpoints indicates an expected call of SetEndpoints.

func (*MockKvdbMockRecorder) SetFatalCb

func (mr *MockKvdbMockRecorder) SetFatalCb(arg0 interface{}) *gomock.Call

SetFatalCb indicates an expected call of SetFatalCb.

func (*MockKvdbMockRecorder) SetLockHoldDuration

func (mr *MockKvdbMockRecorder) SetLockHoldDuration(arg0 interface{}) *gomock.Call

SetLockHoldDuration indicates an expected call of SetLockHoldDuration.

func (*MockKvdbMockRecorder) SetWrappedKvdb

func (mr *MockKvdbMockRecorder) SetWrappedKvdb(arg0 interface{}) *gomock.Call

SetWrappedKvdb indicates an expected call of SetWrappedKvdb.

func (*MockKvdbMockRecorder) SnapPut

func (mr *MockKvdbMockRecorder) SnapPut(arg0 interface{}) *gomock.Call

SnapPut indicates an expected call of SnapPut.

func (*MockKvdbMockRecorder) Snapshot

func (mr *MockKvdbMockRecorder) Snapshot(arg0, arg1 interface{}) *gomock.Call

Snapshot indicates an expected call of Snapshot.

func (*MockKvdbMockRecorder) String

func (mr *MockKvdbMockRecorder) String() *gomock.Call

String indicates an expected call of String.

func (*MockKvdbMockRecorder) TxNew

func (mr *MockKvdbMockRecorder) TxNew() *gomock.Call

TxNew indicates an expected call of TxNew.

func (*MockKvdbMockRecorder) Unlock

func (mr *MockKvdbMockRecorder) Unlock(arg0 interface{}) *gomock.Call

Unlock indicates an expected call of Unlock.

func (*MockKvdbMockRecorder) Update

func (mr *MockKvdbMockRecorder) Update(arg0, arg1, arg2 interface{}) *gomock.Call

Update indicates an expected call of Update.

func (*MockKvdbMockRecorder) UpdateMember

func (mr *MockKvdbMockRecorder) UpdateMember(arg0, arg1, arg2 interface{}) *gomock.Call

UpdateMember indicates an expected call of UpdateMember.

func (*MockKvdbMockRecorder) WatchKey

func (mr *MockKvdbMockRecorder) WatchKey(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

WatchKey indicates an expected call of WatchKey.

func (*MockKvdbMockRecorder) WatchTree

func (mr *MockKvdbMockRecorder) WatchTree(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

WatchTree indicates an expected call of WatchTree.

func (*MockKvdbMockRecorder) WrappedKvdb

func (mr *MockKvdbMockRecorder) WrappedKvdb() *gomock.Call

WrappedKvdb indicates an expected call of WrappedKvdb.

func (*MockKvdbMockRecorder) WrapperName

func (mr *MockKvdbMockRecorder) WrapperName() *gomock.Call

WrapperName indicates an expected call of WrapperName.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL