const.go 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. package s3
  2. // HTTP headers
  3. const (
  4. HTTPHeaderAcceptEncoding string = "Accept-Encoding"
  5. HTTPHeaderAuthorization = "Authorization"
  6. HTTPHeaderCacheControl = "Cache-Control"
  7. HTTPHeaderContentDisposition = "Content-Disposition"
  8. HTTPHeaderContentEncoding = "Content-Encoding"
  9. HTTPHeaderContentLength = "Content-Length"
  10. HTTPHeaderContentMD5 = "Content-MD5"
  11. HTTPHeaderContentType = "Content-Type"
  12. HTTPHeaderContentLanguage = "Content-Language"
  13. HTTPHeaderLastModified = "Last-Modified"
  14. HTTPHeaderDate = "Date"
  15. HTTPHeaderEtag = "Etag"
  16. HTTPHeaderExpires = "Expires"
  17. HTTPHeaderHost = "Host"
  18. HTTPHeaderAmzACL = "X-Amz-Acl"
  19. HTTPHeaderAmzChecksumCrc64ecma = "X-Amz-Checksum-Crc64ecma"
  20. HTTPHeaderAmzStorageClass = "X-Amz-Storage-Class"
  21. HTTPHeaderAmzDataRedundancyType = "X-Amz-Data-Redundancy-Type"
  22. HTTPHeaderAmzZRSSwitchEnable = "X-Amz-Zrs-Switch-Enable"
  23. HTTPHeaderAmzAllowSameActionOverlap = "X-Amz-Allow-Same-Action-Overlap"
  24. HTTPHeaderAmzBucketType = "X-Amz-Bucket-Type"
  25. HTTPHeaderAmzBucketVisitType = "X-Amz-Bucket-Visit-Type"
  26. )
  27. // ACL
  28. const (
  29. ACLPrivate string = "private"
  30. ACLPublicRead string = "public-read"
  31. ACLPublicReadWrite string = "public-read-write"
  32. )
  33. // StorageClass
  34. const (
  35. StorageClassExtremePL3 string = "EXTREME_PL3"
  36. StorageClassExtremePL2 string = "EXTREME_PL2"
  37. StorageClassExtremePL1 string = "EXTREME_PL1"
  38. StorageClassStandard string = "STANDARD"
  39. StorageClassIA string = "STANDARD_IA"
  40. StorageClassDeepIA string = "DEEP_IA"
  41. StorageClassArchive string = "ARCHIVE"
  42. StorageClassDeepColdArchive string = "DEEP_COLD_ARCHIVE"
  43. )
  44. // BucketType
  45. const (
  46. BucketTypeExtremePL3 string = "EXTREME_PL3"
  47. BucketTypeExtremePL2 string = "EXTREME_PL2"
  48. BucketTypeExtremePL1 string = "EXTREME_PL1"
  49. BucketTypeNormal string = "NORMAL"
  50. BucketTypeIA string = "IA"
  51. BucketTypeDeepIA string = "DEEP_IA"
  52. BucketTypeArchive string = "ARCHIVE"
  53. )
  54. const (
  55. BucketVisitTypeNormal string = "NORMAL"
  56. BucketVisitTypeFrequentList string = "FREQUENTLIST"
  57. )
  58. type HTTPMethod string
  59. const (
  60. PUT HTTPMethod = "PUT"
  61. GET HTTPMethod = "GET"
  62. DELETE HTTPMethod = "DELETE"
  63. HEAD HTTPMethod = "HEAD"
  64. POST HTTPMethod = "POST"
  65. )
  66. const (
  67. AllUsersUri = "http://acs.amazonaws.com/groups/global/AllUsers"
  68. MetaPrefix = "x-amz-meta-"
  69. )
  70. const (
  71. DataRedundancyTypeLRS string = "LRS"
  72. DataRedundancyTypeZRS string = "ZRS"
  73. )
  74. const (
  75. StorageMediumNormal string = "Normal"
  76. StorageMediumExtreme string = "Extreme"
  77. )
  78. const (
  79. AlgorithmAES256 string = "AES256"
  80. AlgorithmSM4 string = "SM4"
  81. )
  82. const (
  83. StatusEnabled string = "Enabled"
  84. StatusDisabled string = "Disabled"
  85. )