You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

constants.go 2.1 kB

5 years ago
4 years ago
5 years ago
4 years ago
5 years ago
4 years ago
5 years ago
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. /*
  2. * MinIO Go Library for Amazon S3 Compatible Cloud Storage
  3. * Copyright 2015-2017 MinIO, Inc.
  4. *
  5. * Licensed under the Apache License, Version 2.0 (the "License");
  6. * you may not use this file except in compliance with the License.
  7. * You may obtain a copy of the License at
  8. *
  9. * http://www.apache.org/licenses/LICENSE-2.0
  10. *
  11. * Unless required by applicable law or agreed to in writing, software
  12. * distributed under the License is distributed on an "AS IS" BASIS,
  13. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. * See the License for the specific language governing permissions and
  15. * limitations under the License.
  16. */
  17. package minio_ext
  18. /// Multipart upload defaults.
  19. // absMinPartSize - absolute minimum part size (5 MiB) below which
  20. // a part in a multipart upload may not be uploaded.
  21. const absMinPartSize = 1024 * 1024 * 5
  22. // minPartSize - minimum part size 128MiB per object after which
  23. // putObject behaves internally as multipart.
  24. const MinPartSize = 1024 * 1024 * 64
  25. // maxPartsCount - maximum number of parts for a single multipart session.
  26. const MaxPartsCount = 10000
  27. // maxPartSize - maximum part size 5GiB for a single multipart upload
  28. // operation.
  29. const maxPartSize = 1024 * 1024 * 1024 * 5
  30. // maxSinglePutObjectSize - maximum size 5GiB of object per PUT
  31. // operation.
  32. const maxSinglePutObjectSize = 1024 * 1024 * 1024 * 5
  33. // maxMultipartPutObjectSize - maximum size 5TiB of object for
  34. // Multipart operation.
  35. const MaxMultipartPutObjectSize = 1024 * 1024 * 1024 * 1024 * 5
  36. // unsignedPayload - value to be set to X-Amz-Content-Sha256 header when
  37. // we don't want to sign the request payload
  38. const unsignedPayload = "UNSIGNED-PAYLOAD"
  39. // Total number of parallel workers used for multipart operation.
  40. const totalWorkers = 4
  41. // Signature related constants.
  42. const (
  43. signV4Algorithm = "AWS4-HMAC-SHA256"
  44. iso8601DateFormat = "20060102T150405Z"
  45. )
  46. // Storage class header constant.
  47. const amzStorageClass = "X-Amz-Storage-Class"
  48. // Website redirect location header constant
  49. const amzWebsiteRedirectLocation = "X-Amz-Website-Redirect-Location"