代码拉取完成,页面将自动刷新
package models
import "github.com/docker/libcompose/project"
var (
ProjectActions = map[string]interface{}{
"start": true,
"stop": true,
"restart": true,
"kill": true,
"pause": true,
"unpause": true,
}
)
// CreateProject - define compose create project struct
type CreateProject struct {
Name string `json:"Name"`
ComposeData string `json:"ComposeData"`
PackageFile string `json:"PackageFile"`
}
// OperateProject - define compose operate project struct
type OperateProject struct {
Name string `json:"Name"`
Action string `json:"Action"`
}
// ProjectBase - define project base info struct
type ProjectBase struct {
Name string `json:"Name"`
HashCode string `json:"HashCode"`
Timestamp int64 `json:"Timestamp"`
Containers project.InfoSet `json:"Containers"`
}
// ProjectInfo - define compose project info struct
type ProjectInfo struct {
ProjectBase
ComposeData string `json:"ComposeData"`
PackageFile string `json:"PackageFile"`
}
// ProjectStatus - define compose project status struct
type ProjectStatus struct {
Name string `json:"Name"`
Status interface{} `json:"Status"`
}
// ProjectUploadStatus - define compose project package file upload struct
type ProjectUploadStatus struct {
Name string `json:"Name"`
PackageFile string `json:"PackageFile"`
Status interface{} `json:"Status"`
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。