mirror of
https://gitee.com/rainbond/Rainbond.git
synced 2024-11-30 02:38:17 +08:00
[REV] Add cloud share ftp config
This commit is contained in:
parent
98a0d59861
commit
f36f7e4fe4
@ -95,6 +95,8 @@ class AppSlug():
|
||||
port=self.ALL_REGION_FTP_PORT)
|
||||
# 检查service_key对应的文件是否存在,不存在生成
|
||||
service_dir = self.ALL_REGION_FTP_NAMESPACE + service_key
|
||||
logger.debug("mq_work.app_slug",
|
||||
'slug task is {}'.format(self.task))
|
||||
logger.debug("mq_work.app_slug",
|
||||
'*******upload dir is {}'.format(service_dir))
|
||||
utils.check_dir(service_dir)
|
||||
|
@ -906,6 +906,7 @@ type PublicShare struct {
|
||||
EventID string `json:"event_id" validate:"event_id"`
|
||||
Dest string `json:"dest" validate:"dest|in:yb,ys"`
|
||||
ServiceID string `json:"service_id" validate:"service_id"`
|
||||
ShareConf ShareConfItems `json:"share_conf" validate:"share_conf"`
|
||||
}
|
||||
|
||||
//SlugShare Slug 类型
|
||||
@ -924,6 +925,15 @@ type ImageShare struct {
|
||||
Image string `json:"image" validate:"image"`
|
||||
}
|
||||
|
||||
//ShareConfItems 分享相关配置
|
||||
type ShareConfItems struct {
|
||||
FTPHost string `json:"ftp_host" validate:"ftp_host"`
|
||||
FTPPort int `json:"ftp_port" validate:"ftp_port"`
|
||||
FTPUserName string `json:"ftp_username" valiate:"ftp_username"`
|
||||
FTPPassWord string `json:"ftp_password" validate:"ftp_password"`
|
||||
FTPNamespace string `json:"ftp_namespace" validate:"ftp_namespace"`
|
||||
}
|
||||
|
||||
//AddDependencyStruct AddDependencyStruct
|
||||
//swagger:parameters addDependency deleteDependency
|
||||
type AddDependencyStruct struct {
|
||||
|
Loading…
Reference in New Issue
Block a user