Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
iSulad
提交
d04938fa
I
iSulad
项目概览
openeuler
/
iSulad
通知
15
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
I
iSulad
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
d04938fa
编写于
3月 25, 2020
作者:
H
haozi007
提交者:
lifeng68
7月 25, 2020
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
iSulad: build dir for json of storage
Signed-off-by:
N
haozi007
<
liuhao27@huawei.com
>
上级
4f1193d6
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
79 addition
and
1 deletion
+79
-1
src/image/oci/storage/layer.h
src/image/oci/storage/layer.h
+10
-1
src/json/schema/schema/storage/layer.json
src/json/schema/schema/storage/layer.json
+54
-0
src/json/schema/schema/storage/mount-point.json
src/json/schema/schema/storage/mount-point.json
+15
-0
未找到文件。
src/image/oci/storage/layer.h
浏览文件 @
d04938fa
...
@@ -16,6 +16,10 @@
...
@@ -16,6 +16,10 @@
#ifndef __OCI_STORAGE_LAYER_H
#ifndef __OCI_STORAGE_LAYER_H
#define __OCI_STORAGE_LAYER_H
#define __OCI_STORAGE_LAYER_H
#include <stdint.h>
#include "defs.h"
#ifdef __cplusplus
#ifdef __cplusplus
extern
"C"
{
extern
"C"
{
#endif
#endif
...
@@ -27,10 +31,15 @@ struct layer_config {
...
@@ -27,10 +31,15 @@ struct layer_config {
char
**
driver_opts
;
char
**
driver_opts
;
size_t
driver_opts_len
;
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
{
struct
layer_store_ops
{
int
(
*
init
)(
const
struct
im_configs
*
conf
);
int
(
*
init
)(
const
struct
layer_config
*
conf
);
};
};
#ifdef __cplusplus
#ifdef __cplusplus
...
...
src/json/schema/schema/storage/layer.json
0 → 100644
浏览文件 @
d04938fa
{
"$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"
}
}
}
src/json/schema/schema/storage/mount-point.json
0 → 100644
浏览文件 @
d04938fa
{
"$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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录