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

openEuler / isula-transform
关闭

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
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}
Go
1
https://gitee.com/openeuler/isula-transform.git
git@gitee.com:openeuler/isula-transform.git
openeuler
isula-transform
isula-transform
master

搜索帮助