generated from beyondstorage/go-service-example
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathiterator.go
More file actions
41 lines (34 loc) · 750 Bytes
/
iterator.go
File metadata and controls
41 lines (34 loc) · 750 Bytes
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
package qingstor
import (
"strconv"
)
type objectPageStatus struct {
delimiter string
limit int
marker string
prefix string
partIdMarker string
}
func (i *objectPageStatus) ContinuationToken() string {
if i.partIdMarker != "" {
return i.marker + "/" + i.partIdMarker
}
return i.marker
}
type storagePageStatus struct {
limit int
offset int
location string
}
func (i *storagePageStatus) ContinuationToken() string {
return strconv.FormatInt(int64(i.offset), 10)
}
type partPageStatus struct {
prefix string
limit int
partNumberMarker int
uploadID string
}
func (i *partPageStatus) ContinuationToken() string {
return strconv.FormatInt(int64(i.partNumberMarker), 10)
}