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(arg0 context.Context, arg1 string) error
- func (m *MockSpace) Description() (commonspace.SpaceDescription, error)
- func (m *MockSpace) EXPECT() *MockSpaceMockRecorder
- func (m *MockSpace) GetNodePeers(arg0 context.Context) ([]peer.Peer, error)
- func (m *MockSpace) HandleMessage(arg0 context.Context, arg1 objectsync.HandleMessage) error
- func (m *MockSpace) HandleRangeRequest(arg0 context.Context, arg1 *spacesyncproto.HeadSyncRequest) (*spacesyncproto.HeadSyncResponse, error)
- func (m *MockSpace) HandleSyncRequest(arg0 context.Context, arg1 *spacesyncproto.ObjectSyncMessage) (*spacesyncproto.ObjectSyncMessage, error)
- func (m *MockSpace) Id() string
- func (m *MockSpace) Init(arg0 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(arg0 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(arg0, arg1 any) *gomock.Call
- func (mr *MockSpaceMockRecorder) Description() *gomock.Call
- func (mr *MockSpaceMockRecorder) GetNodePeers(arg0 any) *gomock.Call
- func (mr *MockSpaceMockRecorder) HandleMessage(arg0, arg1 any) *gomock.Call
- func (mr *MockSpaceMockRecorder) HandleRangeRequest(arg0, arg1 any) *gomock.Call
- func (mr *MockSpaceMockRecorder) HandleSyncRequest(arg0, arg1 any) *gomock.Call
- func (mr *MockSpaceMockRecorder) Id() *gomock.Call
- func (mr *MockSpaceMockRecorder) Init(arg0 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(arg0 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) HandleMessage ¶
func (m *MockSpace) HandleMessage(arg0 context.Context, arg1 objectsync.HandleMessage) error
HandleMessage mocks base method.
func (*MockSpace) HandleRangeRequest ¶
func (m *MockSpace) HandleRangeRequest(arg0 context.Context, arg1 *spacesyncproto.HeadSyncRequest) (*spacesyncproto.HeadSyncResponse, error)
HandleRangeRequest mocks base method.
func (*MockSpace) HandleSyncRequest ¶
func (m *MockSpace) HandleSyncRequest(arg0 context.Context, arg1 *spacesyncproto.ObjectSyncMessage) (*spacesyncproto.ObjectSyncMessage, error)
HandleSyncRequest 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(arg0, arg1 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(arg0 any) *gomock.Call
GetNodePeers indicates an expected call of GetNodePeers.
func (*MockSpaceMockRecorder) HandleMessage ¶
func (mr *MockSpaceMockRecorder) HandleMessage(arg0, arg1 any) *gomock.Call
HandleMessage indicates an expected call of HandleMessage.
func (*MockSpaceMockRecorder) HandleRangeRequest ¶
func (mr *MockSpaceMockRecorder) HandleRangeRequest(arg0, arg1 any) *gomock.Call
HandleRangeRequest indicates an expected call of HandleRangeRequest.
func (*MockSpaceMockRecorder) HandleSyncRequest ¶
func (mr *MockSpaceMockRecorder) HandleSyncRequest(arg0, arg1 any) *gomock.Call
HandleSyncRequest indicates an expected call of HandleSyncRequest.
func (*MockSpaceMockRecorder) Id ¶
func (mr *MockSpaceMockRecorder) Id() *gomock.Call
Id indicates an expected call of Id.
func (*MockSpaceMockRecorder) Init ¶
func (mr *MockSpaceMockRecorder) Init(arg0 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.