Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockObjectStorage
- func (m *MockObjectStorage) CopyObject(ctx context.Context, bucketName, sourceObjectKey, destinationObjectKey string) error
- func (m *MockObjectStorage) CreateBucket(ctx context.Context, bucketName string) error
- func (m *MockObjectStorage) DeleteBucket(ctx context.Context, bucketName string) error
- func (m *MockObjectStorage) DeleteObject(ctx context.Context, bucketName, objectKey string) error
- func (m *MockObjectStorage) EXPECT() *MockObjectStorageMockRecorder
- func (m *MockObjectStorage) GetBucketMetadata(ctx context.Context, bucketName string) (*objectstorage.BucketMetadata, error)
- func (m *MockObjectStorage) GetMetadata(ctx context.Context) *objectstorage.Metadata
- func (m *MockObjectStorage) GetObject(ctx context.Context, bucketName, objectKey string) (io.ReadCloser, error)
- func (m *MockObjectStorage) GetObjectMetadata(ctx context.Context, bucketName, objectKey string) (*objectstorage.ObjectMetadata, bool, error)
- func (m *MockObjectStorage) GetObjectMetadatas(ctx context.Context, bucketName, prefix, marker, delimiter string, limit int64) (*objectstorage.ObjectMetadatas, error)
- func (m *MockObjectStorage) GetSignURL(ctx context.Context, bucketName, objectKey string, method objectstorage.Method, ...) (string, error)
- func (m *MockObjectStorage) IsBucketExist(ctx context.Context, bucketName string) (bool, error)
- func (m *MockObjectStorage) IsObjectExist(ctx context.Context, bucketName, objectKey string) (bool, error)
- func (m *MockObjectStorage) ListBucketMetadatas(ctx context.Context) ([]*objectstorage.BucketMetadata, error)
- func (m *MockObjectStorage) PutObject(ctx context.Context, bucketName, objectKey, digest string, reader io.Reader) error
- type MockObjectStorageMockRecorder
- func (mr *MockObjectStorageMockRecorder) CopyObject(ctx, bucketName, sourceObjectKey, destinationObjectKey any) *gomock.Call
- func (mr *MockObjectStorageMockRecorder) CreateBucket(ctx, bucketName any) *gomock.Call
- func (mr *MockObjectStorageMockRecorder) DeleteBucket(ctx, bucketName any) *gomock.Call
- func (mr *MockObjectStorageMockRecorder) DeleteObject(ctx, bucketName, objectKey any) *gomock.Call
- func (mr *MockObjectStorageMockRecorder) GetBucketMetadata(ctx, bucketName any) *gomock.Call
- func (mr *MockObjectStorageMockRecorder) GetMetadata(ctx any) *gomock.Call
- func (mr *MockObjectStorageMockRecorder) GetObject(ctx, bucketName, objectKey any) *gomock.Call
- func (mr *MockObjectStorageMockRecorder) GetObjectMetadata(ctx, bucketName, objectKey any) *gomock.Call
- func (mr *MockObjectStorageMockRecorder) GetObjectMetadatas(ctx, bucketName, prefix, marker, delimiter, limit any) *gomock.Call
- func (mr *MockObjectStorageMockRecorder) GetSignURL(ctx, bucketName, objectKey, method, expire any) *gomock.Call
- func (mr *MockObjectStorageMockRecorder) IsBucketExist(ctx, bucketName any) *gomock.Call
- func (mr *MockObjectStorageMockRecorder) IsObjectExist(ctx, bucketName, objectKey any) *gomock.Call
- func (mr *MockObjectStorageMockRecorder) ListBucketMetadatas(ctx any) *gomock.Call
- func (mr *MockObjectStorageMockRecorder) PutObject(ctx, bucketName, objectKey, digest, reader any) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockObjectStorage ¶
type MockObjectStorage struct {
// contains filtered or unexported fields
}
MockObjectStorage is a mock of ObjectStorage interface.
func NewMockObjectStorage ¶
func NewMockObjectStorage(ctrl *gomock.Controller) *MockObjectStorage
NewMockObjectStorage creates a new mock instance.
func (*MockObjectStorage) CopyObject ¶ added in v2.0.30
func (m *MockObjectStorage) CopyObject(ctx context.Context, bucketName, sourceObjectKey, destinationObjectKey string) error
CopyObject mocks base method.
func (*MockObjectStorage) CreateBucket ¶
func (m *MockObjectStorage) CreateBucket(ctx context.Context, bucketName string) error
CreateBucket mocks base method.
func (*MockObjectStorage) DeleteBucket ¶
func (m *MockObjectStorage) DeleteBucket(ctx context.Context, bucketName string) error
DeleteBucket mocks base method.
func (*MockObjectStorage) DeleteObject ¶
func (m *MockObjectStorage) DeleteObject(ctx context.Context, bucketName, objectKey string) error
DeleteObject mocks base method.
func (*MockObjectStorage) EXPECT ¶
func (m *MockObjectStorage) EXPECT() *MockObjectStorageMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockObjectStorage) GetBucketMetadata ¶
func (m *MockObjectStorage) GetBucketMetadata(ctx context.Context, bucketName string) (*objectstorage.BucketMetadata, error)
GetBucketMetadata mocks base method.
func (*MockObjectStorage) GetMetadata ¶ added in v2.1.22
func (m *MockObjectStorage) GetMetadata(ctx context.Context) *objectstorage.Metadata
GetMetadata mocks base method.
func (*MockObjectStorage) GetObject ¶ added in v2.1.53
func (m *MockObjectStorage) GetObject(ctx context.Context, bucketName, objectKey string) (io.ReadCloser, error)
GetObject mocks base method.
func (*MockObjectStorage) GetObjectMetadata ¶
func (m *MockObjectStorage) GetObjectMetadata(ctx context.Context, bucketName, objectKey string) (*objectstorage.ObjectMetadata, bool, error)
GetObjectMetadata mocks base method.
func (*MockObjectStorage) GetObjectMetadatas ¶ added in v2.0.30
func (m *MockObjectStorage) GetObjectMetadatas(ctx context.Context, bucketName, prefix, marker, delimiter string, limit int64) (*objectstorage.ObjectMetadatas, error)
GetObjectMetadatas mocks base method.
func (*MockObjectStorage) GetSignURL ¶
func (m *MockObjectStorage) GetSignURL(ctx context.Context, bucketName, objectKey string, method objectstorage.Method, expire time.Duration) (string, error)
GetSignURL mocks base method.
func (*MockObjectStorage) IsBucketExist ¶ added in v2.0.7
IsBucketExist mocks base method.
func (*MockObjectStorage) IsObjectExist ¶
func (m *MockObjectStorage) IsObjectExist(ctx context.Context, bucketName, objectKey string) (bool, error)
IsObjectExist mocks base method.
func (*MockObjectStorage) ListBucketMetadatas ¶
func (m *MockObjectStorage) ListBucketMetadatas(ctx context.Context) ([]*objectstorage.BucketMetadata, error)
ListBucketMetadatas mocks base method.
type MockObjectStorageMockRecorder ¶
type MockObjectStorageMockRecorder struct {
// contains filtered or unexported fields
}
MockObjectStorageMockRecorder is the mock recorder for MockObjectStorage.
func (*MockObjectStorageMockRecorder) CopyObject ¶ added in v2.0.30
func (mr *MockObjectStorageMockRecorder) CopyObject(ctx, bucketName, sourceObjectKey, destinationObjectKey any) *gomock.Call
CopyObject indicates an expected call of CopyObject.
func (*MockObjectStorageMockRecorder) CreateBucket ¶
func (mr *MockObjectStorageMockRecorder) CreateBucket(ctx, bucketName any) *gomock.Call
CreateBucket indicates an expected call of CreateBucket.
func (*MockObjectStorageMockRecorder) DeleteBucket ¶
func (mr *MockObjectStorageMockRecorder) DeleteBucket(ctx, bucketName any) *gomock.Call
DeleteBucket indicates an expected call of DeleteBucket.
func (*MockObjectStorageMockRecorder) DeleteObject ¶
func (mr *MockObjectStorageMockRecorder) DeleteObject(ctx, bucketName, objectKey any) *gomock.Call
DeleteObject indicates an expected call of DeleteObject.
func (*MockObjectStorageMockRecorder) GetBucketMetadata ¶
func (mr *MockObjectStorageMockRecorder) GetBucketMetadata(ctx, bucketName any) *gomock.Call
GetBucketMetadata indicates an expected call of GetBucketMetadata.
func (*MockObjectStorageMockRecorder) GetMetadata ¶ added in v2.1.22
func (mr *MockObjectStorageMockRecorder) GetMetadata(ctx any) *gomock.Call
GetMetadata indicates an expected call of GetMetadata.
func (*MockObjectStorageMockRecorder) GetObject ¶ added in v2.1.53
func (mr *MockObjectStorageMockRecorder) GetObject(ctx, bucketName, objectKey any) *gomock.Call
GetObject indicates an expected call of GetObject.
func (*MockObjectStorageMockRecorder) GetObjectMetadata ¶
func (mr *MockObjectStorageMockRecorder) GetObjectMetadata(ctx, bucketName, objectKey any) *gomock.Call
GetObjectMetadata indicates an expected call of GetObjectMetadata.
func (*MockObjectStorageMockRecorder) GetObjectMetadatas ¶ added in v2.0.30
func (mr *MockObjectStorageMockRecorder) GetObjectMetadatas(ctx, bucketName, prefix, marker, delimiter, limit any) *gomock.Call
GetObjectMetadatas indicates an expected call of GetObjectMetadatas.
func (*MockObjectStorageMockRecorder) GetSignURL ¶
func (mr *MockObjectStorageMockRecorder) GetSignURL(ctx, bucketName, objectKey, method, expire any) *gomock.Call
GetSignURL indicates an expected call of GetSignURL.
func (*MockObjectStorageMockRecorder) IsBucketExist ¶ added in v2.0.7
func (mr *MockObjectStorageMockRecorder) IsBucketExist(ctx, bucketName any) *gomock.Call
IsBucketExist indicates an expected call of IsBucketExist.
func (*MockObjectStorageMockRecorder) IsObjectExist ¶
func (mr *MockObjectStorageMockRecorder) IsObjectExist(ctx, bucketName, objectKey any) *gomock.Call
IsObjectExist indicates an expected call of IsObjectExist.
func (*MockObjectStorageMockRecorder) ListBucketMetadatas ¶
func (mr *MockObjectStorageMockRecorder) ListBucketMetadatas(ctx any) *gomock.Call
ListBucketMetadatas indicates an expected call of ListBucketMetadatas.