diff options
| author | Rutger Broekhoff | 2023-12-29 21:31:53 +0100 |
|---|---|---|
| committer | Rutger Broekhoff | 2023-12-29 21:31:53 +0100 |
| commit | 404aeae4545d2426c089a5f8d5e82dae56f5212b (patch) | |
| tree | 2d84e00af272b39fc04f3795ae06bc48970e57b5 /vendor/github.com/minio/minio-go/v7/constants.go | |
| parent | 209d8b0187ed025dec9ac149ebcced3462877bff (diff) | |
| download | gitolfs3-404aeae4545d2426c089a5f8d5e82dae56f5212b.tar.gz gitolfs3-404aeae4545d2426c089a5f8d5e82dae56f5212b.zip | |
Make Nix builds work
Diffstat (limited to 'vendor/github.com/minio/minio-go/v7/constants.go')
| -rw-r--r-- | vendor/github.com/minio/minio-go/v7/constants.go | 110 |
1 files changed, 110 insertions, 0 deletions
diff --git a/vendor/github.com/minio/minio-go/v7/constants.go b/vendor/github.com/minio/minio-go/v7/constants.go new file mode 100644 index 0000000..401d2a7 --- /dev/null +++ b/vendor/github.com/minio/minio-go/v7/constants.go | |||
| @@ -0,0 +1,110 @@ | |||
| 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 | |||
| 18 | package minio | ||
| 19 | |||
| 20 | // Multipart upload defaults. | ||
| 21 | |||
| 22 | // absMinPartSize - absolute minimum part size (5 MiB) below which | ||
| 23 | // a part in a multipart upload may not be uploaded. | ||
| 24 | const absMinPartSize = 1024 * 1024 * 5 | ||
| 25 | |||
| 26 | // minPartSize - minimum part size 16MiB per object after which | ||
| 27 | // putObject behaves internally as multipart. | ||
| 28 | const minPartSize = 1024 * 1024 * 16 | ||
| 29 | |||
| 30 | // maxPartsCount - maximum number of parts for a single multipart session. | ||
| 31 | const maxPartsCount = 10000 | ||
| 32 | |||
| 33 | // maxPartSize - maximum part size 5GiB for a single multipart upload | ||
| 34 | // operation. | ||
| 35 | const maxPartSize = 1024 * 1024 * 1024 * 5 | ||
| 36 | |||
| 37 | // maxSinglePutObjectSize - maximum size 5GiB of object per PUT | ||
| 38 | // operation. | ||
| 39 | const maxSinglePutObjectSize = 1024 * 1024 * 1024 * 5 | ||
| 40 | |||
| 41 | // maxMultipartPutObjectSize - maximum size 5TiB of object for | ||
| 42 | // Multipart operation. | ||
| 43 | const maxMultipartPutObjectSize = 1024 * 1024 * 1024 * 1024 * 5 | ||
| 44 | |||
| 45 | // unsignedPayload - value to be set to X-Amz-Content-Sha256 header when | ||
| 46 | // we don't want to sign the request payload | ||
| 47 | const unsignedPayload = "UNSIGNED-PAYLOAD" | ||
| 48 | |||
| 49 | // unsignedPayloadTrailer value to be set to X-Amz-Content-Sha256 header when | ||
| 50 | // we don't want to sign the request payload, but have a trailer. | ||
| 51 | const unsignedPayloadTrailer = "STREAMING-UNSIGNED-PAYLOAD-TRAILER" | ||
| 52 | |||
| 53 | // Total number of parallel workers used for multipart operation. | ||
| 54 | const totalWorkers = 4 | ||
| 55 | |||
| 56 | // Signature related constants. | ||
| 57 | const ( | ||
| 58 | signV4Algorithm = "AWS4-HMAC-SHA256" | ||
| 59 | iso8601DateFormat = "20060102T150405Z" | ||
| 60 | ) | ||
| 61 | |||
| 62 | const ( | ||
| 63 | // Storage class header. | ||
| 64 | amzStorageClass = "X-Amz-Storage-Class" | ||
| 65 | |||
| 66 | // Website redirect location header | ||
| 67 | amzWebsiteRedirectLocation = "X-Amz-Website-Redirect-Location" | ||
| 68 | |||
| 69 | // Object Tagging headers | ||
| 70 | amzTaggingHeader = "X-Amz-Tagging" | ||
| 71 | amzTaggingHeaderDirective = "X-Amz-Tagging-Directive" | ||
| 72 | |||
| 73 | amzVersionID = "X-Amz-Version-Id" | ||
| 74 | amzTaggingCount = "X-Amz-Tagging-Count" | ||
| 75 | amzExpiration = "X-Amz-Expiration" | ||
| 76 | amzRestore = "X-Amz-Restore" | ||
| 77 | amzReplicationStatus = "X-Amz-Replication-Status" | ||
| 78 | amzDeleteMarker = "X-Amz-Delete-Marker" | ||
| 79 | |||
| 80 | // Object legal hold header | ||
| 81 | amzLegalHoldHeader = "X-Amz-Object-Lock-Legal-Hold" | ||
| 82 | |||
| 83 | // Object retention header | ||
| 84 | amzLockMode = "X-Amz-Object-Lock-Mode" | ||
| 85 | amzLockRetainUntil = "X-Amz-Object-Lock-Retain-Until-Date" | ||
| 86 | amzBypassGovernance = "X-Amz-Bypass-Governance-Retention" | ||
| 87 | |||
| 88 | // Replication status | ||
| 89 | amzBucketReplicationStatus = "X-Amz-Replication-Status" | ||
| 90 | // Minio specific Replication/lifecycle transition extension | ||
| 91 | minIOBucketSourceMTime = "X-Minio-Source-Mtime" | ||
| 92 | |||
| 93 | minIOBucketSourceETag = "X-Minio-Source-Etag" | ||
| 94 | minIOBucketReplicationDeleteMarker = "X-Minio-Source-DeleteMarker" | ||
| 95 | minIOBucketReplicationProxyRequest = "X-Minio-Source-Proxy-Request" | ||
| 96 | minIOBucketReplicationRequest = "X-Minio-Source-Replication-Request" | ||
| 97 | minIOBucketReplicationCheck = "X-Minio-Source-Replication-Check" | ||
| 98 | |||
| 99 | // Header indicates last tag update time on source | ||
| 100 | minIOBucketReplicationTaggingTimestamp = "X-Minio-Source-Replication-Tagging-Timestamp" | ||
| 101 | // Header indicates last retention update time on source | ||
| 102 | minIOBucketReplicationObjectRetentionTimestamp = "X-Minio-Source-Replication-Retention-Timestamp" | ||
| 103 | // Header indicates last legalhold update time on source | ||
| 104 | minIOBucketReplicationObjectLegalHoldTimestamp = "X-Minio-Source-Replication-LegalHold-Timestamp" | ||
| 105 | minIOForceDelete = "x-minio-force-delete" | ||
| 106 | // Header indicates delete marker replication request can be sent by source now. | ||
| 107 | minioTgtReplicationReady = "X-Minio-Replication-Ready" | ||
| 108 | // Header asks if delete marker replication request can be sent by source now. | ||
| 109 | isMinioTgtReplicationReady = "X-Minio-Check-Replication-Ready" | ||
| 110 | ) | ||