oci

package
v1.22.0-rc.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 12, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

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

func (cfg *Config) RegisterFlags(f *flag.FlagSet)

registers the flags for OCI storage

func (*Config) RegisterFlagsWithPrefix

func (cfg *Config) RegisterFlagsWithPrefix(prefix string, f *flag.FlagSet)

registers the flags for OCI storage with the provided prefix

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL