Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBucketClient ¶
func NewBucketClient(cfg Config, _ string, logger log.Logger, wrapper func(http.RoundTripper) http.RoundTripper) (objstore.Bucket, error)
NewBucketClient creates a new Swift bucket client
Types ¶
type Config ¶
type Config struct { ApplicationCredentialID string `yaml:"application_credential_id"` ApplicationCredentialName string `yaml:"application_credential_name"` ApplicationCredentialSecret flagext.Secret `yaml:"application_credential_secret"` AuthVersion int `yaml:"auth_version"` AuthURL string `yaml:"auth_url"` Username string `yaml:"username"` UserDomainName string `yaml:"user_domain_name"` UserDomainID string `yaml:"user_domain_id"` UserID string `yaml:"user_id"` Password flagext.Secret `yaml:"password"` DomainID string `yaml:"domain_id"` DomainName string `yaml:"domain_name"` ProjectID string `yaml:"project_id"` ProjectName string `yaml:"project_name"` ProjectDomainID string `yaml:"project_domain_id"` ProjectDomainName string `yaml:"project_domain_name"` RegionName string `yaml:"region_name"` ContainerName string `yaml:"container_name"` MaxRetries int `yaml:"max_retries" category:"advanced"` ConnectTimeout time.Duration `yaml:"connect_timeout" category:"advanced"` RequestTimeout time.Duration `yaml:"request_timeout" category:"advanced"` HTTP http.Config `yaml:"http"` }
Config holds the config options for Swift backend
func (*Config) RegisterFlags ¶
RegisterFlags registers the flags for Swift storage
Click to show internal directories.
Click to hide internal directories.