Documentation ¶
Index ¶
- type BlobServiceHandler
- func (_m *BlobServiceHandler) Close()
- func (_m *BlobServiceHandler) Delete(_a0 ctx.CTX, contentType entity.ContentType, objPathes []string) (bool, error)
- func (_m *BlobServiceHandler) GenReadPresignedURL(_a0 ctx.CTX, objURL string, duration time.Duration) (string, error)
- func (_m *BlobServiceHandler) GetObjectList(_a0 ctx.CTX, prefix string, delim string) ([]string, error)
- func (_m *BlobServiceHandler) Health(_a0 ctx.CTX, csp entity.CloudServiceProvider) (entity.HealthStatus, error)
- func (_m *BlobServiceHandler) IsObjectExists(_a0 ctx.CTX, objURL string) (bool, error)
- func (_m *BlobServiceHandler) Override(_a0 ctx.CTX, ct entity.ContentType, objPath string, objNewRaw []byte, ...) (string, error)
- func (_m *BlobServiceHandler) PutPresignedURL(_a0 ctx.CTX, objURL string, mime entity.ContentType, duration time.Duration, ...) (string, error)
- func (_m *BlobServiceHandler) ReadObjectContent(_a0 ctx.CTX, objectPath string) ([]byte, map[string]string, error)
- func (_m *BlobServiceHandler) Upload(_a0 ctx.CTX, ct entity.ContentType, objpath string, objraw []byte, ...) (string, string, error)
- type ObjectServiceProvider
- func (_m *ObjectServiceProvider) Close()
- func (_m *ObjectServiceProvider) Delete(_a0 ctx.CTX, contentType entity.ContentType, objPathes []string) (bool, error)
- func (_m *ObjectServiceProvider) GenReadPresignedURL(_a0 ctx.CTX, objURL string, duration time.Duration) (string, error)
- func (_m *ObjectServiceProvider) GetObjectList(_a0 ctx.CTX, prefix string, delim string) ([]string, error)
- func (_m *ObjectServiceProvider) Health(_a0 ctx.CTX) (entity.HealthStatus, error)
- func (_m *ObjectServiceProvider) IsObjectExists(_a0 ctx.CTX, objURL string) (bool, error)
- func (_m *ObjectServiceProvider) Override(_a0 ctx.CTX, ct entity.ContentType, objPath string, objNewRaw []byte, ...) (string, error)
- func (_m *ObjectServiceProvider) PutPresignedURL(_a0 ctx.CTX, objURL string, mime entity.ContentType, duration time.Duration, ...) (string, error)
- func (_m *ObjectServiceProvider) ReadObjectContent(_a0 ctx.CTX, objectPath string) ([]byte, map[string]string, error)
- func (_m *ObjectServiceProvider) Upload(_a0 ctx.CTX, ct entity.ContentType, objpath string, objraw []byte, ...) (string, string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlobServiceHandler ¶
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 ¶
func (_m *BlobServiceHandler) Health(_a0 ctx.CTX, csp entity.CloudServiceProvider) (entity.HealthStatus, error)
Health provides a mock function with given fields: _a0, csp
func (*BlobServiceHandler) IsObjectExists ¶
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
type ObjectServiceProvider ¶
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 ¶
func (_m *ObjectServiceProvider) Health(_a0 ctx.CTX) (entity.HealthStatus, error)
Health provides a mock function with given fields: _a0
func (*ObjectServiceProvider) IsObjectExists ¶
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