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: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlobServiceHandler

type BlobServiceHandler struct {
	mock.Mock
}

BlobServiceHandler is an autogenerated mock type for the BlobServiceHandler type

func NewBlobServiceHandler

func NewBlobServiceHandler(t mockConstructorTestingTNewBlobServiceHandler) *BlobServiceHandler

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

func (*BlobServiceHandler) Close

func (_m *BlobServiceHandler) Close()

Close provides a mock function with given fields:

func (*BlobServiceHandler) Delete

func (_m *BlobServiceHandler) Delete(_a0 ctx.CTX, contentType entity.ContentType, objPathes []string) (bool, error)

Delete provides a mock function with given fields: _a0, contentType, objPathes

func (*BlobServiceHandler) GenReadPresignedURL

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

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

func (*BlobServiceHandler) GetObjectList

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

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

func (*BlobServiceHandler) Health

Health provides a mock function with given fields: _a0, csp

func (*BlobServiceHandler) IsObjectExists

func (_m *BlobServiceHandler) IsObjectExists(_a0 ctx.CTX, objURL string) (bool, error)

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

func (*BlobServiceHandler) Override

func (_m *BlobServiceHandler) Override(_a0 ctx.CTX, ct entity.ContentType, objPath string, objNewRaw []byte, objmetadata map[string]string) (string, error)

Override provides a mock function with given fields: _a0, ct, objPath, objNewRaw, objmetadata

func (*BlobServiceHandler) PutPresignedURL

func (_m *BlobServiceHandler) PutPresignedURL(_a0 ctx.CTX, objURL string, mime entity.ContentType, duration time.Duration, metaData map[string]string) (string, error)

PutPresignedURL provides a mock function with given fields: _a0, objURL, mime, duration, metaData

func (*BlobServiceHandler) ReadObjectContent

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

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

func (*BlobServiceHandler) Upload

func (_m *BlobServiceHandler) Upload(_a0 ctx.CTX, ct entity.ContentType, objpath string, objraw []byte, objmetadata map[string]string) (string, string, error)

Upload provides a mock function with given fields: _a0, ct, objpath, objraw, objmetadata

type ObjectServiceProvider

type ObjectServiceProvider struct {
	mock.Mock
}

ObjectServiceProvider is an autogenerated mock type for the ObjectServiceProvider type

func NewObjectServiceProvider

func NewObjectServiceProvider(t mockConstructorTestingTNewObjectServiceProvider) *ObjectServiceProvider

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

func (*ObjectServiceProvider) Close

func (_m *ObjectServiceProvider) Close()

Close provides a mock function with given fields:

func (*ObjectServiceProvider) Delete

func (_m *ObjectServiceProvider) Delete(_a0 ctx.CTX, contentType entity.ContentType, objPathes []string) (bool, error)

Delete provides a mock function with given fields: _a0, contentType, objPathes

func (*ObjectServiceProvider) GenReadPresignedURL

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

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

func (*ObjectServiceProvider) GetObjectList

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

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

func (*ObjectServiceProvider) Health

Health provides a mock function with given fields: _a0

func (*ObjectServiceProvider) IsObjectExists

func (_m *ObjectServiceProvider) IsObjectExists(_a0 ctx.CTX, objURL string) (bool, error)

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

func (*ObjectServiceProvider) Override

func (_m *ObjectServiceProvider) Override(_a0 ctx.CTX, ct entity.ContentType, objPath string, objNewRaw []byte, objmetadata map[string]string) (string, error)

Override provides a mock function with given fields: _a0, ct, objPath, objNewRaw, objmetadata

func (*ObjectServiceProvider) PutPresignedURL

func (_m *ObjectServiceProvider) PutPresignedURL(_a0 ctx.CTX, objURL string, mime entity.ContentType, duration time.Duration, metaData map[string]string) (string, error)

PutPresignedURL provides a mock function with given fields: _a0, objURL, mime, duration, metaData

func (*ObjectServiceProvider) ReadObjectContent

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

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

func (*ObjectServiceProvider) Upload

func (_m *ObjectServiceProvider) Upload(_a0 ctx.CTX, ct entity.ContentType, objpath string, objraw []byte, objmetadata map[string]string) (string, string, error)

Upload provides a mock function with given fields: _a0, ct, objpath, objraw, objmetadata

Jump to

Keyboard shortcuts

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