Documentation ¶
Index ¶
- type AliyunOSS
- func (e *AliyunOSS) DeleteFile(filename string) error
- func (e *AliyunOSS) DownloadFile(filename string) (io.ReadCloser, error)
- func (e *AliyunOSS) GeneratePresignedToken(uploadDir, filename string, expireSeconds int64) (interface{}, error)
- func (e *AliyunOSS) GetFileMeta(filename string) (map[string][]string, error)
- func (e *AliyunOSS) IsFileExists(filename string) (bool, error)
- func (e *AliyunOSS) Name() string
- func (e *AliyunOSS) SignTemporaryExternalUrl(filename string, expiredInSec int64) (string, error)
- func (e *AliyunOSS) UpLoadLocalFile(yourObjectName string, localFile string) error
- func (e *AliyunOSS) UploadFile(file io.Reader, filename string) (string, error)
- type ConfigStruct
- type Local
- func (l *Local) DeleteFile(filename string) error
- func (l *Local) DownloadFile(filename string) (io.ReadCloser, error)
- func (l *Local) GeneratePresignedToken(directory string, filename string, i int64) (interface{}, error)
- func (l *Local) GetFileMeta(filename string) (map[string][]string, error)
- func (l *Local) IsFileExists(filename string) (bool, error)
- func (l *Local) Name() string
- func (l *Local) SignTemporaryExternalUrl(filename string, expiredInSec int64) (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 PolicyToken
- type S3
- func (e *S3) DeleteFile(filename string) error
- func (e *S3) DownloadFile(filename string) (io.ReadCloser, error)
- func (e *S3) GeneratePresignedToken(directory string, filename string, exp int64) (interface{}, error)
- func (e *S3) GetFileMeta(filename string) (map[string][]string, error)
- func (e *S3) IsFileExists(filename string) (bool, error)
- func (e *S3) Name() string
- func (e *S3) SignTemporaryExternalUrl(filename string, expiredInSec int64) (string, error)
- func (e *S3) UpLoadLocalFile(objectName string, localFile string) error
- func (e *S3) UploadFile(file io.Reader, filename string) (string, error)
- type TencentCOS
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AliyunOSS ¶
type AliyunOSS struct { 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) GeneratePresignedToken ¶ added in v1.0.32
func (*AliyunOSS) GetFileMeta ¶
func (*AliyunOSS) IsFileExists ¶ added in v1.1.26
func (*AliyunOSS) SignTemporaryExternalUrl ¶ added in v1.1.26
func (*AliyunOSS) UpLoadLocalFile ¶
UpLoadLocalFile 文件上传
type ConfigStruct ¶ added in v1.0.32
type Local ¶
type Local struct {
Path string
}
func (*Local) DeleteFile ¶
func (*Local) DownloadFile ¶
func (l *Local) DownloadFile(filename string) (io.ReadCloser, error)
func (*Local) GeneratePresignedToken ¶ added in v1.0.32
func (*Local) GetFileMeta ¶
func (*Local) IsFileExists ¶ added in v1.1.26
func (*Local) SignTemporaryExternalUrl ¶ added in v1.1.26
func (*Local) UpLoadLocalFile ¶
type Oss ¶
type Oss interface { Name() string 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 GeneratePresignedToken(directory string, filename string, i int64) (interface{}, error) IsFileExists(filename string) (bool, error) SignTemporaryExternalUrl(filename string, expiredInSec int64) (string, error) }
type PolicyToken ¶ added in v1.0.32
type S3 ¶ added in v1.0.32
type S3 struct { //Region string //AccessKeyId string //AccessKeySecret string BucketName string BucketUrl string // contains filtered or unexported fields }
func (*S3) DeleteFile ¶ added in v1.0.32
func (*S3) DownloadFile ¶ added in v1.0.32
func (e *S3) DownloadFile(filename string) (io.ReadCloser, error)
func (*S3) GeneratePresignedToken ¶ added in v1.0.32
func (*S3) GetFileMeta ¶ added in v1.0.32
func (*S3) SignTemporaryExternalUrl ¶ added in v1.1.26
func (*S3) UpLoadLocalFile ¶ added in v1.0.32
type TencentCOS ¶
type TencentCOS struct{}
Click to show internal directories.
Click to hide internal directories.