oss

package
v0.0.0-...-9a49024 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2026 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

Default 获取默认的oss客户端

func DefaultBucket

func DefaultBucket() oss.Bucket

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