提交 d04938fa 编写于 作者: H haozi007 提交者: lifeng68

iSulad: build dir for json of storage

Signed-off-by: Nhaozi007 <liuhao27@huawei.com>
上级 4f1193d6
......@@ -16,6 +16,10 @@
#ifndef __OCI_STORAGE_LAYER_H
#define __OCI_STORAGE_LAYER_H
#include <stdint.h>
#include "defs.h"
#ifdef __cplusplus
extern "C" {
#endif
......@@ -27,10 +31,15 @@ struct layer_config {
char **driver_opts;
size_t driver_opts_len;
defs_id_mapping *uid_map;
size_t uid_map_len;
defs_id_mapping *gid_map;
size_t gid_map_len;
};
struct layer_store_ops {
int (*init)(const struct im_configs *conf);
int (*init)(const struct layer_config *conf);
};
#ifdef __cplusplus
......
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"id": {
"type": "string"
},
"names": {
"$ref": "../defs.json#/definitions/ArrayOfStrings"
},
"parent": {
"type": "string"
},
"metadata": {
"type": "string"
},
"mountlabel": {
"type": "string"
},
"mountpoint": {
"type": "string"
},
"mountcount": {
"type": "string"
},
"created": {
"type": "string"
},
"compressed-diff-digest": {
"type": "string"
},
"compressed-size": {
"type": "int64"
},
"diff-digest": {
"type": "string"
},
"diff-size": {
"type": "int64"
},
"compression": {
"type": "uint32"
},
"uidmap": {
"$ref": "../defs.json#/definitions/IDMapping"
},
"gidmap": {
"$ref": "../defs.json#/definitions/IDMapping"
},
"flags": {
"$ref": "../defs.json#/definitions/mapStringString"
}
}
}
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"id": {
"type": "string"
},
"count": {
"type": "string"
},
"path": {
"type": "string"
}
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册