diff --git a/controllers/alarms.go b/controllers/alarms.go index 6cf04b53b9da6fbe0322a710e81d7011ec20c671..0805009d526f26c98f2ef54eb1c0d3a872444338 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 813b591515f47823f25e6b957dc243d5291aca5a..9aca517b4f2991362612480f89e744016d84efe7 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 fb0a5064b4e18135fd7f531184684e96507cd8ac..1e041d870dae151895f042bcd5f04b039567ee32 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 42c2f94a673bd9e4c67ed1e3e6839317f2c6b119..2a75911724305278d9edd6728e5b36691e16576b 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 56ba5079152e304c6215421a03e44ba090e671e8..eaadbf3628237d61876a8aab5d8c4ba5968cce4d 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 7117f661cdccb933d401574895a7c0125ca3f8fc..93be7e61aec80684ba473c8e9f90abe4bd263b04 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 f9027eeaa4639a7b73f78f8074e5111e4ba8496e..1845ab5895d687eed2feb3078286a0d19f504350 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 804f0dd1872873ac64f0e07e388bf830f0b5a6d8..f454dc9b27c0a4c1690a8abd6cbba64745081de9 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 fa0514fda69499ac0427329c39d817ffa1730778..c0db0dda6efdce6f1c9a851c637a27a1b8080108 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 2f295aedc8e3e382a303726cda894909a25e792f..c92210c5fd205c5bbaac4886d9f3af6c226f1694 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 0870ec84955ecf79fb57a15ea2b4f71a20008447..19cc91bfbf116df18f5af4119b3addd588b21f15 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 dbdb1e4136458f49e68646c82e422635e3db8979..bcb7e84c61bc8060c17c4d7fa3eab11baf6dc8bd 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 6d06105d4888ebddea01cb712245f662eba9dc19..ea9dc14f41bf9470b6588207a7f5f9a2bbd9bf15 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 ada418270a62c7a6c545befc7ae71d3b0a850cc2..6ff981cdbdd42c21d6e7aa8e86dc78c179a860ba 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 bb191cf86c510c1dc9532ef0d3f56c7a952f296c..de53e667555610f6b2cb4eb8659af563e6a6b853 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 299c2cf902a748e4d1405bc43ea85cb160d08996..278826b0c6fb6d4a80cb790232176f02c1f0d669 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 995abcc37af8229673d894e7dff16dd44f7b3320..db7143b19878160311dc8114040c8419100c20ac 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 c3b8111a6f0f339fecaed900ae6167500ca0d911..0bc9a813c479558b370c5355b10cc2474967f80f 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 d05e4916d7f9bca1ca76feee6189d793452be067..d154c0248f2bedd3a71cc3d82880553c42baa446 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 a0fbe8dc5274161a613c7c62142cbdcb7c4362b3..523510f409f5f0dad02cb4cc4f6e8d628f733b30 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 8099d77d0e746b80961d0be6c7c99a0383c971e2..8f25908f8db24bf7f065e9e8f634e3100b3d21d1 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 08a2582b69220a8750cda0803e8e3ce18e8167a4..03e1b926991b8e1b56431bda60ca04942c7241be 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 91ea3368f4168ac4ebb09801259421ceeb069bb5..ad2a3f73522cd5244a8b3990f41ef011b2d04f86 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 c8dd70f475fb09b08ab797eefcefe70814323800..b89bf6086e4a57db70ba47150b97a61840f21ac5 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 0ae39d8081b731a1d58b934fc82bf73b381413f2..5ce08cedde0ed730244c671940d66bf40d12c216 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 0159171e8a275e4a8b9306f284e92e67c15d9178..c871bf135fa655bf0d032ce38770185baef5704b 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 d4833007fa9fbe7419869fff936360f48888aad2..c667c54ee0b494481299db7791528947e6f4f1fc 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 030d75f01f29d678c09e5ced82245336d713a038..101b8c5cc011e45c8a6ad7dba74edd4cf93acabc 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 61feee189d50169826ddadc7eaa38dd3f1697087..dc4bd834ea4308e04cc63b368069ae267390decc 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 8476a15000f1e4c5bfe3e0812944f15c5693d096..c4aaaead66f03b22a4ada49da4ca01f1b11bc2f3 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 65836e299800f1e569c2a0bff01314ccabc8d2f5..e71aa1a0ed44275a56e254e2c7f12e3072f3774a 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 4867b03d5b4a0b2b150013fdaad370eeafebc17a..0c40baa284d9305de0ce6d45812f02b8f6e58b13 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 803fdbce84e8c21586f115c0b8201a63e006492e..5d79709fe4484e43f90d6a31db994b695a0fc4da 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 6bda50fe846f1244d344630a3c3a540bfbe53c29..e511243ca6f3910af0c85682800b81af7547bab7 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 e8331fcc2f38bb811becbd6778e25b6558b594c0..2f74b875df389c0f52a3b39875213a06639fad0f 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 975404e46ed1300f20f46a6837c610cfd5d95a53..98e111ef87aa8765e2708bcbc9e53670c95fc9fd 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 8cbc0d07de00ff3b1621dbdcec1ce6fa81f4a81f..d5e989155fba14a747b136ae8d305f77c28d26dd 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 76694e7155012063ac9257756c429330ad8dd495..6a9bdb21a025518dfc99e1bf4db060ca26ce2f59 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 b3888632bfead2ee5bc9477323637c06801a3b76..22aa492f7798353f8f407135a74b9ee6cefc3912 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 a8e4259aca6b60fefdec9bffa5d2fa78aa27de63..b045239843e28f4e6eb0d9479548bafd4f6aaadc 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 239df6be7032b1f8f7964be987bae9ef7cdb058c..be2f73da128c2e51700a36002c71f656de20c7af 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 70633f807732295bd34f018c2bd55d2a882e7110..59a0eb76ac0b8cd4a86ddd89b900aad83121384e 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 4b9a54afc71231b3146a5c3f823ce5b367fc8b86..024aaefdae76fcdbdf62cd04a884dd4fea0c54ae 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 cc1041bf398576a63b7be322a4dde261dc430ba1..caf26e778aa2d82098f15dd57406d78aa26596d5 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 03b87f7b32af16c9181b1b3bd9c0375264274b09..d125ff5c2a11285c3484b030fcea4d30e400a9b7 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 59ab4aab4b6a9ddabf71370c67775495840b838a..0c622bfa484678ae1a3500a1c6fdadc4bec251d9 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 e4432b80a888977f57f59955f06aa6312feb69b6..92fd0fc03b7a9dab98188e2e62c2803d1d87f40e 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 79e446682b764fdd610d09211fc00296d5762e6b..3a5326952912cd9404a88373f9f1c632cfdeb252 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 ee88e598a5b945d2a4df05da396c9e9bee9dbfe2..d28c5efd9dbea4cd4ec863b6098a58b6b1092ab1 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 0f013caa6bfda02342ba9f8944daf93e74907847..741dfeda73047aaa2d00dcbf122160d9bcdc96c8 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 b1e5e1ac6597aacb7434058867ac33b7f3ec9b33..d18b2e1a92c643ab916669b54ea6d99d7535d086 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 61f1cbbcad229a2706f0754f6f46e4c9c4547548..2e719e9868505effc8e5a2830b328891b6d45719 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 b5c8dc86f03c04501d36c198dcd5d37f925ee392..cb017e2eaa11f6f07e70c5da02300b560a939d8c 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 ea0ebbc55bedd2d30beb7aaeed89ef0ba5f0f561..2d3b933895bbeee875b0621c83a5627d77edba54 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 4a954f406527fb03d8533a3cdeff2ddbe2fb19a5..45ff5ad5c378cb07cbef570a2e4e82bc6a94a5ad 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 2af8a9666e1ed766022bbd9a2ae98122d9482e6c..0179297738275dc00ebbe578a86cf123bbbbad31 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 96ef123737f90b23a38b2bccad46fd768e13d440..3312a49c60b814d66a5fdbe3999d25a97d899737 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 b9176e9313b886e70555ab5d93209e02e68b5a44..5c3d1e3a608d1daa3be06f746b5aa69649ea4943 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 60f07e2ec92174ff45971ba469ff3593ea6c4cc5..85a2be9ca601c0a274c242de47a465952b76fb2a 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 7a207e90d0acfadc09b388081be4101801960baa..db0b78d8c73028eb243e0f71f8abdc2a9d0a145c 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