mock_nodespace

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Overview

Package mock_nodespace is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockNodeSpace added in v0.3.1

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

MockNodeSpace is a mock of NodeSpace interface.

func NewMockNodeSpace added in v0.3.1

func NewMockNodeSpace(ctrl *gomock.Controller) *MockNodeSpace

NewMockNodeSpace creates a new mock instance.

func (*MockNodeSpace) Acl added in v0.3.1

func (m *MockNodeSpace) Acl() syncacl.SyncAcl

Acl mocks base method.

func (*MockNodeSpace) AclClient added in v0.4.0

func (m *MockNodeSpace) AclClient() aclclient.AclSpaceClient

AclClient mocks base method.

func (*MockNodeSpace) Close added in v0.3.1

func (m *MockNodeSpace) Close() error

Close mocks base method.

func (*MockNodeSpace) DebugAllHeads added in v0.3.1

func (m *MockNodeSpace) DebugAllHeads() []headsync.TreeHeads

DebugAllHeads mocks base method.

func (*MockNodeSpace) DeleteTree added in v0.3.1

func (m *MockNodeSpace) DeleteTree(arg0 context.Context, arg1 string) error

DeleteTree mocks base method.

func (*MockNodeSpace) Description added in v0.3.1

func (m *MockNodeSpace) Description() (commonspace.SpaceDescription, error)

Description mocks base method.

func (*MockNodeSpace) EXPECT added in v0.3.1

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

func (*MockNodeSpace) GetNodePeers added in v0.3.1

func (m *MockNodeSpace) GetNodePeers(arg0 context.Context) ([]peer.Peer, error)

GetNodePeers mocks base method.

func (*MockNodeSpace) HandleRangeRequest added in v0.3.1

HandleRangeRequest mocks base method.

func (*MockNodeSpace) HandleStream added in v0.4.0

HandleStream mocks base method.

func (*MockNodeSpace) HandleStreamSyncRequest added in v0.4.0

func (m *MockNodeSpace) HandleStreamSyncRequest(arg0 context.Context, arg1 *spacesyncproto.ObjectSyncMessage, arg2 drpc.Stream) error

HandleStreamSyncRequest mocks base method.

func (*MockNodeSpace) Id added in v0.3.1

func (m *MockNodeSpace) Id() string

Id mocks base method.

func (*MockNodeSpace) Init added in v0.3.1

func (m *MockNodeSpace) Init(arg0 context.Context) error

Init mocks base method.

func (*MockNodeSpace) Storage added in v0.3.1

Storage mocks base method.

func (*MockNodeSpace) StoredIds added in v0.3.1

func (m *MockNodeSpace) StoredIds() []string

StoredIds mocks base method.

func (*MockNodeSpace) SyncStatus added in v0.3.1

func (m *MockNodeSpace) SyncStatus() syncstatus.StatusUpdater

SyncStatus mocks base method.

func (*MockNodeSpace) TreeBuilder added in v0.3.1

func (m *MockNodeSpace) TreeBuilder() objecttreebuilder.TreeBuilder

TreeBuilder mocks base method.

func (*MockNodeSpace) TreeSyncer added in v0.3.9

func (m *MockNodeSpace) TreeSyncer() treesyncer.TreeSyncer

TreeSyncer mocks base method.

func (*MockNodeSpace) TryClose added in v0.3.1

func (m *MockNodeSpace) TryClose(arg0 time.Duration) (bool, error)

TryClose mocks base method.

type MockNodeSpaceMockRecorder added in v0.3.1

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

MockNodeSpaceMockRecorder is the mock recorder for MockNodeSpace.

func (*MockNodeSpaceMockRecorder) Acl added in v0.3.1

Acl indicates an expected call of Acl.

func (*MockNodeSpaceMockRecorder) AclClient added in v0.4.0

func (mr *MockNodeSpaceMockRecorder) AclClient() *gomock.Call

AclClient indicates an expected call of AclClient.

func (*MockNodeSpaceMockRecorder) Close added in v0.3.1

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

Close indicates an expected call of Close.

func (*MockNodeSpaceMockRecorder) DebugAllHeads added in v0.3.1

func (mr *MockNodeSpaceMockRecorder) DebugAllHeads() *gomock.Call

DebugAllHeads indicates an expected call of DebugAllHeads.

func (*MockNodeSpaceMockRecorder) DeleteTree added in v0.3.1

func (mr *MockNodeSpaceMockRecorder) DeleteTree(arg0, arg1 any) *gomock.Call

DeleteTree indicates an expected call of DeleteTree.

func (*MockNodeSpaceMockRecorder) Description added in v0.3.1

func (mr *MockNodeSpaceMockRecorder) Description() *gomock.Call

Description indicates an expected call of Description.

func (*MockNodeSpaceMockRecorder) GetNodePeers added in v0.3.1

func (mr *MockNodeSpaceMockRecorder) GetNodePeers(arg0 any) *gomock.Call

GetNodePeers indicates an expected call of GetNodePeers.

func (*MockNodeSpaceMockRecorder) HandleRangeRequest added in v0.3.1

func (mr *MockNodeSpaceMockRecorder) HandleRangeRequest(arg0, arg1 any) *gomock.Call

