1 Star 0 Fork 0

powerpaas/machine

Create your Gitee Account
Explore and code with more than 14 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
pkg_action.go 322 Bytes
Copy Edit Raw Blame History
Nathan LeClaire authored 2017-02-23 06:52 +08:00 . Add support for upgrade to new CE edition
package pkgaction
type PackageAction int
const (
Install PackageAction = iota
Remove
Upgrade
Purge
)
var packageActions = []string{
"install",
"remove",
"upgrade",
"purge",
}
func (s PackageAction) String() string {
if int(s) >= 0 && int(s) < len(packageActions) {
return packageActions[s]
}
return ""
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/powerpaas/machine.git
git@gitee.com:powerpaas/machine.git
powerpaas
machine
machine
v0.13.0

Search