mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-16 00:41:24 +01:00
5b7e8d1309
* lib/backup/s3remote: update AWS SDK to v2 * Update lib/backup/s3remote/s3.go Co-authored-by: Aliaksandr Valialkin <valyala@victoriametrics.com> * lib/backup/s3remote: refactor error handling Co-authored-by: Aliaksandr Valialkin <valyala@victoriametrics.com>
21 lines
1.4 KiB
Go
21 lines
1.4 KiB
Go
// Package config provides utilities for loading configuration from multiple
|
|
// sources that can be used to configure the SDK's API clients, and utilities.
|
|
//
|
|
// The config package will load configuration from environment variables, AWS
|
|
// shared configuration file (~/.aws/config), and AWS shared credentials file
|
|
// (~/.aws/credentials).
|
|
//
|
|
// Use the LoadDefaultConfig to load configuration from all the SDK's supported
|
|
// sources, and resolve credentials using the SDK's default credential chain.
|
|
//
|
|
// LoadDefaultConfig allows for a variadic list of additional Config sources that can
|
|
// provide one or more configuration values which can be used to programmatically control the resolution
|
|
// of a specific value, or allow for broader range of additional configuration sources not supported by the SDK.
|
|
// A Config source implements one or more provider interfaces defined in this package. Config sources passed in will
|
|
// take precedence over the default environment and shared config sources used by the SDK. If one or more Config sources
|
|
// implement the same provider interface, priority will be handled by the order in which the sources were passed in.
|
|
//
|
|
// A number of helpers (prefixed by “With“) are provided in this package that implement their respective provider
|
|
// interface. These helpers should be used for overriding configuration programmatically at runtime.
|
|
package config
|