Documentation ¶
Overview ¶
Package objectmanagermock is a generated GoMock package.
Index ¶
- type MockObjectManager
- func (m *MockObjectManager) AddStreamSubscription(ctx context.Context, rootHash tilde.Digest) error
- func (m *MockObjectManager) Append(ctx context.Context, o *object.Object) (*object.Object, error)
- func (m *MockObjectManager) EXPECT() *MockObjectManagerMockRecorder
- func (m *MockObjectManager) Put(ctx context.Context, o *object.Object) error
- func (m *MockObjectManager) Request(ctx context.Context, hash tilde.Digest, peer *peer.ConnectionInfo) (*object.Object, error)
- func (m *MockObjectManager) RequestStream(ctx context.Context, rootHash tilde.Digest, recipients ...*peer.ConnectionInfo) (object.ReadCloser, error)
- func (m *MockObjectManager) Subscribe(lookupOptions ...objectmanager.LookupOption) objectmanager.ObjectSubscription
- type MockObjectManagerMockRecorder
- func (mr *MockObjectManagerMockRecorder) AddStreamSubscription(ctx, rootHash interface{}) *gomock.Call
- func (mr *MockObjectManagerMockRecorder) Append(ctx, o interface{}) *gomock.Call
- func (mr *MockObjectManagerMockRecorder) Put(ctx, o interface{}) *gomock.Call
- func (mr *MockObjectManagerMockRecorder) Request(ctx, hash, peer interface{}) *gomock.Call
- func (mr *MockObjectManagerMockRecorder) RequestStream(ctx, rootHash interface{}, recipients ...interface{}) *gomock.Call
- func (mr *MockObjectManagerMockRecorder) Subscribe(lookupOptions ...interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockObjectManager ¶
type MockObjectManager struct {
// contains filtered or unexported fields
}
MockObjectManager is a mock of ObjectManager interface.
func NewMockObjectManager ¶
func NewMockObjectManager(ctrl *gomock.Controller) *MockObjectManager
NewMockObjectManager creates a new mock instance.
func (*MockObjectManager) AddStreamSubscription ¶ added in v0.18.0
AddStreamSubscription mocks base method.
func (*MockObjectManager) EXPECT ¶
func (m *MockObjectManager) EXPECT() *MockObjectManagerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockObjectManager) Request ¶
func (m *MockObjectManager) Request(ctx context.Context, hash tilde.Digest, peer *peer.ConnectionInfo) (*object.Object, error)
Request mocks base method.
func (*MockObjectManager) RequestStream ¶
func (m *MockObjectManager) RequestStream(ctx context.Context, rootHash tilde.Digest, recipients ...*peer.ConnectionInfo) (object.ReadCloser, error)
RequestStream mocks base method.
func (*MockObjectManager) Subscribe ¶
func (m *MockObjectManager) Subscribe(lookupOptions ...objectmanager.LookupOption) objectmanager.ObjectSubscription
Subscribe mocks base method.
type MockObjectManagerMockRecorder ¶
type MockObjectManagerMockRecorder struct {
// contains filtered or unexported fields
}
MockObjectManagerMockRecorder is the mock recorder for MockObjectManager.
func (*MockObjectManagerMockRecorder) AddStreamSubscription ¶ added in v0.18.0
func (mr *MockObjectManagerMockRecorder) AddStreamSubscription(ctx, rootHash interface{}) *gomock.Call
AddStreamSubscription indicates an expected call of AddStreamSubscription.
func (*MockObjectManagerMockRecorder) Append ¶ added in v0.19.0
func (mr *MockObjectManagerMockRecorder) Append(ctx, o interface{}) *gomock.Call
Append indicates an expected call of Append.
func (*MockObjectManagerMockRecorder) Put ¶
func (mr *MockObjectManagerMockRecorder) Put(ctx, o interface{}) *gomock.Call
Put indicates an expected call of Put.
func (*MockObjectManagerMockRecorder) Request ¶
func (mr *MockObjectManagerMockRecorder) Request(ctx, hash, peer interface{}) *gomock.Call
Request indicates an expected call of Request.
func (*MockObjectManagerMockRecorder) RequestStream ¶
func (mr *MockObjectManagerMockRecorder) RequestStream(ctx, rootHash interface{}, recipients ...interface{}) *gomock.Call
RequestStream indicates an expected call of RequestStream.
func (*MockObjectManagerMockRecorder) Subscribe ¶
func (mr *MockObjectManagerMockRecorder) Subscribe(lookupOptions ...interface{}) *gomock.Call
Subscribe indicates an expected call of Subscribe.