-
Notifications
You must be signed in to change notification settings - Fork 8
/
s3_structs.go
48 lines (39 loc) · 1.08 KB
/
s3_structs.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
// SPDX-FileCopyrightText: 2022 Marshall Wace <[email protected]>
// SPDX-License-Identifier: GPL-3.0-only
package main
import (
"time"
)
type ListBucketResult struct {
Name string `xml:"Name"`
Prefix string `xml:"Prefix"`
Delimiter string `xml:"Delimiter"`
KeyCount int `xml:"KeyCount"`
Contents []Content `xml:"Contents"`
CommonPrefixes []CommonPrefix `xml:"CommonPrefixes"`
}
type Content struct {
Key string `xml:"Key"`
LastModified time.Time `xml:"LastModified"`
Size int64 `xml:"Size"`
StorageClass string `xml:"StorageClass"`
}
type CommonPrefix struct {
Prefix string `xml:"Prefix"`
}
type ListAllMyBucketsResult struct {
Buckets []Bucket `xml:"Buckets>Bucket"`
Owner Owner `xml:"Owner"`
}
type Bucket struct {
Name string `xml:"Name"`
CreationDate time.Time `xml:"CreationDate"`
}
type Owner struct {
DisplayName string `xml:"DisplayName"`
ID string `xml:"ID"`
}
type Error struct {
Code string `xml:"Code"`
Message string `xml:"Message"`
}