mirror of
https://github.com/gomods/athens
synced 2026-02-03 08:40:31 +00:00
pkg/stash: Add Azure Blob implementation (#1162)
* add azblob sf stasher * use http status const * rm line * cleanup, comments * add test * fix test * skip test it no account key provided * fix stash * introduce stash timeout
This commit is contained in:
+8
-2
@@ -59,7 +59,7 @@ FilterFile = ""
|
||||
Timeout = 300
|
||||
|
||||
# StorageType sets the type of storage backend the proxy will use.
|
||||
# Possible values are memory, disk, mongo, gcp, minio, s3
|
||||
# Possible values are memory, disk, mongo, gcp, minio, s3, azureblob
|
||||
# Defaults to memory
|
||||
# Env override: ATHENS_STORAGE_TYPE
|
||||
StorageType = "memory"
|
||||
@@ -169,13 +169,19 @@ StatsExporter = "prometheus"
|
||||
# we want to make sure only the first request gets to store the module,
|
||||
# and the second request will wait for the first one to finish so that
|
||||
# it doesn't override the storage.
|
||||
# Options are ["memory", "etcd", "redis", "gcp"]
|
||||
|
||||
# Options are ["memory", "etcd", "redis", "gcp", "azureblob"]
|
||||
|
||||
# The default option is "memory" which means that only one instance of Athens
|
||||
# should be used.
|
||||
# The "gcp" single flight will assume that you have a "gcp" StorageType
|
||||
# and therefore it will use its strong-consistency features to ensure
|
||||
# that only one module is ever written even when concurrent saves happen
|
||||
# at the same time.
|
||||
# The "azureblob" single flight will assume that you have a "azureblob" StorageType
|
||||
# and therefore it will use its strong-consistency features to ensure
|
||||
# that only one module is ever written even when concurrent saves happen
|
||||
# at the same time.
|
||||
# Env override: ATHENS_SINGLE_FLIGHT_TYPE
|
||||
SingleFlightType = "memory"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user