2023-02-16 16:19:53 +08:00
|
|
|
package objstorage
|
|
|
|
|
|
|
|
|
|
import "context"
|
|
|
|
|
|
|
|
|
|
type Interface interface {
|
|
|
|
|
Init() error
|
|
|
|
|
Name() string
|
2023-02-22 11:20:09 +08:00
|
|
|
MinMultipartSize() int64
|
2023-02-16 16:19:53 +08:00
|
|
|
UploadBucket() string
|
|
|
|
|
PermanentBucket() string
|
|
|
|
|
ClearBucket() string
|
|
|
|
|
ApplyPut(ctx context.Context, args *ApplyPutArgs) (*PutRes, error)
|
|
|
|
|
GetObjectInfo(ctx context.Context, args *BucketFile) (*ObjectInfo, error)
|
|
|
|
|
CopyObjetInfo(ctx context.Context, src *BucketFile, dst *BucketFile) error
|
|
|
|
|
DeleteObjetInfo(ctx context.Context, info *BucketFile) error
|
|
|
|
|
MoveObjetInfo(ctx context.Context, src *BucketFile, dst *BucketFile) error
|
|
|
|
|
MergeObjectInfo(ctx context.Context, src []BucketFile, dst *BucketFile) error
|
|
|
|
|
IsNotFound(err error) bool
|
|
|
|
|
}
|