storage

package
v0.0.0-...-851e7b8 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2020 License: MIT Imports: 3 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{}

Aliyun OSS services

func (*Aliyun) Delete

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

Delete files by key

func (*Aliyun) Upload

func (a *Aliyun) Upload(key string, filePath string, partSize int64, options ...oss.Option) error

Upload files to aliyun oss

type ObjectStorage

type ObjectStorage struct{}

ObjectStorage is object storage services

func (*ObjectStorage) DeleteFileByKey

func (o *ObjectStorage) DeleteFileByKey(key string) error

DeleteFileByKey delete files using key this method will automatically delete oss file and local file

func (*ObjectStorage) SyncFile

func (o *ObjectStorage) SyncFile(key string) error

SyncFile will sync files to oss

Jump to

Keyboard shortcuts

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