Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBucket ¶
func NewBucket(logger log.Logger, confContentYaml []byte, component string, wrapRoundtripper func(http.RoundTripper) http.RoundTripper) (objstore.Bucket, error)
NewBucket initializes and returns new object storage clients. NOTE: confContentYaml can contain secrets.
func NewBucketFromConfig ¶
func NewBucketFromConfig(logger log.Logger, bucketConf *BucketConfig, component string, wrapRoundtripper func(http.RoundTripper) http.RoundTripper) (objstore.Bucket, error)
NewBucketFromConfig creates an objstore.Bucket from an existing BucketConfig object.
Types ¶
type BucketConfig ¶
type BucketConfig struct {
Type objstore.ObjProvider `yaml:"type"`
Config interface{} `yaml:"config"`
Prefix string `yaml:"prefix" default:""`
}
Click to show internal directories.
Click to hide internal directories.