Documentation
¶
Overview ¶
Package mocks provides mock implementations for testing.
Package mocks is a generated GoMock package.
Index ¶
- type MockObjectStoreManager
- func (m *MockObjectStoreManager) Delete(ctx context.Context, name string) error
- func (m *MockObjectStoreManager) EXPECT() *MockObjectStoreManagerMockRecorder
- func (m *MockObjectStoreManager) GetBytes(ctx context.Context, name string, opts ...jetstream.GetObjectOpt) ([]byte, error)
- func (m *MockObjectStoreManager) GetInfo(ctx context.Context, name string, opts ...jetstream.GetObjectInfoOpt) (*jetstream.ObjectInfo, error)
- func (m *MockObjectStoreManager) List(ctx context.Context, opts ...jetstream.ListObjectsOpt) ([]*jetstream.ObjectInfo, error)
- func (m *MockObjectStoreManager) Put(ctx context.Context, meta jetstream.ObjectMeta, reader io.Reader) (*jetstream.ObjectInfo, error)
- func (m *MockObjectStoreManager) PutBytes(ctx context.Context, name string, data []byte) (*jetstream.ObjectInfo, error)
- type MockObjectStoreManagerMockRecorder
- func (mr *MockObjectStoreManagerMockRecorder) Delete(ctx, name any) *gomock.Call
- func (mr *MockObjectStoreManagerMockRecorder) GetBytes(ctx, name any, opts ...any) *gomock.Call
- func (mr *MockObjectStoreManagerMockRecorder) GetInfo(ctx, name any, opts ...any) *gomock.Call
- func (mr *MockObjectStoreManagerMockRecorder) List(ctx any, opts ...any) *gomock.Call
- func (mr *MockObjectStoreManagerMockRecorder) Put(ctx, meta, reader any) *gomock.Call
- func (mr *MockObjectStoreManagerMockRecorder) PutBytes(ctx, name, data any) *gomock.Call
- type MockStateKeyValue
- type MockStateKeyValueMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockObjectStoreManager ¶
type MockObjectStoreManager struct {
// contains filtered or unexported fields
}
MockObjectStoreManager is a mock of ObjectStoreManager interface.
func NewMockObjectStoreManager ¶
func NewMockObjectStoreManager(ctrl *gomock.Controller) *MockObjectStoreManager
NewMockObjectStoreManager creates a new mock instance.
func NewPlainMockObjectStoreManager ¶
func NewPlainMockObjectStoreManager( ctrl *gomock.Controller, ) *MockObjectStoreManager
NewPlainMockObjectStoreManager creates a Mock without defaults.
func (*MockObjectStoreManager) Delete ¶
func (m *MockObjectStoreManager) Delete(ctx context.Context, name string) error
Delete mocks base method.
func (*MockObjectStoreManager) EXPECT ¶
func (m *MockObjectStoreManager) EXPECT() *MockObjectStoreManagerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockObjectStoreManager) GetBytes ¶
func (m *MockObjectStoreManager) GetBytes(ctx context.Context, name string, opts ...jetstream.GetObjectOpt) ([]byte, error)
GetBytes mocks base method.
func (*MockObjectStoreManager) GetInfo ¶
func (m *MockObjectStoreManager) GetInfo(ctx context.Context, name string, opts ...jetstream.GetObjectInfoOpt) (*jetstream.ObjectInfo, error)
GetInfo mocks base method.
func (*MockObjectStoreManager) List ¶
func (m *MockObjectStoreManager) List(ctx context.Context, opts ...jetstream.ListObjectsOpt) ([]*jetstream.ObjectInfo, error)
List mocks base method.
func (*MockObjectStoreManager) Put ¶
func (m *MockObjectStoreManager) Put(ctx context.Context, meta jetstream.ObjectMeta, reader io.Reader) (*jetstream.ObjectInfo, error)
Put mocks base method.
func (*MockObjectStoreManager) PutBytes ¶
func (m *MockObjectStoreManager) PutBytes(ctx context.Context, name string, data []byte) (*jetstream.ObjectInfo, error)
PutBytes mocks base method.
type MockObjectStoreManagerMockRecorder ¶
type MockObjectStoreManagerMockRecorder struct {
// contains filtered or unexported fields
}
MockObjectStoreManagerMockRecorder is the mock recorder for MockObjectStoreManager.
func (*MockObjectStoreManagerMockRecorder) Delete ¶
func (mr *MockObjectStoreManagerMockRecorder) Delete(ctx, name any) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockObjectStoreManagerMockRecorder) GetBytes ¶
func (mr *MockObjectStoreManagerMockRecorder) GetBytes(ctx, name any, opts ...any) *gomock.Call
GetBytes indicates an expected call of GetBytes.
func (*MockObjectStoreManagerMockRecorder) GetInfo ¶
func (mr *MockObjectStoreManagerMockRecorder) GetInfo(ctx, name any, opts ...any) *gomock.Call
GetInfo indicates an expected call of GetInfo.
func (*MockObjectStoreManagerMockRecorder) List ¶
func (mr *MockObjectStoreManagerMockRecorder) List(ctx any, opts ...any) *gomock.Call
List indicates an expected call of List.
type MockStateKeyValue ¶
type MockStateKeyValue struct {
// contains filtered or unexported fields
}
MockStateKeyValue is a mock of StateKeyValue interface.
func NewMockStateKeyValue ¶
func NewMockStateKeyValue(ctrl *gomock.Controller) *MockStateKeyValue
NewMockStateKeyValue creates a new mock instance.
func (*MockStateKeyValue) EXPECT ¶
func (m *MockStateKeyValue) EXPECT() *MockStateKeyValueMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockStateKeyValue) Get ¶
func (m *MockStateKeyValue) Get(ctx context.Context, key string) (jetstream.KeyValueEntry, error)
Get mocks base method.
type MockStateKeyValueMockRecorder ¶
type MockStateKeyValueMockRecorder struct {
// contains filtered or unexported fields
}
MockStateKeyValueMockRecorder is the mock recorder for MockStateKeyValue.