oss

package
v0.0.0-...-26588df Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bucket

type Bucket struct {
	// contains filtered or unexported fields
}

func (*Bucket) SampleFromByteArr

func (b *Bucket) SampleFromByteArr(objectKey string, byteArr []byte) error

SampleFromByteArr 简单上传通过字节数组

func (*Bucket) SampleFromFile

func (b *Bucket) SampleFromFile(objectKey, dst string) error

SampleFromFile 简单上传通过本地文件

func (*Bucket) SampleFromFileStream

func (b *Bucket) SampleFromFileStream(objectKey string, stream io.Reader) error

SampleFromFileStream 简单上传通过文件流

type Oss

type Oss struct {
	// contains filtered or unexported fields
}

func New

func New(endpoint, accessKeyID, accessKeySecret string, options ...aliOss.ClientOption) (*Oss, error)

func (*Oss) Bucket

func (o *Oss) Bucket(bucketName string) (*Bucket, error)

Jump to

Keyboard shortcuts

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