mocks

package
v2.0.5-beta.2 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

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

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

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

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

ListObjectMetadatas indicates an expected call of ListObjectMetadatas.

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