Documentation ¶
Index ¶
Constants ¶
View Source
const COS = "cos" // cos 名称
View Source
const OSS = "oss" // oss 名称
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AliyunOss ¶
type AliyunOss struct {
// contains filtered or unexported fields
}
func NewAliyunOss ¶
func NewAliyunOss(cfg *config.TransferConfig) *AliyunOss
NewAliyunOss 实例化ossImpl
type Provider ¶
type Provider interface { PutFile(key string, filepath string) error GetFile(key string, filepath string) error List(prefix string, marker string) []string }
A Provider describes an interface for providing files
type QcloudCos ¶
type QcloudCos struct {
// contains filtered or unexported fields
}
QcloudCos
func NewQcloudCos ¶
func NewQcloudCos(cfg *config.TransferConfig) *QcloudCos
NewQcloudCos 实例化cosImpl
Click to show internal directories.
Click to hide internal directories.