Documentation ¶
Index ¶
- type AliyunOSS
- func (e *AliyunOSS) DeleteFile(filename string) error
- func (e *AliyunOSS) DownloadFile(filename string) (io.ReadCloser, error)
- func (e *AliyunOSS) GetFileMeta(filename string) (map[string][]string, error)
- func (e *AliyunOSS) UpLoadLocalFile(yourObjectName string, localFile string) error
- func (e *AliyunOSS) UploadFile(file io.Reader, filename string) (string, error)
- type Local
- func (l *Local) DeleteFile(filename string) error
- func (l *Local) DownloadFile(filename string) (io.ReadCloser, error)
- func (l *Local) GetFileMeta(filename string) (map[string][]string, error)
- func (l *Local) UpLoadLocalFile(objectName string, localFile string) error
- func (l *Local) UploadFile(file io.Reader, filename string) (string, error)
- type Oss
- type TencentCOS
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AliyunOSS ¶
type AliyunOSS struct { Endpoint string AccessKeyId string AccessKeySecret string BucketName string BucketUrl string // contains filtered or unexported fields }
func (*AliyunOSS) DeleteFile ¶
func (*AliyunOSS) DownloadFile ¶
func (e *AliyunOSS) DownloadFile(filename string) (io.ReadCloser, error)
func (*AliyunOSS) GetFileMeta ¶
func (*AliyunOSS) UpLoadLocalFile ¶
UpLoadLocalFile 文件上传
type Local ¶
type Local struct {
Path string
}
func (*Local) DeleteFile ¶
func (*Local) DownloadFile ¶
func (l *Local) DownloadFile(filename string) (io.ReadCloser, error)
func (*Local) GetFileMeta ¶
func (*Local) UpLoadLocalFile ¶
type Oss ¶
type Oss interface { UpLoadLocalFile(objectName string, localFile string) error UploadFile(file io.Reader, filename string) (string, error) DownloadFile(filename string) (io.ReadCloser, error) GetFileMeta(filename string) (map[string][]string, error) DeleteFile(filename string) error }
type TencentCOS ¶
type TencentCOS struct{}
Click to show internal directories.
Click to hide internal directories.