98 lines
1.5 KiB
Go
98 lines
1.5 KiB
Go
package watermark
|
|
|
|
import "io"
|
|
|
|
type UploadFileCommand struct {
|
|
BucketName string
|
|
ObjectKey string
|
|
Data io.Reader
|
|
}
|
|
|
|
type DeleteFileCommand struct {
|
|
BucketName string
|
|
ObjectKey string
|
|
}
|
|
|
|
type InitMultipartCommand struct {
|
|
BucketName string
|
|
ObjectKey string
|
|
}
|
|
|
|
type UploadPartCommand struct {
|
|
BucketName string
|
|
ObjectKey string
|
|
UploadID string
|
|
PartNumber int32
|
|
Data io.Reader
|
|
}
|
|
|
|
type CompleteMultipartCommand struct {
|
|
BucketName string
|
|
ObjectKey string
|
|
UploadID string
|
|
Parts []CompletedPart
|
|
}
|
|
|
|
type AbortMultipartCommand struct {
|
|
BucketName string
|
|
ObjectKey string
|
|
UploadID string
|
|
}
|
|
|
|
type CreateBucketCommand struct {
|
|
Name string
|
|
}
|
|
|
|
type DeleteBucketCommand struct {
|
|
Name string
|
|
}
|
|
|
|
type CreateFolderCommand struct {
|
|
ParentID *string
|
|
Name string
|
|
OwnerID string
|
|
}
|
|
|
|
type RenameFolderCommand struct {
|
|
ID string
|
|
Name string
|
|
OwnerID string
|
|
}
|
|
|
|
type DeleteFolderCommand struct {
|
|
ID string
|
|
OwnerID string
|
|
}
|
|
|
|
type UploadToFolderCommand struct {
|
|
FolderID string
|
|
FileName string
|
|
Data []byte
|
|
ContentType string
|
|
OwnerID string
|
|
}
|
|
|
|
type MoveFileCommand struct {
|
|
FileID string
|
|
TargetFolderID string
|
|
OwnerID string
|
|
}
|
|
|
|
type CreateShareCommand struct {
|
|
ResourceType string
|
|
ResourceID string
|
|
Password string
|
|
MaxDownloads *int
|
|
CreatedBy string
|
|
}
|
|
|
|
type DeleteShareCommand struct {
|
|
ID string
|
|
CreatedBy string
|
|
}
|
|
|
|
type CompletedPart struct {
|
|
PartNumber int32
|
|
ETag string
|
|
}
|