Documentation ¶
Overview ¶
Package mock_commonspace is a generated GoMock package.
Index ¶
- type MockSpace
- func (m *MockSpace) Acl() syncacl.SyncAcl
- func (m *MockSpace) AclClient() aclclient.AclSpaceClient
- func (m *MockSpace) Close() error
- func (m *MockSpace) DebugAllHeads() []headsync.TreeHeads
- func (m *MockSpace) DeleteTree(ctx context.Context, id string) error
- func (m *MockSpace) Description() (commonspace.SpaceDescription, error)
- func (m *MockSpace) EXPECT() *MockSpaceMockRecorder
- func (m *MockSpace) GetNodePeers(ctx context.Context) ([]peer.Peer, error)
- func (m *MockSpace) HandleDeprecatedObjectSyncRequest(ctx context.Context, req *spacesyncproto.ObjectSyncMessage) (*spacesyncproto.ObjectSyncMessage, error)
- func (m *MockSpace) HandleMessage(ctx context.Context, msg *objectmessages.HeadUpdate) error
- func (m *MockSpace) HandleRangeRequest(ctx context.Context, req *spacesyncproto.HeadSyncRequest) (*spacesyncproto.HeadSyncResponse, error)
- func (m *MockSpace) HandleStreamSyncRequest(ctx context.Context, req *spacesyncproto.ObjectSyncMessage, stream drpc.Stream) error
- func (m *MockSpace) Id() string
- func (m *MockSpace) Init(ctx context.Context) error
- func (m *MockSpace) Storage() spacestorage.SpaceStorage
- func (m *MockSpace) StoredIds() []string
- func (m *MockSpace) SyncStatus() syncstatus.StatusUpdater
- func (m *MockSpace) TreeBuilder() objecttreebuilder.TreeBuilder
- func (m *MockSpace) TreeSyncer() treesyncer.TreeSyncer
- func (m *MockSpace) TryClose(objectTTL time.Duration) (bool, error)
- type MockSpaceMockRecorder
- func (mr *MockSpaceMockRecorder) Acl() *gomock.Call
- func (mr *MockSpaceMockRecorder) AclClient() *gomock.Call
- func (mr *MockSpaceMockRecorder) Close() *gomock.Call
- func (mr *MockSpaceMockRecorder) DebugAllHeads() *gomock.Call
- func (mr *MockSpaceMockRecorder) DeleteTree(ctx, id any) *gomock.Call
- func (mr *MockSpaceMockRecorder) Description() *gomock.Call
- func (mr *MockSpaceMockRecorder) GetNodePeers(ctx any) *gomock.Call
- func (mr *MockSpaceMockRecorder) HandleDeprecatedObjectSyncRequest(ctx, req any) *gomock.Call
- func (mr *MockSpaceMockRecorder) HandleMessage(ctx, msg any) *gomock.Call
- func (mr *MockSpaceMockRecorder) HandleRangeRequest(ctx, req any) *gomock.Call
- func (mr *MockSpaceMockRecorder) HandleStreamSyncRequest(ctx, req, stream any) *gomock.Call
- func (mr *MockSpaceMockRecorder) Id() *gomock.Call
- func (mr *MockSpaceMockRecorder) Init(ctx any) *gomock.Call
- func (mr *MockSpaceMockRecorder) Storage() *gomock.Call
- func (mr *MockSpaceMockRecorder) StoredIds() *gomock.Call
- func (mr *MockSpaceMockRecorder) SyncStatus() *gomock.Call
- func (mr *MockSpaceMockRecorder) TreeBuilder() *gomock.Call
- func (mr *MockSpaceMockRecorder) TreeSyncer() *gomock.Call
- func (mr *MockSpaceMockRecorder) TryClose(objectTTL any) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockSpace ¶
type MockSpace struct {
// contains filtered or unexported fields
}
MockSpace is a mock of Space interface.
func NewMockSpace ¶
func NewMockSpace(ctrl *gomock.Controller) *MockSpace
NewMockSpace creates a new mock instance.
func (*MockSpace) AclClient ¶ added in v0.3.18
func (m *MockSpace) AclClient() aclclient.AclSpaceClient
AclClient mocks base method.
func (*MockSpace) DebugAllHeads ¶
DebugAllHeads mocks base method.
func (*MockSpace) DeleteTree ¶
DeleteTree mocks base method.
func (*MockSpace) Description ¶
func (m *MockSpace) Description() (commonspace.SpaceDescription, error)
Description mocks base method.
func (*MockSpace) EXPECT ¶
func (m *MockSpace) EXPECT() *MockSpaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSpace) GetNodePeers ¶
GetNodePeers mocks base method.
func (*MockSpace) HandleDeprecatedObjectSyncRequest ¶ added in v0.5.0
func (m *MockSpace) HandleDeprecatedObjectSyncRequest(ctx context.Context, req *spacesyncproto.ObjectSyncMessage) (*spacesyncproto.ObjectSyncMessage, error)
HandleDeprecatedObjectSyncRequest mocks base method.
func (*MockSpace) HandleMessage ¶
func (m *MockSpace) HandleMessage(ctx context.Context, msg *objectmessages.HeadUpdate) error
HandleMessage mocks base method.
func (*MockSpace) HandleRangeRequest ¶
func (m *MockSpace) HandleRangeRequest(ctx context.Context, req *spacesyncproto.HeadSyncRequest) (*spacesyncproto.HeadSyncResponse, error)
HandleRangeRequest mocks base method.
func (*MockSpace) HandleStreamSyncRequest ¶ added in v0.5.0
func (m *MockSpace) HandleStreamSyncRequest(ctx context.Context, req *spacesyncproto.ObjectSyncMessage, stream drpc.Stream) error
HandleStreamSyncRequest mocks base method.
func (*MockSpace) Storage ¶
func (m *MockSpace) Storage() spacestorage.SpaceStorage
Storage mocks base method.
func (*MockSpace) SyncStatus ¶
func (m *MockSpace) SyncStatus() syncstatus.StatusUpdater
SyncStatus mocks base method.
func (*MockSpace) TreeBuilder ¶
func (m *MockSpace) TreeBuilder() objecttreebuilder.TreeBuilder
TreeBuilder mocks base method.
func (*MockSpace) TreeSyncer ¶ added in v0.3.2
func (m *MockSpace) TreeSyncer() treesyncer.TreeSyncer
TreeSyncer mocks base method.
type MockSpaceMockRecorder ¶
type MockSpaceMockRecorder struct {
// contains filtered or unexported fields
}
MockSpaceMockRecorder is the mock recorder for MockSpace.
func (*MockSpaceMockRecorder) Acl ¶
func (mr *MockSpaceMockRecorder) Acl() *gomock.Call
Acl indicates an expected call of Acl.
func (*MockSpaceMockRecorder) AclClient ¶ added in v0.3.18
func (mr *MockSpaceMockRecorder) AclClient() *gomock.Call
AclClient indicates an expected call of AclClient.
func (*MockSpaceMockRecorder) Close ¶
func (mr *MockSpaceMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockSpaceMockRecorder) DebugAllHeads ¶
func (mr *MockSpaceMockRecorder) DebugAllHeads() *gomock.Call
DebugAllHeads indicates an expected call of DebugAllHeads.
func (*MockSpaceMockRecorder) DeleteTree ¶
func (mr *MockSpaceMockRecorder) DeleteTree(ctx, id any) *gomock.Call
DeleteTree indicates an expected call of DeleteTree.
func (*MockSpaceMockRecorder) Description ¶
func (mr *MockSpaceMockRecorder) Description() *gomock.Call
Description indicates an expected call of Description.
func (*MockSpaceMockRecorder) GetNodePeers ¶
func (mr *MockSpaceMockRecorder) GetNodePeers(ctx any) *gomock.Call
GetNodePeers indicates an expected call of GetNodePeers.
func (*MockSpaceMockRecorder) HandleDeprecatedObjectSyncRequest ¶ added in v0.5.0
func (mr *MockSpaceMockRecorder) HandleDeprecatedObjectSyncRequest(ctx, req any) *gomock.Call
HandleDeprecatedObjectSyncRequest indicates an expected call of HandleDeprecatedObjectSyncRequest.
func (*MockSpaceMockRecorder) HandleMessage ¶
func (mr *MockSpaceMockRecorder) HandleMessage(ctx, msg any) *gomock.Call
HandleMessage indicates an expected call of HandleMessage.
func (*MockSpaceMockRecorder) HandleRangeRequest ¶
func (mr *MockSpaceMockRecorder) HandleRangeRequest(ctx, req any) *gomock.Call
HandleRangeRequest indicates an expected call of HandleRangeRequest.
func (*MockSpaceMockRecorder) HandleStreamSyncRequest ¶ added in v0.5.0
func (mr *MockSpaceMockRecorder) HandleStreamSyncRequest(ctx, req, stream any) *gomock.Call
HandleStreamSyncRequest indicates an expected call of HandleStreamSyncRequest.
func (*MockSpaceMockRecorder) Id ¶
func (mr *MockSpaceMockRecorder) Id() *gomock.Call
Id indicates an expected call of Id.
func (*MockSpaceMockRecorder) Init ¶
func (mr *MockSpaceMockRecorder) Init(ctx any) *gomock.Call
Init indicates an expected call of Init.
func (*MockSpaceMockRecorder) Storage ¶
func (mr *MockSpaceMockRecorder) Storage() *gomock.Call
Storage indicates an expected call of Storage.
func (*MockSpaceMockRecorder) StoredIds ¶
func (mr *MockSpaceMockRecorder) StoredIds() *gomock.Call
StoredIds indicates an expected call of StoredIds.
func (*MockSpaceMockRecorder) SyncStatus ¶
func (mr *MockSpaceMockRecorder) SyncStatus() *gomock.Call
SyncStatus indicates an expected call of SyncStatus.
func (*MockSpaceMockRecorder) TreeBuilder ¶
func (mr *MockSpaceMockRecorder) TreeBuilder() *gomock.Call
TreeBuilder indicates an expected call of TreeBuilder.
func (*MockSpaceMockRecorder) TreeSyncer ¶ added in v0.3.2
func (mr *MockSpaceMockRecorder) TreeSyncer() *gomock.Call
TreeSyncer indicates an expected call of TreeSyncer.