From 5f028b68f54f2c3f53acc9b6c4e11132023367aa Mon Sep 17 00:00:00 2001 From: bixiaoyan Date: Mon, 2 Dec 2024 18:01:33 +0800 Subject: [PATCH] Correct copyright information --- controllers/alarms.go | 21 +++++++-------------- controllers/cluster.go | 21 +++++++-------------- controllers/commands.go | 21 +++++++-------------- controllers/handleError.go | 17 +++++------------ controllers/heatbeat.go | 21 +++++++-------------- controllers/html.go | 21 +++++++-------------- controllers/log.go | 21 +++++++-------------- controllers/login.go | 21 +++++++-------------- controllers/meta.go | 21 +++++++-------------- controllers/node.go | 21 +++++++-------------- controllers/resource.go | 21 +++++++-------------- controllers/rule.go | 17 +++++------------ controllers/scripts.go | 17 +++++------------ controllers/tag.go | 25 +++++-------------------- controllers/utilization.go | 21 +++++++-------------- main.go | 21 +++++++-------------- models/alarms.go | 21 +++++++-------------- models/alarms_test.go | 11 +++++------ models/cluster.go | 21 +++++++-------------- models/cluster_test.go | 25 +++++-------------------- models/commands.go | 21 +++++++-------------- models/commands_test.go | 11 +++++------ models/config.go | 17 +++++------------ models/config_test.go | 12 ++++++------ models/heartbeat.go | 21 +++++++-------------- models/heartbeat_test.go | 21 +++++++-------------- models/internel/cibadmin.go | 21 +++++++-------------- models/internel/crm.go | 21 +++++++-------------- models/internel/pcs.go | 21 +++++++-------------- models/internel/stonith_admin.go | 21 +++++++-------------- models/log.go | 21 +++++++-------------- models/log_test.go | 11 +++++------ models/manage_clusters.go | 7 +++++++ models/meta.go | 21 +++++++-------------- models/meta_test.go | 11 +++++------ models/node.go | 21 +++++++-------------- models/node_test.go | 21 +++++++-------------- models/nodes_management.go | 7 +++++++ models/resource.go | 21 +++++++-------------- models/resource_test.go | 21 +++++++-------------- models/rule.go | 21 +++++++-------------- models/scripts.go | 17 +++++------------ models/tag.go | 21 +++++++-------------- models/utilization.go | 21 +++++++-------------- models/utilization_test.go | 21 +++++++-------------- routers/router.go | 21 +++++++-------------- service/session.go | 21 +++++++-------------- settings/settings.go | 21 +++++++-------------- utils/command.go | 21 +++++++-------------- utils/command_test.go | 21 +++++++-------------- utils/error.go | 18 ++++++------------ utils/host.go | 21 +++++++-------------- utils/host_test.go | 21 +++++++-------------- utils/pam.go | 21 +++++++-------------- utils/response.go | 7 +++++++ utils/score_level.go | 7 +++++++ utils/utils.go | 21 +++++++-------------- validations/login.go | 17 +++++------------ validations/request.go | 17 +++++------------ validations/rule.go | 17 +++++------------ 60 files changed, 390 insertions(+), 738 deletions(-) diff --git a/controllers/alarms.go b/controllers/alarms.go index 6cf04b5..0805009 100644 --- a/controllers/alarms.go +++ b/controllers/alarms.go @@ -1,17 +1,10 @@ -/****************************************************************************** - * Copyright (c) KylinSoft Co., Ltd.2021-2022. All rights reserved. - * ha-api is 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 - * 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 v2 for more details. - * Author: liqiuyu - * Date: 2022-04-19 16:49:51 - * LastEditTime: 2024-04-22 17:04:44 - * Description: 告警控制器 - ******************************************************************************/ +/* + * Copyright (c) KylinSoft Co., Ltd. 2024.All rights reserved. + * ha-api licensed under the Mulan Permissive Software License, Version 2. + * See LICENSE file for more details. + * Author: liqiuyu + * Date: Mon Jan 18 11:44:18 2021 +0800 + */ package controllers import ( diff --git a/controllers/cluster.go b/controllers/cluster.go index 813b591..9aca517 100644 --- a/controllers/cluster.go +++ b/controllers/cluster.go @@ -1,17 +1,10 @@ -/****************************************************************************** - * Copyright (c) KylinSoft Co., Ltd.2021-2022. All rights reserved. - * ha-api is 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 - * 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 v2 for more details. - * Author: liqiuyu - * Date: 2022-04-19 16:49:51 - * LastEditTime: 2022-04-19 17:37:56 - * Description: HA集群控制器 - ******************************************************************************/ +/* + * Copyright (c) KylinSoft Co., Ltd. 2024.All rights reserved. + * ha-api licensed under the Mulan Permissive Software License, Version 2. + * See LICENSE file for more details. + * Author: Jason011125 + * Date: Mon Aug 14 13:38:45 2023 +0800 + */ package controllers import ( diff --git a/controllers/commands.go b/controllers/commands.go index fb0a506..1e041d8 100644 --- a/controllers/commands.go +++ b/controllers/commands.go @@ -1,17 +1,10 @@ -/****************************************************************************** - * Copyright (c) KylinSoft Co., Ltd.2021-2022. All rights reserved. - * ha-api is 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 - * 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 v2 for more details. - * Author: liqiuyu - * Date: 2022-04-19 16:49:51 - * LastEditTime: 2022-04-19 17:37:58 - * Description: 命令控制器 - ******************************************************************************/ +/* + * Copyright (c) KylinSoft Co., Ltd. 2024.All rights reserved. + * ha-api licensed under the Mulan Permissive Software License, Version 2. + * See LICENSE file for more details. + * Author: 江新宇 + * Date: Tue Jan 19 22:19:26 2021 +0800 + */ package controllers import ( diff --git a/controllers/handleError.go b/controllers/handleError.go index 42c2f94..2a75911 100644 --- a/controllers/handleError.go +++ b/controllers/handleError.go @@ -1,16 +1,9 @@ /* - * Copyright (c) KylinSoft Co., Ltd.2024. All Rights Reserved. - * ha-api is 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 - * 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 v2 for more details. - * Author: bizhiyuan - * Date: 2024-03-12 15:54:56 - * LastEditTime: 2024-03-12 15:55:19 - * Description: controller 层进行错误处理响应 + * Copyright (c) KylinSoft Co., Ltd. 2024.All rights reserved. + * ha-api licensed under the Mulan Permissive Software License, Version 2. + * See LICENSE file for more details. + * Author: bizhiyuan + * Date: Tue Mar 12 16:14:04 2024 +0800 */ package controllers diff --git a/controllers/heatbeat.go b/controllers/heatbeat.go index 56ba507..eaadbf3 100644 --- a/controllers/heatbeat.go +++ b/controllers/heatbeat.go @@ -1,17 +1,10 @@ -/****************************************************************************** - * Copyright (c) KylinSoft Co., Ltd.2021-2022. All rights reserved. - * ha-api is 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 - * 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 v2 for more details. - * Author: bizhiyuan - * Date: 2022-04-19 16:49:51 - * LastEditTime: 2024-04-23 16:13:35 - * Description: 磁盘心跳控制器 - ******************************************************************************/ +/* + * Copyright (c) KylinSoft Co., Ltd. 2024.All rights reserved. + * ha-api licensed under the Mulan Permissive Software License, Version 2. + * See LICENSE file for more details. + * Author: yangzhao_kl + * Date: Thu Jan 14 13:33:38 2021 +0800 + */ package controllers import ( diff --git a/controllers/html.go b/controllers/html.go index 7117f66..93be7e6 100644 --- a/controllers/html.go +++ b/controllers/html.go @@ -1,17 +1,10 @@ -/****************************************************************************** - * Copyright (c) KylinSoft Co., Ltd.2021-2022. All rights reserved. - * ha-api is 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 - * 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 v2 for more details. - * Author: liqiuyu - * Date: 2022-04-19 16:49:51 - * LastEditTime: 2022-04-19 17:37:53 - * Description: 网页控制器 - ******************************************************************************/ +/* + * Copyright (c) KylinSoft Co., Ltd. 2024.All rights reserved. + * ha-api licensed under the Mulan Permissive Software License, Version 2. + * See LICENSE file for more details. + * Author: yangzhao_kl + * Date: Fri Jan 8 20:56:40 2021 +0800 + */ package controllers import ( diff --git a/controllers/log.go b/controllers/log.go index f9027ee..1845ab5 100644 --- a/controllers/log.go +++ b/controllers/log.go @@ -1,17 +1,10 @@ -/****************************************************************************** - * Copyright (c) KylinSoft Co., Ltd.2021-2022. All rights reserved. - * ha-api is 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 - * 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 v2 for more details. - * Author: liqiuyu - * Date: 2022-04-19 16:49:51 - * LastEditTime: 2022-04-19 17:37:51 - * Description: 日志下载控制器 - ******************************************************************************/ +/* + * Copyright (c) KylinSoft Co., Ltd. 2024.All rights reserved. + * ha-api licensed under the Mulan Permissive Software License, Version 2. + * See LICENSE file for more details. + * Author: liqiuyu + * Date: Tue Jan 12 09:51:22 2021 +0800 + */ package controllers import ( diff --git a/controllers/login.go b/controllers/login.go index 804f0dd..f454dc9 100644 --- a/controllers/login.go +++ b/controllers/login.go @@ -1,17 +1,10 @@ -/****************************************************************************** - * Copyright (c) KylinSoft Co., Ltd.2021-2022. All rights reserved. - * ha-api is 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 - * 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 v2 for more details. - * Author: liqiuyu - * Date: 2022-04-19 16:49:51 - * LastEditTime: 2024-05-21 14:00:49 - * Description: 登录控制器 - ******************************************************************************/ +/* + * Copyright (c) KylinSoft Co., Ltd. 2024.All rights reserved. + * ha-api licensed under the Mulan Permissive Software License, Version 2. + * See LICENSE file for more details. + * Author: yangzhao_kl + * Date: Fri Jan 8 20:56:40 2021 +0800 + */ package controllers import ( diff --git a/controllers/meta.go b/controllers/meta.go index fa0514f..c0db0dd 100644 --- a/controllers/meta.go +++ b/controllers/meta.go @@ -1,17 +1,10 @@ -/****************************************************************************** - * Copyright (c) KylinSoft Co., Ltd.2021-2022. All rights reserved. - * ha-api is 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 - * 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 v2 for more details. - * Author: liqiuyu - * Date: 2022-04-19 16:49:51 - * LastEditTime: 2022-04-19 17:37:48 - * Description: 元控制器 - ******************************************************************************/ +/* + * Copyright (c) KylinSoft Co., Ltd. 2024.All rights reserved. + * ha-api licensed under the Mulan Permissive Software License, Version 2. + * See LICENSE file for more details. + * Author: 赵忠章 + * Date: Fri Jan 22 11:18:35 2021 +0800 + */ package controllers import ( diff --git a/controllers/node.go b/controllers/node.go index 2f295ae..c92210c 100644 --- a/controllers/node.go +++ b/controllers/node.go @@ -1,17 +1,10 @@ -/****************************************************************************** - * Copyright (c) KylinSoft Co., Ltd.2021-2022. All rights reserved. - * ha-api is 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 - * 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 v2 for more details. - * Author: liqiuyu - * Date: 2022-04-19 16:49:51 - * LastEditTime: 2022-04-19 17:37:46 - * Description: 节点控制器 - ******************************************************************************/ +/* + * Copyright (c) KylinSoft Co., Ltd. 2024.All rights reserved. + * ha-api licensed under the Mulan Permissive Software License, Version 2. + * See LICENSE file for more details. + * Author: yangzhao_kl + * Date: Fri Jan 8 20:56:40 2021 +0800 + */ package controllers import ( diff --git a/controllers/resource.go b/controllers/resource.go index 0870ec8..19cc91b 100644 --- a/controllers/resource.go +++ b/controllers/resource.go @@ -1,17 +1,10 @@ -/****************************************************************************** - * Copyright (c) KylinSoft Co., Ltd.2021-2022. All rights reserved. - * ha-api is 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 - * 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 v2 for more details. - * Author: liqiuyu - * Date: 2022-04-19 16:49:51 - * LastEditTime: 2022-04-19 17:37:45 - * Description: 资源控制器 - ******************************************************************************/ +/* + * Copyright (c) KylinSoft Co., Ltd. 2024.All rights reserved. + * ha-api licensed under the Mulan Permissive Software License, Version 2. + * See LICENSE file for more details. + * Author: yangzhao_kl + * Date: Fri Jan 8 20:56:40 2021 +0800 + */ package controllers import ( diff --git a/controllers/rule.go b/controllers/rule.go index dbdb1e4..bcb7e84 100644 --- a/controllers/rule.go +++ b/controllers/rule.go @@ -1,16 +1,9 @@ /* - * Copyright (c) KylinSoft Co., Ltd.2024. All Rights Reserved. - * ha-api is 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 - * 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 v2 for more details. - * Author: bizhiyuan - * Date: 2024-03-06 16:23:42 - * LastEditTime: 2024-05-21 16:23:55 - * Description:规则Controler层 + * Copyright (c) KylinSoft Co., Ltd. 2024.All rights reserved. + * ha-api licensed under the Mulan Permissive Software License, Version 2. + * See LICENSE file for more details. + * Author: bizhiyuan + * Date: Tue Mar 12 10:13:58 2024 +0800 */ package controllers diff --git a/controllers/scripts.go b/controllers/scripts.go index 6d06105..ea9dc14 100644 --- a/controllers/scripts.go +++ b/controllers/scripts.go @@ -1,16 +1,9 @@ /* - * Copyright (c) KylinSoft Co., Ltd.2024. All Rights Reserved. - * ha-api is 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 - * 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 v2 for more details. - * Author: bizhiyuan - * Date: 2024-03-19 11:19:33 - * LastEditTime: 2024-03-19 11:27:38 - * Description: 脚本生成器模块 + * Copyright (c) KylinSoft Co., Ltd. 2024.All rights reserved. + * ha-api licensed under the Mulan Permissive Software License, Version 2. + * See LICENSE file for more details. + * Author: bizhiyuan + * Date: Wed Mar 13 15:34:21 2024 +0800 */ package controllers diff --git a/controllers/tag.go b/controllers/tag.go index ada4182..6ff981c 100644 --- a/controllers/tag.go +++ b/controllers/tag.go @@ -1,25 +1,10 @@ /* - * @Author: bixiaoyan bixiaoyan@kylinos.cn - * @Date: 2024-03-13 15:04:41 - * @LastEditors: bixiaoyan bixiaoyan@kylinos.cn - * @LastEditTime: 2024-06-17 09:22:06 - * @FilePath: /ha-api/controllers/tag.go - * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE + * Copyright (c) KylinSoft Co., Ltd. 2024.All rights reserved. + * ha-api licensed under the Mulan Permissive Software License, Version 2. + * See LICENSE file for more details. + * Author: bixiaoyan + * Date: Fri Mar 22 17:26:24 2024 +0800 */ -/****************************************************************************** - * Copyright (c) KylinSoft Co., Ltd.2021-2022. All rights reserved. - * ha-api is 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 - * 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 v2 for more details. - * Author: bixiaoyan - * Date: 2024-03-13 15:05:51 - * LastEditTime: 2024-03-13 18:37:48 - * Description: tag - ******************************************************************************/ package controllers import ( diff --git a/controllers/utilization.go b/controllers/utilization.go index bb191cf..de53e66 100644 --- a/controllers/utilization.go +++ b/controllers/utilization.go @@ -1,17 +1,10 @@ -/****************************************************************************** - * Copyright (c) KylinSoft Co., Ltd.2021-2022. All rights reserved. - * ha-api is 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 - * 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 v2 for more details. - * Author: bixiaoyan - * Date: 2024-03-07 14:49:51 - * LastEditTime: 2024-03-07 17:37:48 - * Description: 集群利用率 - ******************************************************************************/ +/* + * Copyright (c) KylinSoft Co., Ltd. 2024.All rights reserved. + * ha-api licensed under the Mulan Permissive Software License, Version 2. + * See LICENSE file for more details. + * Author: bixiaoyan + * Date: Tue Mar 12 09:17:37 2024 +0800 + */ package controllers import ( diff --git a/main.go b/main.go index 299c2cf..278826b 100644 --- a/main.go +++ b/main.go @@ -1,17 +1,10 @@ -/****************************************************************************** - * Copyright (c) KylinSoft Co., Ltd.2021-2022. All rights reserved. - * ha-api is 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 - * 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 v2 for more details. - * Author: liqiuyu - * Date: 2022-04-19 16:49:51 - * LastEditTime: 2024-04-22 09:23:45 - * Description: ha-api的入口 - ******************************************************************************/ +/* + * Copyright (c) KylinSoft Co., Ltd. 2024.All rights reserved. + * ha-api licensed under the Mulan Permissive Software License, Version 2. + * See LICENSE file for more details. + * Author: yangzhao_kl + * Date: Tue Jan 5 09:33:00 2021 +0800 + */ package main import ( diff --git a/models/alarms.go b/models/alarms.go index 995abcc..db7143b 100644 --- a/models/alarms.go +++ b/models/alarms.go @@ -1,17 +1,10 @@ -/****************************************************************************** - * Copyright (c) KylinSoft Co., Ltd.2021-2022. All rights reserved. - * ha-api is 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 - * 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 v2 for more details. - * Author: liqiuyu - * Date: 2022-04-19 16:49:51 - * LastEditTime: 2022-04-20 10:05:59 - * Description: 告警功能 - ******************************************************************************/ +/* + * Copyright (c) KylinSoft Co., Ltd. 2024.All rights reserved. + * ha-api licensed under the Mulan Permissive Software License, Version 2. + * See LICENSE file for more details. + * Author: liqiuyu + * Date: Mon Jan 18 11:44:18 2021 +0800 + */ package models import ( diff --git a/models/alarms_test.go b/models/alarms_test.go index c3b8111..0bc9a81 100644 --- a/models/alarms_test.go +++ b/models/alarms_test.go @@ -1,10 +1,9 @@ /* -* @Author: bixiaoyan bixiaoyan@kylinos.cn -* @Date: 2024-08-20 13:52:22 - * @LastEditors: bixiaoyan bixiaoyan@kylinos.cn - * @LastEditTime: 2024-09-02 15:26:58 -* @FilePath: /ha-api/models/alarms_test.go -* @Description: 高可用集群报警配置模块单元测试 + * Copyright (c) KylinSoft Co., Ltd. 2024.All rights reserved. + * ha-api licensed under the Mulan Permissive Software License, Version 2. + * See LICENSE file for more details. + * Author: bixiaoyan + * Date: Mon Sep 2 15:58:49 2024 +0800 */ package models diff --git a/models/cluster.go b/models/cluster.go index d05e491..d154c02 100644 --- a/models/cluster.go +++ b/models/cluster.go @@ -1,17 +1,10 @@ -/****************************************************************************** - * Copyright (c) KylinSoft Co., Ltd.2021-2022. All rights reserved. - * ha-api is 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 - * 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 v2 for more details. - * Author: liqiuyu - * Date: 2022-04-19 16:49:51 - * LastEditTime: 2022-04-20 10:30:18 - * Description: 集群相关功能的实现 - ******************************************************************************/ +/* + * Copyright (c) KylinSoft Co., Ltd. 2024.All rights reserved. + * ha-api licensed under the Mulan Permissive Software License, Version 2. + * See LICENSE file for more details. + * Author: yangzhao_kl + * Date: Fri Jan 8 20:56:40 2021 +0800 + */ package models import ( diff --git a/models/cluster_test.go b/models/cluster_test.go index a0fbe8d..523510f 100644 --- a/models/cluster_test.go +++ b/models/cluster_test.go @@ -1,25 +1,10 @@ /* - * @Author: bixiaoyan bixiaoyan@kylinos.cn - * @Date: 2024-03-21 17:02:57 - * @LastEditors: bixiaoyan bixiaoyan@kylinos.cn - * @LastEditTime: 2024-10-09 17:33:24 - * @FilePath: /ha-api/models/cluster_test.go - * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE + * Copyright (c) KylinSoft Co., Ltd. 2024.All rights reserved. + * ha-api licensed under the Mulan Permissive Software License, Version 2. + * See LICENSE file for more details. + * Author: yangzhao_kl + * Date: Fri Jan 8 20:56:40 2021 +0800 */ -/****************************************************************************** - * Copyright (c) KylinSoft Co., Ltd.2021-2022. All rights reserved. - * ha-api is 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 - * 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 v2 for more details. - * Author: liqiuyu - * Date: 2022-04-19 16:49:51 - * LastEditTime: 2024-08-20 10:30:17 - * Description: 集群测试用例 - ******************************************************************************/ package models import ( diff --git a/models/commands.go b/models/commands.go index 8099d77..8f25908 100644 --- a/models/commands.go +++ b/models/commands.go @@ -1,17 +1,10 @@ - /****************************************************************************** - * Copyright (c) KylinSoft Co., Ltd.2021-2022. All rights reserved. - * ha-api is 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 - * 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 v2 for more details. - * Author: liqiuyu - * Date: 2022-04-19 16:49:51 - * LastEditTime: 2024-03-26 10:00:27 - * Description: 集群命令 - ******************************************************************************/ +/* + * Copyright (c) KylinSoft Co., Ltd. 2024.All rights reserved. + * ha-api licensed under the Mulan Permissive Software License, Version 2. + * See LICENSE file for more details. + * Author: 江新宇 + * Date: Tue Jan 19 22:19:26 2021 +0800 + */ package models import ( diff --git a/models/commands_test.go b/models/commands_test.go index 08a2582..03e1b92 100644 --- a/models/commands_test.go +++ b/models/commands_test.go @@ -1,10 +1,9 @@ /* - * @Author: bixiaoyan bixiaoyan@kylinos.cn - * @Date: 2024-08-20 14:00:58 - * @LastEditors: bixiaoyan bixiaoyan@kylinos.cn - * @LastEditTime: 2024-08-20 14:49:01 - * @FilePath: /ha-api/models/commands_test.go - * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE + * Copyright (c) KylinSoft Co., Ltd. 2024.All rights reserved. + * ha-api licensed under the Mulan Permissive Software License, Version 2. + * See LICENSE file for more details. + * Author: bixiaoyan + * Date: Tue Aug 20 16:27:26 2024 +0800 */ package models diff --git a/models/config.go b/models/config.go index 91ea336..ad2a3f7 100644 --- a/models/config.go +++ b/models/config.go @@ -1,16 +1,9 @@ /* - * Copyright (c) KylinSoft Co., Ltd.2024. All Rights Reserved. - * ha-api is 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 - * 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 v2 for more details. - * @Author: bizhiyuan - * @Date: 2024-03-19 11:19:33 - * @LastEditTime: 2024-03-27 09:27:48 - * @Description: + * Copyright (c) KylinSoft Co., Ltd. 2024.All rights reserved. + * ha-api licensed under the Mulan Permissive Software License, Version 2. + * See LICENSE file for more details. + * Author: Jason011125 + * Date: Mon Aug 14 15:53:52 2023 +0800 */ package models diff --git a/models/config_test.go b/models/config_test.go index c8dd70f..b89bf60 100644 --- a/models/config_test.go +++ b/models/config_test.go @@ -1,11 +1,11 @@ /* - * @Author: bixiaoyan bixiaoyan@kylinos.cn - * @Date: 2024-08-20 14:25:08 - * @LastEditors: bixiaoyan bixiaoyan@kylinos.cn - * @LastEditTime: 2024-11-15 14:32:44 - * @FilePath: /ha-api/models/config_test.go - * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE + * Copyright (c) KylinSoft Co., Ltd. 2024.All rights reserved. + * ha-api licensed under the Mulan Permissive Software License, Version 2. + * See LICENSE file for more details. + * Author: bixiaoyan + * Date: Fri Nov 15 16:03:14 2024 +0800 */ + package models import "testing" diff --git a/models/heartbeat.go b/models/heartbeat.go index 0ae39d8..5ce08ce 100644 --- a/models/heartbeat.go +++ b/models/heartbeat.go @@ -1,17 +1,10 @@ -/****************************************************************************** - * Copyright (c) KylinSoft Co., Ltd.2021-2022. All rights reserved. - * ha-api is 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 - * 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 v2 for more details. - * Author: liqiuyu - * Date: 2022-04-19 16:49:51 - * LastEditTime: 2022-04-20 10:31:21 - * Description: 磁盘心跳相关功能的实现 - ******************************************************************************/ +/* + * Copyright (c) KylinSoft Co., Ltd. 2024.All rights reserved. + * ha-api licensed under the Mulan Permissive Software License, Version 2. + * See LICENSE file for more details. + * Author: yangzhao_kl + * Date: Thu Jan 14 13:33:38 2021 +0800 + */ package models import ( diff --git a/models/heartbeat_test.go b/models/heartbeat_test.go index 0159171..c871bf1 100644 --- a/models/heartbeat_test.go +++ b/models/heartbeat_test.go @@ -1,17 +1,10 @@ -/****************************************************************************** - * Copyright (c) KylinSoft Co., Ltd.2021-2022. All rights reserved. - * ha-api is 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 - * 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 v2 for more details. - * Author: liqiuyu - * Date: 2022-04-19 16:49:51 - * LastEditTime: 2022-04-20 10:30:21 - * Description: 磁盘心跳测试用例 - ******************************************************************************/ +/* + * Copyright (c) KylinSoft Co., Ltd. 2024.All rights reserved. + * ha-api licensed under the Mulan Permissive Software License, Version 2. + * See LICENSE file for more details. + * Author: yangzhao_kl + * Date: Thu Jan 14 13:33:38 2021 +0800 + */ package models import ( diff --git a/models/internel/cibadmin.go b/models/internel/cibadmin.go index d483300..c667c54 100644 --- a/models/internel/cibadmin.go +++ b/models/internel/cibadmin.go @@ -1,17 +1,10 @@ -/****************************************************************************** - * Copyright (c) KylinSoft Co., Ltd.2021-2022. All rights reserved. - * ha-api is 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 - * 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 v2 for more details. - * Author: liqiuyu - * Date: 2022-04-19 16:49:51 - * LastEditTime: 2022-04-20 10:00:09 - * Description: provides direct access to the cluster configuration. - ******************************************************************************/ +/* + * Copyright (c) KylinSoft Co., Ltd. 2024.All rights reserved. + * ha-api licensed under the Mulan Permissive Software License, Version 2. + * See LICENSE file for more details. + * Author: yangzhao_kl + * Date: Fri Jan 8 20:56:40 2021 +0800 + */ package models // CibAdmin cibadmin provides direct access to the cluster configuration. diff --git a/models/internel/crm.go b/models/internel/crm.go index 030d75f..101b8c5 100644 --- a/models/internel/crm.go +++ b/models/internel/crm.go @@ -1,17 +1,10 @@ -/****************************************************************************** - * Copyright (c) KylinSoft Co., Ltd.2021-2022. All rights reserved. - * ha-api is 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 - * 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 v2 for more details. - * Author: liqiuyu - * Date: 2022-04-19 16:49:51 - * LastEditTime: 2022-04-20 10:01:32 - * Description: Provides a summary of cluster's current state. - ******************************************************************************/ +/* + * Copyright (c) KylinSoft Co., Ltd. 2024.All rights reserved. + * ha-api licensed under the Mulan Permissive Software License, Version 2. + * See LICENSE file for more details. + * Author: yangzhao_kl + * Date: Fri Jan 8 20:56:40 2021 +0800 + */ package models type crm_attribute struct{} diff --git a/models/internel/pcs.go b/models/internel/pcs.go index 61feee1..dc4bd83 100644 --- a/models/internel/pcs.go +++ b/models/internel/pcs.go @@ -1,17 +1,10 @@ -/****************************************************************************** - * Copyright (c) KylinSoft Co., Ltd.2021-2022. All rights reserved. - * ha-api is 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 - * 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 v2 for more details. - * Author: liqiuyu - * Date: 2022-04-19 16:49:51 - * LastEditTime: 2022-04-20 10:02:14 - * Description: Perform tasks related to pcs. - ******************************************************************************/ +/* + * Copyright (c) KylinSoft Co., Ltd. 2024.All rights reserved. + * ha-api licensed under the Mulan Permissive Software License, Version 2. + * See LICENSE file for more details. + * Author: yangzhao_kl + * Date: Fri Jan 8 20:56:40 2021 +0800 + */ package models type PCS struct{} diff --git a/models/internel/stonith_admin.go b/models/internel/stonith_admin.go index 8476a15..c4aaaea 100644 --- a/models/internel/stonith_admin.go +++ b/models/internel/stonith_admin.go @@ -1,17 +1,10 @@ -/****************************************************************************** - * Copyright (c) KylinSoft Co., Ltd.2021-2022. All rights reserved. - * ha-api is 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 - * 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 v2 for more details. - * Author: liqiuyu - * Date: 2022-04-19 16:49:51 - * LastEditTime: 2022-04-20 10:05:00 - * Description: Perform tasks related to Stonith - ******************************************************************************/ +/* + * Copyright (c) KylinSoft Co., Ltd. 2024.All rights reserved. + * ha-api licensed under the Mulan Permissive Software License, Version 2. + * See LICENSE file for more details. + * Author: yangzhao_kl + * Date: Fri Jan 8 20:56:40 2021 +0800 + */ package models type StonithAdmin struct{} diff --git a/models/log.go b/models/log.go index 65836e2..e71aa1a 100644 --- a/models/log.go +++ b/models/log.go @@ -1,17 +1,10 @@ -/****************************************************************************** - * Copyright (c) KylinSoft Co., Ltd.2021-2022. All rights reserved. - * ha-api is 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 - * 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 v2 for more details. - * Author: liqiuyu - * Date: 2022-04-19 16:49:51 - * LastEditTime: 2022-04-20 10:35:08 - * Description: 日志功能 - ******************************************************************************/ +/* + * Copyright (c) KylinSoft Co., Ltd. 2024.All rights reserved. + * ha-api licensed under the Mulan Permissive Software License, Version 2. + * See LICENSE file for more details. + * Author: liqiuyu + * Date: Tue Jan 12 09:51:22 2021 +0800 + */ package models import ( diff --git a/models/log_test.go b/models/log_test.go index 4867b03..0c40baa 100644 --- a/models/log_test.go +++ b/models/log_test.go @@ -1,10 +1,9 @@ /* - * @Author: bixiaoyan bixiaoyan@kylinos.cn - * @Date: 2024-08-20 14:54:10 - * @LastEditors: bixiaoyan bixiaoyan@kylinos.cn - * @LastEditTime: 2024-08-20 14:57:23 - * @FilePath: /ha-api/models/log_test.go - * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE + * Copyright (c) KylinSoft Co., Ltd. 2024.All rights reserved. + * ha-api licensed under the Mulan Permissive Software License, Version 2. + * See LICENSE file for more details. + * Author: bixiaoyan + * Date: Wed Aug 21 09:42:19 2024 +0800 */ package models diff --git a/models/manage_clusters.go b/models/manage_clusters.go index 803fdbc..5d79709 100644 --- a/models/manage_clusters.go +++ b/models/manage_clusters.go @@ -1,3 +1,10 @@ +/* + * Copyright (c) KylinSoft Co., Ltd. 2024.All rights reserved. + * ha-api licensed under the Mulan Permissive Software License, Version 2. + * See LICENSE file for more details. + * Author: Jason011125 + * Date: Mon Aug 14 15:53:52 2023 +0800 + */ package models import ( diff --git a/models/meta.go b/models/meta.go index 6bda50f..e511243 100644 --- a/models/meta.go +++ b/models/meta.go @@ -1,17 +1,10 @@ -/****************************************************************************** - * Copyright (c) KylinSoft Co., Ltd.2021-2022. All rights reserved. - * ha-api is 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 - * 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 v2 for more details. - * Author: liqiuyu - * Date: 2022-04-19 16:49:51 - * LastEditTime: 2022-04-20 11:08:52 - * Description: 资源元代码 - ******************************************************************************/ +/* + * Copyright (c) KylinSoft Co., Ltd. 2024.All rights reserved. + * ha-api licensed under the Mulan Permissive Software License, Version 2. + * See LICENSE file for more details. + * Author: 赵忠章 + * Date: Fri Jan 22 11:18:35 2021 +0800 + */ package models import ( diff --git a/models/meta_test.go b/models/meta_test.go index e8331fc..2f74b87 100644 --- a/models/meta_test.go +++ b/models/meta_test.go @@ -1,10 +1,9 @@ /* - * @Author: bixiaoyan bixiaoyan@kylinos.cn - * @Date: 2024-08-20 16:43:13 - * @LastEditors: bixiaoyan bixiaoyan@kylinos.cn - * @LastEditTime: 2024-08-20 17:05:11 - * @FilePath: /ha-api/models/meta_test.go - * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE + * Copyright (c) KylinSoft Co., Ltd. 2024.All rights reserved. + * ha-api licensed under the Mulan Permissive Software License, Version 2. + * See LICENSE file for more details. + * Author: bixiaoyan + * Date: Thu Aug 29 15:31:29 2024 +0800 */ package models diff --git a/models/node.go b/models/node.go index 975404e..98e111e 100644 --- a/models/node.go +++ b/models/node.go @@ -1,17 +1,10 @@ -/****************************************************************************** - * Copyright (c) KylinSoft Co., Ltd.2021-2022. All rights reserved. - * ha-api is 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 - * 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 v2 for more details. - * Author: liqiuyu - * Date: 2022-04-19 16:49:51 - * LastEditTime: 2022-04-20 11:08:21 - * Description: 节点功能实现 - ******************************************************************************/ +/* + * Copyright (c) KylinSoft Co., Ltd. 2024.All rights reserved. + * ha-api licensed under the Mulan Permissive Software License, Version 2. + * See LICENSE file for more details. + * Author: yangzhao_kl + * Date: Fri Jan 8 20:56:40 2021 +0800 + */ package models import ( diff --git a/models/node_test.go b/models/node_test.go index 8cbc0d0..d5e9891 100644 --- a/models/node_test.go +++ b/models/node_test.go @@ -1,17 +1,10 @@ -/****************************************************************************** - * Copyright (c) KylinSoft Co., Ltd.2021-2022. All rights reserved. - * ha-api is 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 - * 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 v2 for more details. - * Author: liqiuyu - * Date: 2022-04-19 16:49:51 - * LastEditTime: 2022-04-20 11:08:08 - * Description: 节点测试用例 - ******************************************************************************/ +/* + * Copyright (c) KylinSoft Co., Ltd. 2024.All rights reserved. + * ha-api licensed under the Mulan Permissive Software License, Version 2. + * See LICENSE file for more details. + * Author: yangzhao_kl + * Date: Fri Jan 8 20:56:40 2021 +0800 + */ package models // [root@ha1 ~]# crm_mon --as-xml diff --git a/models/nodes_management.go b/models/nodes_management.go index 76694e7..6a9bdb2 100644 --- a/models/nodes_management.go +++ b/models/nodes_management.go @@ -1,3 +1,10 @@ +/* + * Copyright (c) KylinSoft Co., Ltd. 2024.All rights reserved. + * ha-api licensed under the Mulan Permissive Software License, Version 2. + * See LICENSE file for more details. + * Author: Jason011125 + * Date: Mon Aug 14 15:53:52 2023 +0800 + */ package models import ( diff --git a/models/resource.go b/models/resource.go index b388863..22aa492 100644 --- a/models/resource.go +++ b/models/resource.go @@ -1,17 +1,10 @@ -/****************************************************************************** - * Copyright (c) KylinSoft Co., Ltd.2021-2022. All rights reserved. - * ha-api is 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 - * 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 v2 for more details. - * Author: liqiuyu - * Date: 2022-04-19 16:49:51 - * LastEditTime: 2022-04-20 11:09:01 - * Description: 资源相关功能的实现 - ******************************************************************************/ +/* + * Copyright (c) KylinSoft Co., Ltd. 2024.All rights reserved. + * ha-api licensed under the Mulan Permissive Software License, Version 2. + * See LICENSE file for more details. + * Author: yangzhao_kl + * Date: Fri Jan 8 20:56:40 2021 +0800 + */ package models import ( diff --git a/models/resource_test.go b/models/resource_test.go index a8e4259..b045239 100644 --- a/models/resource_test.go +++ b/models/resource_test.go @@ -1,17 +1,10 @@ -/****************************************************************************** - * Copyright (c) KylinSoft Co., Ltd.2021-2022. All rights reserved. - * ha-api is 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 - * 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 v2 for more details. - * Author: liqiuyu - * Date: 2022-04-19 16:49:51 - * LastEditTime: 2022-04-20 11:08:44 - * Description: 资源测试用例 - ******************************************************************************/ +/* + * Copyright (c) KylinSoft Co., Ltd. 2024.All rights reserved. + * ha-api licensed under the Mulan Permissive Software License, Version 2. + * See LICENSE file for more details. + * Author: yangzhao_kl + * Date: Fri Jan 8 20:56:40 2021 +0800 + */ package models import ( diff --git a/models/rule.go b/models/rule.go index 239df6b..be2f73d 100644 --- a/models/rule.go +++ b/models/rule.go @@ -1,17 +1,10 @@ -/******************************************************************************* - * Copyright (c) KylinSoft Co., Ltd.2024. All Rights Reserved. - * ha-api is 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 - * 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 v2 for more details. - * Author: bizhiyuan - * Date: 2024-03-06 10:42:50 - * LastEditTime: 2024-03-06 11:23:09 - * Description:规则 - ******************************************************************************/ +/* + * Copyright (c) KylinSoft Co., Ltd. 2024.All rights reserved. + * ha-api licensed under the Mulan Permissive Software License, Version 2. + * See LICENSE file for more details. + * Author: bizhiyuan + * Date: Tue Mar 12 10:13:58 2024 +0800 + */ package models import ( diff --git a/models/scripts.go b/models/scripts.go index 70633f8..59a0eb7 100644 --- a/models/scripts.go +++ b/models/scripts.go @@ -1,16 +1,9 @@ /* - * Copyright (c) KylinSoft Co., Ltd.2024. All Rights Reserved. - * ha-api is 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 - * 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 v2 for more details. - * Author: bizhiyuan - * Date: 2024-03-13 14:16:22 - * LastEditTime: 2024-03-13 14:57:14 - * Description:脚本生成器模块相关接口 + * Copyright (c) KylinSoft Co., Ltd. 2024.All rights reserved. + * ha-api licensed under the Mulan Permissive Software License, Version 2. + * See LICENSE file for more details. + * Author: bizhiyuan + * Date: Wed Mar 13 15:34:21 2024 +0800 */ package models diff --git a/models/tag.go b/models/tag.go index 4b9a54a..024aaef 100644 --- a/models/tag.go +++ b/models/tag.go @@ -1,17 +1,10 @@ -/****************************************************************************** - * Copyright (c) KylinSoft Co., Ltd.2021-2022. All rights reserved. - * ha-api is 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 - * 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 v2 for more details. - * Author: bixiaoyan - * Date: 2024-03-13 15:05:51 - * LastEditTime: 2024-03-25 15:23:50 - * Description: tag - ******************************************************************************/ +/* + * Copyright (c) KylinSoft Co., Ltd. 2024.All rights reserved. + * ha-api licensed under the Mulan Permissive Software License, Version 2. + * See LICENSE file for more details. + * Author: bixiaoyan + * Date: Fri Mar 22 17:26:24 2024 +0800 + */ package models import ( diff --git a/models/utilization.go b/models/utilization.go index cc1041b..caf26e7 100644 --- a/models/utilization.go +++ b/models/utilization.go @@ -1,17 +1,10 @@ -/****************************************************************************** - * Copyright (c) KylinSoft Co., Ltd.2021-2022. All rights reserved. - * ha-api is 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 - * 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 v2 for more details. - * Author: bixiaoyan - * Date: 2024-03-07 14:49:51 - * LastEditTime: 2024-03-07 17:37:48 - * Description: 集群利用率功能 - ******************************************************************************/ +/* + * Copyright (c) KylinSoft Co., Ltd. 2024.All rights reserved. + * ha-api licensed under the Mulan Permissive Software License, Version 2. + * See LICENSE file for more details. + * Author: bixiaoyan + * Date: Tue Mar 12 09:17:37 2024 +0800 + */ package models import ( diff --git a/models/utilization_test.go b/models/utilization_test.go index 03b87f7..d125ff5 100644 --- a/models/utilization_test.go +++ b/models/utilization_test.go @@ -1,17 +1,10 @@ -/****************************************************************************** - * Copyright (c) KylinSoft Co., Ltd.2021-2022. All rights reserved. - * ha-api is licensed under the Mulan PSL v2. - * You can use this software accodring 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 - * 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 v2 for more details. - * Author: bixiaoyan - * Date: 2024-11-22 14:25:51 - * LastEditTime: 2024-11-27 17:37:48 - * Description: 集群利用率功能单元测试 - ******************************************************************************/ +/* + * Copyright (c) KylinSoft Co., Ltd. 2024.All rights reserved. + * ha-api licensed under the Mulan Permissive Software License, Version 2. + * See LICENSE file for more details. + * Author: bixiaoyan + * Date: Fri Nov 22 14:35:35 2024 +0800 + */ package models diff --git a/routers/router.go b/routers/router.go index 59ab4aa..0c622bf 100644 --- a/routers/router.go +++ b/routers/router.go @@ -1,17 +1,10 @@ -/****************************************************************************** - * Copyright (c) KylinSoft Co., Ltd.2021-2022. All rights reserved. - * ha-api is 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 - * 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 v2 for more details. - * Author: liqiuyu - * Date: 2024-03-19 11:19:33 - * LastEditTime: 2024-05-13 16:52:48 - * Description: 网页路由 - ******************************************************************************/ +/* + * Copyright (c) KylinSoft Co., Ltd. 2024.All rights reserved. + * ha-api licensed under the Mulan Permissive Software License, Version 2. + * See LICENSE file for more details. + * Author: yangzhao_kl + * Date: Tue Jan 5 09:33:00 2021 +0800 + */ package routers import ( diff --git a/service/session.go b/service/session.go index e4432b8..92fd0fc 100644 --- a/service/session.go +++ b/service/session.go @@ -1,17 +1,10 @@ -/****************************************************************************** - * Copyright (c) KylinSoft Co., Ltd.2021-2022. All rights reserved. - * ha-api is 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 - * 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 v2 for more details. - * Author: liqiuyu - * Date: 2022-04-19 16:49:51 - * LastEditTime: 2022-04-20 11:12:13 - * Description: 服务端配置 - ******************************************************************************/ +/* + * Copyright (c) KylinSoft Co., Ltd. 2024.All rights reserved. + * ha-api licensed under the Mulan Permissive Software License, Version 2. + * See LICENSE file for more details. + * Author: yangzhao_kl + * Date: Fri Jan 8 20:56:40 2021 +0800 + */ package service import ( diff --git a/settings/settings.go b/settings/settings.go index 79e4466..3a53269 100644 --- a/settings/settings.go +++ b/settings/settings.go @@ -1,17 +1,10 @@ -/****************************************************************************** - * Copyright (c) KylinSoft Co., Ltd.2021-2022. All rights reserved. - * ha-api is 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 - * 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 v2 for more details. - * Author: liqiuyu - * Date: 2022-04-19 16:49:51 - * LastEditTime: 2022-04-20 11:14:14 - * Description: 集群中的一些配置 - ******************************************************************************/ +/* + * Copyright (c) KylinSoft Co., Ltd. 2024.All rights reserved. + * ha-api licensed under the Mulan Permissive Software License, Version 2. + * See LICENSE file for more details. + * Author: yangzhao_kl + * Date: Fri Jan 8 20:56:40 2021 +0800 + */ package settings import ( diff --git a/utils/command.go b/utils/command.go index ee88e59..d28c5ef 100644 --- a/utils/command.go +++ b/utils/command.go @@ -1,17 +1,10 @@ -/****************************************************************************** - * Copyright (c) KylinSoft Co., Ltd.2021-2022. All rights reserved. - * ha-api is 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 - * 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 v2 for more details. - * Author: liqiuyu - * Date: 2022-04-19 16:49:51 - * LastEditTime: 2024-03-26 18:21:39 - * Description: 运行日志命令获取结果 - ******************************************************************************/ +/* + * Copyright (c) KylinSoft Co., Ltd. 2024.All rights reserved. + * ha-api licensed under the Mulan Permissive Software License, Version 2. + * See LICENSE file for more details. + * Author: yangzhao_kl + * Date: Tue Jan 5 09:33:00 2021 +0800 + */ package utils import ( diff --git a/utils/command_test.go b/utils/command_test.go index 0f013ca..741dfed 100644 --- a/utils/command_test.go +++ b/utils/command_test.go @@ -1,17 +1,10 @@ -/****************************************************************************** - * Copyright (c) KylinSoft Co., Ltd.2021-2022. All rights reserved. - * ha-api is 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 - * 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 v2 for more details. - * Author: liqiuyu - * Date: 2022-04-19 16:49:51 - * LastEditTime: 2022-04-20 11:18:23 - * Description: 集群命令的测试用例 - ******************************************************************************/ +/* + * Copyright (c) KylinSoft Co., Ltd. 2024.All rights reserved. + * ha-api licensed under the Mulan Permissive Software License, Version 2. + * See LICENSE file for more details. + * Author: yangzhao_kl + * Date: Fri Jan 22 17:27:48 2021 +0800 + */ package utils import ( diff --git a/utils/error.go b/utils/error.go index b1e5e1a..d18b2e1 100644 --- a/utils/error.go +++ b/utils/error.go @@ -1,17 +1,11 @@ /* - * Copyright (c) KylinSoft Co., Ltd.2024. All Rights Reserved. - * ha-api is 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 - * 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 v2 for more details. - * Author: bizhiyuan - * Date: 2024-03-12 15:54:56 - * LastEditTime: 2024-03-25 17:17:35 - * Description: utils 层进行错误处理响应 + * Copyright (c) KylinSoft Co., Ltd. 2024.All rights reserved. + * ha-api licensed under the Mulan Permissive Software License, Version 2. + * See LICENSE file for more details. + * Author: bizhiyuan + * Date: Wed Mar 13 11:02:27 2024 +0800 */ + package utils import ( diff --git a/utils/host.go b/utils/host.go index 61f1cbb..2e719e9 100644 --- a/utils/host.go +++ b/utils/host.go @@ -1,17 +1,10 @@ -/****************************************************************************** - * Copyright (c) KylinSoft Co., Ltd.2021-2022. All rights reserved. - * ha-api is 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 - * 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 v2 for more details. - * Author: liqiuyu - * Date: 2022-04-19 16:49:51 - * LastEditTime: 2022-04-20 11:22:03 - * Description: 主机corosync配置 - ******************************************************************************/ +/* + * Copyright (c) KylinSoft Co., Ltd. 2024.All rights reserved. + * ha-api licensed under the Mulan Permissive Software License, Version 2. + * See LICENSE file for more details. + * Author: yangzhao_kl + * Date: Fri Jan 8 20:56:40 2021 +0800 + */ package utils import ( diff --git a/utils/host_test.go b/utils/host_test.go index b5c8dc8..cb017e2 100644 --- a/utils/host_test.go +++ b/utils/host_test.go @@ -1,17 +1,10 @@ -/****************************************************************************** - * Copyright (c) KylinSoft Co., Ltd.2021-2022. All rights reserved. - * ha-api is 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 - * 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 v2 for more details. - * Author: liqiuyu - * Date: 2022-04-19 16:49:51 - * LastEditTime: 2022-04-20 11:18:32 - * Description: corosync配置获取的测试用例 - ******************************************************************************/ +/* + * Copyright (c) KylinSoft Co., Ltd. 2024.All rights reserved. + * ha-api licensed under the Mulan Permissive Software License, Version 2. + * See LICENSE file for more details. + * Author: yangzhao_kl + * Date: Fri Jan 22 17:27:48 2021 +0800 + */ package utils import ( diff --git a/utils/pam.go b/utils/pam.go index ea0ebbc..2d3b933 100644 --- a/utils/pam.go +++ b/utils/pam.go @@ -1,17 +1,10 @@ -/****************************************************************************** - * Copyright (c) KylinSoft Co., Ltd.2021-2022. All rights reserved. - * ha-api is 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 - * 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 v2 for more details. - * Author: liqiuyu - * Date: 2022-04-19 16:49:51 - * LastEditTime: 2022-04-20 11:28:40 - * Description: PAM管理 - ******************************************************************************/ +/* + * Copyright (c) KylinSoft Co., Ltd. 2024.All rights reserved. + * ha-api licensed under the Mulan Permissive Software License, Version 2. + * See LICENSE file for more details. + * Author: yangzhao_kl + * Date: Fri Jan 8 20:56:40 2021 +0800 + */ package utils import ( diff --git a/utils/response.go b/utils/response.go index 4a954f4..45ff5ad 100644 --- a/utils/response.go +++ b/utils/response.go @@ -1,3 +1,10 @@ +/* + * Copyright (c) KylinSoft Co., Ltd. 2024.All rights reserved. + * ha-api licensed under the Mulan Permissive Software License, Version 2. + * See LICENSE file for more details. + * Author: bizhiyuan + * Date: Mon Mar 25 17:23:29 2024 +0800 + */ package utils type GeneralResponse struct { diff --git a/utils/score_level.go b/utils/score_level.go index 2af8a96..0179297 100644 --- a/utils/score_level.go +++ b/utils/score_level.go @@ -1,3 +1,10 @@ +/* + * Copyright (c) KylinSoft Co., Ltd. 2024.All rights reserved. + * ha-api licensed under the Mulan Permissive Software License, Version 2. + * See LICENSE file for more details. + * Author: 赵忠章 + * Date: Fri Jan 22 11:18:35 2021 +0800 + */ package utils func ScoreToLevel(score string) string { diff --git a/utils/utils.go b/utils/utils.go index 96ef123..3312a49 100644 --- a/utils/utils.go +++ b/utils/utils.go @@ -1,17 +1,10 @@ -/****************************************************************************** - * Copyright (c) KylinSoft Co., Ltd.2021-2022. All rights reserved. - * ha-api is 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 - * 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 v2 for more details. - * Author: liqiuyu - * Date: 2022-04-19 16:49:51 - * LastEditTime: 2024-05-06 16:00:21 - * Description: 删除重复数据,获取数字单位 - ******************************************************************************/ +/* + * Copyright (c) KylinSoft Co., Ltd. 2024.All rights reserved. + * ha-api licensed under the Mulan Permissive Software License, Version 2. + * See LICENSE file for more details. + * Author: yangzhao_kl + * Date: Fri Jan 8 20:56:40 2021 +0800 + */ package utils import ( diff --git a/validations/login.go b/validations/login.go index b9176e9..5c3d1e3 100644 --- a/validations/login.go +++ b/validations/login.go @@ -1,16 +1,9 @@ /* - * Copyright (c) KylinSoft Co., Ltd.2024. All Rights Reserved. - * ha-api is 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 - * 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 v2 for more details. - * Author: bizhiyuan - * Date: 2024-05-16 16:23:42 - * LastEditTime: 2024-05-21 14:06:55 - * Description:input validation of Login + * Copyright (c) KylinSoft Co., Ltd. 2024.All rights reserved. + * ha-api licensed under the Mulan Permissive Software License, Version 2. + * See LICENSE file for more details. + * Author: bizhiyuan + * Date: Tue May 21 16:25:25 2024 +0800 */ package validations diff --git a/validations/request.go b/validations/request.go index 60f07e2..85a2be9 100644 --- a/validations/request.go +++ b/validations/request.go @@ -1,16 +1,9 @@ /* - * Copyright (c) KylinSoft Co., Ltd.2024. All Rights Reserved. - * ha-api is 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 - * 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 v2 for more details. - * Author: bizhiyuan - * Date: 2024-05-16 16:23:42 - * LastEditTime: 2024-05-21 14:06:55 - * Description: + * Copyright (c) KylinSoft Co., Ltd. 2024.All rights reserved. + * ha-api licensed under the Mulan Permissive Software License, Version 2. + * See LICENSE file for more details. + * Author: bizhiyuan + * Date: Tue May 21 16:25:25 2024 +0800 */ package validations diff --git a/validations/rule.go b/validations/rule.go index 7a207e9..db0b78d 100644 --- a/validations/rule.go +++ b/validations/rule.go @@ -1,16 +1,9 @@ /* - * Copyright (c) KylinSoft Co., Ltd.2024. All Rights Reserved. - * ha-api is 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 - * 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 v2 for more details. - * Author: bizhiyuan - * Date: 2024-05-16 16:23:42 - * LastEditTime: 2024-05-21 14:06:55 - * Description:input validation of Rule + * Copyright (c) KylinSoft Co., Ltd. 2024.All rights reserved. + * ha-api licensed under the Mulan Permissive Software License, Version 2. + * See LICENSE file for more details. + * Author: bizhiyuan + * Date: Tue May 21 17:24:27 2024 +0800 */ package validations -- Gitee