github.com/opentelekomcloud/gophertelekomcloud@v0.9.3/openstack/obs/model_bucket.go (about) 1 package obs 2 3 import ( 4 "encoding/xml" 5 ) 6 7 // ListBucketsInput is the input parameter of ListBuckets function 8 type ListBucketsInput struct { 9 QueryLocation bool 10 BucketType BucketType 11 } 12 13 // ListBucketsOutput is the result of ListBuckets function 14 type ListBucketsOutput struct { 15 BaseModel 16 XMLName xml.Name `xml:"ListAllMyBucketsResult"` 17 Owner Owner `xml:"Owner"` 18 Buckets []Bucket `xml:"Buckets>Bucket"` 19 } 20 21 // CreateBucketInput is the input parameter of CreateBucket function 22 type CreateBucketInput struct { 23 BucketLocation 24 Bucket string `xml:"-"` 25 ACL AclType `xml:"-"` 26 StorageClass StorageClassType `xml:"-"` 27 GrantReadId string `xml:"-"` 28 GrantWriteId string `xml:"-"` 29 GrantReadAcpId string `xml:"-"` 30 GrantWriteAcpId string `xml:"-"` 31 GrantFullControlId string `xml:"-"` 32 GrantReadDeliveredId string `xml:"-"` 33 GrantFullControlDeliveredId string `xml:"-"` 34 Epid string `xml:"-"` 35 IsFSFileInterface bool `xml:"-"` 36 ObjectLockEnabled bool `xml:"-"` 37 } 38 39 // SetBucketStoragePolicyInput is the input parameter of SetBucketStoragePolicy function 40 type SetBucketStoragePolicyInput struct { 41 Bucket string `xml:"-"` 42 BucketStoragePolicy 43 } 44 45 type getBucketStoragePolicyOutputS3 struct { 46 BaseModel 47 BucketStoragePolicy 48 } 49 50 // GetBucketStoragePolicyOutput is the result of GetBucketStoragePolicy function 51 type GetBucketStoragePolicyOutput struct { 52 BaseModel 53 StorageClass string 54 } 55 56 type getBucketStoragePolicyOutputObs struct { 57 BaseModel 58 bucketStoragePolicyObs 59 } 60 61 // SetBucketQuotaInput is the input parameter of SetBucketQuota function 62 type SetBucketQuotaInput struct { 63 Bucket string `xml:"-"` 64 BucketQuota 65 } 66 67 // GetBucketQuotaOutput is the result of GetBucketQuota function 68 type GetBucketQuotaOutput struct { 69 BaseModel 70 BucketQuota 71 } 72 73 // GetBucketStorageInfoOutput is the result of GetBucketStorageInfo function 74 type GetBucketStorageInfoOutput struct { 75 BaseModel 76 XMLName xml.Name `xml:"GetBucketStorageInfoResult"` 77 Size int64 `xml:"Size"` 78 ObjectNumber int `xml:"ObjectNumber"` 79 } 80 81 type getBucketLocationOutputS3 struct { 82 BaseModel 83 BucketLocation 84 } 85 type getBucketLocationOutputObs struct { 86 BaseModel 87 bucketLocationObs 88 } 89 90 // GetBucketLocationOutput is the result of GetBucketLocation function 91 type GetBucketLocationOutput struct { 92 BaseModel 93 Location string `xml:"-"` 94 } 95 96 // GetBucketAclOutput is the result of GetBucketAcl function 97 type GetBucketAclOutput struct { 98 BaseModel 99 AccessControlPolicy 100 } 101 102 // SetBucketAclInput is the input parameter of SetBucketAcl function 103 type SetBucketAclInput struct { 104 Bucket string `xml:"-"` 105 ACL AclType `xml:"-"` 106 AccessControlPolicy 107 } 108 109 // SetBucketPolicyInput is the input parameter of SetBucketPolicy function 110 type SetBucketPolicyInput struct { 111 Bucket string 112 Policy string 113 } 114 115 // GetBucketPolicyOutput is the result of GetBucketPolicy function 116 type GetBucketPolicyOutput struct { 117 BaseModel 118 Policy string `json:"body"` 119 } 120 121 // SetBucketCorsInput is the input parameter of SetBucketCors function 122 type SetBucketCorsInput struct { 123 Bucket string `xml:"-"` 124 BucketCors 125 } 126 127 // GetBucketCorsOutput is the result of GetBucketCors function 128 type GetBucketCorsOutput struct { 129 BaseModel 130 BucketCors 131 } 132 133 // SetBucketVersioningInput is the input parameter of SetBucketVersioning function 134 type SetBucketVersioningInput struct { 135 Bucket string `xml:"-"` 136 BucketVersioningConfiguration 137 } 138 139 // GetBucketVersioningOutput is the result of GetBucketVersioning function 140 type GetBucketVersioningOutput struct { 141 BaseModel 142 BucketVersioningConfiguration 143 } 144 145 // SetBucketWebsiteConfigurationInput is the input parameter of SetBucketWebsiteConfiguration function 146 type SetBucketWebsiteConfigurationInput struct { 147 Bucket string `xml:"-"` 148 BucketWebsiteConfiguration 149 } 150 151 // GetBucketWebsiteConfigurationOutput is the result of GetBucketWebsiteConfiguration function 152 type GetBucketWebsiteConfigurationOutput struct { 153 BaseModel 154 BucketWebsiteConfiguration 155 } 156 157 // GetBucketMetadataInput is the input parameter of GetBucketMetadata function 158 type GetBucketMetadataInput struct { 159 Bucket string 160 Origin string 161 RequestHeader string 162 } 163 164 // SetObjectMetadataInput is the input parameter of SetObjectMetadata function 165 type SetObjectMetadataInput struct { 166 Bucket string 167 Key string 168 VersionId string 169 MetadataDirective MetadataDirectiveType 170 CacheControl string 171 ContentDisposition string 172 ContentEncoding string 173 ContentLanguage string 174 ContentType string 175 Expires string 176 WebsiteRedirectLocation string 177 StorageClass StorageClassType 178 Metadata map[string]string 179 } 180 181 // SetObjectMetadataOutput is the result of SetObjectMetadata function 182 type SetObjectMetadataOutput struct { 183 BaseModel 184 MetadataDirective MetadataDirectiveType 185 CacheControl string 186 ContentDisposition string 187 ContentEncoding string 188 ContentLanguage string 189 ContentType string 190 Expires string 191 WebsiteRedirectLocation string 192 StorageClass StorageClassType 193 Metadata map[string]string 194 } 195 196 // GetBucketMetadataOutput is the result of GetBucketMetadata function 197 type GetBucketMetadataOutput struct { 198 BaseModel 199 StorageClass StorageClassType 200 Location string 201 Version string 202 AllowOrigin string 203 AllowMethod string 204 AllowHeader string 205 MaxAgeSeconds int 206 ExposeHeader string 207 Epid string 208 FSStatus FSStatusType 209 } 210 211 // SetBucketLoggingConfigurationInput is the input parameter of SetBucketLoggingConfiguration function 212 type SetBucketLoggingConfigurationInput struct { 213 Bucket string `xml:"-"` 214 BucketLoggingStatus 215 } 216 217 // GetBucketLoggingConfigurationOutput is the result of GetBucketLoggingConfiguration function 218 type GetBucketLoggingConfigurationOutput struct { 219 BaseModel 220 BucketLoggingStatus 221 } 222 223 // BucketLifecycleConfiguration defines the bucket lifecycle configuration 224 type BucketLifecycleConfiguration struct { 225 XMLName xml.Name `xml:"LifecycleConfiguration"` 226 LifecycleRules []LifecycleRule `xml:"Rule"` 227 } 228 229 // SetBucketLifecycleConfigurationInput is the input parameter of SetBucketLifecycleConfiguration function 230 type SetBucketLifecycleConfigurationInput struct { 231 Bucket string `xml:"-"` 232 BucketLifecycleConfiguration 233 } 234 235 // GetBucketLifecycleConfigurationOutput is the result of GetBucketLifecycleConfiguration function 236 type GetBucketLifecycleConfigurationOutput struct { 237 BaseModel 238 BucketLifecycleConfiguration 239 } 240 241 // SetBucketEncryptionInput is the input parameter of SetBucketEncryption function 242 type SetBucketEncryptionInput struct { 243 Bucket string `xml:"-"` 244 BucketEncryptionConfiguration 245 } 246 247 // GetBucketEncryptionOutput is the result of GetBucketEncryption function 248 type GetBucketEncryptionOutput struct { 249 BaseModel 250 BucketEncryptionConfiguration 251 } 252 253 // SetBucketTaggingInput is the input parameter of SetBucketTagging function 254 type SetBucketTaggingInput struct { 255 Bucket string `xml:"-"` 256 BucketTagging 257 } 258 259 // GetBucketTaggingOutput is the result of GetBucketTagging function 260 type GetBucketTaggingOutput struct { 261 BaseModel 262 BucketTagging 263 } 264 265 // SetBucketNotificationInput is the input parameter of SetBucketNotification function 266 type SetBucketNotificationInput struct { 267 Bucket string `xml:"-"` 268 BucketNotification 269 } 270 271 type getBucketNotificationOutputS3 struct { 272 BaseModel 273 bucketNotificationS3 274 } 275 276 // GetBucketNotificationOutput is the result of GetBucketNotification function 277 type GetBucketNotificationOutput struct { 278 BaseModel 279 BucketNotification 280 } 281 282 // SetBucketReplicationInput is the input parameter of SetBucketReplication function 283 type SetBucketReplicationInput struct { 284 Bucket string `xml:"-"` 285 BucketReplicationConfiguration 286 } 287 288 // GetBucketReplicationOutput is the result of GetBucketReplication function 289 type GetBucketReplicationOutput struct { 290 BaseModel 291 BucketReplicationConfiguration 292 } 293 294 // SetWORMPolicyInput is the input parameter of SetWORMPolicy function 295 type SetWORMPolicyInput struct { 296 Bucket string `xml:"-"` 297 BucketWormPolicy 298 } 299 300 type GetBucketWORMPolicyOutput struct { 301 BaseModel 302 BucketWormPolicy 303 } 304 305 // DeleteBucketCustomDomainInput is the input parameter of DeleteBucketCustomDomain function 306 type DeleteBucketCustomDomainInput struct { 307 Bucket string 308 CustomDomain string 309 } 310 311 // GetBucketCustomDomainOuput is the result of GetBucketCustomdomain function 312 type GetBucketCustomDomainOuput struct { 313 BaseModel 314 Domains []Domain `xml:"Domains"` 315 } 316 317 // SetBucketCustomDomainInput is the input parameter of SetBucketCustomDomain function 318 type SetBucketCustomDomainInput struct { 319 Bucket string 320 CustomDomain string 321 } 322 323 // Domain defines the object content properties 324 type Domain struct { 325 DomainName string `xml:"DomainName"` 326 CreateTime string `xml:"CreateTime"` 327 }