tencent

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: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Tencent

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

func New

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

func (*Tencent) Delete

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

func (*Tencent) Exists

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

func (*Tencent) GenTemporaryURL

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

func (*Tencent) Get

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

func (*Tencent) NewPutChunk

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

func (*Tencent) NewPutChunkByUploadID

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

func (*Tencent) Put

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

func (*Tencent) PutBytes

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

func (*Tencent) PutFromLocal

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

func (*Tencent) Size

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

func (*Tencent) VerifyTemporaryURL

func (s *Tencent) 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