1 Star 1 Fork 1

Humpback / common

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
project.go 1.38 KB
一键复制 编辑 原始数据 按行查看 历史
bolve 提交于 2018-05-30 11:45 . add functions
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"`
}
Go
1
https://gitee.com/humpbacks/common.git
git@gitee.com:humpbacks/common.git
humpbacks
common
common
c6f83f9456c5

搜索帮助