mock

package
v1.85.0 Latest Latest
Warning

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

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

Documentation

Overview

Package mock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockConfig

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

MockConfig is a mock of Config interface.

func NewMockConfig

func NewMockConfig(ctrl *gomock.Controller) *MockConfig

NewMockConfig creates a new mock instance.

func (*MockConfig) EXPECT

func (m *MockConfig) EXPECT() *MockConfigMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockConfig) NewStorage

func (m *MockConfig) NewStorage() (static.Storage, error)

NewStorage mocks base method.

type MockConfigMockRecorder

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

MockConfigMockRecorder is the mock recorder for MockConfig.

func (*MockConfigMockRecorder) NewStorage

func (mr *MockConfigMockRecorder) NewStorage() *gomock.Call

NewStorage indicates an expected call of NewStorage.

type MockStorage

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

MockStorage is a mock of Storage interface.

func NewMockStorage

func NewMockStorage(ctrl *gomock.Controller) *MockStorage

NewMockStorage creates a new mock instance.

func NewStorage

func NewStorage(t *testing.T) *MockStorage

func (*MockStorage) CreateBucket

func (m *MockStorage) CreateBucket(ctx context.Context, name, location string) error

CreateBucket mocks base method.

func (*MockStorage) EXPECT

func (m *MockStorage) EXPECT() *MockStorageMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockStorage) ExpectAddObjectError

func (m *MockStorage) ExpectAddObjectError() *MockStorage

func (*MockStorage) ExpectAddObjectNoError

func (m *MockStorage) ExpectAddObjectNoError() *MockStorage

func (*MockStorage) ExpectRemoveObjectError

func (m *MockStorage) ExpectRemoveObjectError() *MockStorage

func (*MockStorage) ExpectRemoveObjectNoError

func (m *MockStorage) ExpectRemoveObjectNoError() *MockStorage

func (*MockStorage) ExpectRemoveObjectsNoError

func (m *MockStorage) ExpectRemoveObjectsNoError() *MockStorage

func (*MockStorage) GetObject

func (m *MockStorage) GetObject(ctx context.Context, bucketName, objectName string) (io.Reader, func() (*domain.AssetInfo, error), error)

GetObject mocks base method.

func (*MockStorage) GetObjectInfo

func (m *MockStorage) GetObjectInfo(ctx context.Context, bucketName, objectName string) (*domain.AssetInfo, error)

GetObjectInfo mocks base method.

func (*MockStorage) GetObjectPresignedURL

func (m *MockStorage) GetObjectPresignedURL(ctx context.Context, bucketName, objectName string, expiration time.Duration) (*url.URL, error)

GetObjectPresignedURL mocks base method.

func (*MockStorage) ListBuckets

func (m *MockStorage) ListBuckets(ctx context.Context) ([]*domain.BucketInfo, error)

ListBuckets mocks base method.

func (*MockStorage) ListObjectInfos

func (m *MockStorage) ListObjectInfos(ctx context.Context, bucketName, prefix string, recursive bool) ([]*domain.AssetInfo, error)

ListObjectInfos mocks base method.

func (*MockStorage) PutObject

func (m *MockStorage) PutObject(ctx context.Context, bucketName, objectName, contentType string, object io.Reader, objectSize int64, createBucketIfNotExisting bool) (*domain.AssetInfo, error)

PutObject mocks base method.

func (*MockStorage) RemoveBucket

func (m *MockStorage) RemoveBucket(ctx context.Context, name string) error

RemoveBucket mocks base method.

func (*MockStorage) RemoveObject

func (m *MockStorage) RemoveObject(ctx context.Context, bucketName, objectName string) error

RemoveObject mocks base method.

func (*MockStorage) RemoveObjects

func (m *MockStorage) RemoveObjects(ctx context.Context, bucketName, path string, recursive bool) error

RemoveObjects mocks base method.

type MockStorageMockRecorder

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

MockStorageMockRecorder is the mock recorder for MockStorage.

func (*MockStorageMockRecorder) CreateBucket

func (mr *MockStorageMockRecorder) CreateBucket(ctx, name, location interface{}) *gomock.Call

CreateBucket indicates an expected call of CreateBucket.

func (*MockStorageMockRecorder) GetObject

func (mr *MockStorageMockRecorder) GetObject(ctx, bucketName, objectName interface{}) *gomock.Call

GetObject indicates an expected call of GetObject.

func (*MockStorageMockRecorder) GetObjectInfo

func (mr *MockStorageMockRecorder) GetObjectInfo(ctx, bucketName, objectName interface{}) *gomock.Call

GetObjectInfo indicates an expected call of GetObjectInfo.

func (*MockStorageMockRecorder) GetObjectPresignedURL

func (mr *MockStorageMockRecorder) GetObjectPresignedURL(ctx, bucketName, objectName, expiration interface{}) *gomock.Call

GetObjectPresignedURL indicates an expected call of GetObjectPresignedURL.

func (*MockStorageMockRecorder) ListBuckets

func (mr *MockStorageMockRecorder) ListBuckets(ctx interface{}) *gomock.Call

ListBuckets indicates an expected call of ListBuckets.

func (*MockStorageMockRecorder) ListObjectInfos

func (mr *MockStorageMockRecorder) ListObjectInfos(ctx, bucketName, prefix, recursive interface{}) *gomock.Call

ListObjectInfos indicates an expected call of ListObjectInfos.

func (*MockStorageMockRecorder) PutObject

func (mr *MockStorageMockRecorder) PutObject(ctx, bucketName, objectName, contentType, object, objectSize, createBucketIfNotExisting interface{}) *gomock.Call

PutObject indicates an expected call of PutObject.

func (*MockStorageMockRecorder) RemoveBucket

func (mr *MockStorageMockRecorder) RemoveBucket(ctx, name interface{}) *gomock.Call

RemoveBucket indicates an expected call of RemoveBucket.

func (*MockStorageMockRecorder) RemoveObject

func (mr *MockStorageMockRecorder) RemoveObject(ctx, bucketName, objectName interface{}) *gomock.Call

RemoveObject indicates an expected call of RemoveObject.

func (*MockStorageMockRecorder) RemoveObjects

func (mr *MockStorageMockRecorder) RemoveObjects(ctx, bucketName, path, recursive interface{}) *gomock.Call

RemoveObjects indicates an expected call of RemoveObjects.

Jump to

Keyboard shortcuts

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