mirror of
https://github.com/nabbar/golib.git
synced 2025-10-06 16:27:02 +08:00
Package AWS:
- rework MultipartUpload process & helper - update test to use lib size - update object multipart to use new helper Package IO Utils : - add truncate & sync to FileProgress - fix error on open file mode for FileProgress Package Console : - fix interface used for color buffer Package Cobra : - add function to print message on write config to use custom message instead of internal message. If the function is not set, the default message will be print. Other: - fix golangci-lint config to remove crazy linter (use only golang group compliance linter) - bump dependencies
This commit is contained in:
@@ -30,6 +30,8 @@ import (
|
||||
"io"
|
||||
"time"
|
||||
|
||||
libmpu "github.com/nabbar/golib/aws/multipart"
|
||||
|
||||
libsiz "github.com/nabbar/golib/size"
|
||||
|
||||
sdkiam "github.com/aws/aws-sdk-go-v2/service/iam"
|
||||
@@ -67,6 +69,7 @@ type Object interface {
|
||||
GetAttributes(object, version string) (*sdksss.GetObjectAttributesOutput, liberr.Error)
|
||||
|
||||
MultipartList(keyMarker, markerId string) (uploads []sdktps.MultipartUpload, nextKeyMarker string, nextIdMarker string, count int64, e liberr.Error)
|
||||
MultipartNew(partSize libsiz.Size, object string) libmpu.MultiPart
|
||||
MultipartPut(object string, body io.Reader) liberr.Error
|
||||
MultipartPutCustom(partSize libsiz.Size, object string, body io.Reader) liberr.Error
|
||||
MultipartCancel(uploadId, key string) liberr.Error
|
||||
|
Reference in New Issue
Block a user