Documentation ¶
Index ¶
- type BucketReader
- func (_m *BucketReader) Close()
- func (_m *BucketReader) GenerateReadPresignedURL(_a0 ctx.CTX, duration time.Duration, objURL string) (string, error)
- func (_m *BucketReader) ListObjURLs(_a0 ctx.CTX, prefix string, delim string) ([]string, error)
- func (_m *BucketReader) ReadObjectContent(_a0 ctx.CTX, objURL string) ([]byte, map[string]string, error)
- type BucketWriter
- func (_m *BucketWriter) Close()
- func (_m *BucketWriter) DeleteObjects(_a0 ctx.CTX, mime entity.ContentType, objPathes []string) (bool, error)
- func (_m *BucketWriter) GeneratePutPresignedURL(_a0 ctx.CTX, uploadLimitDuration time.Duration, mime entity.ContentType, ...) (string, error)
- func (_m *BucketWriter) Update(_a0 ctx.CTX, mime entity.ContentType, objPath string, objByte []byte, ...) (string, error)
- func (_m *BucketWriter) Upload(_a0 ctx.CTX, mime entity.ContentType, objSavePath string, objByte []byte, ...) (string, string, error)
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BucketReader ¶
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 ¶
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 ¶
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
type Service ¶
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 ¶
GetBucketReader provides a mock function with given fields: _a0
func (*Service) GetBucketWriter ¶
GetBucketWriter provides a mock function with given fields: _a0