mocks

package
v1.0.15 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 17, 2023 License: Apache-2.0 Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package mocks is a generated GoMock package.

Index

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

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

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) GetObjectMetadata

func (m *MockObjectStorage) GetObjectMetadata(ctx context.Context, bucketName, objectKey string) (*objectstorage.ObjectMetadata, bool, error)

GetObjectMetadata mocks base method.

func (*MockObjectStorage) GetObjectMetadatas

func (m *MockObjectStorage) GetObjectMetadatas(ctx context.Context, bucketName, prefix, marker, delimiter string, limit int64) ([]*objectstorage.ObjectMetadata, error)

GetObjectMetadatas mocks base method.

func (*MockObjectStorage) GetOject

func (m *MockObjectStorage) GetOject(ctx context.Context, bucketName, objectKey string) (io.ReadCloser, error)

GetOject 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

func (m *MockObjectStorage) IsBucketExist(ctx context.Context, bucketName string) (bool, error)

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.

func (*MockObjectStorage) PutObject

func (m *MockObjectStorage) PutObject(ctx context.Context, bucketName, objectKey, digest string, reader io.Reader) error

PutObject mocks base method.

type MockObjectStorageMockRecorder

type MockObjectStorageMockRecorder struct {
	// contains filtered or unexported fields
}

MockObjectStorageMockRecorder is the mock recorder for MockObjectStorage.

func (*MockObjectStorageMockRecorder) CopyObject

func (mr *MockObjectStorageMockRecorder) CopyObject(ctx, bucketName, sourceObjectKey, destinationObjectKey interface{}) *gomock.Call

CopyObject indicates an expected call of CopyObject.

func (*MockObjectStorageMockRecorder) CreateBucket

func (mr *MockObjectStorageMockRecorder) CreateBucket(ctx, bucketName interface{}) *gomock.Call

CreateBucket indicates an expected call of CreateBucket.

func (*MockObjectStorageMockRecorder) DeleteBucket

func (mr *MockObjectStorageMockRecorder) DeleteBucket(ctx, bucketName interface{}) *gomock.Call

DeleteBucket indicates an expected call of DeleteBucket.

func (*MockObjectStorageMockRecorder) DeleteObject

func (mr *MockObjectStorageMockRecorder) DeleteObject(ctx, bucketName, objectKey interface{}) *gomock.Call

DeleteObject indicates an expected call of DeleteObject.

func (*MockObjectStorageMockRecorder) GetBucketMetadata

func (mr *MockObjectStorageMockRecorder) GetBucketMetadata(ctx, bucketName interface{}) *gomock.Call

GetBucketMetadata indicates an expected call of GetBucketMetadata.

func (*MockObjectStorageMockRecorder) GetObjectMetadata

func (mr *MockObjectStorageMockRecorder) GetObjectMetadata(ctx, bucketName, objectKey interface{}) *gomock.Call

GetObjectMetadata indicates an expected call of GetObjectMetadata.

func (*MockObjectStorageMockRecorder) GetObjectMetadatas

func (mr *MockObjectStorageMockRecorder) GetObjectMetadatas(ctx, bucketName, prefix, marker, delimiter, limit interface{}) *gomock.Call

GetObjectMetadatas indicates an expected call of GetObjectMetadatas.

func (*MockObjectStorageMockRecorder) GetOject

func (mr *MockObjectStorageMockRecorder) GetOject(ctx, bucketName, objectKey interface{}) *gomock.Call

GetOject indicates an expected call of GetOject.

func (*MockObjectStorageMockRecorder) GetSignURL

func (mr *MockObjectStorageMockRecorder) GetSignURL(ctx, bucketName, objectKey, method, expire interface{}) *gomock.Call

GetSignURL indicates an expected call of GetSignURL.

func (*MockObjectStorageMockRecorder) IsBucketExist

func (mr *MockObjectStorageMockRecorder) IsBucketExist(ctx, bucketName interface{}) *gomock.Call

IsBucketExist indicates an expected call of IsBucketExist.

func (*MockObjectStorageMockRecorder) IsObjectExist

func (mr *MockObjectStorageMockRecorder) IsObjectExist(ctx, bucketName, objectKey interface{}) *gomock.Call

IsObjectExist indicates an expected call of IsObjectExist.

func (*MockObjectStorageMockRecorder) ListBucketMetadatas

func (mr *MockObjectStorageMockRecorder) ListBucketMetadatas(ctx interface{}) *gomock.Call

ListBucketMetadatas indicates an expected call of ListBucketMetadatas.

func (*MockObjectStorageMockRecorder) PutObject

func (mr *MockObjectStorageMockRecorder) PutObject(ctx, bucketName, objectKey, digest, reader interface{}) *gomock.Call

PutObject indicates an expected call of PutObject.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL