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

#include <stdint.h>
#include "image.h"

bool embedded_detect(const char *image_name);

D
dogsheng 已提交
23
int embedded_prepare_rf(const im_prepare_request *request, char **real_rootfs);
O
overweight 已提交
24

D
dogsheng 已提交
25
int embedded_filesystem_usage(const im_container_fs_usage_request *request, imagetool_fs_info **fs_usage);
O
overweight 已提交
26

D
dogsheng 已提交
27
int embedded_mount_rf(const im_mount_request *request);
O
overweight 已提交
28

D
dogsheng 已提交
29
int embedded_umount_rf(const im_umount_request *request);
O
overweight 已提交
30

31
int embedded_delete_rf(const im_delete_rootfs_request *request);
O
overweight 已提交
32 33 34

char *embedded_resolve_image_name(const char *image_name);

35
int embedded_merge_conf(const char *img_name, container_config *container_spec);
O
overweight 已提交
36

37
int embedded_get_user_conf(const char *basefs, host_config *hc, const char *userstr, defs_process_user *puser);
O
overweight 已提交
38

D
dogsheng 已提交
39
int embedded_list_images(const im_list_request *request, imagetool_images_list **list);
O
overweight 已提交
40

41
int embedded_remove_image(const im_rmi_request *request);
O
overweight 已提交
42

D
dogsheng 已提交
43
int embedded_inspect_image(const im_inspect_request *request, char **inspected_json);
O
overweight 已提交
44

D
dogsheng 已提交
45
int embedded_load_image(const im_load_request *request);
O
overweight 已提交
46

47
int embedded_init(const isulad_daemon_configs *args);
O
overweight 已提交
48

49 50
void embedded_exit();

O
overweight 已提交
51
#endif