HandleRangeRequest indicates an expected call of HandleRangeRequest.

func (*MockNodeSpaceMockRecorder) HandleStream added in v0.4.0

func (mr *MockNodeSpaceMockRecorder) HandleStream(arg0 any) *gomock.Call

HandleStream indicates an expected call of HandleStream.

func (*MockNodeSpaceMockRecorder) HandleStreamSyncRequest added in v0.4.0

func (mr *MockNodeSpaceMockRecorder) HandleStreamSyncRequest(arg0, arg1, arg2 any) *gomock.Call

HandleStreamSyncRequest indicates an expected call of HandleStreamSyncRequest.

func (*MockNodeSpaceMockRecorder) Id added in v0.3.1

Id indicates an expected call of Id.

func (*MockNodeSpaceMockRecorder) Init added in v0.3.1

func (mr *MockNodeSpaceMockRecorder) Init(arg0 any) *gomock.Call

Init indicates an expected call of Init.

func (*MockNodeSpaceMockRecorder) Storage added in v0.3.1

func (mr *MockNodeSpaceMockRecorder) Storage() *gomock.Call

Storage indicates an expected call of Storage.

func (*MockNodeSpaceMockRecorder) StoredIds added in v0.3.1

func (mr *MockNodeSpaceMockRecorder) StoredIds() *gomock.Call

StoredIds indicates an expected call of StoredIds.

func (*MockNodeSpaceMockRecorder) SyncStatus added in v0.3.1

func (mr *MockNodeSpaceMockRecorder) SyncStatus() *gomock.Call

SyncStatus indicates an expected call of SyncStatus.

func (*MockNodeSpaceMockRecorder) TreeBuilder added in v0.3.1

func (mr *MockNodeSpaceMockRecorder) TreeBuilder() *gomock.Call

TreeBuilder indicates an expected call of TreeBuilder.

func (*MockNodeSpaceMockRecorder) TreeSyncer added in v0.3.9

func (mr *MockNodeSpaceMockRecorder) TreeSyncer() *gomock.Call

TreeSyncer indicates an expected call of TreeSyncer.

func (*MockNodeSpaceMockRecorder) TryClose added in v0.3.1

func (mr *MockNodeSpaceMockRecorder) TryClose(arg0 any) *gomock.Call

TryClose indicates an expected call of TryClose.

type MockService

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

MockService is a mock of Service interface.

func NewMockService

func NewMockService(ctrl *gomock.Controller) *MockService

NewMockService creates a new mock instance.

func (*MockService) Cache

func (m *MockService) Cache() ocache.OCache

Cache mocks base method.

func (*MockService) Close

func (m *MockService) Close(arg0 context.Context) error

Close mocks base method.

func (*MockService) EXPECT

func (m *MockService) EXPECT() *MockServiceMockRecorder

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

func (*MockService) GetSpace

func (m *MockService) GetSpace(arg0 context.Context, arg1 string) (nodespace.NodeSpace, error)

GetSpace mocks base method.

func (*MockService) Init

func (m *MockService) Init(arg0 *app.App) error

Init mocks base method.

func (*MockService) Name

func (m *MockService) Name() string

Name mocks base method.

func (*MockService) PickSpace added in v0.3.1

func (m *MockService) PickSpace(arg0 context.Context, arg1 string) (nodespace.NodeSpace, error)

PickSpace mocks base method.

func (*MockService) Run

func (m *MockService) Run(arg0 context.Context) error

Run mocks base method.

func (*MockService) StreamPool

func (m *MockService) StreamPool() streampool.StreamPool

StreamPool mocks base method.

type MockServiceMockRecorder

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

MockServiceMockRecorder is the mock recorder for MockService.

func (*MockServiceMockRecorder) Cache

func (mr *MockServiceMockRecorder) Cache() *gomock.Call

Cache indicates an expected call of Cache.

func (*MockServiceMockRecorder) Close

func (mr *MockServiceMockRecorder) Close(arg0 any) *gomock.Call

Close indicates an expected call of Close.

func (*MockServiceMockRecorder) GetSpace

func (mr *MockServiceMockRecorder) GetSpace(arg0, arg1 any) *gomock.Call

GetSpace indicates an expected call of GetSpace.

func (*MockServiceMockRecorder) Init

func (mr *MockServiceMockRecorder) Init(arg0 any) *gomock.Call

Init indicates an expected call of Init.

func (*MockServiceMockRecorder) Name

func (mr *MockServiceMockRecorder) Name() *gomock.Call

Name indicates an expected call of Name.

func (*MockServiceMockRecorder) PickSpace added in v0.3.1

func (mr *MockServiceMockRecorder) PickSpace(arg0, arg1 any) *gomock.Call

PickSpace indicates an expected call of PickSpace.

func (*MockServiceMockRecorder) Run

func (mr *MockServiceMockRecorder) Run(arg0 any) *gomock.Call

Run indicates an expected call of Run.

func (*MockServiceMockRecorder) StreamPool

func (mr *MockServiceMockRecorder) StreamPool() *gomock.Call

StreamPool indicates an expected call of StreamPool.

Jump to

Keyboard shortcuts

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