stats.h 1.4 KB
Newer Older
O
overweight 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
/******************************************************************************
 * Copyright (c) Huawei Technologies Co., Ltd. 2018-2019. All rights reserved.
 * iSulad licensed under the Mulan PSL v1.
 * You can use this software according to the terms and conditions of the Mulan PSL v1.
 * You may obtain a copy of Mulan PSL v1 at:
 *     http://license.coscl.org.cn/MulanPSL
 * 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 v1 for more details.
 * Author: lifeng
 * Create: 2018-11-08
 * Description: provide container stats definition
 ******************************************************************************/
#ifndef __CMD_STATS_H
#define __CMD_STATS_H

#include "arguments.h"

W
wujing 已提交
20 21 22 23
#ifdef __cplusplus
extern "C" {
#endif

O
overweight 已提交
24 25 26 27
#define STATUS_OPTIONS(cmdargs) \
    { CMD_OPT_TYPE_BOOL, false, "all", 'a', &(cmdargs).showall, \
        "Show all containers (default shows just running)", NULL }, \
    { CMD_OPT_TYPE_BOOL, false, "no-stream", 0, &(cmdargs).nostream, \
W
wujing 已提交
28
      "Disable streaming stats and only pull the first result", NULL }
O
overweight 已提交
29 30 31 32 33 34

extern const char g_cmd_stats_desc[];
extern const char g_cmd_stats_usage[];
extern struct client_arguments g_cmd_stats_args;
int cmd_stats_main(int argc, const char **argv);

W
wujing 已提交
35 36 37 38
#ifdef __cplusplus
}
#endif

O
overweight 已提交
39
#endif /* __CMD_STATS_H */
D
dogsheng 已提交
40