当前仓库属于关闭状态,部分功能使用受限,详情请查阅 仓库状态说明
1 Star 0 Fork 12

寓述/isula-transform
关闭

forked from openEuler/isula-transform
关闭
 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
flags.go 1.35 KB
一键复制 编辑 原始数据 按行查看 历史
wangkang101 提交于 2020-09-01 15:56 . remove useless flag
/*
* Copyright (c) 2020 Huawei Technologies Co., Ltd.
* isula-transform is licensed under the Mulan PSL v2.
* You may obtain a copy of Mulan PSL v2 at:
* http://license.coscl.org.cn/MulanPSL2
* THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR
* PURPOSE.
* See the Mulan PSL v2 for more details.
* Create: 2020-04-24
*/
package main
import "github.com/urfave/cli"
var basicFlags = []cli.Flag{
cli.StringFlag{
Name: "log",
Usage: "specific output log file path",
Value: "/var/log/isula-kits/transform.log",
},
cli.StringFlag{
Name: "log-level",
Usage: "Customize the level of logging for collection, allowed: debug, info, warn, error",
Value: "info",
},
cli.StringFlag{
Name: "container-type",
Usage: "origin container type",
Value: "docker",
Hidden: true,
},
}
var dockerFlags = []cli.Flag{
cli.StringFlag{
Name: "docker-graph",
Usage: "graph root of docker",
Value: "/var/lib/docker",
},
cli.StringFlag{
Name: "docker-state",
Usage: "state root of docker",
Value: "/var/run/docker",
},
}
var containerFlags = []cli.Flag{
cli.BoolFlag{
Name: "all",
Usage: "transform all containers",
},
}
var transformFlags = [][]cli.Flag{basicFlags, dockerFlags, containerFlags}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/wqh0122/isula-transform.git
git@gitee.com:wqh0122/isula-transform.git
wqh0122
isula-transform
isula-transform
master

搜索帮助