sugar

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustNewObjectStore

func MustNewObjectStore(opt ...Option) oss.ObjectStore

func NewObjectStore

func NewObjectStore(opt ...Option) (oss.ObjectStore, error)

Types

type Option

type Option func(opts *Options)

func UseAliYun

func UseAliYun(config aliyun.Config) Option

func UseHuawei added in v1.1.0

func UseHuawei(config huawei.Config) Option

func UseLocal

func UseLocal(config local.Config) Option

func UseMinio

func UseMinio(config minio.Config) Option

func UseS3

func UseS3(config s3.Config) Option

func UseTencent

func UseTencent(config tencent.Config) Option

type Options

type Options struct {
	AliYun  aliyun.Config
	S3      s3.Config
	Tencent tencent.Config
	Local   local.Config
	Minio   minio.Config
	Huawei  huawei.Config
	UseName string
}

Jump to

Keyboard shortcuts

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