-
Notifications
You must be signed in to change notification settings - Fork 53
/
constants.go
36 lines (27 loc) · 1.03 KB
/
constants.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
package v1
// cortex storage constants
const (
// S3 is the value for the S3 storage backend.
S3 = "s3"
// GCS is the value for the GCS storage backend.
GCS = "gcs"
// Azure is the value for the Azure storage backend.
Azure = "azure"
// Swift is the value for the Openstack Swift storage backend.
Swift = "swift"
// Filesystem is the value for the filesystem storage backend.
Filesystem = "filesystem"
SignatureVersionV4 = "v4"
SignatureVersionV2 = "v2"
// SSEKMS config type constant to configure S3 server side encryption using KMS
// https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingKMSEncryption.html
SSEKMS = "SSE-KMS"
// SSES3 config type constant to configure S3 server side encryption with AES-256
// https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingServerSideEncryption.html
SSES3 = "SSE-S3"
)
var (
supportedBackends = []string{S3, GCS, Azure, Swift, Filesystem}
supportedSignatureVersions = []string{SignatureVersionV4, SignatureVersionV2}
supportedSSETypes = []string{SSEKMS, SSES3}
)