diff --git a/LICENSE.txt b/LICENSE.txt new file mode 100644 index 0000000000000000000000000000000000000000..47b5a0324d6c6e97e17ae15797875a3bf2cbcdfc --- /dev/null +++ b/LICENSE.txt @@ -0,0 +1,132 @@ +木兰宽松许可证, 第2版 + +木兰宽松许可证, 第2版 + +2020年1月 http://license.coscl.org.cn/MulanPSL2 + +您对“软件”的复制、使用、修改及分发受木兰宽松许可证,第2版(“本许可证”)的如下条款的约束: + +0. 定义 + +“软件” 是指由“贡献”构成的许可在“本许可证”下的程序和相关文档的集合。 + +“贡献” 是指由任一“贡献者”许可在“本许可证”下的受版权法保护的作品。 + +“贡献者” 是指将受版权法保护的作品许可在“本许可证”下的自然人或“法人实体”。 + +“法人实体” 是指提交贡献的机构及其“关联实体”。 + +“关联实体” 是指,对“本许可证”下的行为方而言,控制、受控制或与其共同受控制的机构,此处的控制是指有受控方或共同受控方至少50%直接或间接的投票权、资金或其他有价证券。 + +1. 授予版权许可 + +每个“贡献者”根据“本许可证”授予您永久性的、全球性的、免费的、非独占的、不可撤销的版权许可,您可以复制、使用、修改、分发其“贡献”,不论修改与否。 + +2. 授予专利许可 + +每个“贡献者”根据“本许可证”授予您永久性的、全球性的、免费的、非独占的、不可撤销的(根据本条规定撤销除外)专利许可,供您制造、委托制造、使用、许诺销售、销售、进口其“贡献”或以其他方式转移其“贡献”。前述专利许可仅限于“贡献者”现在或将来拥有或控制的其“贡献”本身或其“贡献”与许可“贡献”时的“软件”结合而将必然会侵犯的专利权利要求,不包括对“贡献”的修改或包含“贡献”的其他结合。如果您或您的“关联实体”直接或间接地,就“软件”或其中的“贡献”对任何人发起专利侵权诉讼(包括反诉或交叉诉讼)或其他专利维权行动,指控其侵犯专利权,则“本许可证”授予您对“软件”的专利许可自您提起诉讼或发起维权行动之日终止。 + +3. 无商标许可 + +“本许可证”不提供对“贡献者”的商品名称、商标、服务标志或产品名称的商标许可,但您为满足第4条规定的声明义务而必须使用除外。 + +4. 分发限制 + +您可以在任何媒介中将“软件”以源程序形式或可执行形式重新分发,不论修改与否,但您必须向接收者提供“本许可证”的副本,并保留“软件”中的版权、商标、专利及免责声明。 + +5. 免责声明与责任限制 + +“软件”及其中的“贡献”在提供时不带任何明示或默示的担保。在任何情况下,“贡献者”或版权所有者不对任何人因使用“软件”或其中的“贡献”而引发的任何直接或间接损失承担责任,不论因何种原因导致或者基于何种法律理论,即使其曾被建议有此种损失的可能性。 + +6. 语言 + +“本许可证”以中英文双语表述,中英文版本具有同等法律效力。如果中英文版本存在任何冲突不一致,以中文版为准。 + +条款结束 + +如何将木兰宽松许可证,第2版,应用到您的软件 + +如果您希望将木兰宽松许可证,第2版,应用到您的新软件,为了方便接收者查阅,建议您完成如下三步: + +1, 请您补充如下声明中的空白,包括软件名、软件的首次发表年份以及您作为版权人的名字; + +2, 请您在软件包的一级目录下创建以“LICENSE”为名的文件,将整个许可证文本放入该文件中; + +3, 请将如下声明文本放入每个源文件的头部注释中。 + +Copyright (c) [Year] [name of copyright holder] +[Software Name] is licensed under 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. + + +Mulan Permissive Software License,Version 2 + +Mulan Permissive Software License,Version 2 (Mulan PSL v2) + +January 2020 http://license.coscl.org.cn/MulanPSL2 + +Your reproduction, use, modification and distribution of the Software shall be subject to Mulan PSL v2 (this License) with the following terms and conditions: + +0. Definition + +Software means the program and related documents which are licensed under this License and comprise all Contribution(s). + +Contribution means the copyrightable work licensed by a particular Contributor under this License. + +Contributor means the Individual or Legal Entity who licenses its copyrightable work under this License. + +Legal Entity means the entity making a Contribution and all its Affiliates. + +Affiliates means entities that control, are controlled by, or are under common control with the acting entity under this License, ‘control’ means direct or indirect ownership of at least fifty percent (50%) of the voting power, capital or other securities of controlled or commonly controlled entity. + +1. Grant of Copyright License + +Subject to the terms and conditions of this License, each Contributor hereby grants to you a perpetual, worldwide, royalty-free, non-exclusive, irrevocable copyright license to reproduce, use, modify, or distribute its Contribution, with modification or not. + +2. Grant of Patent License + +Subject to the terms and conditions of this License, each Contributor hereby grants to you a perpetual, worldwide, royalty-free, non-exclusive, irrevocable (except for revocation under this Section) patent license to make, have made, use, offer for sale, sell, import or otherwise transfer its Contribution, where such patent license is only limited to the patent claims owned or controlled by such Contributor now or in future which will be necessarily infringed by its Contribution alone, or by combination of the Contribution with the Software to which the Contribution was contributed. The patent license shall not apply to any modification of the Contribution, and any other combination which includes the Contribution. If you or your Affiliates directly or indirectly institute patent litigation (including a cross claim or counterclaim in a litigation) or other patent enforcement activities against any individual or entity by alleging that the Software or any Contribution in it infringes patents, then any patent license granted to you under this License for the Software shall terminate as of the date such litigation or activity is filed or taken. + +3. No Trademark License + +No trademark license is granted to use the trade names, trademarks, service marks, or product names of Contributor, except as required to fulfill notice requirements in section 4. + +4. Distribution Restriction + +You may distribute the Software in any medium with or without modification, whether in source or executable forms, provided that you provide recipients with a copy of this License and retain copyright, patent, trademark and disclaimer statements in the Software. + +5. Disclaimer of Warranty and Limitation of Liability + +THE SOFTWARE AND CONTRIBUTION IN IT ARE PROVIDED WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED. IN NO EVENT SHALL ANY CONTRIBUTOR OR COPYRIGHT HOLDER BE LIABLE TO YOU FOR ANY DAMAGES, INCLUDING, BUT NOT LIMITED TO ANY DIRECT, OR INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING FROM YOUR USE OR INABILITY TO USE THE SOFTWARE OR THE CONTRIBUTION IN IT, NO MATTER HOW IT’S CAUSED OR BASED ON WHICH LEGAL THEORY, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. + +6. Language + +THIS LICENSE IS WRITTEN IN BOTH CHINESE AND ENGLISH, AND THE CHINESE VERSION AND ENGLISH VERSION SHALL HAVE THE SAME LEGAL EFFECT. IN THE CASE OF DIVERGENCE BETWEEN THE CHINESE AND ENGLISH VERSIONS, THE CHINESE VERSION SHALL PREVAIL. + +END OF THE TERMS AND CONDITIONS + +How to Apply the Mulan Permissive Software License,Version 2 (Mulan PSL v2) to Your Software + +To apply the Mulan PSL v2 to your work, for easy identification by recipients, you are suggested to complete following three steps: + +Fill in the blanks in following statement, including insert your software name, the year of the first publication of your software, and your name identified as the copyright owner; + +Create a file named "LICENSE" which contains the whole context of this License in the first directory of your software package; + +Attach the statement to the appropriate annotated syntax at the beginning of each source file. + +Copyright (c) [Year] [name of copyright holder] +[Software Name] is licensed under 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. \ No newline at end of file diff --git a/README.md b/README.md index 3773f983ffa54ebe7692fea78efad140898fc35f..a8b52e1c3cccf7c232b19d462dab4f30fa96c9f7 100644 --- a/README.md +++ b/README.md @@ -90,4 +90,4 @@ make build-release ``` # License -OBAgent根据 Mulan 公共许可证版本 2 获得许可。有关详细信息,请参阅 [木兰宽松许可证, 第2版](http://license.coscl.org.cn/MulanPSL2) 。 +OBAgent 根据 Mulan 公共许可证版本 2 获得许可。有关详细信息,请参阅 [木兰宽松许可证, 第2版](http://license.coscl.org.cn/MulanPSL2) 。 diff --git a/agentd/api/api.go b/agentd/api/api.go index e5e21ca4bf7dd63156b5bf799272bd3a6a11b135..edd46f151484fb722e9f14017e08f157e0aa2c1a 100644 --- a/agentd/api/api.go +++ b/agentd/api/api.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package api import ( diff --git a/agentd/config.go b/agentd/config.go index 81787e06c75db4e95d2899e03a8c13e04e119334..c7f634f06a97dc1bb2e67695a82ecb7f2f140eca 100644 --- a/agentd/config.go +++ b/agentd/config.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package agentd import ( diff --git a/agentd/config_test.go b/agentd/config_test.go index 3cd49605c50db4476de6dee629158f16a174f153..b775fb81c9e9bae29d4bceba5331d102c635a2ac 100644 --- a/agentd/config_test.go +++ b/agentd/config_test.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package agentd import ( diff --git a/agentd/error.go b/agentd/error.go index 4861379164b02437a4a6930acb8a68f8d5949825..a205e8c338f1b4c6fcba75dc927d1dbdfbffabc9 100644 --- a/agentd/error.go +++ b/agentd/error.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package agentd import "github.com/oceanbase/obagent/lib/errors" diff --git a/agentd/limit.go b/agentd/limit.go index bc6279e8aab3d52322fd599c3b7d5628ae03ab37..d5069f4b525ea90e55158eb82e1b0d901d240bbb 100644 --- a/agentd/limit.go +++ b/agentd/limit.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package agentd type Limiter interface { diff --git a/agentd/limit_linux.go b/agentd/limit_linux.go index 1b1dd1c4b7b59540f79e2a767bf5a9e4d334ee9a..5d44e465bfb0e4a1bb86976e7a6c7ac335b4a3c7 100644 --- a/agentd/limit_linux.go +++ b/agentd/limit_linux.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + //go:build linux // +build linux diff --git a/agentd/limit_nonlinux.go b/agentd/limit_nonlinux.go index f847bf5d2513a5aa7b8b6515d3339a0df0872c79..5532f8b2a66d9844eb897a0e5471176b9aefdbed 100644 --- a/agentd/limit_nonlinux.go +++ b/agentd/limit_nonlinux.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + //go:build !linux // +build !linux diff --git a/agentd/limit_watch.go b/agentd/limit_watch.go index 39f026132f6cb2039184b7e662b1a29f1da12dd9..2deb9e121888a64fbbc0f7f2f49ce16cff82f017 100644 --- a/agentd/limit_watch.go +++ b/agentd/limit_watch.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package agentd import ( diff --git a/agentd/service.go b/agentd/service.go index c309008086bcd66857754e066f837b6ee8048e40..a6946d00f273ccb7adebd60a3de8e55fa81d83bb 100644 --- a/agentd/service.go +++ b/agentd/service.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package agentd import ( diff --git a/agentd/service_test.go b/agentd/service_test.go index 5943c15a85ed99e10e057da52373ee2694d57394..ca73a1ff78d8d8c3ab15b089e278bd60cd889071 100644 --- a/agentd/service_test.go +++ b/agentd/service_test.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package agentd import ( diff --git a/agentd/watchdog.go b/agentd/watchdog.go index 4cb5e8923fb3e18d161173fe9ab64104bb22a533..22c585320358507298301ca28a472107dccd2264 100644 --- a/agentd/watchdog.go +++ b/agentd/watchdog.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package agentd import ( diff --git a/agentd/watchdog_test.go b/agentd/watchdog_test.go index 1dc2e5c7b10ccb713856c50401e228b805dee960..712387a2608c32b7b2bd8bee684c7fd4c39426d2 100644 --- a/agentd/watchdog_test.go +++ b/agentd/watchdog_test.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package agentd import ( diff --git a/api/common/config_handler.go b/api/common/config_handler.go index 18d41c7f716397945a8c1d971fd204416bcc4902..85b52eca3941232a583563ae1b79781626b80299 100644 --- a/api/common/config_handler.go +++ b/api/common/config_handler.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package common import ( diff --git a/api/common/handler_common.go b/api/common/handler_common.go index ef884410bdb027db26a4df67bd989e595da82dd5..52866e557f5ce53022bc0b3604a3d7230aac254c 100644 --- a/api/common/handler_common.go +++ b/api/common/handler_common.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package common import ( diff --git a/api/common/info_handler.go b/api/common/info_handler.go index c71d2e13b0c8b03f9cc80ff9fd017f5bb4486d0a..34ee030d81c56f0d3c1d1671212d2f6da7598ebb 100644 --- a/api/common/info_handler.go +++ b/api/common/info_handler.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package common import ( diff --git a/api/common/middleware.go b/api/common/middleware.go index ed9a6e2426cc6396bce182fd07a52d0061531c21..b8767044ca4723c5e46cda5c236e907bf4eda262 100644 --- a/api/common/middleware.go +++ b/api/common/middleware.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package common import ( diff --git a/api/common/middleware_auth.go b/api/common/middleware_auth.go index 9117daf8c720ebdcacb42da82e1622386169386d..a42cd556f726d09d405835bcaf2551f4de802429 100644 --- a/api/common/middleware_auth.go +++ b/api/common/middleware_auth.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package common import ( diff --git a/api/common/route_common.go b/api/common/route_common.go index 143197cfa30a88a5c2125892bf9723319315c9a4..286cf3fca1277ed5f7d53ae5d007554aebc5b3a5 100644 --- a/api/common/route_common.go +++ b/api/common/route_common.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package common import ( diff --git a/api/mgragent/agent_handler.go b/api/mgragent/agent_handler.go index f20b366e432f262d1b3b7942781916e9dc5b2863..6a48fc2c4d3280985c8a5f2dba63a8bb98526d81 100644 --- a/api/mgragent/agent_handler.go +++ b/api/mgragent/agent_handler.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package mgragent import ( diff --git a/api/mgragent/file_handler.go b/api/mgragent/file_handler.go index d13ac7303aa773280c5387fbdc9b4bf0c4ceda46..f45857e784bfa1e6e39e5096f69049ae276fb4f2 100644 --- a/api/mgragent/file_handler.go +++ b/api/mgragent/file_handler.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package mgragent import ( diff --git a/api/mgragent/log_handler.go b/api/mgragent/log_handler.go index 5bdbf8f98c825861375affb1ab84e60473a82ee1..a9b800d3afe8a2cd96fcefc72a47a36da263dc03 100644 --- a/api/mgragent/log_handler.go +++ b/api/mgragent/log_handler.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package mgragent import ( diff --git a/api/mgragent/mgragent_route.go b/api/mgragent/mgragent_route.go index 3613d14cf105e7d1e059b4988cb0a01a37d22cad..102f52a5064a0f280bd82e0fe7a8b16350c781bf 100644 --- a/api/mgragent/mgragent_route.go +++ b/api/mgragent/mgragent_route.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package mgragent import ( diff --git a/api/mgragent/system_handler.go b/api/mgragent/system_handler.go index b7a05e2e83f876f2abd5565cc21364bc61e08dc5..32613ea4a863048447b0ded05285f4a8f79356c2 100644 --- a/api/mgragent/system_handler.go +++ b/api/mgragent/system_handler.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package mgragent import ( diff --git a/api/mgragent/task_handler.go b/api/mgragent/task_handler.go index 2b47dcb69e30173114f511b6a3026e4e522739e4..2fc22659ba3576065eb263186d12d6007ee65df5 100644 --- a/api/mgragent/task_handler.go +++ b/api/mgragent/task_handler.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package mgragent import ( diff --git a/api/mgragent/task_handler_test.go b/api/mgragent/task_handler_test.go index b69e1ec5a4dc905984659a71f136318364f36796..2925bdae936acd399c08bbf5deb9aee0d129b180 100644 --- a/api/mgragent/task_handler_test.go +++ b/api/mgragent/task_handler_test.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package mgragent import ( diff --git a/api/monagent/monagent_route.go b/api/monagent/monagent_route.go index b9dd3d88255fef7852262af1c0a25537a89ce00d..93264d36b1a7f35cc96953eeddb758725a39af27 100644 --- a/api/monagent/monagent_route.go +++ b/api/monagent/monagent_route.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package monagent import ( diff --git a/api/web/http_server.go b/api/web/http_server.go index b4971300d77837004456fe3049e952eec5516e30..9dc2d6b1c8cdaa1b05f381a102b4f43a188275b1 100644 --- a/api/web/http_server.go +++ b/api/web/http_server.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package web import ( diff --git a/api/web/http_server_test.go b/api/web/http_server_test.go index 8de59c85363386572cb299073e43e6a55731702c..48661883fc0ba2478de0025ede175d607ceceb5c 100644 --- a/api/web/http_server_test.go +++ b/api/web/http_server_test.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package web import ( diff --git a/api/web/monagent_server.go b/api/web/monagent_server.go index b1d8158c106ecaab56bad34ec209ac750f4799d5..165c93856b5e80e66f4824c19893761b38f9a097 100644 --- a/api/web/monagent_server.go +++ b/api/web/monagent_server.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package web import ( diff --git a/api/web/monagent_server_test.go b/api/web/monagent_server_test.go index e8d8f13012b165840be0ec125dfbdd1b1d2d6e0b..3c1e8241be335733556f8643e7e3a8e900715752 100644 --- a/api/web/monagent_server_test.go +++ b/api/web/monagent_server_test.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package web import ( diff --git a/api/web/route_test.go b/api/web/route_test.go index cc58337df1ad4f3dc1ad5c847c7d37d2a144df7d..8a3196e28d0ced9037708938a2718ea4e3e8060d 100644 --- a/api/web/route_test.go +++ b/api/web/route_test.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package web import ( diff --git a/api/web/server.go b/api/web/server.go index 550ddd16c11f1ebc15fb2606cf1704c779fbbb0b..c6a462daf3e1ca8db871a3a30af3cfcb43cfca0d 100644 --- a/api/web/server.go +++ b/api/web/server.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package web import ( diff --git a/api/web/server_test.go b/api/web/server_test.go index 1b2a6d5e909579d701db89871c8efff56e1c1ab5..97d21a03d9197946d4f0dad2c3f77af25ffb1f7e 100644 --- a/api/web/server_test.go +++ b/api/web/server_test.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package web import ( diff --git a/cmd/agentctl/main.go b/cmd/agentctl/main.go index f719120600042e2e61bea1b3c54cda6b2993f049..4769fab0caaea39a466f59fa6c1ce6b3af36b3e9 100644 --- a/cmd/agentctl/main.go +++ b/cmd/agentctl/main.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package main import ( diff --git a/cmd/agentd/main.go b/cmd/agentd/main.go index 259feb42fcb81c43912e9e86c86feab5e325fe47..e9a76438a14537c37f8ab264b81921458a79852c 100644 --- a/cmd/agentd/main.go +++ b/cmd/agentd/main.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package main import ( diff --git a/cmd/mgragent/main.go b/cmd/mgragent/main.go index e212544d16440c24795806eabea9c9f1b70c12ba..08697e171afe121b6a9905dbc89b3723a0d9d67e 100644 --- a/cmd/mgragent/main.go +++ b/cmd/mgragent/main.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package main import ( diff --git a/cmd/monagent/main.go b/cmd/monagent/main.go index ada604ac715f2199951a12e241cf4ecf35da6846..1b3cbafc801af1b617cd4adacadf26f26d9a11e6 100644 --- a/cmd/monagent/main.go +++ b/cmd/monagent/main.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package main import ( diff --git a/config/agentctl/agentctl_config.go b/config/agentctl/agentctl_config.go index 5d9fe330969768790b7230437e7223902bf427f8..1eb14eef8404c97efeb7c4c571e603b84cdaea35 100644 --- a/config/agentctl/agentctl_config.go +++ b/config/agentctl/agentctl_config.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package agentctl import "github.com/oceanbase/obagent/config" diff --git a/config/config_common.go b/config/config_common.go index 59a476408d4669adc03192eac80a54f3bcbae94e..109c32bff78840bab08a813d2d7d217bce7b6756 100644 --- a/config/config_common.go +++ b/config/config_common.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package config import ( diff --git a/config/config_crypto.go b/config/config_crypto.go index aadb69bce2dfcb091bbd35e011638b1f6b62589f..0e4911d26eb85b3db2867ee436b000001d6da580 100644 --- a/config/config_crypto.go +++ b/config/config_crypto.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package config import ( diff --git a/config/config_module.go b/config/config_module.go index cd724b70cd745e5a51f14aa176f7713e03b0412b..3e2ae8b8bb4c9dd45813734b0107161854c7b907 100644 --- a/config/config_module.go +++ b/config/config_module.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package config import ( diff --git a/config/config_module_callback.go b/config/config_module_callback.go index efcb41ac078a3a4518600ddcc59b19b4e0898807..ef35592257d8553cd4d41d1e7c62c2eac4427fc8 100644 --- a/config/config_module_callback.go +++ b/config/config_module_callback.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package config import ( diff --git a/config/config_module_test.go b/config/config_module_test.go index e2ecea07f1553bd1de0643bf735ad4e2aec9abc3..7159cd60bafa08489f9a7d103564b012fca0b340 100644 --- a/config/config_module_test.go +++ b/config/config_module_test.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package config import ( diff --git a/config/config_notify.go b/config/config_notify.go index dbd0056e2d625475b5e52cf93d3386ca97b83968..7979b8f37c7fdec4c84f582ca33ae8aee05d6e3c 100644 --- a/config/config_notify.go +++ b/config/config_notify.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package config import ( diff --git a/config/config_notify_test.go b/config/config_notify_test.go index 29eac7039b5ecf89ac0453abbba898a6fa0d4885..bc153dd93a61631702ce9ca40e9113844f0cca41 100644 --- a/config/config_notify_test.go +++ b/config/config_notify_test.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package config import ( diff --git a/config/config_property.go b/config/config_property.go index 2c5343b4c609aa3a2b15e3ecd001051ab02b2eaf..8af3bd10d16301fd5b4ea92080d7235e50487304 100644 --- a/config/config_property.go +++ b/config/config_property.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package config import ( diff --git a/config/config_property_meta.go b/config/config_property_meta.go index bfc2cc1759025b51fa8815171c68c9117394cbbc..83568da97512d697a2f240a2909428db610d979a 100644 --- a/config/config_property_meta.go +++ b/config/config_property_meta.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package config import ( diff --git a/config/config_property_test.go b/config/config_property_test.go index b480f0d5ebe9059bceb38c068f0ae352568db808..b05a1ba3e94b5ed237e18e8638350054cb170dd5 100644 --- a/config/config_property_test.go +++ b/config/config_property_test.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package config import ( diff --git a/config/config_reader_writer.go b/config/config_reader_writer.go index d3459dfaf520351bb59ca988519260b4d0603d68..acbbe072bcdd1bd83d18ba0b811ddb5964ccd9a7 100644 --- a/config/config_reader_writer.go +++ b/config/config_reader_writer.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package config import ( diff --git a/config/config_reader_writer_test.go b/config/config_reader_writer_test.go index 8fb6011ae6754f7b317c92aab2954c6507fcdb2c..4009a0b4a9a20ffb1831c5374cfd86ad9677811b 100644 --- a/config/config_reader_writer_test.go +++ b/config/config_reader_writer_test.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package config import ( diff --git a/config/config_verify_save.go b/config/config_verify_save.go index bbc29b3092a6079bb181f09e3d10a987e3f726e0..f9780b20e70528b393fe383ee44929e82d77ef14 100644 --- a/config/config_verify_save.go +++ b/config/config_verify_save.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package config import ( diff --git a/config/config_verify_save_test.go b/config/config_verify_save_test.go index cb81ed9fddf5e8b6a1716b5857561ecb0b625bed..6a67132578a3d97592a45d05b485c8db873d1122 100644 --- a/config/config_verify_save_test.go +++ b/config/config_verify_save_test.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package config import ( diff --git a/config/config_version.go b/config/config_version.go index 67a6567a5594d671215af826b6fe3913d3bd0f2f..42f486c9aff0ce0c74343bffa19873dd881e961b 100644 --- a/config/config_version.go +++ b/config/config_version.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package config import ( diff --git a/config/config_version_test.go b/config/config_version_test.go index 9160e284e308b3b1755edd3726753a2245d1cfcd..c53b748bce44113feb62d45cd3c02a999c67d17f 100644 --- a/config/config_version_test.go +++ b/config/config_version_test.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package config import ( diff --git a/config/mgragent/cleaner_config.go b/config/mgragent/cleaner_config.go index b214dd04d280f8d0ea74ad5100acfbe1399a8a14..d166dff8d4e1c1ee45d088d4d5687c379c625a6a 100644 --- a/config/mgragent/cleaner_config.go +++ b/config/mgragent/cleaner_config.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package mgragent import "time" diff --git a/config/mgragent/config_manager.go b/config/mgragent/config_manager.go index 214e7fb72ee63e4f5be5846da885d2e78409447b..c225f4d042eca2b1970c4298427f8e0bdd23ab85 100644 --- a/config/mgragent/config_manager.go +++ b/config/mgragent/config_manager.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package mgragent import ( diff --git a/config/mgragent/config_manager_test.go b/config/mgragent/config_manager_test.go index 5fdee804d069b3d4dd509a3ec2b285337494f885..00a8a842c5d74d99d42f3a0ddc1f84a780bc8218 100644 --- a/config/mgragent/config_manager_test.go +++ b/config/mgragent/config_manager_test.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package mgragent import ( diff --git a/config/mgragent/log_query_config.go b/config/mgragent/log_query_config.go index 76b220909e397c0918a83ac644eb8d780e6d6538..625e633c93a6276fe3cae5a74cd44c03b4fba1c3 100644 --- a/config/mgragent/log_query_config.go +++ b/config/mgragent/log_query_config.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package mgragent import "time" diff --git a/config/mgragent/mgragent_basic_auth_test.go b/config/mgragent/mgragent_basic_auth_test.go index 985e2fba859694acd4f9310968fbc386451d87a0..5186ba2dd094af7e8404d6f64a2a4bcf9735cff6 100644 --- a/config/mgragent/mgragent_basic_auth_test.go +++ b/config/mgragent/mgragent_basic_auth_test.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package mgragent import ( diff --git a/config/mgragent/mgragent_config.go b/config/mgragent/mgragent_config.go index a2616a77ce1258fe4d702637570681c5e2fc3158..11989c76feeaa2e574f363b8c5087b1ae50e0668 100644 --- a/config/mgragent/mgragent_config.go +++ b/config/mgragent/mgragent_config.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package mgragent import ( diff --git a/config/monagent/log_tailer_config.go b/config/monagent/log_tailer_config.go index 381a42760ca8a4065a3d601053f253cf8e5c46d5..1f9db8ede3729f494b839560099f001dca3d6dd8 100644 --- a/config/monagent/log_tailer_config.go +++ b/config/monagent/log_tailer_config.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package monagent import ( diff --git a/config/monagent/monagent_config.go b/config/monagent/monagent_config.go index f052151285e49185f15ddc33ca895991139b8fee..1822e397b6076048c79fec58487b251045d78db1 100644 --- a/config/monagent/monagent_config.go +++ b/config/monagent/monagent_config.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package monagent import ( diff --git a/config/monagent/monagent_config_test.go b/config/monagent/monagent_config_test.go index d07376e1a04fd548e4e828ac7e27caa422a5d220..af654127e4c3d5ba9d4b4d4568552ee1954ffcf4 100644 --- a/config/monagent/monagent_config_test.go +++ b/config/monagent/monagent_config_test.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package monagent import ( diff --git a/config/monagent/pipeline_config.go b/config/monagent/pipeline_config.go index e09cdb3d7dafc89f5825a6682f112c55a0149e67..d5d193ae0a8a57e9fc0e63a37b8ac9d53ee290f6 100644 --- a/config/monagent/pipeline_config.go +++ b/config/monagent/pipeline_config.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package monagent import ( diff --git a/config/monagent/pipeline_config_test.go b/config/monagent/pipeline_config_test.go index 5e527210d5c9d663b9c5ea642daa5f07504d9bd2..46c3b03921ae6dca1a127719aed6dc5bd756a36b 100644 --- a/config/monagent/pipeline_config_test.go +++ b/config/monagent/pipeline_config_test.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package monagent import ( diff --git a/config/placeholder.go b/config/placeholder.go index 6dfed237a13b3b88e054df208bf8140afa8e5db7..c22a8faf7959ad93c9f8ef1efd888bcd0ce2b1dc 100644 --- a/config/placeholder.go +++ b/config/placeholder.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package config import ( diff --git a/config/placeholder_test.go b/config/placeholder_test.go index ffbae36837b8a67c13f1802ede9b6a944e801098..2da5d9f2e5d83dcd4aec9906c47482c850613379 100644 --- a/config/placeholder_test.go +++ b/config/placeholder_test.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package config import ( diff --git a/config/sdk/log_config_properties_meta.go b/config/sdk/log_config_properties_meta.go index 793b72887400e86014675107a73455451e5a26da..9d4cc3a21f20626ca5d8eef688fdfb6925c7dc57 100644 --- a/config/sdk/log_config_properties_meta.go +++ b/config/sdk/log_config_properties_meta.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package sdk import ( diff --git a/config/sdk/mgragent_callbacks.go b/config/sdk/mgragent_callbacks.go index 04dce728c80eb96d92c6572685c7056dbaf60eb3..bdca2f967639ec0f3690258f28ac941a0471ae86 100644 --- a/config/sdk/mgragent_callbacks.go +++ b/config/sdk/mgragent_callbacks.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package sdk import ( diff --git a/config/sdk/module_test.go b/config/sdk/module_test.go index eb14a517e6a243e8399a5f2674618633e4301e5e..4ab744ff5c9051b6c0cd6a159ccfd99c1dc4c8a5 100644 --- a/config/sdk/module_test.go +++ b/config/sdk/module_test.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package sdk import ( diff --git a/config/sdk/monagent_callbacks.go b/config/sdk/monagent_callbacks.go index 7460507216c78a5f1f4cdf7a4d796f959ace9e51..a1829f1c16e9bafdc0b0d4ec4858c80871991b4e 100644 --- a/config/sdk/monagent_callbacks.go +++ b/config/sdk/monagent_callbacks.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package sdk import ( diff --git a/config/sdk/monagent_config_properties_meta.go b/config/sdk/monagent_config_properties_meta.go index 26ca0adcd53839d48caa54e34febabd7b816aa23..eb4cfb420eecb96c3ca1b9d038e04a7f73f6be8e 100644 --- a/config/sdk/monagent_config_properties_meta.go +++ b/config/sdk/monagent_config_properties_meta.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package sdk import ( diff --git a/config/sdk/sdk_config_properties_meta.go b/config/sdk/sdk_config_properties_meta.go index cd2dc767de72b4b880aca094ab308b49dff748fb..cbbb5475228367d86a69c6d46d7d85f23cf58c4e 100644 --- a/config/sdk/sdk_config_properties_meta.go +++ b/config/sdk/sdk_config_properties_meta.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package sdk import ( diff --git a/config/sdk/sdk_init.go b/config/sdk/sdk_init.go index 96e6383a1f2d229ece3004f4e3dd95ee39204877..763d788f58ba237eec3036ba05a4f428ce72ed69 100644 --- a/config/sdk/sdk_init.go +++ b/config/sdk/sdk_init.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package sdk import ( diff --git a/config/sdk/sdk_init_test.go b/config/sdk/sdk_init_test.go index 730db8a91071d7d22662f87a127db07a950adad2..8c650e243baa85852dab42b448535ceb642d5e56 100644 --- a/config/sdk/sdk_init_test.go +++ b/config/sdk/sdk_init_test.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package sdk import ( diff --git a/config/sdk/sdk_module_callback.go b/config/sdk/sdk_module_callback.go index dc6e70c1add0720d9f858d0fceaa0082c2aaed6e..f1e68053b07dd9c87793b87608a6dcf3e69ae171 100644 --- a/config/sdk/sdk_module_callback.go +++ b/config/sdk/sdk_module_callback.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package sdk import ( diff --git a/config/yaml.go b/config/yaml.go index cbe0392cada56c85a5788577d1a985e279f4cc73..f18ff8baa9f6b1feb13faf1d85f6988309df553f 100644 --- a/config/yaml.go +++ b/config/yaml.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package config import ( diff --git a/config/yaml_test.go b/config/yaml_test.go index db99b34bd1ccdcc53d14c9d91bba3d5ea9b62f36..2ebaabb449f2fc463f7b1b9f81e6fa3eab1c3286 100644 --- a/config/yaml_test.go +++ b/config/yaml_test.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package config import ( diff --git a/errors/error.go b/errors/error.go index 469b26c0d8c3b55fa94fdf7bb40c3f84fed8d0aa..79990b3df7985019e0463bb835fbc9ef711fc18f 100644 --- a/errors/error.go +++ b/errors/error.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package errors import ( diff --git a/errors/error_test.go b/errors/error_test.go index ecd486d4a5c27e3d58c3803363b86ffccc387da2..1c91d7a6e11d64256b08cd6f93e2e4f201d1a41c 100644 --- a/errors/error_test.go +++ b/errors/error_test.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package errors import ( diff --git a/errors/errorcode.go b/errors/errorcode.go index 1e107e3c4ef6c866872b4354411ce69ee5e3d36b..e403b31623ba9489656d67e2ce7ebd3ccaabed5c 100644 --- a/errors/errorcode.go +++ b/errors/errorcode.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package errors import "net/http" diff --git a/errors/errorcode_test.go b/errors/errorcode_test.go index f6ec263b5869c406c2218c2a81ae8deb8e4bee10..8b7c80655dc067f1db168fb62353746e531696f6 100644 --- a/errors/errorcode_test.go +++ b/errors/errorcode_test.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package errors import ( diff --git a/errors/errormsg.go b/errors/errormsg.go index 3506a65f319f6927271b910c2429c37b58c24172..456eebc7b12eff032ee4500859a4454958bb898a 100644 --- a/errors/errormsg.go +++ b/errors/errormsg.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package errors import ( diff --git a/errors/errormsg_test.go b/errors/errormsg_test.go index 7b1869c09f1fbdbc6683cb121965fa7c6e83d321..5620abe2f718c160eafe0428ffc2b45ec7cd9e14 100644 --- a/errors/errormsg_test.go +++ b/errors/errormsg_test.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package errors import ( diff --git a/errors/wrap.go b/errors/wrap.go index 741b561fd7bc2dcbf036733b745dd64f35bc4664..67225e413f47dcb3d71d8f727e51e412fce51bcf 100644 --- a/errors/wrap.go +++ b/errors/wrap.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package errors import "github.com/pkg/errors" diff --git a/executor/agent/admin.go b/executor/agent/admin.go index d6610f8e3c34879fbba9f3d9974a9a645792eda3..760abaa7e4c11d882ab9b0dc36546c4dfaa8375f 100644 --- a/executor/agent/admin.go +++ b/executor/agent/admin.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package agent import ( diff --git a/executor/agent/admin_test.go b/executor/agent/admin_test.go index 5daf3e4bc1786a6fe65b89e0bd4841c7997a9f99..e2da7e632dac71b0584e596e127904b10409d91f 100644 --- a/executor/agent/admin_test.go +++ b/executor/agent/admin_test.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package agent import ( diff --git a/executor/agent/agent.go b/executor/agent/agent.go index 323500f41371ca8ab2a136b84624179d0bdf740a..78ba0a20b3585ce3a8d5dadb3754db3814c5a32b 100644 --- a/executor/agent/agent.go +++ b/executor/agent/agent.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package agent import ( diff --git a/executor/agent/agentctl.go b/executor/agent/agentctl.go index 16cd4f08fa6e86f06033fc38820fd896e12ab911..6b642a562c497af69e6a53abd6a6ce396fe24ea1 100644 --- a/executor/agent/agentctl.go +++ b/executor/agent/agentctl.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package agent import ( diff --git a/executor/agent/agentctl_test.go b/executor/agent/agentctl_test.go index ae41310a3748cb69433c568365b2e8e75e998152..6e0f597d19909c2125de9bc4f45697809aa51557 100644 --- a/executor/agent/agentctl_test.go +++ b/executor/agent/agentctl_test.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package agent import ( diff --git a/executor/agent/error.go b/executor/agent/error.go index 1790d8d2995ce69e8b087a2ef2ab98eb929d5c6f..45ffd87892bfe9f4c5c7a9141b04beb4690fef5a 100644 --- a/executor/agent/error.go +++ b/executor/agent/error.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package agent import "github.com/oceanbase/obagent/lib/errors" diff --git a/executor/cleaner/cleaner.go b/executor/cleaner/cleaner.go index 04d538af7cf238b568f6b07d631efef240ce3144..26da641c668b56e3c7100db775fefb9d06232ce1 100644 --- a/executor/cleaner/cleaner.go +++ b/executor/cleaner/cleaner.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package cleaner import ( diff --git a/executor/cleaner/cleaner_test.go b/executor/cleaner/cleaner_test.go index a52aad395a03cb2dfef3e7a7bc91f4961b369ea8..d0cfeb3e2e211ba84c7edafcd27d89a84500e3ee 100644 --- a/executor/cleaner/cleaner_test.go +++ b/executor/cleaner/cleaner_test.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package cleaner import ( diff --git a/executor/cleaner/cleaner_utils.go b/executor/cleaner/cleaner_utils.go index 28f8ffd8391bcae394d76e5f2d0852ddabdc5f68..aa05d03c994ebcd076a852a9111415d0fb97c298 100644 --- a/executor/cleaner/cleaner_utils.go +++ b/executor/cleaner/cleaner_utils.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package cleaner import ( diff --git a/executor/cleaner/cleaner_utils_test.go b/executor/cleaner/cleaner_utils_test.go index 122676081af75a5f8b8812f3ce6de03a8e4fe542..55b03f0bb62c1daf51b6f36a3ccdc23be6a38176 100644 --- a/executor/cleaner/cleaner_utils_test.go +++ b/executor/cleaner/cleaner_utils_test.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package cleaner import ( diff --git a/executor/disk/disk.go b/executor/disk/disk.go index 31d4e28978f435624a85847728fc2e3600e8f899..688f345fe764f1abeef0a910194a2e4779c1644e 100644 --- a/executor/disk/disk.go +++ b/executor/disk/disk.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package disk import ( diff --git a/executor/disk/disk_test.go b/executor/disk/disk_test.go index 08efe05e2382f9ab0c8d2d3cf703b4b5c4f24e75..0aa3b7a1aa295ce28cd69ef5144902f02e32434c 100644 --- a/executor/disk/disk_test.go +++ b/executor/disk/disk_test.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package disk import ( diff --git a/executor/file/file.go b/executor/file/file.go index 91325b01187c85ed3f5931e44e875160884961e5..ccd5e2af847de0735ae4f19df6c6161a90c02701 100644 --- a/executor/file/file.go +++ b/executor/file/file.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package file import ( diff --git a/executor/file/file_test.go b/executor/file/file_test.go index 7e3ecbfcbde108c27dd4ecc11c2b856b34369ca7..9a1216bb02ad8ecceea0b54f71257722b6036be1 100644 --- a/executor/file/file_test.go +++ b/executor/file/file_test.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package file import ( diff --git a/executor/file/filepath.go b/executor/file/filepath.go index 02cb297d450ad39b73e0099db9c5dfce753df2e6..a608ca8824f1d24f401b83ee76f4622274558e2d 100644 --- a/executor/file/filepath.go +++ b/executor/file/filepath.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + // OB-Agent provides basic file storage can caching. // For example, you can download a rpm file in one HTTP request, and install it in another. // OB-Agent stores all files under /tmp directory. diff --git a/executor/log_query/log_querier.go b/executor/log_query/log_querier.go index e389cb8fe3c8e5e014f1778a1c0c23e34ad50ca6..35bdb3c2f57123df705c7916f1f27d1de9b9ff29 100644 --- a/executor/log_query/log_querier.go +++ b/executor/log_query/log_querier.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package log_query import ( diff --git a/executor/log_query/log_querier_test.go b/executor/log_query/log_querier_test.go index 7ab4300f7416bb994fac4560ddf8c537c1638764..09f937309d1c418571c714ba8c1d333cc895eac4 100644 --- a/executor/log_query/log_querier_test.go +++ b/executor/log_query/log_querier_test.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package log_query import ( diff --git a/executor/log_query/log_query.go b/executor/log_query/log_query.go index 343d2ccb48d559ec80ea1c0ebf4591526256914a..886fec1a16dfa0de326847ed8f19f5aca4d76059 100644 --- a/executor/log_query/log_query.go +++ b/executor/log_query/log_query.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package log_query import ( diff --git a/executor/log_query/log_query_model.go b/executor/log_query/log_query_model.go index 900dfcd3a855bfd105dda7ec5f19ecf96263bf9e..5d4ff4fd7f82c29bb040794a46ee584e554d76c2 100644 --- a/executor/log_query/log_query_model.go +++ b/executor/log_query/log_query_model.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package log_query import ( diff --git a/executor/log_query/log_query_utils.go b/executor/log_query/log_query_utils.go index 89cf4dd1170b2c22097ac6d25257470fd1533b90..db7f158c398fb7902be79a0730b80ddfd090cfb5 100644 --- a/executor/log_query/log_query_utils.go +++ b/executor/log_query/log_query_utils.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package log_query import ( diff --git a/executor/pkg/package.go b/executor/pkg/package.go index 153c39afca1c2d6363226c05f66f1c8669f98295..239b5810bce6d7c7be8d3adf936612d4883a835d 100644 --- a/executor/pkg/package.go +++ b/executor/pkg/package.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package pkg import ( diff --git a/executor/pkg/package_test.go b/executor/pkg/package_test.go index c9cf26121b53ab739827017d452832388a4b055e..9bd2e311c2441f88d582f1df94d0b7d7a74939ef 100644 --- a/executor/pkg/package_test.go +++ b/executor/pkg/package_test.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package pkg import ( diff --git a/executor/process/process.go b/executor/process/process.go index ed48675e487e891f93fc10c0c8e1b791f46951dc..62884cb81576f29272afa8af68923185f34faf6c 100644 --- a/executor/process/process.go +++ b/executor/process/process.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package process import ( diff --git a/executor/process/process_test.go b/executor/process/process_test.go index 5181f2149825a37b3b1ac9d1f41c6dd1dc03d975..bad187f1a2d6b18ed8666a0341e661e158e789dd 100644 --- a/executor/process/process_test.go +++ b/executor/process/process_test.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package process import ( diff --git a/executor/system/system.go b/executor/system/system.go index e024f3a6f7d0cd1740c2d6df0f867b82cb1efdfa..e3fcc3b51ecd38f70bc350bf65cbcda3a0f00d6b 100644 --- a/executor/system/system.go +++ b/executor/system/system.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package system import ( diff --git a/lib/command/command.go b/lib/command/command.go index f5390c28ef20155a0c977a1740500795e39fbeb9..d2d3c2c773dbf2725f1ee8b29bf3bd219970e671 100644 --- a/lib/command/command.go +++ b/lib/command/command.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package command import "context" diff --git a/lib/command/context.go b/lib/command/context.go index af0acb52bd5c94c009ff0a4afaffc53d78e616d3..f28afab2e0bd26756edd6eb9c6dd33626d382531 100644 --- a/lib/command/context.go +++ b/lib/command/context.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package command import "context" diff --git a/lib/command/error.go b/lib/command/error.go index c979ee4355d25ece78479d47492f67d31470982a..7bf56c5c913e3b98b0481d7a2f56a3801c53488a 100644 --- a/lib/command/error.go +++ b/lib/command/error.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package command import "errors" diff --git a/lib/command/input.go b/lib/command/input.go index 2cddaa982e7ce52c4e95e45a4b093228a332742a..33c3a1b36aa2db24d0c1b1f4dd92ccb3dbc7ba20 100644 --- a/lib/command/input.go +++ b/lib/command/input.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package command import "context" diff --git a/lib/command/input_test.go b/lib/command/input_test.go index 47eebc7ab8d1b49529f55df894ca7b8d1f1c4a4a..7ff7fe9a6bd3a6b6d59a898c15c99b6ae315590d 100644 --- a/lib/command/input_test.go +++ b/lib/command/input_test.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package command import ( diff --git a/lib/command/output.go b/lib/command/output.go index 28fc05a6a21fec5bcdd0b2e4d789c9a584c83a53..7bf4b7f53e747a86f9a935409cdcc8bff14b4f5c 100644 --- a/lib/command/output.go +++ b/lib/command/output.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package command import ( diff --git a/lib/command/output_test.go b/lib/command/output_test.go index 8eea9807932e97c97f0252b7ab309fa1ec591faf..96df8b20f6bab78306954befdb5d0777d320c7be 100644 --- a/lib/command/output_test.go +++ b/lib/command/output_test.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package command import ( diff --git a/lib/command/task.go b/lib/command/task.go index 84b152e2c3077e4f8f3cda6e24343f4b1105f598..dc54a6cc49f24948ac449b9c5394709dce63f685 100644 --- a/lib/command/task.go +++ b/lib/command/task.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package command import ( diff --git a/lib/command/task_store.go b/lib/command/task_store.go index 37f9ea561bd72b92dc346937614c5c94a4afb0ef..442f3b39b45bcc6f0bd6c94114ed7aa69240d8a2 100644 --- a/lib/command/task_store.go +++ b/lib/command/task_store.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package command import ( diff --git a/lib/command/task_store_test.go b/lib/command/task_store_test.go index 9d2806bfec5d48b74bad11144d42193e97276b29..e8a62eaf117cc6828e3bbfde95e450df209e5767 100644 --- a/lib/command/task_store_test.go +++ b/lib/command/task_store_test.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package command import ( diff --git a/lib/command/task_test.go b/lib/command/task_test.go index 48ab599b2ce98ed711c30a8ee6b3c9ebd50816eb..d3345161f56a53f557f4cc167e20e913f1a428d9 100644 --- a/lib/command/task_test.go +++ b/lib/command/task_test.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package command import ( diff --git a/lib/crypto/aes.go b/lib/crypto/aes.go index 4596738cada3576769238e335993528223892d71..b91154d4fa9b3c35dd8b5d810f8dd4619fb72fc7 100644 --- a/lib/crypto/aes.go +++ b/lib/crypto/aes.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package crypto import ( diff --git a/lib/crypto/aes_test.go b/lib/crypto/aes_test.go index aba9bad891ea7b32e93719a2021f1554ab305e80..e436bfcb724d58343c83dbb5fd09b77baba38604 100644 --- a/lib/crypto/aes_test.go +++ b/lib/crypto/aes_test.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package crypto import ( diff --git a/lib/crypto/crypto.go b/lib/crypto/crypto.go index 88d302616c296f28067f7ac570efa67509f2ff8b..6e6653f9f32c0e1a6be31e5697d168f929a9cebb 100644 --- a/lib/crypto/crypto.go +++ b/lib/crypto/crypto.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package crypto type CryptoMethod string diff --git a/lib/crypto/plain.go b/lib/crypto/plain.go index c942f0de25945295b6faf0eb7d43eabd7fc3a80d..cc49db64cb81227f5a04621753e54b0d7fa9b79a 100644 --- a/lib/crypto/plain.go +++ b/lib/crypto/plain.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package crypto type PlainCrypto struct{} diff --git a/lib/errors/error.go b/lib/errors/error.go index db60b9b26b9f639c38f14e40316e0e7f75fe0d0c..3faf865e4187401b71fc687f43762ffa22bc57e6 100644 --- a/lib/errors/error.go +++ b/lib/errors/error.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package errors import ( diff --git a/lib/errors/error_test.go b/lib/errors/error_test.go index 9125df2055f515395f38aa6089662c3545138cbc..9f757eaeaf5c7a7127f05b232037df72dcdecd83 100644 --- a/lib/errors/error_test.go +++ b/lib/errors/error_test.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package errors import ( diff --git a/lib/errors/kind.go b/lib/errors/kind.go index b0c5af496fa650adec59969908b2f33b5dae1b5a..20bec2c7043be802073ace04f0bd12dc0927e412 100644 --- a/lib/errors/kind.go +++ b/lib/errors/kind.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package errors import "fmt" diff --git a/lib/file/custom_scanline.go b/lib/file/custom_scanline.go index 5fe245a4ca47288090628daf08f4a696f62149cc..81e7fde80e02d6314e1e5d5018589b259b647096 100644 --- a/lib/file/custom_scanline.go +++ b/lib/file/custom_scanline.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package file import "bytes" diff --git a/lib/file/directory.go b/lib/file/directory.go index 6782e560697314963b9dafb1853098ce55db3ec3..6a13789931fabf50b1fe566810b5b15c6d370405 100644 --- a/lib/file/directory.go +++ b/lib/file/directory.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package file import ( diff --git a/lib/file/file.go b/lib/file/file.go index 337ef7ae707929c89484ff30ab99b82370012830..30443fcffc1fa5cbd5a798d1c82e91cbaad385f0 100644 --- a/lib/file/file.go +++ b/lib/file/file.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package file import ( diff --git a/lib/file/fileinfo.go b/lib/file/fileinfo.go index 09830cf0e2a142c6c369f8ae8c0df395638900e0..50c7c8e578404026dc52514c6dd1b9337e4735d0 100644 --- a/lib/file/fileinfo.go +++ b/lib/file/fileinfo.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package file import ( diff --git a/lib/file/fileinfo_darwin.go b/lib/file/fileinfo_darwin.go index 18c5dd5a4c9a6a3312800b5bd206ba7705ed43da..0981ab5d9849adbb4e7d61291bc03ffdac9552b3 100644 --- a/lib/file/fileinfo_darwin.go +++ b/lib/file/fileinfo_darwin.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + //go:build darwin // +build darwin diff --git a/lib/file/fileinfo_linux.go b/lib/file/fileinfo_linux.go index ea7e44eed6534b8b7f1069332e711200d68a0071..1b4c116ccc95338d82b3092f476e416771282fe2 100644 --- a/lib/file/fileinfo_linux.go +++ b/lib/file/fileinfo_linux.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + //go:build linux // +build linux diff --git a/lib/file/fs.go b/lib/file/fs.go index 3e20481ed08118db26d7a5f24a6aab0fe789320d..ed941489a8e59f0147d59abb3ec3a537e25f7dae 100644 --- a/lib/file/fs.go +++ b/lib/file/fs.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + // All codes interacting with file system should be put here. // Invoke file system operations via afero's Fs interface. // This is convenient for mock testing. diff --git a/lib/file/link.go b/lib/file/link.go index 4c9ff02c10bbaf0ba3a7aa23e6fc5613d4a234fc..80571693c1b0e387e3ee0ab98df48451c5e2f227 100644 --- a/lib/file/link.go +++ b/lib/file/link.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package file import ( diff --git a/lib/file/link_test.go b/lib/file/link_test.go index e5e2407ce60ea338055694bc96938a370d2b4cd8..1098696ad2f600470f85fc14a963b8d27a519835 100644 --- a/lib/file/link_test.go +++ b/lib/file/link_test.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package file import ( diff --git a/lib/file/mount.go b/lib/file/mount.go index e89a68e0c74af737e9713c2528b7017f56ddfa4f..e857e642fa41ef5c33c1b5dace4b9600cb3fe6cd 100644 --- a/lib/file/mount.go +++ b/lib/file/mount.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package file import ( diff --git a/lib/file/mount_darwin.go b/lib/file/mount_darwin.go index c4290c053040fccf0897c2de94fed669cf2c4164..200147e03ac45c44af5a3f4b1f65a87e2d0d01d6 100644 --- a/lib/file/mount_darwin.go +++ b/lib/file/mount_darwin.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + //go:build darwin // +build darwin diff --git a/lib/file/mount_linux.go b/lib/file/mount_linux.go index a08fd245eddd32be3d006dfc6d133ee6cc3d6fcd..a10c4898af02341c8645890905af3bc765a5ea88 100644 --- a/lib/file/mount_linux.go +++ b/lib/file/mount_linux.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + //go:build linux // +build linux diff --git a/lib/goroutinepool/goroutinepool.go b/lib/goroutinepool/goroutinepool.go index f0900dbdd37463adcaa0baef0d665274207515e0..08236e4326eafeb80ce0a68359aba74cdba4f33b 100644 --- a/lib/goroutinepool/goroutinepool.go +++ b/lib/goroutinepool/goroutinepool.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package goroutinepool import ( diff --git a/lib/goroutinepool/goroutinepool_test.go b/lib/goroutinepool/goroutinepool_test.go index 7267708d998f99b4d6a0cdd8b251a2ac3b29fa96..228923cde0c0b35931af029cf6546b00e99e8b25 100644 --- a/lib/goroutinepool/goroutinepool_test.go +++ b/lib/goroutinepool/goroutinepool_test.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package goroutinepool import ( diff --git a/lib/http/client.go b/lib/http/client.go index d5f75f0bc38d0eab1c4489422e393b1cdcbafda7..da380b095fa272e544d443d2ce976f050a95b0a7 100644 --- a/lib/http/client.go +++ b/lib/http/client.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package http import ( diff --git a/lib/http/client_test.go b/lib/http/client_test.go index 43c833d1d311ab8e57f583b9e55d610a5a396b9a..42800473b37f0851d4b1b1d2a504d3d0702de117 100644 --- a/lib/http/client_test.go +++ b/lib/http/client_test.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package http import ( diff --git a/lib/http/error.go b/lib/http/error.go index caf5b863a84f62504e4ccf424b4d2df363f09d3a..8a31d325997fc4f00d1f16da21105bfa436c239a 100644 --- a/lib/http/error.go +++ b/lib/http/error.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package http import "github.com/oceanbase/obagent/lib/errors" diff --git a/lib/http/http.go b/lib/http/http.go index f155cb51c0333116739784a13e61c9eed62dbdeb..08871656da3232792609261da86f179edf52c611 100644 --- a/lib/http/http.go +++ b/lib/http/http.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package http import ( diff --git a/lib/http/http_command.go b/lib/http/http_command.go index 2658c7a33093f08cbd638fcf3495f369be1c269b..5f606fa5f45f78170caa41192a6ce7f78a289e88 100644 --- a/lib/http/http_command.go +++ b/lib/http/http_command.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package http import ( diff --git a/lib/http/http_command_test.go b/lib/http/http_command_test.go index 143d28af897eae4f5fc7e0d1426440ef5cd9819a..1427049317c53d21b0964f4c9350acfff784d5c9 100644 --- a/lib/http/http_command_test.go +++ b/lib/http/http_command_test.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package http import ( diff --git a/lib/http/http_test.go b/lib/http/http_test.go index f65968726d22c38dc388489c81b730a06a6d3625..9ffd47fca92720eb456066b88a05a767d11e869c 100644 --- a/lib/http/http_test.go +++ b/lib/http/http_test.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package http import ( diff --git a/lib/http/listener.go b/lib/http/listener.go index 1952935fa9d550a31e78470dd7282a9277bdec32..b601a4ead0feddae0e8a7f876228183cd60a973f 100644 --- a/lib/http/listener.go +++ b/lib/http/listener.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package http import ( diff --git a/lib/http/listener_test.go b/lib/http/listener_test.go index daf0bb3a8115623b965f78cc185bf81448228351..e091bad360b470012329f5d02823dc3c8509a07e 100644 --- a/lib/http/listener_test.go +++ b/lib/http/listener_test.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package http import ( diff --git a/lib/http/response.go b/lib/http/response.go index 0639da4d0600d944eb16a0bce21b180e62573053..a390645f7e78aa5555a27eb8f6b348d281ce24a5 100644 --- a/lib/http/response.go +++ b/lib/http/response.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package http import ( diff --git a/lib/http/response_test.go b/lib/http/response_test.go index 277b90df2d3c41e3c6a8da1e9c2565ac95cbe0f0..db1110a84d8f42e4ebb9fcd1e961770f20fc7fee 100644 --- a/lib/http/response_test.go +++ b/lib/http/response_test.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package http import ( diff --git a/lib/http/status.go b/lib/http/status.go index 088b600e8b4a34f14f434f10bd109165f27c9b25..422be7de631582ae72811897919f52e8de9dc93f 100644 --- a/lib/http/status.go +++ b/lib/http/status.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package http import ( diff --git a/lib/log_analyzer/agent_log_analyzer.go b/lib/log_analyzer/agent_log_analyzer.go index 9738aa89e1a0fca9c81a894b9cb63c905bd35038..23d1b5a59ad0cf9cbc83ab06e8420c845e277340 100644 --- a/lib/log_analyzer/agent_log_analyzer.go +++ b/lib/log_analyzer/agent_log_analyzer.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package log_analyzer import ( diff --git a/lib/log_analyzer/agent_log_analyzer_test.go b/lib/log_analyzer/agent_log_analyzer_test.go index c42eb6046e45efa2651d01280c77f9a1e5ea98e1..a15f8005e8a261bf7a860740d9760eebd6f620ed 100644 --- a/lib/log_analyzer/agent_log_analyzer_test.go +++ b/lib/log_analyzer/agent_log_analyzer_test.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package log_analyzer import ( diff --git a/lib/log_analyzer/agent_log_light_analyzer.go b/lib/log_analyzer/agent_log_light_analyzer.go index 14b1dc91f82b6755f0c187f6ab89b036dd0c0388..f151b0596a565cb7e948cf6897ddff99f4e8076a 100644 --- a/lib/log_analyzer/agent_log_light_analyzer.go +++ b/lib/log_analyzer/agent_log_light_analyzer.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package log_analyzer import ( diff --git a/lib/log_analyzer/agent_log_light_analyzer_test.go b/lib/log_analyzer/agent_log_light_analyzer_test.go index ac69b04d2c7cb42b2f078eae90289ca9c00e2d95..b487b10691ec66d843ed385d7f4ef987033a587c 100644 --- a/lib/log_analyzer/agent_log_light_analyzer_test.go +++ b/lib/log_analyzer/agent_log_light_analyzer_test.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package log_analyzer import ( diff --git a/lib/log_analyzer/analyzer_type.go b/lib/log_analyzer/analyzer_type.go index a673e0e250305400663f540a6c038e792c13c296..86f243df1e3886e6767a1a37a919d3f3d61d7bff 100644 --- a/lib/log_analyzer/analyzer_type.go +++ b/lib/log_analyzer/analyzer_type.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package log_analyzer import ( diff --git a/lib/log_analyzer/analyzer_type_test.go b/lib/log_analyzer/analyzer_type_test.go index 3a21c9b37a4dad75dcc3debd13dc6eb7b40e3684..2661eef1d2cd0d9c4fb2577a86d4ece9362c0a41 100644 --- a/lib/log_analyzer/analyzer_type_test.go +++ b/lib/log_analyzer/analyzer_type_test.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package log_analyzer import ( diff --git a/lib/log_analyzer/host_log_analyzer.go b/lib/log_analyzer/host_log_analyzer.go index e61cc85611340b7e8ac59db68bfb82024bf9e1fe..ae5322c4e059ffce4c0ea49026167806a3eb5920 100644 --- a/lib/log_analyzer/host_log_analyzer.go +++ b/lib/log_analyzer/host_log_analyzer.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package log_analyzer import ( diff --git a/lib/log_analyzer/host_log_analyzer_test.go b/lib/log_analyzer/host_log_analyzer_test.go index 43c64a889368bde7d3592e75f83225e9e5321094..36875f09090fb2745eb684079311f9d2495f237d 100644 --- a/lib/log_analyzer/host_log_analyzer_test.go +++ b/lib/log_analyzer/host_log_analyzer_test.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package log_analyzer import ( diff --git a/lib/log_analyzer/host_log_light_analyzer.go b/lib/log_analyzer/host_log_light_analyzer.go index 952499e3fe2089c71ae290cd0163406001f3a279..644e3f6064b5716b5b61732f7159683631d0fd62 100644 --- a/lib/log_analyzer/host_log_light_analyzer.go +++ b/lib/log_analyzer/host_log_light_analyzer.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package log_analyzer import ( diff --git a/lib/log_analyzer/host_log_light_analyzer_test.go b/lib/log_analyzer/host_log_light_analyzer_test.go index fe50ca910557e6dda52d9dd0b865fe5c1e8d859e..3332eacebd043a871f356d7268c0c10aa85d47a2 100644 --- a/lib/log_analyzer/host_log_light_analyzer_test.go +++ b/lib/log_analyzer/host_log_light_analyzer_test.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package log_analyzer import ( diff --git a/lib/log_analyzer/log_analyzer.go b/lib/log_analyzer/log_analyzer.go index 86441013b9ca973c744425286b87c1138c74ccb7..ed7bf58f28a6969eb6d3c33277acf8e66c500ab6 100644 --- a/lib/log_analyzer/log_analyzer.go +++ b/lib/log_analyzer/log_analyzer.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package log_analyzer import ( diff --git a/lib/log_analyzer/ob_log_analyzer.go b/lib/log_analyzer/ob_log_analyzer.go index 3dfcfb59bd5836611f7adefcf808fbf5d5050cdf..cf3362fcf3228bdcc7688ef81d509cbd06251946 100644 --- a/lib/log_analyzer/ob_log_analyzer.go +++ b/lib/log_analyzer/ob_log_analyzer.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package log_analyzer import ( diff --git a/lib/log_analyzer/ob_log_analyzer_test.go b/lib/log_analyzer/ob_log_analyzer_test.go index e86b27c82a526b0d76344e916b6e3fda1a6cb9b9..dc6e5a8b73caebf6e91cc02765ced403b8c2b8cf 100644 --- a/lib/log_analyzer/ob_log_analyzer_test.go +++ b/lib/log_analyzer/ob_log_analyzer_test.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package log_analyzer import ( diff --git a/lib/log_analyzer/ob_log_light_analyzer.go b/lib/log_analyzer/ob_log_light_analyzer.go index 963b32996958560c61a1442ba6282b7ae56c77c1..8c2791244120e9b08642ad7899ddd9de3e9417f7 100644 --- a/lib/log_analyzer/ob_log_light_analyzer.go +++ b/lib/log_analyzer/ob_log_light_analyzer.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package log_analyzer import ( diff --git a/lib/log_analyzer/ob_log_light_analyzer_test.go b/lib/log_analyzer/ob_log_light_analyzer_test.go index 2e44f01d7226571eaeeb37c5264d527f68226746..eda594c37c68fa8519276650ea30a5619aca4433 100644 --- a/lib/log_analyzer/ob_log_light_analyzer_test.go +++ b/lib/log_analyzer/ob_log_light_analyzer_test.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package log_analyzer import ( diff --git a/lib/mask/mask.go b/lib/mask/mask.go index 106f7134d4091b2af101b2933dacb1abee848398..08b8247639fb3bb1bb871e375db64d596cf8a464 100644 --- a/lib/mask/mask.go +++ b/lib/mask/mask.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + // Mask sensitive values in logs and error responses. // Refer to com.alipay.ocp.common.util.log.LogContentUtils in ocp-common diff --git a/lib/mask/mask_test.go b/lib/mask/mask_test.go index 7b10cf1862eb307ef45e17b5be5470e818ea7608..059841320918dc1891f459b56a1d358f4994d2c4 100644 --- a/lib/mask/mask_test.go +++ b/lib/mask/mask_test.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package mask import ( diff --git a/lib/path/path.go b/lib/path/path.go index a5404bc4e2ad3040256e25a46c290eadd1233b7e..4cae1a8c3611b7fe5ccdc39bcd2a9c8d384092b4 100644 --- a/lib/path/path.go +++ b/lib/path/path.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package path import ( diff --git a/lib/pkg/package.go b/lib/pkg/package.go index 98eab0fa2326a2289b5db8259a412ae86dd1bfce..2af0195e5ea2cc5070a2166fba33cb84477f897e 100644 --- a/lib/pkg/package.go +++ b/lib/pkg/package.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package pkg import ( diff --git a/lib/pkg/package_test.go b/lib/pkg/package_test.go index 3b8420362f6e403e736e16ab6984c0e22512e028..43501085b3115ea62f80bf43e3aa5310990e0ece 100644 --- a/lib/pkg/package_test.go +++ b/lib/pkg/package_test.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package pkg import ( diff --git a/lib/process/config.go b/lib/process/config.go index c1745aa26e97298c46a0581ca6df32d90b50f748..0e0611067ae5daa110f02241088f5182eb4c80a1 100644 --- a/lib/process/config.go +++ b/lib/process/config.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package process import ( diff --git a/lib/process/error.go b/lib/process/error.go index 84104364cdc9addeb10a464457e437cb3b074371..28added1880ad0312959c8347fc5ab5889ce5e3b 100644 --- a/lib/process/error.go +++ b/lib/process/error.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package process import "github.com/oceanbase/obagent/lib/errors" diff --git a/lib/process/proc.go b/lib/process/proc.go index aba79204ddcc779bc541401813f43c667f5d94a2..1497771b5c52a0d14ba40d42112cc265e9406d84 100644 --- a/lib/process/proc.go +++ b/lib/process/proc.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package process import ( diff --git a/lib/process/proc_test.go b/lib/process/proc_test.go index 26323e34e0c1187a9618b483b4346ea0e95389b6..fe9a793f89125878179a013569be90922a7e0d67 100644 --- a/lib/process/proc_test.go +++ b/lib/process/proc_test.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package process import ( diff --git a/lib/retry/retry.go b/lib/retry/retry.go index 90c934c749dad80973af9fba751cb6c3100523ef..6249e791c15fec7bffc9bb1a72a3f59ec6364c47 100644 --- a/lib/retry/retry.go +++ b/lib/retry/retry.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package retry import ( diff --git a/lib/retry/retry_test.go b/lib/retry/retry_test.go index 0aa498a1a742af1128d20d30dbd52c4381a2e803..5e3e0cc2984e4b88f60a26981974b655de678e69 100644 --- a/lib/retry/retry_test.go +++ b/lib/retry/retry_test.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package retry import ( diff --git a/lib/shell/command.go b/lib/shell/command.go index d54f7e266c50e41bfd8539879c0bcd41f09e3c6c..6d4c49881f8f7a605ea152049f02b4a9e21733cb 100644 --- a/lib/shell/command.go +++ b/lib/shell/command.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package shell import ( diff --git a/lib/shell/exec.go b/lib/shell/exec.go index c2ef2c715e0e76b378c923eb598665b1739316ae..38b54791a1a3e3f2efc3b78bb9827812338789ea 100644 --- a/lib/shell/exec.go +++ b/lib/shell/exec.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package shell import ( diff --git a/lib/shell/exec_test.go b/lib/shell/exec_test.go index 6c7dc42d6720c1ee27c421992c5617665fc9ab2e..6181e50971c297fd212eacc18f4fde6ae7961fbc 100644 --- a/lib/shell/exec_test.go +++ b/lib/shell/exec_test.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package shell import ( diff --git a/lib/shell/exec_unix.go b/lib/shell/exec_unix.go index a02df9f883f63131ed8c329dfee2b5535dae1f14..5872e7ef29298a8a787956633ce6f425e76def57 100644 --- a/lib/shell/exec_unix.go +++ b/lib/shell/exec_unix.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + //go:build !windows // +build !windows diff --git a/lib/shell/exec_windows.go b/lib/shell/exec_windows.go index 406c4142420a172374f56cb521995c616685c8af..9fc830d083b524e4264b08277387be1dbc7e45dd 100644 --- a/lib/shell/exec_windows.go +++ b/lib/shell/exec_windows.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + //go:build windows // +build windows diff --git a/lib/shell/shell.go b/lib/shell/shell.go index 3104f9b2c78e270c994da013e3e971b2aaa8e73b..4f704874ded4a47a2e6e00b5660372cc7b730e47 100644 --- a/lib/shell/shell.go +++ b/lib/shell/shell.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package shell type Shell interface { diff --git a/lib/shellf/command.go b/lib/shellf/command.go index dc53e44efdef8b0e5a5c18951e0597ab419ce690..f74baee421242578ebc59ee329c9aa161c20f6bb 100644 --- a/lib/shellf/command.go +++ b/lib/shellf/command.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package shellf import ( diff --git a/lib/shellf/command_test.go b/lib/shellf/command_test.go index 61af7b4ee45119d7ea983f4725630427b4e34136..b5805bcf959258003f0b35aa9fe520da011f4885 100644 --- a/lib/shellf/command_test.go +++ b/lib/shellf/command_test.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package shellf import ( diff --git a/lib/shellf/config.go b/lib/shellf/config.go index 7be038cab323976f2e45cdf21a99436117ec6dda..ab8194e8069c30567f8157746aa6e12a6cc4dc0f 100644 --- a/lib/shellf/config.go +++ b/lib/shellf/config.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + // This file defines structures for decoding shellf config package shellf diff --git a/lib/shellf/config_test.go b/lib/shellf/config_test.go index 0bfff2797edcac4851b70edbea52d03bd57ef150..2c1dd840bd5d074e73d166cb27155d68282e48c8 100644 --- a/lib/shellf/config_test.go +++ b/lib/shellf/config_test.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package shellf import ( diff --git a/lib/shellf/shellf.go b/lib/shellf/shellf.go index a083c8ec96a2cb9c43ee58565fe19314543c6fd3..39009f54f0e9add605024c8a96d22496e75c8f14 100644 --- a/lib/shellf/shellf.go +++ b/lib/shellf/shellf.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package shellf import ( diff --git a/lib/shellf/validate.go b/lib/shellf/validate.go index 24977bfb2fa1db624595b4d89ffb7ee3adae566e..81f1ca778c631ca8c580a3182f09690c9efaa8ff 100644 --- a/lib/shellf/validate.go +++ b/lib/shellf/validate.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package shellf import "regexp" diff --git a/lib/shellf/validate_test.go b/lib/shellf/validate_test.go index e8d596e17bf15d4e0b18ae23651c103aeb56ec61..7abdcddabf7bf5d2033acae8f07faf63111f910c 100644 --- a/lib/shellf/validate_test.go +++ b/lib/shellf/validate_test.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package shellf import ( diff --git a/lib/slice/spilt.go b/lib/slice/spilt.go index 34416286afef1cbccadac5fe5dec5c9b57de34e9..e64d5636382ac724dbc4aedd738bc4ff4cd90e00 100644 --- a/lib/slice/spilt.go +++ b/lib/slice/spilt.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package slice import "github.com/pkg/errors" diff --git a/lib/slice/spilt_test.go b/lib/slice/spilt_test.go index 01d888f41fdc2f3253b2eb1bbc036d2c955cf15c..536dde32b9594e221ffe8e68bd41f3d28577467d 100644 --- a/lib/slice/spilt_test.go +++ b/lib/slice/spilt_test.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package slice import ( diff --git a/lib/system/disk.go b/lib/system/disk.go index a8705e3a206932bb339c2b244ce082f1e536c39a..462ad5bacad8a42b1c256778985bae5a4069eb71 100644 --- a/lib/system/disk.go +++ b/lib/system/disk.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package system import ( diff --git a/lib/system/disk_test.go b/lib/system/disk_test.go index d073e9df6990a393bc96ca2c73ad185df669a35a..d8d4cc62bb602d539bfe61549fc17020aed1920d 100644 --- a/lib/system/disk_test.go +++ b/lib/system/disk_test.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package system import ( diff --git a/lib/system/process.go b/lib/system/process.go index 47f3c219b0a28c149b99708e04de77e4bf7736fc..bd2cc4867bc57b5cdcc1ff1a8ca8ca7d85cb7cde 100644 --- a/lib/system/process.go +++ b/lib/system/process.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package system import ( diff --git a/lib/system/process_test.go b/lib/system/process_test.go index 476e3d53b4f993c4f4aac761e9eaf591af465b27..ad74f12b11683c2df5b2fc85b162bac0385df905 100644 --- a/lib/system/process_test.go +++ b/lib/system/process_test.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package system import ( diff --git a/lib/system/system.go b/lib/system/system.go index 0d09dc28ec2a7cbd01a8eb0024397f748812295b..d6775be31fe136d5b193cbf4d90e13ce90bb6111 100644 --- a/lib/system/system.go +++ b/lib/system/system.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package system import ( diff --git a/lib/system/system_test.go b/lib/system/system_test.go index 2551fb5f705f673bb12209a65b45456d83ed10df..e80c465fd99030452d8ee112ba1a1b1356e4da7a 100644 --- a/lib/system/system_test.go +++ b/lib/system/system_test.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package system import ( diff --git a/lib/trace/header.go b/lib/trace/header.go index b5bc065b7ad2a1e470099b46f3c057883d233b11..49c6fe47e9e46d2c93d990c0769b65300ea3dd88 100644 --- a/lib/trace/header.go +++ b/lib/trace/header.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package trace import ( diff --git a/lib/trace/header_test.go b/lib/trace/header_test.go index 799538f95fd8bf128473b06760aed4ac2dce48b2..a6dbd04973944fda6e4ecf59978a369be8521879 100644 --- a/lib/trace/header_test.go +++ b/lib/trace/header_test.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package trace import ( diff --git a/log/helper.go b/log/helper.go index e6c0a37d43051ba078b8dfe8229570a2d073371e..6f4eddf0ff29dc7c65171d7150151342ff1d0138 100644 --- a/log/helper.go +++ b/log/helper.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package log import ( diff --git a/log/hook.go b/log/hook.go index 4f5302830cc94e33756a1994471db3329b3a8c5e..d07f8c2eef2c6960f99b456a2de7e504c20ade3d 100644 --- a/log/hook.go +++ b/log/hook.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package log import ( diff --git a/log/logger.go b/log/logger.go index 6443deffafa18f6bcab4842b5d9cb0f7ef3ecc14..c4f6f519ce4c675e329fb5cdf0cf434d644c0b0a 100644 --- a/log/logger.go +++ b/log/logger.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package log import ( diff --git a/log/logger_test.go b/log/logger_test.go index cb54a78c5d2a2c430f7ecd38170ea4f65ffac277..e192c48419b1b8f5b501ab96701ca46b1b3cdfe4 100644 --- a/log/logger_test.go +++ b/log/logger_test.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package log import ( diff --git a/log/text_formatter.go b/log/text_formatter.go index c68e5e0b4d40be9f582f26d2e28bb088187a25a3..671e01784f4c518ce37879679ad52e8bd506563d 100644 --- a/log/text_formatter.go +++ b/log/text_formatter.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + /** log example: 2021-05-24T12:24:02.61052+08:00 INFO [50619,] caller=log/logger_test.go:23,TestLogExample: info-log-1 fields: field-key-1=field-val-1 diff --git a/monitor/engine/config_manager.go b/monitor/engine/config_manager.go index 8239b2d0a6a211c076d486fbf8e555e566180be6..907a21e642b8723f91252ea51bca7e8e3c5faeda 100644 --- a/monitor/engine/config_manager.go +++ b/monitor/engine/config_manager.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package engine import ( diff --git a/monitor/engine/converter.go b/monitor/engine/converter.go index 104b9f09e211b43861147930c281303f9c91ed8c..b55704e059e86509c16467587a4cfe4557201c76 100644 --- a/monitor/engine/converter.go +++ b/monitor/engine/converter.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package engine import ( diff --git a/monitor/engine/converter_test.go b/monitor/engine/converter_test.go index 07b3a53e8eab795fdfea363696fd40469ff3c424..67a4571a49da8326ab9e5a77d07dc5cd4fb3551c 100644 --- a/monitor/engine/converter_test.go +++ b/monitor/engine/converter_test.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package engine import ( diff --git a/monitor/engine/pipeline.go b/monitor/engine/pipeline.go index 33935998fa6afa293cf4ea02de0f4de654483d70..d04cee38536252f4f3e29bfe174480cb33c4779c 100644 --- a/monitor/engine/pipeline.go +++ b/monitor/engine/pipeline.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package engine import ( diff --git a/monitor/engine/pipeline_manager.go b/monitor/engine/pipeline_manager.go index 4d2cc5d35a2d681807ec620c6d9689ef1a5c3c3d..08b48cdda2f55dbcb7847fef69f69b30a54bcf9a 100644 --- a/monitor/engine/pipeline_manager.go +++ b/monitor/engine/pipeline_manager.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package engine import ( diff --git a/monitor/engine/pipeline_manager_test.go b/monitor/engine/pipeline_manager_test.go index 628fe13e6c23e0f00b6a1a5ffd7d668ee8ab0c5b..d168be2474015a5bb364ea240391596415f1ee2a 100644 --- a/monitor/engine/pipeline_manager_test.go +++ b/monitor/engine/pipeline_manager_test.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package engine import ( diff --git a/monitor/engine/pipeline_module_callback.go b/monitor/engine/pipeline_module_callback.go index 48cd0ba07e228d8e4355b74f4ee5bed800facc43..b1b6bfd89961c07dd4aa9cc9f82c8140575f5ec8 100644 --- a/monitor/engine/pipeline_module_callback.go +++ b/monitor/engine/pipeline_module_callback.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package engine import ( diff --git a/monitor/engine/pipeline_module_callback_test.go b/monitor/engine/pipeline_module_callback_test.go index 5d5be9f8c9a6d59af4179e3dc00c2ba37d261049..4e3998199bf9386efec4190bc66886ac630ef94e 100644 --- a/monitor/engine/pipeline_module_callback_test.go +++ b/monitor/engine/pipeline_module_callback_test.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package engine import ( diff --git a/monitor/engine/pipeline_test.go b/monitor/engine/pipeline_test.go index bf2f17a0c80b73b8c25978a9116e06cfe6ded6ca..46eaac803df68998024a7cbcf783221571439c14 100644 --- a/monitor/engine/pipeline_test.go +++ b/monitor/engine/pipeline_test.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package engine import ( diff --git a/monitor/engine/pipeline_utils.go b/monitor/engine/pipeline_utils.go index 6fa12a1b732a02c073078ab71bec1983793af5fe..bbb0aaedf4ff7d1e90ad67fed2f17972877eb650 100644 --- a/monitor/engine/pipeline_utils.go +++ b/monitor/engine/pipeline_utils.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package engine import ( diff --git a/monitor/engine/recover.go b/monitor/engine/recover.go index eff8660f13779bed17aedce5f467f020f1ac2fef..c397c4ebbf8fe617cd7023783df7054223dbfac5 100644 --- a/monitor/engine/recover.go +++ b/monitor/engine/recover.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package engine import ( diff --git a/monitor/engine/recover_test.go b/monitor/engine/recover_test.go index 519c40e6dd9ee1434541c0c7c084b2ed8702de6d..b6728c381afe45db6a124fd26c4494dccc1a45d1 100644 --- a/monitor/engine/recover_test.go +++ b/monitor/engine/recover_test.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package engine import ( diff --git a/monitor/engine/route_manager.go b/monitor/engine/route_manager.go index 2fff0339f44adae3b64b8a4540ca8e0416debc16..ea1099ccb9cf1f46fc17772da357a8b72d0a62a4 100644 --- a/monitor/engine/route_manager.go +++ b/monitor/engine/route_manager.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package engine import ( diff --git a/monitor/engine/route_manager_test.go b/monitor/engine/route_manager_test.go index af60c104e89bfd2515088f1158b192c9376967d5..3eccbe727c7de6d5a553e134e3a268150d192332 100644 --- a/monitor/engine/route_manager_test.go +++ b/monitor/engine/route_manager_test.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package engine import ( diff --git a/monitor/message/collector.go b/monitor/message/collector.go index 9860cd34157256423e37f1595ec65f2344682cf4..e9b5ef4ba7b1d8082876c1e5b9695a2f16db48e2 100644 --- a/monitor/message/collector.go +++ b/monitor/message/collector.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package message import ( diff --git a/monitor/message/collector_test.go b/monitor/message/collector_test.go index 88715f30bf007b04c6b1e4a611808e8295e962e7..fb4b462575eae907f8adce472634ef5e027e0176 100644 --- a/monitor/message/collector_test.go +++ b/monitor/message/collector_test.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package message import ( diff --git a/monitor/message/message.go b/monitor/message/message.go index 91c9515a4b183552d8fcdb0d3048e668af8b1587..4b62096622cbb3363bd2f6071a6040254a67da6e 100644 --- a/monitor/message/message.go +++ b/monitor/message/message.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package message import ( diff --git a/monitor/message/message_test.go b/monitor/message/message_test.go index d53fb2a3ce81ff9904cb16f56e1ca2143dbe0a17..ea6f7e8f2b91e9dc2efde814382b472d77887750 100644 --- a/monitor/message/message_test.go +++ b/monitor/message/message_test.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package message import ( diff --git a/monitor/message/message_util.go b/monitor/message/message_util.go index c2f8834d4bb7f03565fa0b81425348b3bb19f1e6..261898dcced2272b1919b98e264321b9a0d4a8d6 100644 --- a/monitor/message/message_util.go +++ b/monitor/message/message_util.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package message import ( diff --git a/monitor/message/parse.go b/monitor/message/parse.go index 5e6b3db79dbfb95fd3465932b0a0dbbd015b0002..1c747aee736d9c343afdd2ebf84b8be8d5bc22d9 100644 --- a/monitor/message/parse.go +++ b/monitor/message/parse.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package message import ( diff --git a/monitor/plugins/common/cache.go b/monitor/plugins/common/cache.go index 0c5524049577c4ed4e161bf2db0af49bbf53191c..49edfdd337f5ff0540c79f3f8d87d2cb6b15c011 100644 --- a/monitor/plugins/common/cache.go +++ b/monitor/plugins/common/cache.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package common import ( diff --git a/monitor/plugins/common/log_tailer.go b/monitor/plugins/common/log_tailer.go index 9c1ad3b39944a92ab3f43d8fcdd99437043298bc..1c1ad3d5c6b4446975c79f45774c0ceda62c4c51 100644 --- a/monitor/plugins/common/log_tailer.go +++ b/monitor/plugins/common/log_tailer.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package common const ( diff --git a/monitor/plugins/common/mount.go b/monitor/plugins/common/mount.go index ea18d8e0b3be5e3b23c62968242a9a1e942edfe9..7b8e0c70ae9653db82b829dae8e41f8b35bbf269 100644 --- a/monitor/plugins/common/mount.go +++ b/monitor/plugins/common/mount.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package common import ( diff --git a/monitor/plugins/common/node_env.go b/monitor/plugins/common/node_env.go index 63bbe79b1ee89f0fd2ffd0af358be2ca7a4eecf9..9b8620799360ef76b77b594c8de86886b008c134 100644 --- a/monitor/plugins/common/node_env.go +++ b/monitor/plugins/common/node_env.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package common import ( diff --git a/monitor/plugins/common/ob_version_helper.go b/monitor/plugins/common/ob_version_helper.go index c9bd25cfd9c313798ecef0119dcf485ba174d6d4..f03083b0a14e25c21e42af0ea4031a8f3e200813 100644 --- a/monitor/plugins/common/ob_version_helper.go +++ b/monitor/plugins/common/ob_version_helper.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package common import ( diff --git a/monitor/plugins/common/ob_version_helper_test.go b/monitor/plugins/common/ob_version_helper_test.go index adc6ab76deb2c51a621ecdadae541ca16dee0f43..cb08548850db5ed58ccc8b6bce7e9b7515900450 100644 --- a/monitor/plugins/common/ob_version_helper_test.go +++ b/monitor/plugins/common/ob_version_helper_test.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package common import ( diff --git a/monitor/plugins/common/observer.go b/monitor/plugins/common/observer.go index 751f775a3c8a0524e027249509a3795f3b51ddeb..6aeb47cc5b311553315e21fe7dc6ab2bdf5936bf 100644 --- a/monitor/plugins/common/observer.go +++ b/monitor/plugins/common/observer.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package common import ( diff --git a/monitor/plugins/common/observer_meta.go b/monitor/plugins/common/observer_meta.go index 519b492dd6169bf67411103b4d9281083f2b9b29..758962a46ff201a3d9fe56bb636b9e990c9a490e 100644 --- a/monitor/plugins/common/observer_meta.go +++ b/monitor/plugins/common/observer_meta.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package common // for ob 4.0 diff --git a/monitor/plugins/common/observer_test.go b/monitor/plugins/common/observer_test.go index 96c6b4737872feaff8e54ff25dac8ad302294edb..32e74649331eda6d7b2fabf1e41c8497a8d8186c 100644 --- a/monitor/plugins/common/observer_test.go +++ b/monitor/plugins/common/observer_test.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package common import ( diff --git a/monitor/plugins/common/protocol.go b/monitor/plugins/common/protocol.go index cf967397d50f676d524f830540456bd04b993fef..02a60ccd6abab4365cd8813da9add5f021ababcf 100644 --- a/monitor/plugins/common/protocol.go +++ b/monitor/plugins/common/protocol.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package common type Protocol string diff --git a/monitor/plugins/exporters/all.go b/monitor/plugins/exporters/all.go index 201faef1f63229f14807e6b7d45640a959037f46..d52668b1ab6ee0b6313751b12c3506817a53945f 100644 --- a/monitor/plugins/exporters/all.go +++ b/monitor/plugins/exporters/all.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package exporters import ( diff --git a/monitor/plugins/exporters/ocp.go b/monitor/plugins/exporters/ocp.go index f701664b6e0c9363a5f51ff66b2ca52362cad348..73f67ee1f19bf2409e321919878928f5f0c0356b 100644 --- a/monitor/plugins/exporters/ocp.go +++ b/monitor/plugins/exporters/ocp.go @@ -1 +1,13 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package exporters diff --git a/monitor/plugins/exporters/prometheus/metric_handler.go b/monitor/plugins/exporters/prometheus/metric_handler.go index 5fd62290afcd7bef16fdcd50f91b5b5d6b7150b6..c011d7d284db1f0f98dfdfb1517ab16064a975ae 100644 --- a/monitor/plugins/exporters/prometheus/metric_handler.go +++ b/monitor/plugins/exporters/prometheus/metric_handler.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package prometheus import ( diff --git a/monitor/plugins/exporters/prometheus/metric_handler_test.go b/monitor/plugins/exporters/prometheus/metric_handler_test.go index f7956e11d850fc28e2526cfd3bdd78e6598d678b..0618753fe8f5a63e20ab00d647da6a3e37d9eb38 100644 --- a/monitor/plugins/exporters/prometheus/metric_handler_test.go +++ b/monitor/plugins/exporters/prometheus/metric_handler_test.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package prometheus import ( diff --git a/monitor/plugins/exporters/prometheus/prometheus.go b/monitor/plugins/exporters/prometheus/prometheus.go index f8c2388298f13d9af6b3f8e8dab24148399552db..ebbbbb9420157bc928608a4cc8b20c183f7eb482 100644 --- a/monitor/plugins/exporters/prometheus/prometheus.go +++ b/monitor/plugins/exporters/prometheus/prometheus.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package prometheus import ( diff --git a/monitor/plugins/exporters/prometheus/prometheus_test.go b/monitor/plugins/exporters/prometheus/prometheus_test.go index f6b74f4d14edfa305f0de7a6b81641eed3f9a8d7..8968b9b419be836f15b8b47d8571c6f9d1cf2bf3 100644 --- a/monitor/plugins/exporters/prometheus/prometheus_test.go +++ b/monitor/plugins/exporters/prometheus/prometheus_test.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package prometheus import ( diff --git a/monitor/plugins/inputs/all.go b/monitor/plugins/inputs/all.go index 56cecea8e53d6d8e23bdf29d37531f0a1e573326..4c3fe9b25513eb48b33ca0464ca6127b4916f50e 100644 --- a/monitor/plugins/inputs/all.go +++ b/monitor/plugins/inputs/all.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package inputs import ( diff --git a/monitor/plugins/inputs/host/custom.go b/monitor/plugins/inputs/host/custom.go index 8f042de19d8da885b9685adbbdd24d7cc2b97f2b..454f00ea75a2ae90fb45b10147da3d3d054833fc 100644 --- a/monitor/plugins/inputs/host/custom.go +++ b/monitor/plugins/inputs/host/custom.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package host import ( diff --git a/monitor/plugins/inputs/host/custom_test.go b/monitor/plugins/inputs/host/custom_test.go index fa37d91ea10b9560d23603a2f080500a54f0d97f..2e47c6df373ff1af03565e8ab031d6e7db467bd2 100644 --- a/monitor/plugins/inputs/host/custom_test.go +++ b/monitor/plugins/inputs/host/custom_test.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package host import ( diff --git a/monitor/plugins/inputs/host/custom_util.go b/monitor/plugins/inputs/host/custom_util.go index 5ecbb998b7f8b24ff9cc902b80f32678888e7280..06428518fcf712bc207a2f03cfe63d2bdc91710f 100644 --- a/monitor/plugins/inputs/host/custom_util.go +++ b/monitor/plugins/inputs/host/custom_util.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package host import ( diff --git a/monitor/plugins/inputs/host/custom_util_test.go b/monitor/plugins/inputs/host/custom_util_test.go index 24546bc092701bfa811f7bcf0b6c4ea6c954e80b..09c4bad1caad17606ead5c4d09720248a10960aa 100644 --- a/monitor/plugins/inputs/host/custom_util_test.go +++ b/monitor/plugins/inputs/host/custom_util_test.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package host import ( diff --git a/monitor/plugins/inputs/log_tailer/log_tailer.go b/monitor/plugins/inputs/log_tailer/log_tailer.go index e03caf9cac3fd33ac5b6711bfa672d87fa70b0f9..0916f9d1e7d9d3a571b1c49053f13be6ef593392 100644 --- a/monitor/plugins/inputs/log_tailer/log_tailer.go +++ b/monitor/plugins/inputs/log_tailer/log_tailer.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package log_tailer import ( diff --git a/monitor/plugins/inputs/log_tailer/log_tailer_executor.go b/monitor/plugins/inputs/log_tailer/log_tailer_executor.go index 796366d7f69cff2e0adb21e4ac20962661943e0d..d96d1063f34e53a31a6d58014a83a7c28e1bbd51 100644 --- a/monitor/plugins/inputs/log_tailer/log_tailer_executor.go +++ b/monitor/plugins/inputs/log_tailer/log_tailer_executor.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package log_tailer import ( diff --git a/monitor/plugins/inputs/log_tailer/log_tailer_model.go b/monitor/plugins/inputs/log_tailer/log_tailer_model.go index 12437ef204cb9e4e1e29f3ccf7e6b246b030aef0..69e9bba1f75da27117efbe67ed5e08cca3f706a7 100644 --- a/monitor/plugins/inputs/log_tailer/log_tailer_model.go +++ b/monitor/plugins/inputs/log_tailer/log_tailer_model.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package log_tailer import ( diff --git a/monitor/plugins/inputs/log_tailer/log_tailer_recovery.go b/monitor/plugins/inputs/log_tailer/log_tailer_recovery.go index c747b48ce965d1b8ac5ec2542b74e864d006a6b5..cced4a7475170224f9d8a28b7a537afe0d6ca1e9 100644 --- a/monitor/plugins/inputs/log_tailer/log_tailer_recovery.go +++ b/monitor/plugins/inputs/log_tailer/log_tailer_recovery.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package log_tailer import ( diff --git a/monitor/plugins/inputs/log_tailer/log_tailer_recovery_test.go b/monitor/plugins/inputs/log_tailer/log_tailer_recovery_test.go index 4245ff83b2f0f9c94072ddda8a629c4b8c83af2e..115a80af334a8c62d1d6912caf6ce7c88d59109b 100644 --- a/monitor/plugins/inputs/log_tailer/log_tailer_recovery_test.go +++ b/monitor/plugins/inputs/log_tailer/log_tailer_recovery_test.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package log_tailer import ( diff --git a/monitor/plugins/inputs/log_tailer/log_tailer_test.go b/monitor/plugins/inputs/log_tailer/log_tailer_test.go index 3b0dbd43d238fda33407ca46c2f895ab70cf878e..a5fb542aa00b23b3401a96e3e846dabd3c35e09f 100644 --- a/monitor/plugins/inputs/log_tailer/log_tailer_test.go +++ b/monitor/plugins/inputs/log_tailer/log_tailer_test.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package log_tailer import ( diff --git a/monitor/plugins/inputs/log_tailer/log_tailer_utils.go b/monitor/plugins/inputs/log_tailer/log_tailer_utils.go index 532c79d395b6e847325d022cb367665da2efda9c..7ef46477cf136d0e4207bba6a9103b8289342d3c 100644 --- a/monitor/plugins/inputs/log_tailer/log_tailer_utils.go +++ b/monitor/plugins/inputs/log_tailer/log_tailer_utils.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package log_tailer import ( diff --git a/monitor/plugins/inputs/log_tailer/log_tailer_utils_test.go b/monitor/plugins/inputs/log_tailer/log_tailer_utils_test.go index 535c67483edaf928af9c6da1399c3159a11c8911..2367ed7e032be6aebccb5055ab881602c740037d 100644 --- a/monitor/plugins/inputs/log_tailer/log_tailer_utils_test.go +++ b/monitor/plugins/inputs/log_tailer/log_tailer_utils_test.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package log_tailer import ( diff --git a/monitor/plugins/inputs/mysql/mysql_test.go b/monitor/plugins/inputs/mysql/mysql_test.go index 8a6004fe86d9ac5db8bf5981a79a5de7004894e4..27a51cd1e9eb56eb529a571a72652dc03a0b82a3 100644 --- a/monitor/plugins/inputs/mysql/mysql_test.go +++ b/monitor/plugins/inputs/mysql/mysql_test.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package mysql import ( diff --git a/monitor/plugins/inputs/mysql/mysqld.go b/monitor/plugins/inputs/mysql/mysqld.go index 134f13de3ef4b4d89d1c36f772cacca88b2f943a..36ff2c4c01d4fd7b29f237dec22df0d41ea59762 100644 --- a/monitor/plugins/inputs/mysql/mysqld.go +++ b/monitor/plugins/inputs/mysql/mysqld.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package mysql import ( diff --git a/monitor/plugins/inputs/mysql/table_input.go b/monitor/plugins/inputs/mysql/table_input.go index c8f9da76e37380adaec74f9cbb435600a8e6b0ca..d769d4ddd3ed324731687e7f239dc2cc0a305c9b 100644 --- a/monitor/plugins/inputs/mysql/table_input.go +++ b/monitor/plugins/inputs/mysql/table_input.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package mysql import ( diff --git a/monitor/plugins/inputs/mysql/table_input_test.go b/monitor/plugins/inputs/mysql/table_input_test.go index 1e3e102ca4c05e5e951bc8319b385d3336dfe3ba..bcc556017d6fe3e042f48da8040c550c335629b6 100644 --- a/monitor/plugins/inputs/mysql/table_input_test.go +++ b/monitor/plugins/inputs/mysql/table_input_test.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package mysql import ( diff --git a/monitor/plugins/inputs/net/connectivity.go b/monitor/plugins/inputs/net/connectivity.go index 49ff6810646c22588c884990562789c5c424896f..d456434d24bd68a0bdd12d67aa4fbc37e023eeee 100644 --- a/monitor/plugins/inputs/net/connectivity.go +++ b/monitor/plugins/inputs/net/connectivity.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package net import ( diff --git a/monitor/plugins/inputs/net/connectivity_test.go b/monitor/plugins/inputs/net/connectivity_test.go index dfec052a0404b63e9d90850c55b0dc913f20215c..27f36d74c16cdadaff3b37cc3b222eb24c21f21b 100644 --- a/monitor/plugins/inputs/net/connectivity_test.go +++ b/monitor/plugins/inputs/net/connectivity_test.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package net import ( diff --git a/monitor/plugins/inputs/nodeexporter/collect_item.go b/monitor/plugins/inputs/nodeexporter/collect_item.go index 3b9c423242869bd37e05323c533d6ba51b0a4d21..955ef420442a653725139665b23b45b29a4d978b 100644 --- a/monitor/plugins/inputs/nodeexporter/collect_item.go +++ b/monitor/plugins/inputs/nodeexporter/collect_item.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + //go:build !linux // +build !linux diff --git a/monitor/plugins/inputs/nodeexporter/collect_item_linux.go b/monitor/plugins/inputs/nodeexporter/collect_item_linux.go index b77dfbb0629bf04b5a568b016b16beddc7852eff..69e751d6d2adc89ee5a1110c80c1b3b35db435f1 100644 --- a/monitor/plugins/inputs/nodeexporter/collect_item_linux.go +++ b/monitor/plugins/inputs/nodeexporter/collect_item_linux.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package nodeexporter const ( diff --git a/monitor/plugins/inputs/nodeexporter/node_exporter.go b/monitor/plugins/inputs/nodeexporter/node_exporter.go index a7c5a191da55dbe340dda8ed1b5b124869dee0b0..0bc3b2c075d884eaed82a9bc041aecaa6da51aab 100644 --- a/monitor/plugins/inputs/nodeexporter/node_exporter.go +++ b/monitor/plugins/inputs/nodeexporter/node_exporter.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package nodeexporter import ( diff --git a/monitor/plugins/inputs/nodeexporter/node_exporter_test.go b/monitor/plugins/inputs/nodeexporter/node_exporter_test.go index 231c70c50c1403dd302fe7a5a5b6a2fd93bd2724..52ecbbc5013e465d351e0a4b2278f7fd6acc2b28 100644 --- a/monitor/plugins/inputs/nodeexporter/node_exporter_test.go +++ b/monitor/plugins/inputs/nodeexporter/node_exporter_test.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package nodeexporter import ( diff --git a/monitor/plugins/inputs/obcommon/connectivity.go b/monitor/plugins/inputs/obcommon/connectivity.go index f4b1de673f27596109418f89353427fc859fd5c6..3be6e363c6e25aadc29beca9557a89735bd06501 100644 --- a/monitor/plugins/inputs/obcommon/connectivity.go +++ b/monitor/plugins/inputs/obcommon/connectivity.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package obcommon import ( diff --git a/monitor/plugins/inputs/obcommon/connectivity_test.go b/monitor/plugins/inputs/obcommon/connectivity_test.go index 2569313f4cc09b2791df2d546c6633e601e9a113..0536596e0735dbd94f2c3ed9f30e9cd72260967e 100644 --- a/monitor/plugins/inputs/obcommon/connectivity_test.go +++ b/monitor/plugins/inputs/obcommon/connectivity_test.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package obcommon import ( diff --git a/monitor/plugins/inputs/obcommon/oceanbase_test.go b/monitor/plugins/inputs/obcommon/oceanbase_test.go index 7cd4ec1237267bfa90b18c32b5d36cd975ca8698..badf909c19cfb588f364a94f7a59392a3528bcfd 100644 --- a/monitor/plugins/inputs/obcommon/oceanbase_test.go +++ b/monitor/plugins/inputs/obcommon/oceanbase_test.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package obcommon import ( diff --git a/monitor/plugins/inputs/oceanbase/log/error_log_input.go b/monitor/plugins/inputs/oceanbase/log/error_log_input.go index 4490772780adfc604d7e2d6a913d4280f4ce310f..1e447a7c81ff1284586b6cc75433fe27b0e8f18a 100644 --- a/monitor/plugins/inputs/oceanbase/log/error_log_input.go +++ b/monitor/plugins/inputs/oceanbase/log/error_log_input.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package log import ( diff --git a/monitor/plugins/inputs/oceanbase/log/file_info.go b/monitor/plugins/inputs/oceanbase/log/file_info.go index 913c43858763dfb847b3193fe8074b4e53142312..ce19c6ffbd38bdf60ee5f096e2d6230df08d3b3e 100644 --- a/monitor/plugins/inputs/oceanbase/log/file_info.go +++ b/monitor/plugins/inputs/oceanbase/log/file_info.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package log import ( diff --git a/monitor/plugins/inputs/oceanbase/log/file_info_darwin.go b/monitor/plugins/inputs/oceanbase/log/file_info_darwin.go index 340dca4f9b1a76bcf6e1f1e926a5e43d19f7286b..3ebcef2c5c50db8da6958788542658ce671721d3 100644 --- a/monitor/plugins/inputs/oceanbase/log/file_info_darwin.go +++ b/monitor/plugins/inputs/oceanbase/log/file_info_darwin.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + //go:build darwin // +build darwin diff --git a/monitor/plugins/inputs/oceanbase/log/file_info_linux.go b/monitor/plugins/inputs/oceanbase/log/file_info_linux.go index bee62cb27afc727f86f413146940e6775de3868d..f8406784fb0009e8bfa77e3fb3ddd16e3d345140 100644 --- a/monitor/plugins/inputs/oceanbase/log/file_info_linux.go +++ b/monitor/plugins/inputs/oceanbase/log/file_info_linux.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + //go:build linux // +build linux diff --git a/monitor/plugins/inputs/oceanbase/log/log_utils.go b/monitor/plugins/inputs/oceanbase/log/log_utils.go index 0315bd92efa26946c104b79ffbdc55d2bdc1fc8c..bd5fac71388065fd3cfef2b73a75f01eebf79725 100644 --- a/monitor/plugins/inputs/oceanbase/log/log_utils.go +++ b/monitor/plugins/inputs/oceanbase/log/log_utils.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package log import ( diff --git a/monitor/plugins/inputs/ocp.go b/monitor/plugins/inputs/ocp.go index 7792e3c38c13efebd855138fcafc3f52edd51590..c3cfde690f573f1aad75042ddb134d89ee80cc77 100644 --- a/monitor/plugins/inputs/ocp.go +++ b/monitor/plugins/inputs/ocp.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package inputs import ( diff --git a/monitor/plugins/inputs/process/process.go b/monitor/plugins/inputs/process/process.go index 72e90bc0c37527c9bc93093e93030780219619f6..76a734547cf0dcb8709c18d207bf8cd36b7348d2 100644 --- a/monitor/plugins/inputs/process/process.go +++ b/monitor/plugins/inputs/process/process.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package process import ( diff --git a/monitor/plugins/inputs/process/process_test.go b/monitor/plugins/inputs/process/process_test.go index 031a5ee9d888c23ad0a6f8927ab25a333206151b..0be770292f923c753ff195215951b575f2adaff3 100644 --- a/monitor/plugins/inputs/process/process_test.go +++ b/monitor/plugins/inputs/process/process_test.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package process import ( diff --git a/monitor/plugins/inputs/prometheus/prometheus.go b/monitor/plugins/inputs/prometheus/prometheus.go index 2a13344b60d4ffaba8f81542f6463adb9344db5f..f477517c49a77c6203b34cb63a21059217d5529b 100644 --- a/monitor/plugins/inputs/prometheus/prometheus.go +++ b/monitor/plugins/inputs/prometheus/prometheus.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package prometheus import ( diff --git a/monitor/plugins/inputs/prometheus/prometheus_test.go b/monitor/plugins/inputs/prometheus/prometheus_test.go index 0c9f779ce9303a2279a1cc09a8c69ce9f933a8f0..bc4855d6ccb794af4012cd4c437788df44767cd2 100644 --- a/monitor/plugins/inputs/prometheus/prometheus_test.go +++ b/monitor/plugins/inputs/prometheus/prometheus_test.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package prometheus import ( diff --git a/monitor/plugins/outputs/alertmanager/alertmanager.go b/monitor/plugins/outputs/alertmanager/alertmanager.go index 923a291acf5a6d80da7437b2ae7c88b80511a84c..0c4e8f290ae33097835cc7ef796c4b2fd4b78d82 100644 --- a/monitor/plugins/outputs/alertmanager/alertmanager.go +++ b/monitor/plugins/outputs/alertmanager/alertmanager.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package alertmanager import ( diff --git a/monitor/plugins/outputs/all.go b/monitor/plugins/outputs/all.go index 280497736d649cfda3bbccc81db9634fc4a79f90..5dd35b0cb1d3ee662aa2ecfdf7539158fdb7f7a3 100644 --- a/monitor/plugins/outputs/all.go +++ b/monitor/plugins/outputs/all.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package outputs import ( diff --git a/monitor/plugins/outputs/es/es.go b/monitor/plugins/outputs/es/es.go index 1c791c23baae5e9f6fe35f0c24f317e188b3b546..103298b30e167487431b438e68e99e0e3362e09d 100644 --- a/monitor/plugins/outputs/es/es.go +++ b/monitor/plugins/outputs/es/es.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package es import ( diff --git a/monitor/plugins/outputs/es/es_test.go b/monitor/plugins/outputs/es/es_test.go index 22a626b18b939a392bce0ec13d14d6eab64612d9..1cff2a70225ab0e3be11d74d2c3de046b7cb5846 100644 --- a/monitor/plugins/outputs/es/es_test.go +++ b/monitor/plugins/outputs/es/es_test.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package es import ( diff --git a/monitor/plugins/outputs/ocp.go b/monitor/plugins/outputs/ocp.go index 08af6a6e6fe60f9d69255740399b7f2334fde76b..67de13bf60ae768389e8adb93215306625005a4b 100644 --- a/monitor/plugins/outputs/ocp.go +++ b/monitor/plugins/outputs/ocp.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package outputs import ( diff --git a/monitor/plugins/outputs/pushhttp/http_sender.go b/monitor/plugins/outputs/pushhttp/http_sender.go index 7ed52a5396c1948cef420373bbc9586abe0aef5c..c6b1dca1aa9eeda1819add8e55be63808afd85ab 100644 --- a/monitor/plugins/outputs/pushhttp/http_sender.go +++ b/monitor/plugins/outputs/pushhttp/http_sender.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package pushhttp import ( diff --git a/monitor/plugins/outputs/pushhttp/push_http.go b/monitor/plugins/outputs/pushhttp/push_http.go index 5c015017f9b1b174012c869a0581fde1ead49aa9..c3ceeeda1dfb7852d419a1496759eded839938f4 100644 --- a/monitor/plugins/outputs/pushhttp/push_http.go +++ b/monitor/plugins/outputs/pushhttp/push_http.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package pushhttp import ( diff --git a/monitor/plugins/outputs/pushhttp/push_http_test.go b/monitor/plugins/outputs/pushhttp/push_http_test.go index 338705939a1b9245a4736a0b83f60ea3ac37289c..5b9511b229825d3b31c3b9ba46de8942720f7c07 100644 --- a/monitor/plugins/outputs/pushhttp/push_http_test.go +++ b/monitor/plugins/outputs/pushhttp/push_http_test.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package pushhttp import ( diff --git a/monitor/plugins/outputs/sls/sls_output.go b/monitor/plugins/outputs/sls/sls_output.go index 6d2e15b24e0d67c495996f0d4a98ed01fc450fd0..7b010bef57bd704c35b666561ef62dbc3e40b8c6 100644 --- a/monitor/plugins/outputs/sls/sls_output.go +++ b/monitor/plugins/outputs/sls/sls_output.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package sls import ( diff --git a/monitor/plugins/outputs/sls/sls_output_test.go b/monitor/plugins/outputs/sls/sls_output_test.go index 669e363b97ee251400befb002c3cccff2fa40c6b..22edd2b24c0d7e1325aae0703219c230346b531b 100644 --- a/monitor/plugins/outputs/sls/sls_output_test.go +++ b/monitor/plugins/outputs/sls/sls_output_test.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package sls import ( diff --git a/monitor/plugins/plugin.go b/monitor/plugins/plugin.go index 23d70ae5abcfacbcbf8feb22a371d075da0d2afe..afd50a4bc9be930c17b2c5fc59181ebdc254e1e4 100644 --- a/monitor/plugins/plugin.go +++ b/monitor/plugins/plugin.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package plugins import ( diff --git a/monitor/plugins/processors/aggregate/aggregator.go b/monitor/plugins/processors/aggregate/aggregator.go index 1ddd80d8e0d239544176535c449e8405c3437561..b055c31cf594c0386964836e303dce0a1b33a3ea 100644 --- a/monitor/plugins/processors/aggregate/aggregator.go +++ b/monitor/plugins/processors/aggregate/aggregator.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package aggregate import ( diff --git a/monitor/plugins/processors/aggregate/aggregator_test.go b/monitor/plugins/processors/aggregate/aggregator_test.go index 362f14a0f4ab67b462c76a15b25f9c182a2669ee..ecc311860ba67fb3d5d68f2802bb12087250e00f 100644 --- a/monitor/plugins/processors/aggregate/aggregator_test.go +++ b/monitor/plugins/processors/aggregate/aggregator_test.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package aggregate import ( diff --git a/monitor/plugins/processors/all.go b/monitor/plugins/processors/all.go index b93fdc72a19426774480af44be96ef510fb24c2c..51382d0019a1e39dab111ff8c3382b30e597da8c 100644 --- a/monitor/plugins/processors/all.go +++ b/monitor/plugins/processors/all.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package processors import ( diff --git a/monitor/plugins/processors/attr/attribute_operate.go b/monitor/plugins/processors/attr/attribute_operate.go index 1a14dc29b37fddd28410818f0ae25e4a1f148afd..4c3e98c5206845dfae8790a92ef3d90ba95ad114 100644 --- a/monitor/plugins/processors/attr/attribute_operate.go +++ b/monitor/plugins/processors/attr/attribute_operate.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package attr import ( diff --git a/monitor/plugins/processors/attr/attribute_operate_test.go b/monitor/plugins/processors/attr/attribute_operate_test.go index a6cf257b8ba4816d84c0d7c2e4bed4b24d5a1e44..0cc1cfd3bf4a7c7060efae1293b766239d519368 100644 --- a/monitor/plugins/processors/attr/attribute_operate_test.go +++ b/monitor/plugins/processors/attr/attribute_operate_test.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package attr import ( diff --git a/monitor/plugins/processors/attr/operate.go b/monitor/plugins/processors/attr/operate.go index 719f74933fb87fcd99c1674f367cafc07271d096..61e4489222a02cab31a678b347d290356eaa3c06 100644 --- a/monitor/plugins/processors/attr/operate.go +++ b/monitor/plugins/processors/attr/operate.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package attr import ( diff --git a/monitor/plugins/processors/attr/operate_test.go b/monitor/plugins/processors/attr/operate_test.go index 797d138f90b9ee6bb34d9cf5f586613650c39ea8..590c269039c775d8b68ef707e9ad4b269dbab0fc 100644 --- a/monitor/plugins/processors/attr/operate_test.go +++ b/monitor/plugins/processors/attr/operate_test.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package attr import ( diff --git a/monitor/plugins/processors/filter/exclude_filter.go b/monitor/plugins/processors/filter/exclude_filter.go index b7ce6aa60103414ddf720cd166bb155d4c749c4d..e983657ce6c15005f7e621d7d4c4ed6afec7b2ff 100644 --- a/monitor/plugins/processors/filter/exclude_filter.go +++ b/monitor/plugins/processors/filter/exclude_filter.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package filter import ( diff --git a/monitor/plugins/processors/filter/exclude_filter_test.go b/monitor/plugins/processors/filter/exclude_filter_test.go index a2ea11b2009fbd80e26120b793bfd47c9791d4a5..1b6c7680c93743d58cbe6719e7e5b79a26029e08 100644 --- a/monitor/plugins/processors/filter/exclude_filter_test.go +++ b/monitor/plugins/processors/filter/exclude_filter_test.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package filter import ( diff --git a/monitor/plugins/processors/jointable/jointable.go b/monitor/plugins/processors/jointable/jointable.go index 022d2d3d167827cf39bdc777f3a299c4783aef10..39621e6fa0774eb25bfafb069c0056b2e7b775fd 100644 --- a/monitor/plugins/processors/jointable/jointable.go +++ b/monitor/plugins/processors/jointable/jointable.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package jointable import ( diff --git a/monitor/plugins/processors/jointable/jointable_test.go b/monitor/plugins/processors/jointable/jointable_test.go index 1735776f6ba3227956ba1095b0fdeceb88182067..16698fb2492b87a60d5904149ffa2c2b4a60b7da 100644 --- a/monitor/plugins/processors/jointable/jointable_test.go +++ b/monitor/plugins/processors/jointable/jointable_test.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package jointable import ( diff --git a/monitor/plugins/processors/jointable/operate.go b/monitor/plugins/processors/jointable/operate.go index 5bdab6103fe2d68d94677cb5facd487ef2828900..a1fc6f887b994225c3027260997f603800f78979 100644 --- a/monitor/plugins/processors/jointable/operate.go +++ b/monitor/plugins/processors/jointable/operate.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package jointable import ( diff --git a/monitor/plugins/processors/jointable/operate_test.go b/monitor/plugins/processors/jointable/operate_test.go index 61f543c11cbea92928c138c446bc72071351e86d..aca0442e357721642814f9a9933e524e39241e9c 100644 --- a/monitor/plugins/processors/jointable/operate_test.go +++ b/monitor/plugins/processors/jointable/operate_test.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package jointable import ( diff --git a/monitor/plugins/processors/label/mount_label.go b/monitor/plugins/processors/label/mount_label.go index 732d75c18f9721aa6cecca8916b4006a3d9cd781..0e8e18c3309fc4649bb615990c3ef3454a721587 100644 --- a/monitor/plugins/processors/label/mount_label.go +++ b/monitor/plugins/processors/label/mount_label.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package label import ( diff --git a/monitor/plugins/processors/label/mount_label_test.go b/monitor/plugins/processors/label/mount_label_test.go index cecfc1317b9b0877a489f26fab20273353e5584f..a1eddfba934abd29d15bb830508f9d9bd2b44b01 100644 --- a/monitor/plugins/processors/label/mount_label_test.go +++ b/monitor/plugins/processors/label/mount_label_test.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package label import ( diff --git a/monitor/plugins/processors/ocp.go b/monitor/plugins/processors/ocp.go index 88f83e5730a073d8ed3dec7923a980bb076b0ea9..86107d710ed6518bb5c43ea35229eaf6f2e4b835 100644 --- a/monitor/plugins/processors/ocp.go +++ b/monitor/plugins/processors/ocp.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package processors import ( diff --git a/monitor/plugins/processors/retag/retag.go b/monitor/plugins/processors/retag/retag.go index 60e0e37e5fe3fbf3341a725bc508b99a72dd3f5f..aa170c46122727abff9144704c5981bffea4513e 100644 --- a/monitor/plugins/processors/retag/retag.go +++ b/monitor/plugins/processors/retag/retag.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package retag import ( diff --git a/monitor/plugins/processors/retag/retag_test.go b/monitor/plugins/processors/retag/retag_test.go index db494e8a4f295d134eebc9de88f1c265c3cdec7b..3b60a395f25880711de832579b482ba65ee6528c 100644 --- a/monitor/plugins/processors/retag/retag_test.go +++ b/monitor/plugins/processors/retag/retag_test.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package retag import ( diff --git a/monitor/plugins/processors/slsmetric/slsmetric.go b/monitor/plugins/processors/slsmetric/slsmetric.go index 0bf6f4baa12163c250d210ce8c08b7629eef78e6..2d0129189b90759e4906eb4e91cc18771e1406b6 100644 --- a/monitor/plugins/processors/slsmetric/slsmetric.go +++ b/monitor/plugins/processors/slsmetric/slsmetric.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package slsmetric import ( diff --git a/monitor/plugins/processors/transformer/log_transformer.go b/monitor/plugins/processors/transformer/log_transformer.go index 41d6300940e8ef306534b5dbf007530bbed52668..cbc7aa7063dcfba382ae00ff98434c01cc28ca02 100644 --- a/monitor/plugins/processors/transformer/log_transformer.go +++ b/monitor/plugins/processors/transformer/log_transformer.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package transformer import ( diff --git a/monitor/plugins/processors/transformer/log_transformer_test.go b/monitor/plugins/processors/transformer/log_transformer_test.go index 266a88a412c7656f3cb6591517de0b56529093f4..cde8d1a4fa6a54a529d9afc933edf9579dba6b32 100644 --- a/monitor/plugins/processors/transformer/log_transformer_test.go +++ b/monitor/plugins/processors/transformer/log_transformer_test.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package transformer import ( diff --git a/monitor/plugins/registry.go b/monitor/plugins/registry.go index b330692c05e730a39152918bd4c628eabeee295b..dd91c7382cf0758455346d3a948f3526b3f14f63 100644 --- a/monitor/plugins/registry.go +++ b/monitor/plugins/registry.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package plugins import ( diff --git a/monitor/utils/codec_utils.go b/monitor/utils/codec_utils.go index 9c740c3689a9b917189a45ad9e91fe678fe4ac20..a1bae15e2efaf919a524060d2540e37ed22bce9b 100644 --- a/monitor/utils/codec_utils.go +++ b/monitor/utils/codec_utils.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package utils import ( diff --git a/monitor/utils/codec_utils_test.go b/monitor/utils/codec_utils_test.go index d284c6009df3c4f566c3ab479bf859fee6293a18..f38f8be1a52b8ac69ee4bf1f54eb9dc0867c162c 100644 --- a/monitor/utils/codec_utils_test.go +++ b/monitor/utils/codec_utils_test.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package utils import ( diff --git a/monitor/utils/data_converter.go b/monitor/utils/data_converter.go index e97622cb2712b8ab662e3c5f9bbc62957dd69b7a..7027d9b0998ec93d91a4e872df8112e48ef5e774 100644 --- a/monitor/utils/data_converter.go +++ b/monitor/utils/data_converter.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package utils import ( diff --git a/monitor/utils/data_converter_test.go b/monitor/utils/data_converter_test.go index f3e04bd43ff221ea7b293e6bccec2762077f2835..26309b2597f2f41ef3a0c3239bde2ddf0e941930 100644 --- a/monitor/utils/data_converter_test.go +++ b/monitor/utils/data_converter_test.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package utils import ( diff --git a/rpm/change_version.sh b/rpm/change_version.sh index 92c463c0cf6989845fcb88abd25c4991273348f9..1c9eb9f860f890ceb55da87dccceb487a6b4119e 100755 --- a/rpm/change_version.sh +++ b/rpm/change_version.sh @@ -1,4 +1,16 @@ #!/bin/bash +# +# Copyright (c) 2023 OceanBase +# OCP Express is licensed under 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. +# + cd `git rev-parse --show-toplevel` sed_agent_spec() { diff --git a/rpm/obagent-build.sh b/rpm/obagent-build.sh index 06725afa2cf28c3c5d28da2cf4d6801cdc2a9ba4..782e62ceb6dba31a1c22fa337e28a5a6549158a2 100644 --- a/rpm/obagent-build.sh +++ b/rpm/obagent-build.sh @@ -1,5 +1,17 @@ #!/bin/bash +# +# Copyright (c) 2023 OceanBase +# OCP Express is licensed under 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. +# + PROJECT_DIR=$1 PROJECT_NAME=$2 VERSION=$3 diff --git a/stat/config.go b/stat/config.go index ac53329eb517118df8d9968c0bd8f5ae616b74a1..fe974f26ee5bac34d3fdfe66d7e3dab646ee37a7 100644 --- a/stat/config.go +++ b/stat/config.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package stat import ( diff --git a/stat/labels.go b/stat/labels.go index e32c13782ebae8c5ef6c1c10afc3ad0e92d10ced..a88a5f5894206e70dd121fd7d4edaac99d179564 100644 --- a/stat/labels.go +++ b/stat/labels.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package stat const PluginTypeKey = "type" diff --git a/stat/metrics.go b/stat/metrics.go index f68f1fdc29d8f5614dd9984fcd3fdc124b8d110b..ffa60c4f01bfd64ad8bdebd3ecf8ca7a7ee79f97 100644 --- a/stat/metrics.go +++ b/stat/metrics.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package stat import ( diff --git a/tests/mockagent.go b/tests/mockagent.go index f8b20313df707703f5a74a444c78170f16d6d908..94e9bf2ae25b58d8d9d1f980fe4db80b57ce8077 100644 --- a/tests/mockagent.go +++ b/tests/mockagent.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package main import ( diff --git a/tests/testutil/testutil.go b/tests/testutil/testutil.go index f7349d1169e59af0ded151db64ad954dbe356f98..472fc49bc63134b2c522c3cfd781ae6b2f8ebe7e 100644 --- a/tests/testutil/testutil.go +++ b/tests/testutil/testutil.go @@ -1,3 +1,15 @@ +/* + * Copyright (c) 2023 OceanBase + * OCP Express is licensed under 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. + */ + package testutil import (