mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 06:47:20 +08:00
31 lines
890 B
Go
31 lines
890 B
Go
package types
|
|
|
|
import "time"
|
|
|
|
type BackupStorageInfo struct {
|
|
// S3
|
|
AccessKey string `json:"access_key"` // 访问密钥
|
|
SecretKey string `json:"secret_key"` // 私钥
|
|
Style string `json:"style"` // virtual-hosted, path
|
|
Region string `json:"region"` // 地区
|
|
Endpoint string `json:"endpoint"` // 端点
|
|
Bucket string `json:"bucket"` // 存储桶
|
|
|
|
// SFTP / WebDAV
|
|
URL string `json:"url"` // 网址
|
|
Host string `json:"host"` // 主机
|
|
Port int `json:"port"` // 端口
|
|
Username string `json:"username"` // 用户名
|
|
Password string `json:"password"` // 密码
|
|
PrivateKey string `json:"private_key"` // 私钥
|
|
|
|
Path string `json:"path"` // 路径
|
|
}
|
|
|
|
type BackupFile struct {
|
|
Name string `json:"name"`
|
|
Path string `json:"path"`
|
|
Size string `json:"size"`
|
|
Time time.Time `json:"time"`
|
|
}
|