Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
iSulad
提交
c1768dbe
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,发现更多精彩内容 >>
提交
c1768dbe
编写于
6月 20, 2020
作者:
L
lifeng68
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
refact: rename types_def.* to utils_timestamp.*
Signed-off-by:
N
lifeng68
<
lifeng68@huawei.com
>
上级
921307f1
变更
13
显示空白变更内容
内联
并排
Showing
13 changed file
with
34 addition
and
49 deletion
+34
-49
CMakeLists.txt
CMakeLists.txt
+1
-1
iSulad.spec
iSulad.spec
+5
-5
src/client/libisula.h
src/client/libisula.h
+1
-1
src/cmd/isula/information/ps.c
src/cmd/isula/information/ps.c
+2
-2
src/cutils/utils_timestamp.c
src/cutils/utils_timestamp.c
+5
-8
src/cutils/utils_timestamp.h
src/cutils/utils_timestamp.h
+0
-0
src/daemon/image/oci/registry/registry_common.h
src/daemon/image/oci/registry/registry_common.h
+3
-4
src/daemon/image/oci/registry/registry_type.h
src/daemon/image/oci/registry/registry_type.h
+2
-2
src/daemon/image/oci/storage/image_store/image_store.h
src/daemon/image/oci/storage/image_store/image_store.h
+1
-1
src/daemon/image/oci/storage/layer_store/layer_store.c
src/daemon/image/oci/storage/layer_store/layer_store.c
+1
-1
src/daemon/image/oci/storage/storage.h
src/daemon/image/oci/storage/storage.h
+1
-1
src/daemon/libisulad.h
src/daemon/libisulad.h
+1
-1
src/daemon/services/execution/manager/health_check.h
src/daemon/services/execution/manager/health_check.h
+11
-22
未找到文件。
CMakeLists.txt
浏览文件 @
c1768dbe
...
...
@@ -87,7 +87,7 @@ install(FILES src/client/connect/isula_connect.h
DESTINATION include/isulad
)
install
(
FILES src/container_def.h
DESTINATION include/isulad
)
install
(
FILES src/cutils/
types_def
.h
install
(
FILES src/cutils/
utils_timestamp
.h
DESTINATION include/isulad
)
install
(
FILES src/cutils/error.h
DESTINATION include/isulad
)
...
...
iSulad.spec
浏览文件 @
c1768dbe
...
...
@@ -75,7 +75,7 @@ install -d $RPM_BUILD_ROOT/%{_includedir}/isulad
install -m 0644 ../src/client/libisula.h %{buildroot}/%{_includedir}/isulad/libisula.h
install -m 0644 ../src/client/connect/isula_connect.h %{buildroot}/%{_includedir}/isulad/isula_connect.h
install -m 0644 ../src/container_def.h %{buildroot}/%{_includedir}/isulad/container_def.h
install -m 0644 ../src/cutils/
types_def.h %{buildroot}/%{_includedir}/isulad/types_def
.h
install -m 0644 ../src/cutils/
utils_timestamp.h %{buildroot}/%{_includedir}/isulad/utils_timestamp
.h
install -m 0644 ../src/cutils/error.h %{buildroot}/%{_includedir}/isulad/error.h
install -m 0644 ../src/daemon/engines/engine.h %{buildroot}/%{_includedir}/isulad/engine.h
...
...
src/client/libisula.h
浏览文件 @
c1768dbe
...
...
@@ -22,7 +22,7 @@
#include "isula_libutils/container_path_stat.h"
#include "isula_libutils/json_common.h"
#include "console.h"
#include "
types_def
.h"
#include "
utils_timestamp
.h"
#ifdef __cplusplus
extern
"C"
{
...
...
src/cmd/isula/information/ps.c
浏览文件 @
c1768dbe
src/cutils/
types_def
.c
→
src/cutils/
utils_timestamp
.c
浏览文件 @
c1768dbe
...
...
@@ -12,7 +12,7 @@
* Create: 2018-11-1
* Description: provide typedef functions
********************************************************************************/
#include "
types_def
.h"
#include "
utils_timestamp
.h"
#include <ctype.h>
#include <string.h>
#include <stdlib.h>
...
...
@@ -154,8 +154,7 @@ bool get_time_buffer_help(const types_timestamp_t *timestamp, char *timebuffer,
}
if
(
local_utc
)
{
nret
=
snprintf
(
timebuffer
+
strlen
(
timebuffer
),
maxsize
-
strlen
(
timebuffer
),
".%09dZ"
,
nanos
);
nret
=
snprintf
(
timebuffer
+
strlen
(
timebuffer
),
maxsize
-
strlen
(
timebuffer
),
".%09dZ"
,
nanos
);
goto
out
;
}
...
...
@@ -168,11 +167,10 @@ bool get_time_buffer_help(const types_timestamp_t *timestamp, char *timebuffer,
}
if
(
tm_zone
>=
0
)
{
nret
=
snprintf
(
timebuffer
+
strlen
(
timebuffer
),
maxsize
-
strlen
(
timebuffer
),
".%09d+%02d:00"
,
nanos
,
tm_zone
);
nret
=
snprintf
(
timebuffer
+
strlen
(
timebuffer
),
maxsize
-
strlen
(
timebuffer
),
".%09d+%02d:00"
,
nanos
,
tm_zone
);
}
else
{
nret
=
snprintf
(
timebuffer
+
strlen
(
timebuffer
),
maxsize
-
strlen
(
timebuffer
),
".%09d-%02d:00"
,
nanos
,
-
tm_zone
);
nret
=
snprintf
(
timebuffer
+
strlen
(
timebuffer
),
maxsize
-
strlen
(
timebuffer
),
".%09d-%02d:00"
,
nanos
,
-
tm_zone
);
}
out:
...
...
@@ -964,4 +962,3 @@ int to_unix_nanos_from_str(const char *str, int64_t *nanos)
*
nanos
=
mktime
(
&
tm
)
*
Time_Second
+
nano
;
return
0
;
}
src/cutils/
types_def
.h
→
src/cutils/
utils_timestamp
.h
浏览文件 @
c1768dbe
文件已移动
src/daemon/image/oci/registry/registry_common.h
浏览文件 @
c1768dbe
...
...
@@ -23,15 +23,15 @@
#include "isula_libutils/registry_manifest_schema1.h"
#include "isula_libutils/image_manifest_v1_compatibility.h"
#include "registry_type.h"
#include "
types_def
.h"
#include "
utils_timestamp
.h"
#ifdef __cplusplus
extern
"C"
{
#endif
void
free_items_not_inherit
(
docker_image_config_v2
*
config
);
int
add_rootfs_and_history
(
const
layer_blob
*
layers
,
size_t
layers_len
,
const
registry_manifest_schema1
*
manifest
,
docker_image_config_v2
*
config
);
int
add_rootfs_and_history
(
const
layer_blob
*
layers
,
size_t
layers_len
,
const
registry_manifest_schema1
*
manifest
,
docker_image_config_v2
*
config
);
types_timestamp_t
created_to_timestamp
(
char
*
created
);
#ifdef __cplusplus
...
...
@@ -39,4 +39,3 @@ types_timestamp_t created_to_timestamp(char *created);
#endif
#endif
/* __OCI_REGISTRY_COMMON_H */
src/daemon/image/oci/registry/registry_type.h
浏览文件 @
c1768dbe
...
...
@@ -19,13 +19,13 @@
#include <stdint.h>
#include <time.h>
#include "
types_def
.h"
#include "
utils_timestamp
.h"
#include "utils_images.h"
// 8 is enough for challenge, usually only one challenge is provided.
#define CHALLENGE_MAX 8
#define REGISTRY_TMP_DIR
IMAGE_TMP_PATH
"registry-XXXXXX"
#define REGISTRY_TMP_DIR
IMAGE_TMP_PATH
"registry-XXXXXX"
#define MAX_LAYER_NUM 125
#define ROOTFS_TYPE "layers"
...
...
src/daemon/image/oci/storage/image_store/image_store.h
浏览文件 @
c1768dbe
...
...
@@ -19,7 +19,7 @@
#include <string.h>
#include <pthread.h>
#include "storage.h"
#include "
types_def
.h"
#include "
utils_timestamp
.h"
#include "map.h"
#include "linked_list.h"
#include "image_type.h"
...
...
src/daemon/image/oci/storage/layer_store/layer_store.c
浏览文件 @
c1768dbe
...
...
@@ -25,7 +25,7 @@
#include "driver.h"
#include "linked_list.h"
#include "map.h"
#include "
types_def
.h"
#include "
utils_timestamp
.h"
#include "utils.h"
#include "util_atomic.h"
#include "utils_array.h"
...
...
src/daemon/image/oci/storage/storage.h
浏览文件 @
c1768dbe
...
...
@@ -18,7 +18,7 @@
#include <stdint.h>
#include <stdbool.h>
#include <stddef.h>
#include "
types_def
.h"
#include "
utils_timestamp
.h"
#include "isula_libutils/storage_image.h"
#include "isula_libutils/storage_rootfs.h"
#include "isula_libutils/imagetool_images_list.h"
...
...
src/daemon/libisulad.h
浏览文件 @
c1768dbe
...
...
@@ -17,7 +17,7 @@
#include <stdbool.h>
#include <stdint.h>
#include "
types_def
.h"
#include "
utils_timestamp
.h"
#include "container_def.h"
#ifdef __cplusplus
...
...
src/daemon/services/execution/manager/health_check.h
浏览文件 @
c1768dbe
...
...
@@ -15,7 +15,7 @@
#ifndef __ISULAD_HEALTH_CHECK_H_
#define __ISULAD_HEALTH_CHECK_H_
#include "
types_def
.h"
#include "
utils_timestamp
.h"
#include "isula_libutils/container_config_v2.h"
#ifdef __cplusplus
...
...
@@ -35,18 +35,9 @@ extern "C" {
#define HEALTHY "healthy"
#define UNHEALTHY "unhealthy"
typedef
enum
{
CMD
,
CMD_SHELL
,
HEALTH_NONE
,
HEALTH_UNKNOWN
}
health_probe_t
;
typedef
enum
{
CMD
,
CMD_SHELL
,
HEALTH_NONE
,
HEALTH_UNKNOWN
}
health_probe_t
;
typedef
enum
{
MONITOR_IDLE
=
0
,
MONITOR_INTERVAL
=
1
,
MONITOR_STOP
=
2
}
health_check_monitor_status_t
;
typedef
enum
{
MONITOR_IDLE
=
0
,
MONITOR_INTERVAL
=
1
,
MONITOR_STOP
=
2
}
health_check_monitor_status_t
;
typedef
struct
health_check_manager
{
pthread_mutex_t
mutex
;
...
...
@@ -65,5 +56,3 @@ int64_t timeout_with_default(int64_t configured_value, int64_t default_value);
#endif
#endif
/* __ISULAD_HEALTH_CHECK_H_ */
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录