mocks

package
v0.0.0-...-556d222 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BucketReader

type BucketReader struct {
	mock.Mock
}

BucketReader is an autogenerated mock type for the BucketReader type

func NewBucketReader

func NewBucketReader(t mockConstructorTestingTNewBucketReader) *BucketReader

NewBucketReader creates a new instance of BucketReader. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*BucketReader) Close

func (_m *BucketReader) Close()

Close provides a mock function with given fields:

func (*BucketReader) GenerateReadPresignedURL

func (_m *BucketReader) GenerateReadPresignedURL(_a0 ctx.CTX, duration time.Duration, objURL string) (string, error)

GenerateReadPresignedURL provides a mock function with given fields: _a0, duration, objURL

func (*BucketReader) ListObjURLs

func (_m *BucketReader) ListObjURLs(_a0 ctx.CTX, prefix string, delim string) ([]string, error)

ListObjURLs provides a mock function with given fields: _a0, prefix, delim

func (*BucketReader) ReadObjectContent

func (_m *BucketReader) ReadObjectContent(_a0 ctx.CTX, objURL string) ([]byte, map[string]string, error)

ReadObjectContent provides a mock function with given fields: _a0, objURL

type BucketWriter

type BucketWriter struct {
	mock.Mock
}

BucketWriter is an autogenerated mock type for the BucketWriter type

func NewBucketWriter

func NewBucketWriter(t mockConstructorTestingTNewBucketWriter) *BucketWriter

NewBucketWriter creates a new instance of BucketWriter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*BucketWriter) Close

func (_m *BucketWriter) Close()

Close provides a mock function with given fields:

func (*BucketWriter) DeleteObjects

func (_m *BucketWriter) DeleteObjects(_a0 ctx.CTX, mime entity.ContentType, objPathes []string) (bool, error)

DeleteObjects provides a mock function with given fields: _a0, mime, objPathes

func (*BucketWriter) GeneratePutPresignedURL

func (_m *BucketWriter) GeneratePutPresignedURL(_a0 ctx.CTX, uploadLimitDuration time.Duration, mime entity.ContentType, newObjSavePath string, objectMetadata map[string]string) (string, error)

GeneratePutPresignedURL provides a mock function with given fields: _a0, uploadLimitDuration, mime, newObjSavePath, objectMetadata

func (*BucketWriter) Update

func (_m *BucketWriter) Update(_a0 ctx.CTX, mime entity.ContentType, objPath string, objByte []byte, objmetadata map[string]string) (string, error)

Update provides a mock function with given fields: _a0, mime, objPath, objByte, objmetadata

func (*BucketWriter) Upload

func (_m *BucketWriter) Upload(_a0 ctx.CTX, mime entity.ContentType, objSavePath string, objByte []byte, objmetadata map[string]string) (string, string, error)

Upload provides a mock function with given fields: _a0, mime, objSavePath, objByte, objmetadata

type Service

type Service struct {
	mock.Mock
}

Service is an autogenerated mock type for the Service type

func NewService

func NewService(t mockConstructorTestingTNewService) *Service

NewService creates a new instance of Service. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Service) GetBucketReader

func (_m *Service) GetBucketReader(_a0 ctx.CTX) (ifc.BucketReader, error)

GetBucketReader provides a mock function with given fields: _a0

func (*Service) GetBucketWriter

func (_m *Service) GetBucketWriter(_a0 ctx.CTX) (ifc.BucketWriter, error)

GetBucketWriter provides a mock function with given fields: _a0

Jump to

Keyboard shortcuts

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