oss

package
v3.4.1 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2025 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBucketClient

func NewBucketClient(cfg Config, component string, logger log.Logger) (objstore.Bucket, error)

NewBucketClient creates a new Alibaba Cloud OSS bucket client

Types

type Config

type Config struct {
	Endpoint        string         `yaml:"endpoint"`
	Bucket          string         `yaml:"bucket"`
	AccessKeyID     string         `yaml:"access_key_id"`
	AccessKeySecret flagext.Secret `yaml:"access_key_secret"`
}

Config holds the configuration for Alibaba Cloud OSS client

func (*Config) RegisterFlags

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

RegisterFlags registers the flags for Alibaba Cloud OSS storage config

func (*Config) RegisterFlagsWithPrefix

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

RegisterFlagsWithPrefix registers the flags for Alibaba Cloud OSS storage config with prefix

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