Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBucketClient ¶
func NewBucketClient(ctx context.Context, cfg Config, name string, logger log.Logger, wrapRT func(http.RoundTripper) http.RoundTripper) (objstore.Bucket, error)
NewBucketClient creates a new GCS bucket client
Types ¶
type Config ¶
type Config struct { BucketName string `yaml:"bucket_name"` ServiceAccount flagext.Secret `yaml:"service_account" doc:"description_method=GCSServiceAccountLongDescription"` ChunkBufferSize int `yaml:"chunk_buffer_size"` MaxRetries int `yaml:"max_retries"` // Allow upstream callers to inject a round tripper Transport http.RoundTripper `yaml:"-"` }
Config holds the config options for GCS backend
func (*Config) GCSServiceAccountLongDescription ¶ added in v3.3.0
func (*Config) GCSServiceAccountShortDescription ¶ added in v3.3.0
func (*Config) RegisterFlags ¶
RegisterFlags registers the flags for GCS storage
Click to show internal directories.
Click to hide internal directories.