-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtypes.go
More file actions
198 lines (160 loc) · 3.43 KB
/
Copy pathtypes.go
File metadata and controls
198 lines (160 loc) · 3.43 KB
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
package los
import (
"io"
"time"
)
type BucketCannedACL string
// Enum values for BucketCannedACL
const (
BucketCannedACLPrivate BucketCannedACL = "private"
BucketCannedACLPublicRead BucketCannedACL = "public-read"
BucketCannedACLPublicReadWrite BucketCannedACL = "public-read-write"
BucketCannedACLAuthenticatedRead BucketCannedACL = "authenticated-read"
)
type ObjectCannedACL string
// Enum values for ObjectCannedACL
const (
ObjectCannedACLPrivate ObjectCannedACL = "private"
ObjectCannedACLPublicRead ObjectCannedACL = "public-read"
ObjectCannedACLPublicReadWrite ObjectCannedACL = "public-read-write"
ObjectCannedACLAuthenticatedRead ObjectCannedACL = "authenticated-read"
ObjectCannedACLAwsExecRead ObjectCannedACL = "aws-exec-read"
ObjectCannedACLBucketOwnerRead ObjectCannedACL = "bucket-owner-read"
ObjectCannedACLBucketOwnerFullControl ObjectCannedACL = "bucket-owner-full-control"
)
type Bucket struct {
Name string
}
type CreateBucketInput struct {
Bucket string
ACL BucketCannedACL
}
type CreateBucketOutput struct {
}
type ListBucketsInput struct {
}
type ListBucketsOutput struct {
Buckets []Bucket
}
type DeleteBucketInput struct {
Bucket string
}
type DeleteBucketOutput struct {
}
type HeadBucketInput struct {
Bucket string
ExpectedBucketOwner string
}
type HeadBucketOutput struct {
}
type Object struct {
Key string
LastModified time.Time
Size int64
}
type PutObjectInput struct {
Bucket string
Key string
ACL ObjectCannedACL
Body io.Reader
}
type PutObjectOutput struct {
}
type ListObjectsInput struct {
Bucket string
}
type ListObjectsOutput struct {
Name string
Contents []Object
}
type DeleteObjectInput struct {
Bucket string
Key string
}
type DeleteObjectOutput struct {
}
type GetObjectInput struct {
Bucket string
Key string
Range string
}
type GetObjectOutput struct {
AcceptRanges string
Body io.ReadCloser
ContentLength int64
ContentRange string
ContentType string
LastModified time.Time
PartsCount int32
}
type HeadObjectInput struct {
Bucket string
Key string
}
type HeadObjectOutput struct {
AcceptRanges string
ContentLength int64
ContentType string
LastModified time.Time
PartsCount int32
}
type CreateMultipartUploadInput struct {
Bucket string
Key string
ACL ObjectCannedACL
}
type CreateMultipartUploadOutput struct {
Bucket string
Key string
UploadId string
}
type UploadPartInput struct {
Bucket string
Key string
PartNumber int32
UploadId string
Body io.Reader
}
type UploadPartOutput struct {
}
type ListPartsInput struct {
Bucket string
Key string
UploadId string
MaxParts int32
}
type Part struct {
LastModified time.Time
PartNumber int32
Size int64
}
type ListPartsOutput struct {
Bucket string
Key string
MaxParts int32
Parts []Part
UploadId string
}
type CompletedPart struct {
PartNumber int32
}
type CompletedMultipartUpload struct {
Parts []CompletedPart
}
type CompleteMultipartUploadInput struct {
Bucket string
Key string
UploadId string
MultipartUpload CompletedMultipartUpload
}
type CompleteMultipartUploadOutput struct {
Bucket string
Key string
}
type AbortMultipartUploadInput struct {
Bucket string
Key string
UploadId string
}
type AbortMultipartUploadOutput struct {
}