aliyun

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Aliyun

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

func New

func New(conf *config.Config) (*Aliyun, error)

func (*Aliyun) Delete

func (s *Aliyun) Delete(key string) error

func (*Aliyun) Exists

func (s *Aliyun) Exists(key string) (bool, error)

func (*Aliyun) GenTemporaryURL

func (s *Aliyun) GenTemporaryURL(key string) (string, error)

func (*Aliyun) Get

func (s *Aliyun) Get(key string) (io.ReadCloser, error)

func (*Aliyun) NewPutChunk

func (s *Aliyun) NewPutChunk(key string) (types.PutChunk, error)

func (*Aliyun) NewPutChunkByUploadID

func (s *Aliyun) NewPutChunkByUploadID(key, id string) (types.PutChunk, error)

func (*Aliyun) Put

func (s *Aliyun) Put(key string, r io.Reader) error

func (*Aliyun) PutBytes

func (s *Aliyun) PutBytes(key string, in []byte) error

func (*Aliyun) PutFromLocal

func (s *Aliyun) PutFromLocal(key string, localPath string) error

func (*Aliyun) Size

func (s *Aliyun) Size(key string) (int64, error)

func (*Aliyun) VerifyTemporaryURL

func (s *Aliyun) VerifyTemporaryURL(key string, expire string, sign string) error

Jump to

Keyboard shortcuts

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