oss

package
v0.13.3 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithAssessKey

func WithAssessKey(accessKeyId string, accessKeySecret string) option

func WithBucket

func WithBucket(bucket string) option

func WithEndpoint

func WithEndpoint(endpoint string) option

Types

type Oss

type Oss struct {
	alibaba.Alibaba
	Oss struct {
		Endpoint string // 地域节点
		Bucket   string // 存储空间名称
	}
	// contains filtered or unexported fields
}

func NewOss

func NewOss(options ...option) *Oss

func (*Oss) CreateClient

func (s *Oss) CreateClient() error

CreateClient 创建客户端

func (*Oss) PutObject

func (s *Oss) PutObject(objectKey string, localFile io.Reader) (string, error)

PutObject 上传文件

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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