mocks

package
v2.1.35 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Code generated by MockGen. DO NOT EDIT. Source: objectstorage.go

Generated by this command:

mockgen -destination mocks/objectstorage_mock.go -source objectstorage.go -package mocks

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

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

GetMetadata 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) 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 added in v2.0.7

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

func (mr *MockObjectStorageMockRecorder) GetOject(ctx, bucketName, objectKey any) *gomock.Call

GetOject indicates an expected call of GetOject.

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.

func (*MockObjectStorageMockRecorder) PutObject

func (mr *MockObjectStorageMockRecorder) PutObject(ctx, bucketName, objectKey, digest, reader any) *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