45 lines
1.4 KiB
C
45 lines
1.4 KiB
C
/******************************************************************************
|
|
* Copyright (c) Huawei Technologies Co., Ltd. 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: liuhao
|
|
* Create: 2019-07-16
|
|
* Description: provide isula image operator definition
|
|
*******************************************************************************/
|
|
#ifndef __IMAGE_GLOBAL_CONFIG_H
|
|
#define __IMAGE_GLOBAL_CONFIG_H
|
|
|
|
#include "utils.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
enum {
|
|
GB_OPTION_GRAPH_ROOT = 0,
|
|
GB_OPTION_RUN_ROOT,
|
|
GB_OPTION_DRIVER_NAME,
|
|
GB_OPTION_DRIVER_OPTIONS,
|
|
GB_OPTION_STORAGE_OPTIONS,
|
|
GB_OPTION_REGISTRY,
|
|
GB_OPTION_INSEC_REGISTRY,
|
|
GB_OPTION_OPT_TIMEOUT,
|
|
GB_OPTION_LOG_LEVEL,
|
|
GB_OPTION_GRPC_SERVER_ADDR, // image server socket addr
|
|
GB_OPTION_MAX, // should not be used
|
|
};
|
|
|
|
int pack_global_options(const char * const *options, char *params[], size_t *count, bool ignore_storage_opt_size);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* __IMAGE_GLOBAL_CONFIG_H */
|