mock

package
v1.4.4 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package mock is a generated GoMock package.

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 MockFileStorage added in v1.2.0

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

MockFileStorage is a mock of FileStorage interface

func NewMockFileStorage added in v1.2.0

func NewMockFileStorage(ctrl *gomock.Controller) *MockFileStorage

NewMockFileStorage creates a new mock instance

func (*MockFileStorage) DeleteData added in v1.2.0

func (m *MockFileStorage) DeleteData(ctx context.Context, address string) error

DeleteData mocks base method

func (*MockFileStorage) EXPECT added in v1.2.0

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

func (*MockFileStorage) Ping added in v1.2.0

func (m *MockFileStorage) Ping(ctx context.Context) error

Ping mocks base method

func (*MockFileStorage) Read added in v1.2.0

func (m *MockFileStorage) Read(ctx context.Context, path string) (io.ReadCloser, error)

Read mocks base method

func (*MockFileStorage) Write added in v1.2.0

func (m *MockFileStorage) Write(ctx context.Context, data io.Reader, size int64, path, contentType string, isPublicRead bool) (string, error)

Write mocks base method

type MockFileStorageMockRecorder added in v1.2.0

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

MockFileStorageMockRecorder is the mock recorder for MockFileStorage

func (*MockFileStorageMockRecorder) DeleteData added in v1.2.0

func (mr *MockFileStorageMockRecorder) DeleteData(ctx, address interface{}) *gomock.Call

DeleteData indicates an expected call of DeleteData

func (*MockFileStorageMockRecorder) Ping added in v1.2.0

func (mr *MockFileStorageMockRecorder) Ping(ctx interface{}) *gomock.Call

Ping indicates an expected call of Ping

func (*MockFileStorageMockRecorder) Read added in v1.2.0

func (mr *MockFileStorageMockRecorder) Read(ctx, path interface{}) *gomock.Call

Read indicates an expected call of Read

func (*MockFileStorageMockRecorder) Write added in v1.2.0

func (mr *MockFileStorageMockRecorder) Write(ctx, data, size, path, contentType, isPublicRead interface{}) *gomock.Call

Write indicates an expected call of Write

type MockIndexStorage added in v1.2.0

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

MockIndexStorage is a mock of IndexStorage interface

func NewMockIndexStorage added in v1.2.0

func NewMockIndexStorage(ctrl *gomock.Controller) *MockIndexStorage

NewMockIndexStorage creates a new mock instance

func (*MockIndexStorage) DeletePDV added in v1.4.3

func (m *MockIndexStorage) DeletePDV(ctx context.Context, owner string) error

DeletePDV mocks base method

func (*MockIndexStorage) DeleteProfile added in v1.2.0

func (m *MockIndexStorage) DeleteProfile(ctx context.Context, addr string) error

DeleteProfile mocks base method

func (*MockIndexStorage) EXPECT added in v1.2.0

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

func (*MockIndexStorage) GetHeight added in v1.2.0

func (m *MockIndexStorage) GetHeight(ctx context.Context) (uint64, error)

GetHeight mocks base method

func (*MockIndexStorage) GetPDVMeta added in v1.4.0

func (m *MockIndexStorage) GetPDVMeta(ctx context.Context, address string, id uint64) (*entities.PDVMeta, error)

GetPDVMeta mocks base method

func (*MockIndexStorage) GetProfile added in v1.2.0

func (m *MockIndexStorage) GetProfile(ctx context.Context, addr string) (*storage.Profile, error)

GetProfile mocks base method

func (*MockIndexStorage) GetProfiles added in v1.2.0

func (m *MockIndexStorage) GetProfiles(ctx context.Context, addr []string) ([]*storage.Profile, error)

GetProfiles mocks base method

func (*MockIndexStorage) InTx added in v1.2.0

InTx mocks base method

func (*MockIndexStorage) ListPDV added in v1.4.0

func (m *MockIndexStorage) ListPDV(ctx context.Context, owner string, from uint64, limit uint16) ([]uint64, error)

ListPDV mocks base method

func (*MockIndexStorage) SetHeight added in v1.2.0

func (m *MockIndexStorage) SetHeight(ctx context.Context, height uint64) error

SetHeight mocks base method

func (*MockIndexStorage) SetPDVMeta added in v1.4.0

func (m_2 *MockIndexStorage) SetPDVMeta(ctx context.Context, address string, id uint64, tx string, m *entities.PDVMeta) error

SetPDVMeta mocks base method

func (*MockIndexStorage) SetProfile added in v1.2.0

SetProfile mocks base method

type MockIndexStorageMockRecorder added in v1.2.0

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

MockIndexStorageMockRecorder is the mock recorder for MockIndexStorage

func (*MockIndexStorageMockRecorder) DeletePDV added in v1.4.3

func (mr *MockIndexStorageMockRecorder) DeletePDV(ctx, owner interface{}) *gomock.Call

DeletePDV indicates an expected call of DeletePDV

func (*MockIndexStorageMockRecorder) DeleteProfile added in v1.2.0

func (mr *MockIndexStorageMockRecorder) DeleteProfile(ctx, addr interface{}) *gomock.Call

DeleteProfile indicates an expected call of DeleteProfile

func (*MockIndexStorageMockRecorder) GetHeight added in v1.2.0

func (mr *MockIndexStorageMockRecorder) GetHeight(ctx interface{}) *gomock.Call

GetHeight indicates an expected call of GetHeight

func (*MockIndexStorageMockRecorder) GetPDVMeta added in v1.4.0

func (mr *MockIndexStorageMockRecorder) GetPDVMeta(ctx, address, id interface{}) *gomock.Call

GetPDVMeta indicates an expected call of GetPDVMeta

func (*MockIndexStorageMockRecorder) GetProfile added in v1.2.0

func (mr *MockIndexStorageMockRecorder) GetProfile(ctx, addr interface{}) *gomock.Call

GetProfile indicates an expected call of GetProfile

func (*MockIndexStorageMockRecorder) GetProfiles added in v1.2.0

func (mr *MockIndexStorageMockRecorder) GetProfiles(ctx, addr interface{}) *gomock.Call

GetProfiles indicates an expected call of GetProfiles

func (*MockIndexStorageMockRecorder) InTx added in v1.2.0

func (mr *MockIndexStorageMockRecorder) InTx(ctx, f interface{}) *gomock.Call

InTx indicates an expected call of InTx

func (*MockIndexStorageMockRecorder) ListPDV added in v1.4.0

func (mr *MockIndexStorageMockRecorder) ListPDV(ctx, owner, from, limit interface{}) *gomock.Call

ListPDV indicates an expected call of ListPDV

func (*MockIndexStorageMockRecorder) SetHeight added in v1.2.0

func (mr *MockIndexStorageMockRecorder) SetHeight(ctx, height interface{}) *gomock.Call

SetHeight indicates an expected call of SetHeight

func (*MockIndexStorageMockRecorder) SetPDVMeta added in v1.4.0

func (mr *MockIndexStorageMockRecorder) SetPDVMeta(ctx, address, id, tx, m interface{}) *gomock.Call

SetPDVMeta indicates an expected call of SetPDVMeta

func (*MockIndexStorageMockRecorder) SetProfile added in v1.2.0

func (mr *MockIndexStorageMockRecorder) SetProfile(ctx, p interface{}) *gomock.Call

SetProfile indicates an expected call of SetProfile

Jump to

Keyboard shortcuts

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