-
Notifications
You must be signed in to change notification settings - Fork 3
/
model.go
56 lines (46 loc) · 1.19 KB
/
model.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
package model
type UploadPartCommonResponse struct {
Version string `json:"Version"`
Success int `json:"success,omitempty"`
Error UploadPartError `json:"error"`
}
type InitPartResponse struct {
UploadPartCommonResponse
PayLoad InitPartPayLoad `json:"payload,omitempty"`
}
type UploadPartResponse struct {
UploadPartCommonResponse
PayLoad UploadPartPayLoad `json:"payload,omitempty"`
}
type Meta struct {
ObjectContentType string
}
type UploadPartPayLoad struct {
Uploadid string `json:"uploadid"`
PartNumber string `json:"part_number"`
Crc32 string `json:"crc32"`
Etag string `json:"etag"`
Meta Meta `json:"meta"`
}
type UploadMergeResponse struct {
UploadPartCommonResponse
PayLoad MergePartPayLoad `json:"payload,omitempty"`
}
type MergePartPayLoad struct {
Hash string `json:"hash"`
Key string `json:"key"`
}
type UploadPartError struct {
Code int `json:"code"`
Error string `json:"error"`
Message string `json:"message"`
}
type InitPartPayLoad struct {
UploadID string `json:"uploadID"`
}
type UploadPartCommon struct {
TosHost string
Oid string
Auth string
ObjectContentType string
}