Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBucketClient ¶
func NewBucketClient(cfg Config, hedgedRoundTripper func(rt http.RoundTripper) http.RoundTripper, _ string, logger log.Logger) (objstore.Bucket, error)
NewBucketClient creates a new OCI bucket client.
Types ¶
type Config ¶
type Config struct {
Provider string `yaml:"provider"`
Bucket string `yaml:"bucket"`
Compartment string `yaml:"compartment_ocid"`
Tenancy string `yaml:"tenancy_ocid"`
User string `yaml:"user_ocid"`
Region string `yaml:"region"`
Fingerprint string `yaml:"fingerprint"`
PrivateKey flagext.Secret `yaml:"privatekey"`
Passphrase flagext.Secret `yaml:"passphrase"`
PartSize int64 `yaml:"part_size"`
MaxRequestRetries int `yaml:"max_request_retries"`
RequestRetryInterval int `yaml:"request_retry_interval"`
}
config options for an OCI backend
func (*Config) RegisterFlags ¶
registers the flags for OCI storage
Click to show internal directories.
Click to hide internal directories.