Documentation ¶
Overview ¶
Package mock_nodespace is a generated GoMock package.
Index ¶
- type MockNodeSpace
- func (m *MockNodeSpace) Acl() syncacl.SyncAcl
- func (m *MockNodeSpace) AclClient() aclclient.AclSpaceClient
- func (m *MockNodeSpace) Close() error
- func (m *MockNodeSpace) DebugAllHeads() []headsync.TreeHeads
- func (m *MockNodeSpace) DeleteTree(arg0 context.Context, arg1 string) error
- func (m *MockNodeSpace) Description() (commonspace.SpaceDescription, error)
- func (m *MockNodeSpace) EXPECT() *MockNodeSpaceMockRecorder
- func (m *MockNodeSpace) GetNodePeers(arg0 context.Context) ([]peer.Peer, error)
- func (m *MockNodeSpace) HandleRangeRequest(arg0 context.Context, arg1 *spacesyncproto.HeadSyncRequest) (*spacesyncproto.HeadSyncResponse, error)
- func (m *MockNodeSpace) HandleStream(arg0 spacesyncproto.DRPCSpaceSync_ObjectSyncStreamStream) error
- func (m *MockNodeSpace) HandleStreamSyncRequest(arg0 context.Context, arg1 *spacesyncproto.ObjectSyncMessage, arg2 drpc.Stream) error
- func (m *MockNodeSpace) Id() string
- func (m *MockNodeSpace) Init(arg0 context.Context) error
- func (m *MockNodeSpace) Storage() spacestorage.SpaceStorage
- func (m *MockNodeSpace) StoredIds() []string
- func (m *MockNodeSpace) SyncStatus() syncstatus.StatusUpdater
- func (m *MockNodeSpace) TreeBuilder() objecttreebuilder.TreeBuilder
- func (m *MockNodeSpace) TreeSyncer() treesyncer.TreeSyncer
- func (m *MockNodeSpace) TryClose(arg0 time.Duration) (bool, error)
- type MockNodeSpaceMockRecorder
- func (mr *MockNodeSpaceMockRecorder) Acl() *gomock.Call
- func (mr *MockNodeSpaceMockRecorder) AclClient() *gomock.Call
- func (mr *MockNodeSpaceMockRecorder) Close() *gomock.Call
- func (mr *MockNodeSpaceMockRecorder) DebugAllHeads() *gomock.Call
- func (mr *MockNodeSpaceMockRecorder) DeleteTree(arg0, arg1 any) *gomock.Call
- func (mr *MockNodeSpaceMockRecorder) Description() *gomock.Call
- func (mr *MockNodeSpaceMockRecorder) GetNodePeers(arg0 any) *gomock.Call
- func (mr *MockNodeSpaceMockRecorder) HandleRangeRequest(arg0, arg1 any) *gomock.Call
- func (mr *MockNodeSpaceMockRecorder) HandleStream(arg0 any) *gomock.Call
- func (mr *MockNodeSpaceMockRecorder) HandleStreamSyncRequest(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockNodeSpaceMockRecorder) Id() *gomock.Call
- func (mr *MockNodeSpaceMockRecorder) Init(arg0 any) *gomock.Call
- func (mr *MockNodeSpaceMockRecorder) Storage() *gomock.Call
- func (mr *MockNodeSpaceMockRecorder) StoredIds() *gomock.Call
- func (mr *MockNodeSpaceMockRecorder) SyncStatus() *gomock.Call
- func (mr *MockNodeSpaceMockRecorder) TreeBuilder() *gomock.Call
- func (mr *MockNodeSpaceMockRecorder) TreeSyncer() *gomock.Call
- func (mr *MockNodeSpaceMockRecorder) TryClose(arg0 any) *gomock.Call
- type MockService
- func (m *MockService) Cache() ocache.OCache
- func (m *MockService) Close(arg0 context.Context) error
- func (m *MockService) EXPECT() *MockServiceMockRecorder
- func (m *MockService) GetSpace(arg0 context.Context, arg1 string) (nodespace.NodeSpace, error)
- func (m *MockService) Init(arg0 *app.App) error
- func (m *MockService) Name() string
- func (m *MockService) PickSpace(arg0 context.Context, arg1 string) (nodespace.NodeSpace, error)
- func (m *MockService) Run(arg0 context.Context) error
- func (m *MockService) StreamPool() streampool.StreamPool
- type MockServiceMockRecorder
- func (mr *MockServiceMockRecorder) Cache() *gomock.Call
- func (mr *MockServiceMockRecorder) Close(arg0 any) *gomock.Call
- func (mr *MockServiceMockRecorder) GetSpace(arg0, arg1 any) *gomock.Call
- func (mr *MockServiceMockRecorder) Init(arg0 any) *gomock.Call
- func (mr *MockServiceMockRecorder) Name() *gomock.Call
- func (mr *MockServiceMockRecorder) PickSpace(arg0, arg1 any) *gomock.Call
- func (mr *MockServiceMockRecorder) Run(arg0 any) *gomock.Call
- func (mr *MockServiceMockRecorder) StreamPool() *gomock.Call
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
func (m *MockNodeSpace) EXPECT() *MockNodeSpaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockNodeSpace) GetNodePeers ¶ added in v0.3.1
GetNodePeers mocks base method.
func (*MockNodeSpace) HandleRangeRequest ¶ added in v0.3.1
func (m *MockNodeSpace) HandleRangeRequest(arg0 context.Context, arg1 *spacesyncproto.HeadSyncRequest) (*spacesyncproto.HeadSyncResponse, error)
HandleRangeRequest mocks base method.
func (*MockNodeSpace) HandleStream ¶ added in v0.4.0
func (m *MockNodeSpace) HandleStream(arg0 spacesyncproto.DRPCSpaceSync_ObjectSyncStreamStream) error
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
func (m *MockNodeSpace) Storage() spacestorage.SpaceStorage
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.
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
func (mr *MockNodeSpaceMockRecorder) Acl() *gomock.Call
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
func (mr *MockNodeSpaceMockRecorder) Id() *gomock.Call
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.
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) 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) 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.