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 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) HasChanges(arg0 ...string) bool
- func (m *MockSyncTree) Header() *treechangeproto.RawTreeChangeWithId
- func (m *MockSyncTree) Heads() []string
- func (m *MockSyncTree) Id() string
- func (m *MockSyncTree) IterateFrom(arg0 string, arg1 func([]byte) (interface{}, error), ...) error
- func (m *MockSyncTree) IterateRoot(arg0 func([]byte) (interface{}, error), arg1 func(*objecttree.Change) bool) error
- func (m *MockSyncTree) Len() int
- func (m *MockSyncTree) Lock()
- func (m *MockSyncTree) PrepareChange(arg0 objecttree.SignableChangeContent) (*treechangeproto.RawTreeChangeWithId, error)
- func (m *MockSyncTree) RLock()
- func (m *MockSyncTree) RUnlock()
- 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) TryRLock() 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 interface{}) *gomock.Call
- func (mr *MockSyncTreeMockRecorder) AddRawChanges(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockSyncTreeMockRecorder) ChangeInfo() *gomock.Call
- func (mr *MockSyncTreeMockRecorder) ChangesAfterCommonSnapshot(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockSyncTreeMockRecorder) Close() *gomock.Call
- func (mr *MockSyncTreeMockRecorder) Debug(arg0 interface{}) *gomock.Call
- func (mr *MockSyncTreeMockRecorder) Delete() *gomock.Call
- func (mr *MockSyncTreeMockRecorder) GetChange(arg0 interface{}) *gomock.Call
- func (mr *MockSyncTreeMockRecorder) HandleMessage(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockSyncTreeMockRecorder) HasChanges(arg0 ...interface{}) *gomock.Call
- func (mr *MockSyncTreeMockRecorder) Header() *gomock.Call
- func (mr *MockSyncTreeMockRecorder) Heads() *gomock.Call
- func (mr *MockSyncTreeMockRecorder) Id() *gomock.Call
- func (mr *MockSyncTreeMockRecorder) IterateFrom(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockSyncTreeMockRecorder) IterateRoot(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockSyncTreeMockRecorder) Len() *gomock.Call
- func (mr *MockSyncTreeMockRecorder) Lock() *gomock.Call
- func (mr *MockSyncTreeMockRecorder) PrepareChange(arg0 interface{}) *gomock.Call
- func (mr *MockSyncTreeMockRecorder) RLock() *gomock.Call
- func (mr *MockSyncTreeMockRecorder) RUnlock() *gomock.Call
- func (mr *MockSyncTreeMockRecorder) Root() *gomock.Call
- func (mr *MockSyncTreeMockRecorder) SetListener(arg0 interface{}) *gomock.Call
- func (mr *MockSyncTreeMockRecorder) SnapshotPath() *gomock.Call
- func (mr *MockSyncTreeMockRecorder) Storage() *gomock.Call
- func (mr *MockSyncTreeMockRecorder) SyncWithPeer(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockSyncTreeMockRecorder) TryClose(arg0 interface{}) *gomock.Call
- func (mr *MockSyncTreeMockRecorder) TryLock() *gomock.Call
- func (mr *MockSyncTreeMockRecorder) TryRLock() *gomock.Call
- func (mr *MockSyncTreeMockRecorder) Unlock() *gomock.Call
- func (mr *MockSyncTreeMockRecorder) UnmarshalledHeader() *gomock.Call
- func (mr *MockSyncTreeMockRecorder) UnpackChange(arg0 interface{}) *gomock.Call
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 interface{}) *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 interface{}) *gomock.Call
AddMessage indicates an expected call of AddMessage.
func (*MockReceiveQueueMockRecorder) ClearQueue ¶
func (mr *MockReceiveQueueMockRecorder) ClearQueue(arg0 interface{}) *gomock.Call
ClearQueue indicates an expected call of ClearQueue.
func (*MockReceiveQueueMockRecorder) GetMessage ¶
func (mr *MockReceiveQueueMockRecorder) GetMessage(arg0 interface{}) *gomock.Call
GetMessage indicates an expected call of GetMessage.
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) 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) IterateFrom ¶
func (m *MockSyncTree) IterateFrom(arg0 string, arg1 func([]byte) (interface{}, error), arg2 func(*objecttree.Change) bool) error
IterateFrom mocks base method.
func (*MockSyncTree) IterateRoot ¶
func (m *MockSyncTree) IterateRoot(arg0 func([]byte) (interface{}, 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 interface{}) *gomock.Call
AddContent indicates an expected call of AddContent.
func (*MockSyncTreeMockRecorder) AddRawChanges ¶
func (mr *MockSyncTreeMockRecorder) AddRawChanges(arg0, arg1 interface{}) *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 interface{}) *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 interface{}) *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 interface{}) *gomock.Call
GetChange indicates an expected call of GetChange.
func (*MockSyncTreeMockRecorder) HandleMessage ¶
func (mr *MockSyncTreeMockRecorder) HandleMessage(arg0, arg1, arg2 interface{}) *gomock.Call
HandleMessage indicates an expected call of HandleMessage.
func (*MockSyncTreeMockRecorder) HasChanges ¶
func (mr *MockSyncTreeMockRecorder) HasChanges(arg0 ...interface{}) *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) IterateFrom ¶
func (mr *MockSyncTreeMockRecorder) IterateFrom(arg0, arg1, arg2 interface{}) *gomock.Call
IterateFrom indicates an expected call of IterateFrom.
func (*MockSyncTreeMockRecorder) IterateRoot ¶
func (mr *MockSyncTreeMockRecorder) IterateRoot(arg0, arg1 interface{}) *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 interface{}) *gomock.Call
PrepareChange indicates an expected call of PrepareChange.
func (*MockSyncTreeMockRecorder) RLock ¶
func (mr *MockSyncTreeMockRecorder) RLock() *gomock.Call
RLock indicates an expected call of RLock.
func (*MockSyncTreeMockRecorder) RUnlock ¶
func (mr *MockSyncTreeMockRecorder) RUnlock() *gomock.Call
RUnlock indicates an expected call of RUnlock.
func (*MockSyncTreeMockRecorder) Root ¶
func (mr *MockSyncTreeMockRecorder) Root() *gomock.Call
Root indicates an expected call of Root.
func (*MockSyncTreeMockRecorder) SetListener ¶
func (mr *MockSyncTreeMockRecorder) SetListener(arg0 interface{}) *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 interface{}) *gomock.Call
SyncWithPeer indicates an expected call of SyncWithPeer.
func (*MockSyncTreeMockRecorder) TryClose ¶
func (mr *MockSyncTreeMockRecorder) TryClose(arg0 interface{}) *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) TryRLock ¶
func (mr *MockSyncTreeMockRecorder) TryRLock() *gomock.Call
TryRLock indicates an expected call of TryRLock.
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 interface{}) *gomock.Call
UnpackChange indicates an expected call of UnpackChange.