oss

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Default

func Default() oss.Client

func DefaultBucket

func DefaultBucket() oss.Bucket

func OSS

func OSS(ctx context.Context, config *configs.Config) error

OSS 对象存储, 支持minio

Types

type Config

type Config struct {
	Endpoint        string `yaml:"endpoint"`
	URL             string `yaml:"url"`
	AccessKeyID     string `yaml:"accessKeyID"`
	SecretAccessKey string `yaml:"secretAccessKey"`
	UseSSL          bool   `yaml:"useSSL"`
	Type            Type   `yaml:"type"`
	Bucket          string `yaml:"bucket"`
}

type Type

type Type string
const (
	Minio Type = "minio"
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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