mock_store

package
v0.0.0-...-0ab759d Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package mock_store is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockKeystore

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

MockKeystore is a mock of Keystore interface

func NewMockKeystore

func NewMockKeystore(ctrl *gomock.Controller) *MockKeystore

NewMockKeystore creates a new mock instance

func (*MockKeystore) Close

func (m *MockKeystore) Close() error

Close mocks base method

func (*MockKeystore) Create

func (m *MockKeystore) Create(key string, value []byte) (int64, error)

Create mocks base method

func (*MockKeystore) Delete

func (m *MockKeystore) Delete(key string, modRevision int64) error

Delete mocks base method

func (*MockKeystore) DeleteAllKeysWithPrefix

func (m *MockKeystore) DeleteAllKeysWithPrefix(keyPrefix string) (int64, error)

DeleteAllKeysWithPrefix mocks base method

func (*MockKeystore) EXPECT

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

func (*MockKeystore) Get

Get mocks base method

func (*MockKeystore) GetAll

func (m *MockKeystore) GetAll(keyPrefix string) ([]store.KeyValueVersion, error)

GetAll mocks base method

func (*MockKeystore) IsExist

func (m *MockKeystore) IsExist(key string) (bool, error)

IsExist mocks base method

func (*MockKeystore) KeepAliveKey

func (m *MockKeystore) KeepAliveKey(ctxt context.Context, key string) error

KeepAliveKey mocks base method

func (*MockKeystore) NewMutex

func (m *MockKeystore) NewMutex(lockKey string) (store.Mutex, error)

NewMutex mocks base method

func (*MockKeystore) Update

func (m *MockKeystore) Update(key string, value []byte, modRevision int64) (int64, error)

Update mocks base method

func (*MockKeystore) Watch

func (m *MockKeystore) Watch(ctxt context.Context, key string, withPrefix bool) store.KeyValueUpdateChan

Watch mocks base method

type MockKeystoreMockRecorder

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

MockKeystoreMockRecorder is the mock recorder for MockKeystore

func (*MockKeystoreMockRecorder) Close

func (mr *MockKeystoreMockRecorder) Close() *gomock.Call

Close indicates an expected call of Close

func (*MockKeystoreMockRecorder) Create

func (mr *MockKeystoreMockRecorder) Create(key, value interface{}) *gomock.Call

Create indicates an expected call of Create

func (*MockKeystoreMockRecorder) Delete

func (mr *MockKeystoreMockRecorder) Delete(key, modRevision interface{}) *gomock.Call

Delete indicates an expected call of Delete

func (*MockKeystoreMockRecorder) DeleteAllKeysWithPrefix

func (mr *MockKeystoreMockRecorder) DeleteAllKeysWithPrefix(keyPrefix interface{}) *gomock.Call

DeleteAllKeysWithPrefix indicates an expected call of DeleteAllKeysWithPrefix

func (*MockKeystoreMockRecorder) Get

func (mr *MockKeystoreMockRecorder) Get(key interface{}) *gomock.Call

Get indicates an expected call of Get

func (*MockKeystoreMockRecorder) GetAll

func (mr *MockKeystoreMockRecorder) GetAll(keyPrefix interface{}) *gomock.Call

GetAll indicates an expected call of GetAll

func (*MockKeystoreMockRecorder) IsExist

func (mr *MockKeystoreMockRecorder) IsExist(key interface{}) *gomock.Call

IsExist indicates an expected call of IsExist

func (*MockKeystoreMockRecorder) KeepAliveKey

func (mr *MockKeystoreMockRecorder) KeepAliveKey(ctxt, key interface{}) *gomock.Call

KeepAliveKey indicates an expected call of KeepAliveKey

func (*MockKeystoreMockRecorder) NewMutex

func (mr *MockKeystoreMockRecorder) NewMutex(lockKey interface{}) *gomock.Call

NewMutex indicates an expected call of NewMutex

func (*MockKeystoreMockRecorder) Update

func (mr *MockKeystoreMockRecorder) Update(key, value, modRevision interface{}) *gomock.Call

Update indicates an expected call of Update

func (*MockKeystoreMockRecorder) Watch

func (mr *MockKeystoreMockRecorder) Watch(ctxt, key, withPrefix interface{}) *gomock.Call

Watch indicates an expected call of Watch

type MockMutex

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

MockMutex is a mock of Mutex interface

func NewMockMutex

func NewMockMutex(ctrl *gomock.Controller) *MockMutex

NewMockMutex creates a new mock instance

func (*MockMutex) EXPECT

func (m *MockMutex) EXPECT() *MockMutexMockRecorder

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

func (*MockMutex) Lock

func (m *MockMutex) Lock(ctx context.Context) error

Lock mocks base method

func (*MockMutex) Unlock

func (m *MockMutex) Unlock(ctx context.Context) error

Unlock mocks base method

type MockMutexMockRecorder

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

MockMutexMockRecorder is the mock recorder for MockMutex

func (*MockMutexMockRecorder) Lock

func (mr *MockMutexMockRecorder) Lock(ctx interface{}) *gomock.Call

Lock indicates an expected call of Lock

func (*MockMutexMockRecorder) Unlock

func (mr *MockMutexMockRecorder) Unlock(ctx interface{}) *gomock.Call

Unlock indicates an expected call of Unlock

Jump to

Keyboard shortcuts

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