Documentation
¶
Index ¶
- func InitFileUrl(fileUrl string, config Config) (localUrl string, cloudUrl string)
- func MoveFile(fileUrl string, targerUrl string) error
- type AliOSS
- type Config
- type Local
- type StaticCloud
- type TencentCOS
- func (m *TencentCOS) DownloadFile(fileUrl string) error
- func (m *TencentCOS) InitClient(config Config)
- func (m *TencentCOS) MoveFile(fileUrl string, targerDir string) (string, error)
- func (m *TencentCOS) RemoveFile(fileUrl string, removeLocalFile bool) error
- func (m *TencentCOS) UploadFile(fileUrl string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitFileUrl ¶
规划文件路径
Types ¶
type AliOSS ¶
func (*AliOSS) DownloadFile ¶ added in v0.0.6
下载文件
func (*AliOSS) InitClient ¶
func (*AliOSS) RemoveFile ¶
Remove File
type Local ¶
type Local struct {
Config Config
}
Local 实现 StaticCloud 接口
func (*Local) DownloadFile ¶ added in v0.1.2
func (*Local) InitClient ¶ added in v0.1.2
func (*Local) UploadFile ¶
type StaticCloud ¶ added in v0.1.2
type StaticCloud interface {
InitClient(config Config)
UploadFile(fileUrl string) error
DownloadFile(fileUrl string) error
RemoveFile(fileUrl string, removeLocalFile bool) error
MoveFile(fileUrl string, targerDir string) (string, error)
}
func New ¶ added in v0.1.2
func New(config Config) StaticCloud
type TencentCOS ¶
func (*TencentCOS) DownloadFile ¶ added in v0.0.6
func (m *TencentCOS) DownloadFile(fileUrl string) error
下载文件
func (*TencentCOS) MoveFile ¶ added in v0.1.2
func (m *TencentCOS) MoveFile(fileUrl string, targerDir string) (string, error)
func (*TencentCOS) RemoveFile ¶
func (m *TencentCOS) RemoveFile(fileUrl string, removeLocalFile bool) error
删除文件
Click to show internal directories.
Click to hide internal directories.