Documentation ¶
Overview ¶
Package mock_synctree is a generated GoMock package.
Index ¶
- type MockHeadNotifiable
- type MockHeadNotifiableMockRecorder
- type MockReceiveQueue
- func (m *MockReceiveQueue) AddMessage(arg0 string, arg1 *treechangeproto.TreeSyncMessage, arg2 string) bool
- func (m *MockReceiveQueue) ClearQueue(arg0 string)
- func (m *MockReceiveQueue) EXPECT() *MockReceiveQueueMockRecorder
- func (m *MockReceiveQueue) GetMessage(arg0 string) (*treechangeproto.TreeSyncMessage, string, error)
- type MockReceiveQueueMockRecorder
- type MockRequestFactory
- func (m *MockRequestFactory) CreateFullSyncRequest(arg0 objecttree.ObjectTree, arg1, arg2 []string) (*treechangeproto.TreeSyncMessage, error)
- func (m *MockRequestFactory) CreateFullSyncResponse(arg0 objecttree.ObjectTree, arg1, arg2 []string) (*treechangeproto.TreeSyncMessage, error)
- func (m *MockRequestFactory) CreateHeadUpdate(arg0 objecttree.ObjectTree, arg1 []*treechangeproto.RawTreeChangeWithId) *treechangeproto.TreeSyncMessage
- func (m *MockRequestFactory) CreateNewTreeRequest() *treechangeproto.TreeSyncMessage
- func (m *MockRequestFactory) EXPECT() *MockRequestFactoryMockRecorder
- type MockRequestFactoryMockRecorder
- func (mr *MockRequestFactoryMockRecorder) CreateFullSyncRequest(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockRequestFactoryMockRecorder) CreateFullSyncResponse(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockRequestFactoryMockRecorder) CreateHeadUpdate(arg0, arg1 any) *gomock.Call
- func (mr *MockRequestFactoryMockRecorder) CreateNewTreeRequest() *gomock.Call
- type MockSyncClient
- func (m *MockSyncClient) Broadcast(arg0 *treechangeproto.TreeSyncMessage)
- func (m *MockSyncClient) CreateFullSyncRequest(arg0 objecttree.ObjectTree, arg1, arg2 []string) (*treechangeproto.TreeSyncMessage, error)
- func (m *MockSyncClient) CreateFullSyncResponse(arg0 objecttree.ObjectTree, arg1, arg2 []string) (*treechangeproto.TreeSyncMessage, error)
- func (m *MockSyncClient) CreateHeadUpdate(arg0 objecttree.ObjectTree, arg1 []*treechangeproto.RawTreeChangeWithId) *treechangeproto.TreeSyncMessage
- func (m *MockSyncClient) CreateNewTreeRequest() *treechangeproto.TreeSyncMessage
- func (m *MockSyncClient) EXPECT() *MockSyncClientMockRecorder
- func (m *MockSyncClient) QueueRequest(arg0, arg1 string, arg2 *treechangeproto.TreeSyncMessage) error
- func (m *MockSyncClient) SendRequest(arg0 context.Context, arg1, arg2 string, arg3 *treechangeproto.TreeSyncMessage) (*spacesyncproto.ObjectSyncMessage, error)
- func (m *MockSyncClient) SendUpdate(arg0, arg1 string, arg2 *treechangeproto.TreeSyncMessage) error
- type MockSyncClientMockRecorder
- func (mr *MockSyncClientMockRecorder) Broadcast(arg0 any) *gomock.Call
- func (mr *MockSyncClientMockRecorder) CreateFullSyncRequest(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockSyncClientMockRecorder) CreateFullSyncResponse(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockSyncClientMockRecorder) CreateHeadUpdate(arg0, arg1 any) *gomock.Call
- func (mr *MockSyncClientMockRecorder) CreateNewTreeRequest() *gomock.Call
- func (mr *MockSyncClientMockRecorder) QueueRequest(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockSyncClientMockRecorder) SendRequest(arg0, arg1, arg2, arg3 any) *gomock.Call
- func (mr *MockSyncClientMockRecorder) SendUpdate(arg0, arg1, arg2 any) *gomock.Call
- type MockSyncTree
- func (m *MockSyncTree) AclList() list.AclList
- func (m *MockSyncTree) AddContent(arg0 context.Context, arg1 objecttree.SignableChangeContent) (objecttree.AddResult, error)
- func (m *MockSyncTree) AddRawChanges(arg0 context.Context, arg1 objecttree.RawChangesPayload) (objecttree.AddResult, error)
- func (m *MockSyncTree) ChangeInfo() *treechangeproto.TreeChangeInfo
- func (m *MockSyncTree) ChangesAfterCommonSnapshot(arg0, arg1 []string) ([]*treechangeproto.RawTreeChangeWithId, error)
- func (m *MockSyncTree) Close() error
- func (m *MockSyncTree) Debug(arg0 objecttree.DescriptionParser) (objecttree.DebugInfo, error)
- func (m *MockSyncTree) Delete() error
- func (m *MockSyncTree) EXPECT() *MockSyncTreeMockRecorder
- func (m *MockSyncTree) GetChange(arg0 string) (*objecttree.Change, error)
- func (m *MockSyncTree) HandleMessage(arg0 context.Context, arg1 string, arg2 *spacesyncproto.ObjectSyncMessage) error
- func (m *MockSyncTree) HandleRequest(arg0 context.Context, arg1 string, arg2 *spacesyncproto.ObjectSyncMessage) (*spacesyncproto.ObjectSyncMessage, error)
- func (m *MockSyncTree) HasChanges(arg0 ...string) bool
- func (m *MockSyncTree) Header() *treechangeproto.RawTreeChangeWithId
- func (m *MockSyncTree) Heads() []string
- func (m *MockSyncTree) Id() string
- func (m *MockSyncTree) IsDerived() bool
- func (m *MockSyncTree) IterateFrom(arg0 string, arg1 func(*objecttree.Change, []byte) (any, error), ...) error
- func (m *MockSyncTree) IterateRoot(arg0 func(*objecttree.Change, []byte) (any, error), ...) error
- func (m *MockSyncTree) Len() int
- func (m *MockSyncTree) Lock()
- func (m *MockSyncTree) PrepareChange(arg0 objecttree.SignableChangeContent) (*treechangeproto.RawTreeChangeWithId, error)
- func (m *MockSyncTree) Root() *objecttree.Change
- func (m *MockSyncTree) SetListener(arg0 updatelistener.UpdateListener)
- func (m *MockSyncTree) SnapshotPath() []string
- func (m *MockSyncTree) Storage() treestorage.TreeStorage
- func (m *MockSyncTree) SyncWithPeer(arg0 context.Context, arg1 string) error
- func (m *MockSyncTree) TryClose(arg0 time.Duration) (bool, error)
- func (m *MockSyncTree) TryLock() bool
- func (m *MockSyncTree) Unlock()
- func (m *MockSyncTree) UnmarshalledHeader() *objecttree.Change
- func (m *MockSyncTree) UnpackChange(arg0 *treechangeproto.RawTreeChangeWithId) ([]byte, error)
- type MockSyncTreeMockRecorder
- func (mr *MockSyncTreeMockRecorder) AclList() *gomock.Call
- func (mr *MockSyncTreeMockRecorder) AddContent(arg0, arg1 any) *gomock.Call
- func (mr *MockSyncTreeMockRecorder) AddRawChanges(arg0, arg1 any) *gomock.Call
- func (mr *MockSyncTreeMockRecorder) ChangeInfo() *gomock.Call
- func (mr *MockSyncTreeMockRecorder) ChangesAfterCommonSnapshot(arg0, arg1 any) *gomock.Call
- func (mr *MockSyncTreeMockRecorder) Close() *gomock.Call
- func (mr *MockSyncTreeMockRecorder) Debug(arg0 any) *gomock.Call
- func (mr *MockSyncTreeMockRecorder) Delete() *gomock.Call
- func (mr *MockSyncTreeMockRecorder) GetChange(arg0 any) *gomock.Call
- func (mr *MockSyncTreeMockRecorder) HandleMessage(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockSyncTreeMockRecorder) HandleRequest(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockSyncTreeMockRecorder) HasChanges(arg0 ...any) *gomock.Call
- func (mr *MockSyncTreeMockRecorder) Header() *gomock.Call
- func (mr *MockSyncTreeMockRecorder) Heads() *gomock.Call
- func (mr *MockSyncTreeMockRecorder) Id() *gomock.Call
- func (mr *MockSyncTreeMockRecorder) IsDerived() *gomock.Call
- func (mr *MockSyncTreeMockRecorder) IterateFrom(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockSyncTreeMockRecorder) IterateRoot(arg0, arg1 any) *gomock.Call
- func (mr *MockSyncTreeMockRecorder) Len() *gomock.Call
- func (mr *MockSyncTreeMockRecorder) Lock() *gomock.Call
- func (mr *MockSyncTreeMockRecorder) PrepareChange(arg0 any) *gomock.Call
- func (mr *MockSyncTreeMockRecorder) Root() *gomock.Call
- func (mr *MockSyncTreeMockRecorder) SetListener(arg0 any) *gomock.Call
- func (mr *MockSyncTreeMockRecorder) SnapshotPath() *gomock.Call
- func (mr *MockSyncTreeMockRecorder) Storage() *gomock.Call
- func (mr *MockSyncTreeMockRecorder) SyncWithPeer(arg0, arg1 any) *gomock.Call
- func (mr *MockSyncTreeMockRecorder) TryClose(arg0 any) *gomock.Call
- func (mr *MockSyncTreeMockRecorder) TryLock() *gomock.Call
- func (mr *MockSyncTreeMockRecorder) Unlock() *gomock.Call
- func (mr *MockSyncTreeMockRecorder) UnmarshalledHeader() *gomock.Call
- func (mr *MockSyncTreeMockRecorder) UnpackChange(arg0 any) *gomock.Call
- type MockTreeSyncProtocol
- func (m *MockTreeSyncProtocol) EXPECT() *MockTreeSyncProtocolMockRecorder
- func (m *MockTreeSyncProtocol) FullSyncRequest(arg0 context.Context, arg1 string, arg2 *treechangeproto.TreeFullSyncRequest) (*treechangeproto.TreeSyncMessage, error)
- func (m *MockTreeSyncProtocol) FullSyncResponse(arg0 context.Context, arg1 string, arg2 *treechangeproto.TreeFullSyncResponse) error
- func (m *MockTreeSyncProtocol) HeadUpdate(arg0 context.Context, arg1 string, arg2 *treechangeproto.TreeHeadUpdate) (*treechangeproto.TreeSyncMessage, error)
- type MockTreeSyncProtocolMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockHeadNotifiable ¶
type MockHeadNotifiable struct {
// contains filtered or unexported fields
}
MockHeadNotifiable is a mock of HeadNotifiable interface.
func NewMockHeadNotifiable ¶
func NewMockHeadNotifiable(ctrl *gomock.Controller) *MockHeadNotifiable
NewMockHeadNotifiable creates a new mock instance.
func (*MockHeadNotifiable) EXPECT ¶
func (m *MockHeadNotifiable) EXPECT() *MockHeadNotifiableMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockHeadNotifiable) UpdateHeads ¶
func (m *MockHeadNotifiable) UpdateHeads(arg0 string, arg1 []string)
UpdateHeads mocks base method.
type MockHeadNotifiableMockRecorder ¶
type MockHeadNotifiableMockRecorder struct {
// contains filtered or unexported fields
}
MockHeadNotifiableMockRecorder is the mock recorder for MockHeadNotifiable.
func (*MockHeadNotifiableMockRecorder) UpdateHeads ¶
func (mr *MockHeadNotifiableMockRecorder) UpdateHeads(arg0, arg1 any) *gomock.Call
UpdateHeads indicates an expected call of UpdateHeads.
type MockReceiveQueue ¶
type MockReceiveQueue struct {
// contains filtered or unexported fields
}
MockReceiveQueue is a mock of ReceiveQueue interface.
func NewMockReceiveQueue ¶
func NewMockReceiveQueue(ctrl *gomock.Controller) *MockReceiveQueue
NewMockReceiveQueue creates a new mock instance.
func (*MockReceiveQueue) AddMessage ¶
func (m *MockReceiveQueue) AddMessage(arg0 string, arg1 *treechangeproto.TreeSyncMessage, arg2 string) bool
AddMessage mocks base method.
func (*MockReceiveQueue) ClearQueue ¶
func (m *MockReceiveQueue) ClearQueue(arg0 string)
ClearQueue mocks base method.
func (*MockReceiveQueue) EXPECT ¶
func (m *MockReceiveQueue) EXPECT() *MockReceiveQueueMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockReceiveQueue) GetMessage ¶
func (m *MockReceiveQueue) GetMessage(arg0 string) (*treechangeproto.TreeSyncMessage, string, error)
GetMessage mocks base method.
type MockReceiveQueueMockRecorder ¶
type MockReceiveQueueMockRecorder struct {
// contains filtered or unexported fields
}
MockReceiveQueueMockRecorder is the mock recorder for MockReceiveQueue.
func (*MockReceiveQueueMockRecorder) AddMessage ¶
func (mr *MockReceiveQueueMockRecorder) AddMessage(arg0, arg1, arg2 any) *gomock.Call
AddMessage indicates an expected call of AddMessage.
func (*MockReceiveQueueMockRecorder) ClearQueue ¶
func (mr *MockReceiveQueueMockRecorder) ClearQueue(arg0 any) *gomock.Call
ClearQueue indicates an expected call of ClearQueue.
func (*MockReceiveQueueMockRecorder) GetMessage ¶
func (mr *MockReceiveQueueMockRecorder) GetMessage(arg0 any) *gomock.Call
GetMessage indicates an expected call of GetMessage.
type MockRequestFactory ¶ added in v0.2.0
type MockRequestFactory struct {
// contains filtered or unexported fields
}
MockRequestFactory is a mock of RequestFactory interface.
func NewMockRequestFactory ¶ added in v0.2.0
func NewMockRequestFactory(ctrl *gomock.Controller) *MockRequestFactory
NewMockRequestFactory creates a new mock instance.
func (*MockRequestFactory) CreateFullSyncRequest ¶ added in v0.2.0
func (m *MockRequestFactory) CreateFullSyncRequest(arg0 objecttree.ObjectTree, arg1, arg2 []string) (*treechangeproto.TreeSyncMessage, error)
CreateFullSyncRequest mocks base method.
func (*MockRequestFactory) CreateFullSyncResponse ¶ added in v0.2.0
func (m *MockRequestFactory) CreateFullSyncResponse(arg0 objecttree.ObjectTree, arg1, arg2 []string) (*treechangeproto.TreeSyncMessage, error)
CreateFullSyncResponse mocks base method.
func (*MockRequestFactory) CreateHeadUpdate ¶ added in v0.2.0
func (m *MockRequestFactory) CreateHeadUpdate(arg0 objecttree.ObjectTree, arg1 []*treechangeproto.RawTreeChangeWithId) *treechangeproto.TreeSyncMessage
CreateHeadUpdate mocks base method.
func (*MockRequestFactory) CreateNewTreeRequest ¶ added in v0.2.0
func (m *MockRequestFactory) CreateNewTreeRequest() *treechangeproto.TreeSyncMessage
CreateNewTreeRequest mocks base method.
func (*MockRequestFactory) EXPECT ¶ added in v0.2.0
func (m *MockRequestFactory) EXPECT() *MockRequestFactoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockRequestFactoryMockRecorder ¶ added in v0.2.0
type MockRequestFactoryMockRecorder struct {
// contains filtered or unexported fields
}
MockRequestFactoryMockRecorder is the mock recorder for MockRequestFactory.
func (*MockRequestFactoryMockRecorder) CreateFullSyncRequest ¶ added in v0.2.0
func (mr *MockRequestFactoryMockRecorder) CreateFullSyncRequest(arg0, arg1, arg2 any) *gomock.Call
CreateFullSyncRequest indicates an expected call of CreateFullSyncRequest.
func (*MockRequestFactoryMockRecorder) CreateFullSyncResponse ¶ added in v0.2.0
func (mr *MockRequestFactoryMockRecorder) CreateFullSyncResponse(arg0, arg1, arg2 any) *gomock.Call
CreateFullSyncResponse indicates an expected call of CreateFullSyncResponse.
func (*MockRequestFactoryMockRecorder) CreateHeadUpdate ¶ added in v0.2.0
func (mr *MockRequestFactoryMockRecorder) CreateHeadUpdate(arg0, arg1 any) *gomock.Call
CreateHeadUpdate indicates an expected call of CreateHeadUpdate.
func (*MockRequestFactoryMockRecorder) CreateNewTreeRequest ¶ added in v0.2.0
func (mr *MockRequestFactoryMockRecorder) CreateNewTreeRequest() *gomock.Call
CreateNewTreeRequest indicates an expected call of CreateNewTreeRequest.
type MockSyncClient ¶ added in v0.2.0
type MockSyncClient struct {
// contains filtered or unexported fields
}
MockSyncClient is a mock of SyncClient interface.
func NewMockSyncClient ¶ added in v0.2.0
func NewMockSyncClient(ctrl *gomock.Controller) *MockSyncClient
NewMockSyncClient creates a new mock instance.
func (*MockSyncClient) Broadcast ¶ added in v0.2.0
func (m *MockSyncClient) Broadcast(arg0 *treechangeproto.TreeSyncMessage)
Broadcast mocks base method.
func (*MockSyncClient) CreateFullSyncRequest ¶ added in v0.2.0
func (m *MockSyncClient) CreateFullSyncRequest(arg0 objecttree.ObjectTree, arg1, arg2 []string) (*treechangeproto.TreeSyncMessage, error)
CreateFullSyncRequest mocks base method.
func (*MockSyncClient) CreateFullSyncResponse ¶ added in v0.2.0
func (m *MockSyncClient) CreateFullSyncResponse(arg0 objecttree.ObjectTree, arg1, arg2 []string) (*treechangeproto.TreeSyncMessage, error)
CreateFullSyncResponse mocks base method.
func (*MockSyncClient) CreateHeadUpdate ¶ added in v0.2.0
func (m *MockSyncClient) CreateHeadUpdate(arg0 objecttree.ObjectTree, arg1 []*treechangeproto.RawTreeChangeWithId) *treechangeproto.TreeSyncMessage
CreateHeadUpdate mocks base method.
func (*MockSyncClient) CreateNewTreeRequest ¶ added in v0.2.0
func (m *MockSyncClient) CreateNewTreeRequest() *treechangeproto.TreeSyncMessage
CreateNewTreeRequest mocks base method.
func (*MockSyncClient) EXPECT ¶ added in v0.2.0
func (m *MockSyncClient) EXPECT() *MockSyncClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSyncClient) QueueRequest ¶ added in v0.2.0
func (m *MockSyncClient) QueueRequest(arg0, arg1 string, arg2 *treechangeproto.TreeSyncMessage) error
QueueRequest mocks base method.
func (*MockSyncClient) SendRequest ¶ added in v0.2.0
func (m *MockSyncClient) SendRequest(arg0 context.Context, arg1, arg2 string, arg3 *treechangeproto.TreeSyncMessage) (*spacesyncproto.ObjectSyncMessage, error)
SendRequest mocks base method.
func (*MockSyncClient) SendUpdate ¶ added in v0.2.0
func (m *MockSyncClient) SendUpdate(arg0, arg1 string, arg2 *treechangeproto.TreeSyncMessage) error
SendUpdate mocks base method.
type MockSyncClientMockRecorder ¶ added in v0.2.0
type MockSyncClientMockRecorder struct {
// contains filtered or unexported fields
}
MockSyncClientMockRecorder is the mock recorder for MockSyncClient.
func (*MockSyncClientMockRecorder) Broadcast ¶ added in v0.2.0
func (mr *MockSyncClientMockRecorder) Broadcast(arg0 any) *gomock.Call
Broadcast indicates an expected call of Broadcast.
func (*MockSyncClientMockRecorder) CreateFullSyncRequest ¶ added in v0.2.0
func (mr *MockSyncClientMockRecorder) CreateFullSyncRequest(arg0, arg1, arg2 any) *gomock.Call
CreateFullSyncRequest indicates an expected call of CreateFullSyncRequest.
func (*MockSyncClientMockRecorder) CreateFullSyncResponse ¶ added in v0.2.0
func (mr *MockSyncClientMockRecorder) CreateFullSyncResponse(arg0, arg1, arg2 any) *gomock.Call
CreateFullSyncResponse indicates an expected call of CreateFullSyncResponse.
func (*MockSyncClientMockRecorder) CreateHeadUpdate ¶ added in v0.2.0
func (mr *MockSyncClientMockRecorder) CreateHeadUpdate(arg0, arg1 any) *gomock.Call
CreateHeadUpdate indicates an expected call of CreateHeadUpdate.
func (*MockSyncClientMockRecorder) CreateNewTreeRequest ¶ added in v0.2.0
func (mr *MockSyncClientMockRecorder) CreateNewTreeRequest() *gomock.Call
CreateNewTreeRequest indicates an expected call of CreateNewTreeRequest.
func (*MockSyncClientMockRecorder) QueueRequest ¶ added in v0.2.0
func (mr *MockSyncClientMockRecorder) QueueRequest(arg0, arg1, arg2 any) *gomock.Call
QueueRequest indicates an expected call of QueueRequest.
func (*MockSyncClientMockRecorder) SendRequest ¶ added in v0.2.0
func (mr *MockSyncClientMockRecorder) SendRequest(arg0, arg1, arg2, arg3 any) *gomock.Call
SendRequest indicates an expected call of SendRequest.
func (*MockSyncClientMockRecorder) SendUpdate ¶ added in v0.2.0
func (mr *MockSyncClientMockRecorder) SendUpdate(arg0, arg1, arg2 any) *gomock.Call
SendUpdate indicates an expected call of SendUpdate.
type MockSyncTree ¶
type MockSyncTree struct {
// contains filtered or unexported fields
}
MockSyncTree is a mock of SyncTree interface.
func NewMockSyncTree ¶
func NewMockSyncTree(ctrl *gomock.Controller) *MockSyncTree
NewMockSyncTree creates a new mock instance.
func (*MockSyncTree) AclList ¶
func (m *MockSyncTree) AclList() list.AclList
AclList mocks base method.
func (*MockSyncTree) AddContent ¶
func (m *MockSyncTree) AddContent(arg0 context.Context, arg1 objecttree.SignableChangeContent) (objecttree.AddResult, error)
AddContent mocks base method.
func (*MockSyncTree) AddRawChanges ¶
func (m *MockSyncTree) AddRawChanges(arg0 context.Context, arg1 objecttree.RawChangesPayload) (objecttree.AddResult, error)
AddRawChanges mocks base method.
func (*MockSyncTree) ChangeInfo ¶
func (m *MockSyncTree) ChangeInfo() *treechangeproto.TreeChangeInfo
ChangeInfo mocks base method.
func (*MockSyncTree) ChangesAfterCommonSnapshot ¶
func (m *MockSyncTree) ChangesAfterCommonSnapshot(arg0, arg1 []string) ([]*treechangeproto.RawTreeChangeWithId, error)
ChangesAfterCommonSnapshot mocks base method.
func (*MockSyncTree) Debug ¶
func (m *MockSyncTree) Debug(arg0 objecttree.DescriptionParser) (objecttree.DebugInfo, error)
Debug mocks base method.
func (*MockSyncTree) EXPECT ¶
func (m *MockSyncTree) EXPECT() *MockSyncTreeMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSyncTree) GetChange ¶
func (m *MockSyncTree) GetChange(arg0 string) (*objecttree.Change, error)
GetChange mocks base method.
func (*MockSyncTree) HandleMessage ¶
func (m *MockSyncTree) HandleMessage(arg0 context.Context, arg1 string, arg2 *spacesyncproto.ObjectSyncMessage) error
HandleMessage mocks base method.
func (*MockSyncTree) HandleRequest ¶ added in v0.2.0
func (m *MockSyncTree) HandleRequest(arg0 context.Context, arg1 string, arg2 *spacesyncproto.ObjectSyncMessage) (*spacesyncproto.ObjectSyncMessage, error)
HandleRequest mocks base method.
func (*MockSyncTree) HasChanges ¶
func (m *MockSyncTree) HasChanges(arg0 ...string) bool
HasChanges mocks base method.
func (*MockSyncTree) Header ¶
func (m *MockSyncTree) Header() *treechangeproto.RawTreeChangeWithId
Header mocks base method.
func (*MockSyncTree) IsDerived ¶ added in v0.3.2
func (m *MockSyncTree) IsDerived() bool
IsDerived mocks base method.
func (*MockSyncTree) IterateFrom ¶
func (m *MockSyncTree) IterateFrom(arg0 string, arg1 func(*objecttree.Change, []byte) (any, error), arg2 func(*objecttree.Change) bool) error
IterateFrom mocks base method.
func (*MockSyncTree) IterateRoot ¶
func (m *MockSyncTree) IterateRoot(arg0 func(*objecttree.Change, []byte) (any, error), arg1 func(*objecttree.Change) bool) error
IterateRoot mocks base method.
func (*MockSyncTree) PrepareChange ¶
func (m *MockSyncTree) PrepareChange(arg0 objecttree.SignableChangeContent) (*treechangeproto.RawTreeChangeWithId, error)
PrepareChange mocks base method.
func (*MockSyncTree) Root ¶
func (m *MockSyncTree) Root() *objecttree.Change
Root mocks base method.
func (*MockSyncTree) SetListener ¶
func (m *MockSyncTree) SetListener(arg0 updatelistener.UpdateListener)
SetListener mocks base method.
func (*MockSyncTree) SnapshotPath ¶
func (m *MockSyncTree) SnapshotPath() []string
SnapshotPath mocks base method.
func (*MockSyncTree) Storage ¶
func (m *MockSyncTree) Storage() treestorage.TreeStorage
Storage mocks base method.
func (*MockSyncTree) SyncWithPeer ¶
func (m *MockSyncTree) SyncWithPeer(arg0 context.Context, arg1 string) error
SyncWithPeer mocks base method.
func (*MockSyncTree) TryClose ¶
func (m *MockSyncTree) TryClose(arg0 time.Duration) (bool, error)
TryClose mocks base method.
func (*MockSyncTree) UnmarshalledHeader ¶
func (m *MockSyncTree) UnmarshalledHeader() *objecttree.Change
UnmarshalledHeader mocks base method.
func (*MockSyncTree) UnpackChange ¶
func (m *MockSyncTree) UnpackChange(arg0 *treechangeproto.RawTreeChangeWithId) ([]byte, error)
UnpackChange mocks base method.
type MockSyncTreeMockRecorder ¶
type MockSyncTreeMockRecorder struct {
// contains filtered or unexported fields
}
MockSyncTreeMockRecorder is the mock recorder for MockSyncTree.
func (*MockSyncTreeMockRecorder) AclList ¶
func (mr *MockSyncTreeMockRecorder) AclList() *gomock.Call
AclList indicates an expected call of AclList.
func (*MockSyncTreeMockRecorder) AddContent ¶
func (mr *MockSyncTreeMockRecorder) AddContent(arg0, arg1 any) *gomock.Call
AddContent indicates an expected call of AddContent.
func (*MockSyncTreeMockRecorder) AddRawChanges ¶
func (mr *MockSyncTreeMockRecorder) AddRawChanges(arg0, arg1 any) *gomock.Call
AddRawChanges indicates an expected call of AddRawChanges.
func (*MockSyncTreeMockRecorder) ChangeInfo ¶
func (mr *MockSyncTreeMockRecorder) ChangeInfo() *gomock.Call
ChangeInfo indicates an expected call of ChangeInfo.
func (*MockSyncTreeMockRecorder) ChangesAfterCommonSnapshot ¶
func (mr *MockSyncTreeMockRecorder) ChangesAfterCommonSnapshot(arg0, arg1 any) *gomock.Call
ChangesAfterCommonSnapshot indicates an expected call of ChangesAfterCommonSnapshot.
func (*MockSyncTreeMockRecorder) Close ¶
func (mr *MockSyncTreeMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockSyncTreeMockRecorder) Debug ¶
func (mr *MockSyncTreeMockRecorder) Debug(arg0 any) *gomock.Call
Debug indicates an expected call of Debug.
func (*MockSyncTreeMockRecorder) Delete ¶
func (mr *MockSyncTreeMockRecorder) Delete() *gomock.Call
Delete indicates an expected call of Delete.
func (*MockSyncTreeMockRecorder) GetChange ¶
func (mr *MockSyncTreeMockRecorder) GetChange(arg0 any) *gomock.Call
GetChange indicates an expected call of GetChange.
func (*MockSyncTreeMockRecorder) HandleMessage ¶
func (mr *MockSyncTreeMockRecorder) HandleMessage(arg0, arg1, arg2 any) *gomock.Call
HandleMessage indicates an expected call of HandleMessage.
func (*MockSyncTreeMockRecorder) HandleRequest ¶ added in v0.2.0
func (mr *MockSyncTreeMockRecorder) HandleRequest(arg0, arg1, arg2 any) *gomock.Call
HandleRequest indicates an expected call of HandleRequest.
func (*MockSyncTreeMockRecorder) HasChanges ¶
func (mr *MockSyncTreeMockRecorder) HasChanges(arg0 ...any) *gomock.Call
HasChanges indicates an expected call of HasChanges.
func (*MockSyncTreeMockRecorder) Header ¶
func (mr *MockSyncTreeMockRecorder) Header() *gomock.Call
Header indicates an expected call of Header.
func (*MockSyncTreeMockRecorder) Heads ¶
func (mr *MockSyncTreeMockRecorder) Heads() *gomock.Call
Heads indicates an expected call of Heads.
func (*MockSyncTreeMockRecorder) Id ¶
func (mr *MockSyncTreeMockRecorder) Id() *gomock.Call
Id indicates an expected call of Id.
func (*MockSyncTreeMockRecorder) IsDerived ¶ added in v0.3.2
func (mr *MockSyncTreeMockRecorder) IsDerived() *gomock.Call
IsDerived indicates an expected call of IsDerived.
func (*MockSyncTreeMockRecorder) IterateFrom ¶
func (mr *MockSyncTreeMockRecorder) IterateFrom(arg0, arg1, arg2 any) *gomock.Call
IterateFrom indicates an expected call of IterateFrom.
func (*MockSyncTreeMockRecorder) IterateRoot ¶
func (mr *MockSyncTreeMockRecorder) IterateRoot(arg0, arg1 any) *gomock.Call
IterateRoot indicates an expected call of IterateRoot.
func (*MockSyncTreeMockRecorder) Len ¶
func (mr *MockSyncTreeMockRecorder) Len() *gomock.Call
Len indicates an expected call of Len.
func (*MockSyncTreeMockRecorder) Lock ¶
func (mr *MockSyncTreeMockRecorder) Lock() *gomock.Call
Lock indicates an expected call of Lock.
func (*MockSyncTreeMockRecorder) PrepareChange ¶
func (mr *MockSyncTreeMockRecorder) PrepareChange(arg0 any) *gomock.Call
PrepareChange indicates an expected call of PrepareChange.
func (*MockSyncTreeMockRecorder) Root ¶
func (mr *MockSyncTreeMockRecorder) Root() *gomock.Call
Root indicates an expected call of Root.
func (*MockSyncTreeMockRecorder) SetListener ¶
func (mr *MockSyncTreeMockRecorder) SetListener(arg0 any) *gomock.Call
SetListener indicates an expected call of SetListener.
func (*MockSyncTreeMockRecorder) SnapshotPath ¶
func (mr *MockSyncTreeMockRecorder) SnapshotPath() *gomock.Call
SnapshotPath indicates an expected call of SnapshotPath.
func (*MockSyncTreeMockRecorder) Storage ¶
func (mr *MockSyncTreeMockRecorder) Storage() *gomock.Call
Storage indicates an expected call of Storage.
func (*MockSyncTreeMockRecorder) SyncWithPeer ¶
func (mr *MockSyncTreeMockRecorder) SyncWithPeer(arg0, arg1 any) *gomock.Call
SyncWithPeer indicates an expected call of SyncWithPeer.
func (*MockSyncTreeMockRecorder) TryClose ¶
func (mr *MockSyncTreeMockRecorder) TryClose(arg0 any) *gomock.Call
TryClose indicates an expected call of TryClose.
func (*MockSyncTreeMockRecorder) TryLock ¶
func (mr *MockSyncTreeMockRecorder) TryLock() *gomock.Call
TryLock indicates an expected call of TryLock.
func (*MockSyncTreeMockRecorder) Unlock ¶
func (mr *MockSyncTreeMockRecorder) Unlock() *gomock.Call
Unlock indicates an expected call of Unlock.
func (*MockSyncTreeMockRecorder) UnmarshalledHeader ¶
func (mr *MockSyncTreeMockRecorder) UnmarshalledHeader() *gomock.Call
UnmarshalledHeader indicates an expected call of UnmarshalledHeader.
func (*MockSyncTreeMockRecorder) UnpackChange ¶
func (mr *MockSyncTreeMockRecorder) UnpackChange(arg0 any) *gomock.Call
UnpackChange indicates an expected call of UnpackChange.
type MockTreeSyncProtocol ¶ added in v0.2.0
type MockTreeSyncProtocol struct {
// contains filtered or unexported fields
}
MockTreeSyncProtocol is a mock of TreeSyncProtocol interface.
func NewMockTreeSyncProtocol ¶ added in v0.2.0
func NewMockTreeSyncProtocol(ctrl *gomock.Controller) *MockTreeSyncProtocol
NewMockTreeSyncProtocol creates a new mock instance.
func (*MockTreeSyncProtocol) EXPECT ¶ added in v0.2.0
func (m *MockTreeSyncProtocol) EXPECT() *MockTreeSyncProtocolMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockTreeSyncProtocol) FullSyncRequest ¶ added in v0.2.0
func (m *MockTreeSyncProtocol) FullSyncRequest(arg0 context.Context, arg1 string, arg2 *treechangeproto.TreeFullSyncRequest) (*treechangeproto.TreeSyncMessage, error)
FullSyncRequest mocks base method.
func (*MockTreeSyncProtocol) FullSyncResponse ¶ added in v0.2.0
func (m *MockTreeSyncProtocol) FullSyncResponse(arg0 context.Context, arg1 string, arg2 *treechangeproto.TreeFullSyncResponse) error
FullSyncResponse mocks base method.
func (*MockTreeSyncProtocol) HeadUpdate ¶ added in v0.2.0
func (m *MockTreeSyncProtocol) HeadUpdate(arg0 context.Context, arg1 string, arg2 *treechangeproto.TreeHeadUpdate) (*treechangeproto.TreeSyncMessage, error)
HeadUpdate mocks base method.
type MockTreeSyncProtocolMockRecorder ¶ added in v0.2.0
type MockTreeSyncProtocolMockRecorder struct {
// contains filtered or unexported fields
}
MockTreeSyncProtocolMockRecorder is the mock recorder for MockTreeSyncProtocol.
func (*MockTreeSyncProtocolMockRecorder) FullSyncRequest ¶ added in v0.2.0
func (mr *MockTreeSyncProtocolMockRecorder) FullSyncRequest(arg0, arg1, arg2 any) *gomock.Call
FullSyncRequest indicates an expected call of FullSyncRequest.
func (*MockTreeSyncProtocolMockRecorder) FullSyncResponse ¶ added in v0.2.0
func (mr *MockTreeSyncProtocolMockRecorder) FullSyncResponse(arg0, arg1, arg2 any) *gomock.Call
FullSyncResponse indicates an expected call of FullSyncResponse.
func (*MockTreeSyncProtocolMockRecorder) HeadUpdate ¶ added in v0.2.0
func (mr *MockTreeSyncProtocolMockRecorder) HeadUpdate(arg0, arg1, arg2 any) *gomock.Call
HeadUpdate indicates an expected call of HeadUpdate.