File tree 1 file changed +20
-5
lines changed
1 file changed +20
-5
lines changed Original file line number Diff line number Diff line change @@ -14,11 +14,26 @@ const (
14
14
OffsetUnknown = - 1
15
15
)
16
16
17
+ // Upload represents an upload on the server.
17
18
type Upload struct {
18
- Location string
19
- RemoteSize int64
20
- RemoteOffset int64
21
- Metadata map [string ]string
19
+ // Location is the upload location. Can be either a path or URL
20
+ Location string
21
+
22
+ // RemoteSize is the remote upload size in bytes. Value SizeUnknown here means that the upload was created with
23
+ // deferred size and must be determined before the first data transfer.
24
+ RemoteSize int64
25
+
26
+ // RemoteOffset reflects the offset of remote upload. This field is continuously updated by UploadStream
27
+ // while transferring the data.
28
+ RemoteOffset int64
29
+
30
+ // Metadata is additional data assigned to the upload, when it was created on the server.
31
+ Metadata map [string ]string
32
+
33
+ // UploadExpired represents the time when an upload expire on the server and won't be available since then. Nil
34
+ // value means that upload will not be expired.
22
35
UploadExpired * time.Time
23
- Partial bool
36
+
37
+ // Partial true value denotes that the upload is "partial" and meant to be concatenated into a "final" upload further.
38
+ Partial bool
24
39
}
You can’t perform that action at this time.
0 commit comments