enum.go 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. package enum
  2. type ACLType string
  3. const (
  4. ACLPrivate ACLType = "private"
  5. ACLPublicRead ACLType = "public-read"
  6. ACLPublicReadWrite ACLType = "public-read-write"
  7. ACLAuthRead ACLType = "authenticated-read"
  8. ACLBucketOwnerRead ACLType = "bucket-owner-read"
  9. ACLBucketOwnerFullControl ACLType = "bucket-owner-full-control"
  10. ACLLogDeliveryWrite ACLType = "log-delivery-write"
  11. ACLBucketOwnerEntrusted ACLType = "bucket-owner-entrusted"
  12. )
  13. type StorageClassType string
  14. const (
  15. StorageClassStandard StorageClassType = "STANDARD"
  16. StorageClassIa StorageClassType = "IA"
  17. StorageClassArchiveFr StorageClassType = "ARCHIVE_FR"
  18. StorageClassIntelligentTiering StorageClassType = "INTELLIGENT_TIERING"
  19. StorageClassColdArchive StorageClassType = "COLD_ARCHIVE"
  20. )
  21. type MetadataDirectiveType string
  22. const (
  23. // MetadataDirectiveReplace replace source object metadata when calling CopyObject
  24. MetadataDirectiveReplace MetadataDirectiveType = "REPLACE"
  25. // MetadataDirectiveCopy copy source object metadata when calling CopyObject
  26. MetadataDirectiveCopy MetadataDirectiveType = "COPY"
  27. )
  28. type AzRedundancyType string
  29. const (
  30. AzRedundancySingleAz AzRedundancyType = "single-az"
  31. AzRedundancyMultiAz AzRedundancyType = "multi-az"
  32. )
  33. type PermissionType string
  34. const (
  35. PermissionRead PermissionType = "READ"
  36. PermissionWrite PermissionType = "WRITE"
  37. PermissionReadAcp PermissionType = "READ_ACP"
  38. PermissionWriteAcp PermissionType = "WRITE_ACP"
  39. PermissionFullControl PermissionType = "FULL_CONTROL"
  40. )
  41. type GranteeType string
  42. const (
  43. GranteeGroup GranteeType = "Group"
  44. GranteeUser GranteeType = "CanonicalUser"
  45. )
  46. type CannedType string
  47. const (
  48. CannedAllUsers CannedType = "AllUsers"
  49. CannedAuthenticatedUsers CannedType = "AuthenticatedUsers"
  50. )
  51. type DataTransferType int
  52. const (
  53. DataTransferStarted DataTransferType = 1
  54. DataTransferRW DataTransferType = 2
  55. DataTransferSucceed DataTransferType = 3
  56. DataTransferFailed DataTransferType = 4
  57. )
  58. type HttpMethodType string
  59. const (
  60. HttpMethodGet HttpMethodType = "GET"
  61. HttpMethodPut HttpMethodType = "PUT"
  62. HttpMethodPost HttpMethodType = "POST"
  63. HttpMethodDelete HttpMethodType = "DELETE"
  64. HttpMethodHead HttpMethodType = "HEAD"
  65. )
  66. type UploadEventType int
  67. const (
  68. UploadEventCreateMultipartUploadSucceed UploadEventType = 1
  69. UploadEventCreateMultipartUploadFailed UploadEventType = 2
  70. UploadEventUploadPartSucceed UploadEventType = 3
  71. UploadEventUploadPartFailed UploadEventType = 4
  72. UploadEventUploadPartAborted UploadEventType = 5 // The task needs to be interrupted in case of 403, 404, 405 errors
  73. UploadEventCompleteMultipartUploadSucceed UploadEventType = 6
  74. UploadEventCompleteMultipartUploadFailed UploadEventType = 7
  75. )
  76. type DownloadEventType int
  77. const (
  78. DownloadEventCreateTempFileSucceed DownloadEventType = 1
  79. DownloadEventCreateTempFileFailed DownloadEventType = 2
  80. DownloadEventDownloadPartSucceed DownloadEventType = 3
  81. DownloadEventDownloadPartFailed DownloadEventType = 4
  82. DownloadEventDownloadPartAborted DownloadEventType = 5 // The task needs to be interrupted in case of 403, 404, 405 errors
  83. DownloadEventRenameTempFileSucceed DownloadEventType = 6
  84. DownloadEventRenameTempFileFailed DownloadEventType = 7
  85. )
  86. type CertStatusType string
  87. const (
  88. CertStatusBound CertStatusType = "CertBound"
  89. CertStatusUnbound CertStatusType = "CertUnbound"
  90. CertStatusExpired CertStatusType = "CertExpired"
  91. )
  92. type StorageClassInheritDirectiveType string
  93. const (
  94. StorageClassIDDestinationBucket StorageClassInheritDirectiveType = "DESTINATION_BUCKET"
  95. StorageClassIDSourceObject StorageClassInheritDirectiveType = "SOURCE_OBJECT"
  96. )
  97. type StatusType string
  98. const (
  99. StatusEnabled StatusType = "Enabled"
  100. StatusDisabled StatusType = "Disabled"
  101. )
  102. const (
  103. LifecycleStatusEnabled StatusType = "Enabled"
  104. LifecycleStatusDisabled StatusType = "Disabled"
  105. )
  106. type RedirectType string
  107. const (
  108. RedirectTypeMirror RedirectType = "Mirror"
  109. RedirectTypeAsync RedirectType = "Async"
  110. )
  111. const (
  112. SSETosAlg = "AES256"
  113. SSEKMS = "kms"
  114. )
  115. type VersioningStatusType string
  116. const (
  117. VersioningStatusEnable VersioningStatusType = "Enabled"
  118. VersioningStatusSuspended VersioningStatusType = "Suspended"
  119. )
  120. type ProtocolType string
  121. const (
  122. ProtocolHttp ProtocolType = "http"
  123. ProtocolHttps ProtocolType = "https"
  124. )
  125. type CopyEventType int
  126. const (
  127. CopyEventCreateMultipartUploadSucceed CopyEventType = 1
  128. CopyEventCreateMultipartUploadFailed CopyEventType = 2
  129. CopyEventUploadPartCopySuccess CopyEventType = 3
  130. CopyEventUploadPartCopyFailed CopyEventType = 4
  131. CopyEventUploadPartCopyAborted CopyEventType = 5
  132. CopyEventCompleteMultipartUploadSucceed CopyEventType = 6
  133. CopyEventCompleteMultipartUploadFailed CopyEventType = 7
  134. )
  135. type TierType string
  136. const (
  137. TierStandard TierType = "Standard"
  138. TierExpedited TierType = "Expedited"
  139. TierBulk TierType = "Bulk"
  140. )