From be299574e074d96229de31b8cabbc0916c61a266 Mon Sep 17 00:00:00 2001 From: zhj-luo Date: Mon, 14 Aug 2023 19:12:32 +0800 Subject: [PATCH] Add file header and license file --- LICENSE.txt | 132 ++++++++++++++++++ README.md | 2 +- agentd/api/api.go | 12 ++ agentd/config.go | 12 ++ agentd/config_test.go | 12 ++ agentd/error.go | 12 ++ agentd/limit.go | 12 ++ agentd/limit_linux.go | 12 ++ agentd/limit_nonlinux.go | 12 ++ agentd/limit_watch.go | 12 ++ agentd/service.go | 12 ++ agentd/service_test.go | 12 ++ agentd/watchdog.go | 12 ++ agentd/watchdog_test.go | 12 ++ api/common/config_handler.go | 12 ++ api/common/handler_common.go | 12 ++ api/common/info_handler.go | 12 ++ api/common/middleware.go | 12 ++ api/common/middleware_auth.go | 12 ++ api/common/route_common.go | 12 ++ api/mgragent/agent_handler.go | 12 ++ api/mgragent/file_handler.go | 12 ++ api/mgragent/log_handler.go | 12 ++ api/mgragent/mgragent_route.go | 12 ++ api/mgragent/system_handler.go | 12 ++ api/mgragent/task_handler.go | 12 ++ api/mgragent/task_handler_test.go | 12 ++ api/monagent/monagent_route.go | 12 ++ api/web/http_server.go | 12 ++ api/web/http_server_test.go | 12 ++ api/web/monagent_server.go | 12 ++ api/web/monagent_server_test.go | 12 ++ api/web/route_test.go | 12 ++ api/web/server.go | 12 ++ api/web/server_test.go | 12 ++ cmd/agentctl/main.go | 12 ++ cmd/agentd/main.go | 12 ++ cmd/mgragent/main.go | 12 ++ cmd/monagent/main.go | 12 ++ config/agentctl/agentctl_config.go | 12 ++ config/config_common.go | 12 ++ config/config_crypto.go | 12 ++ config/config_module.go | 12 ++ config/config_module_callback.go | 12 ++ config/config_module_test.go | 12 ++ config/config_notify.go | 12 ++ config/config_notify_test.go | 12 ++ config/config_property.go | 12 ++ config/config_property_meta.go | 12 ++ config/config_property_test.go | 12 ++ config/config_reader_writer.go | 12 ++ config/config_reader_writer_test.go | 12 ++ config/config_verify_save.go | 12 ++ config/config_verify_save_test.go | 12 ++ config/config_version.go | 12 ++ config/config_version_test.go | 12 ++ config/mgragent/cleaner_config.go | 12 ++ config/mgragent/config_manager.go | 12 ++ config/mgragent/config_manager_test.go | 12 ++ config/mgragent/log_query_config.go | 12 ++ config/mgragent/mgragent_basic_auth_test.go | 12 ++ config/mgragent/mgragent_config.go | 12 ++ config/monagent/log_tailer_config.go | 12 ++ config/monagent/monagent_config.go | 12 ++ config/monagent/monagent_config_test.go | 12 ++ config/monagent/pipeline_config.go | 12 ++ config/monagent/pipeline_config_test.go | 12 ++ config/placeholder.go | 12 ++ config/placeholder_test.go | 12 ++ config/sdk/log_config_properties_meta.go | 12 ++ config/sdk/mgragent_callbacks.go | 12 ++ config/sdk/module_test.go | 12 ++ config/sdk/monagent_callbacks.go | 12 ++ config/sdk/monagent_config_properties_meta.go | 12 ++ config/sdk/sdk_config_properties_meta.go | 12 ++ config/sdk/sdk_init.go | 12 ++ config/sdk/sdk_init_test.go | 12 ++ config/sdk/sdk_module_callback.go | 12 ++ config/yaml.go | 12 ++ config/yaml_test.go | 12 ++ errors/error.go | 12 ++ errors/error_test.go | 12 ++ errors/errorcode.go | 12 ++ errors/errorcode_test.go | 12 ++ errors/errormsg.go | 12 ++ errors/errormsg_test.go | 12 ++ errors/wrap.go | 12 ++ executor/agent/admin.go | 12 ++ executor/agent/admin_test.go | 12 ++ executor/agent/agent.go | 12 ++ executor/agent/agentctl.go | 12 ++ executor/agent/agentctl_test.go | 12 ++ executor/agent/error.go | 12 ++ executor/cleaner/cleaner.go | 12 ++ executor/cleaner/cleaner_test.go | 12 ++ executor/cleaner/cleaner_utils.go | 12 ++ executor/cleaner/cleaner_utils_test.go | 12 ++ executor/disk/disk.go | 12 ++ executor/disk/disk_test.go | 12 ++ executor/file/file.go | 12 ++ executor/file/file_test.go | 12 ++ executor/file/filepath.go | 12 ++ executor/log_query/log_querier.go | 12 ++ executor/log_query/log_querier_test.go | 12 ++ executor/log_query/log_query.go | 12 ++ executor/log_query/log_query_model.go | 12 ++ executor/log_query/log_query_utils.go | 12 ++ executor/pkg/package.go | 12 ++ executor/pkg/package_test.go | 12 ++ executor/process/process.go | 12 ++ executor/process/process_test.go | 12 ++ executor/system/system.go | 12 ++ lib/command/command.go | 12 ++ lib/command/context.go | 12 ++ lib/command/error.go | 12 ++ lib/command/input.go | 12 ++ lib/command/input_test.go | 12 ++ lib/command/output.go | 12 ++ lib/command/output_test.go | 12 ++ lib/command/task.go | 12 ++ lib/command/task_store.go | 12 ++ lib/command/task_store_test.go | 12 ++ lib/command/task_test.go | 12 ++ lib/crypto/aes.go | 12 ++ lib/crypto/aes_test.go | 12 ++ lib/crypto/crypto.go | 12 ++ lib/crypto/plain.go | 12 ++ lib/errors/error.go | 12 ++ lib/errors/error_test.go | 12 ++ lib/errors/kind.go | 12 ++ lib/file/custom_scanline.go | 12 ++ lib/file/directory.go | 12 ++ lib/file/file.go | 12 ++ lib/file/fileinfo.go | 12 ++ lib/file/fileinfo_darwin.go | 12 ++ lib/file/fileinfo_linux.go | 12 ++ lib/file/fs.go | 12 ++ lib/file/link.go | 12 ++ lib/file/link_test.go | 12 ++ lib/file/mount.go | 12 ++ lib/file/mount_darwin.go | 12 ++ lib/file/mount_linux.go | 12 ++ lib/goroutinepool/goroutinepool.go | 12 ++ lib/goroutinepool/goroutinepool_test.go | 12 ++ lib/http/client.go | 12 ++ lib/http/client_test.go | 12 ++ lib/http/error.go | 12 ++ lib/http/http.go | 12 ++ lib/http/http_command.go | 12 ++ lib/http/http_command_test.go | 12 ++ lib/http/http_test.go | 12 ++ lib/http/listener.go | 12 ++ lib/http/listener_test.go | 12 ++ lib/http/response.go | 12 ++ lib/http/response_test.go | 12 ++ lib/http/status.go | 12 ++ lib/log_analyzer/agent_log_analyzer.go | 12 ++ lib/log_analyzer/agent_log_analyzer_test.go | 12 ++ lib/log_analyzer/agent_log_light_analyzer.go | 12 ++ .../agent_log_light_analyzer_test.go | 12 ++ lib/log_analyzer/analyzer_type.go | 12 ++ lib/log_analyzer/analyzer_type_test.go | 12 ++ lib/log_analyzer/host_log_analyzer.go | 12 ++ lib/log_analyzer/host_log_analyzer_test.go | 12 ++ lib/log_analyzer/host_log_light_analyzer.go | 12 ++ .../host_log_light_analyzer_test.go | 12 ++ lib/log_analyzer/log_analyzer.go | 12 ++ lib/log_analyzer/ob_log_analyzer.go | 12 ++ lib/log_analyzer/ob_log_analyzer_test.go | 12 ++ lib/log_analyzer/ob_log_light_analyzer.go | 12 ++ .../ob_log_light_analyzer_test.go | 12 ++ lib/mask/mask.go | 12 ++ lib/mask/mask_test.go | 12 ++ lib/path/path.go | 12 ++ lib/pkg/package.go | 12 ++ lib/pkg/package_test.go | 12 ++ lib/process/config.go | 12 ++ lib/process/error.go | 12 ++ lib/process/proc.go | 12 ++ lib/process/proc_test.go | 12 ++ lib/retry/retry.go | 12 ++ lib/retry/retry_test.go | 12 ++ lib/shell/command.go | 12 ++ lib/shell/exec.go | 12 ++ lib/shell/exec_test.go | 12 ++ lib/shell/exec_unix.go | 12 ++ lib/shell/exec_windows.go | 12 ++ lib/shell/shell.go | 12 ++ lib/shellf/command.go | 12 ++ lib/shellf/command_test.go | 12 ++ lib/shellf/config.go | 12 ++ lib/shellf/config_test.go | 12 ++ lib/shellf/shellf.go | 12 ++ lib/shellf/validate.go | 12 ++ lib/shellf/validate_test.go | 12 ++ lib/slice/spilt.go | 12 ++ lib/slice/spilt_test.go | 12 ++ lib/system/disk.go | 12 ++ lib/system/disk_test.go | 12 ++ lib/system/process.go | 12 ++ lib/system/process_test.go | 12 ++ lib/system/system.go | 12 ++ lib/system/system_test.go | 12 ++ lib/trace/header.go | 12 ++ lib/trace/header_test.go | 12 ++ log/helper.go | 12 ++ log/hook.go | 12 ++ log/logger.go | 12 ++ log/logger_test.go | 12 ++ log/text_formatter.go | 12 ++ monitor/engine/config_manager.go | 12 ++ monitor/engine/converter.go | 12 ++ monitor/engine/converter_test.go | 12 ++ monitor/engine/pipeline.go | 12 ++ monitor/engine/pipeline_manager.go | 12 ++ monitor/engine/pipeline_manager_test.go | 12 ++ monitor/engine/pipeline_module_callback.go | 12 ++ .../engine/pipeline_module_callback_test.go | 12 ++ monitor/engine/pipeline_test.go | 12 ++ monitor/engine/pipeline_utils.go | 12 ++ monitor/engine/recover.go | 12 ++ monitor/engine/recover_test.go | 12 ++ monitor/engine/route_manager.go | 12 ++ monitor/engine/route_manager_test.go | 12 ++ monitor/message/collector.go | 12 ++ monitor/message/collector_test.go | 12 ++ monitor/message/message.go | 12 ++ monitor/message/message_test.go | 12 ++ monitor/message/message_util.go | 12 ++ monitor/message/parse.go | 12 ++ monitor/plugins/common/cache.go | 12 ++ monitor/plugins/common/log_tailer.go | 12 ++ monitor/plugins/common/mount.go | 12 ++ monitor/plugins/common/node_env.go | 12 ++ monitor/plugins/common/ob_version_helper.go | 12 ++ .../plugins/common/ob_version_helper_test.go | 12 ++ monitor/plugins/common/observer.go | 12 ++ monitor/plugins/common/observer_meta.go | 12 ++ monitor/plugins/common/observer_test.go | 12 ++ monitor/plugins/common/protocol.go | 12 ++ monitor/plugins/exporters/all.go | 12 ++ monitor/plugins/exporters/ocp.go | 12 ++ .../exporters/prometheus/metric_handler.go | 12 ++ .../prometheus/metric_handler_test.go | 12 ++ .../exporters/prometheus/prometheus.go | 12 ++ .../exporters/prometheus/prometheus_test.go | 12 ++ monitor/plugins/inputs/all.go | 12 ++ monitor/plugins/inputs/host/custom.go | 12 ++ monitor/plugins/inputs/host/custom_test.go | 12 ++ monitor/plugins/inputs/host/custom_util.go | 12 ++ .../plugins/inputs/host/custom_util_test.go | 12 ++ .../plugins/inputs/log_tailer/log_tailer.go | 12 ++ .../inputs/log_tailer/log_tailer_executor.go | 12 ++ .../inputs/log_tailer/log_tailer_model.go | 12 ++ .../inputs/log_tailer/log_tailer_recovery.go | 12 ++ .../log_tailer/log_tailer_recovery_test.go | 12 ++ .../inputs/log_tailer/log_tailer_test.go | 12 ++ .../inputs/log_tailer/log_tailer_utils.go | 12 ++ .../log_tailer/log_tailer_utils_test.go | 12 ++ monitor/plugins/inputs/mysql/mysql_test.go | 12 ++ monitor/plugins/inputs/mysql/mysqld.go | 12 ++ monitor/plugins/inputs/mysql/table_input.go | 12 ++ .../plugins/inputs/mysql/table_input_test.go | 12 ++ monitor/plugins/inputs/net/connectivity.go | 12 ++ .../plugins/inputs/net/connectivity_test.go | 12 ++ .../inputs/nodeexporter/collect_item.go | 12 ++ .../inputs/nodeexporter/collect_item_linux.go | 12 ++ .../inputs/nodeexporter/node_exporter.go | 12 ++ .../inputs/nodeexporter/node_exporter_test.go | 12 ++ .../plugins/inputs/obcommon/connectivity.go | 12 ++ .../inputs/obcommon/connectivity_test.go | 12 ++ .../plugins/inputs/obcommon/oceanbase_test.go | 12 ++ .../inputs/oceanbase/log/error_log_input.go | 12 ++ .../plugins/inputs/oceanbase/log/file_info.go | 12 ++ .../inputs/oceanbase/log/file_info_darwin.go | 12 ++ .../inputs/oceanbase/log/file_info_linux.go | 12 ++ .../plugins/inputs/oceanbase/log/log_utils.go | 12 ++ monitor/plugins/inputs/ocp.go | 12 ++ monitor/plugins/inputs/process/process.go | 12 ++ .../plugins/inputs/process/process_test.go | 12 ++ .../plugins/inputs/prometheus/prometheus.go | 12 ++ .../inputs/prometheus/prometheus_test.go | 12 ++ .../outputs/alertmanager/alertmanager.go | 12 ++ monitor/plugins/outputs/all.go | 12 ++ monitor/plugins/outputs/es/es.go | 12 ++ monitor/plugins/outputs/es/es_test.go | 12 ++ monitor/plugins/outputs/ocp.go | 12 ++ .../plugins/outputs/pushhttp/http_sender.go | 12 ++ monitor/plugins/outputs/pushhttp/push_http.go | 12 ++ .../outputs/pushhttp/push_http_test.go | 12 ++ monitor/plugins/outputs/sls/sls_output.go | 12 ++ .../plugins/outputs/sls/sls_output_test.go | 12 ++ monitor/plugins/plugin.go | 12 ++ .../processors/aggregate/aggregator.go | 12 ++ .../processors/aggregate/aggregator_test.go | 12 ++ monitor/plugins/processors/all.go | 12 ++ .../processors/attr/attribute_operate.go | 12 ++ .../processors/attr/attribute_operate_test.go | 12 ++ monitor/plugins/processors/attr/operate.go | 12 ++ .../plugins/processors/attr/operate_test.go | 12 ++ .../processors/filter/exclude_filter.go | 12 ++ .../processors/filter/exclude_filter_test.go | 12 ++ .../plugins/processors/jointable/jointable.go | 12 ++ .../processors/jointable/jointable_test.go | 12 ++ .../plugins/processors/jointable/operate.go | 12 ++ .../processors/jointable/operate_test.go | 12 ++ .../plugins/processors/label/mount_label.go | 12 ++ .../processors/label/mount_label_test.go | 12 ++ monitor/plugins/processors/ocp.go | 12 ++ monitor/plugins/processors/retag/retag.go | 12 ++ .../plugins/processors/retag/retag_test.go | 12 ++ .../plugins/processors/slsmetric/slsmetric.go | 12 ++ .../processors/transformer/log_transformer.go | 12 ++ .../transformer/log_transformer_test.go | 12 ++ monitor/plugins/registry.go | 12 ++ monitor/utils/codec_utils.go | 12 ++ monitor/utils/codec_utils_test.go | 12 ++ monitor/utils/data_converter.go | 12 ++ monitor/utils/data_converter_test.go | 12 ++ rpm/change_version.sh | 12 ++ rpm/obagent-build.sh | 12 ++ stat/config.go | 12 ++ stat/labels.go | 12 ++ stat/metrics.go | 12 ++ tests/mockagent.go | 12 ++ tests/testutil/testutil.go | 12 ++ 326 files changed, 4021 insertions(+), 1 deletion(-) create mode 100644 LICENSE.txt diff --git a/LICENSE.txt b/LICENSE.txt new file mode 100644 index 0000000..47b5a03 --- /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 3773f98..a8b52e1 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 e5e21ca..edd46f1 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 81787e0..c7f634f 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 3cd4960..b775fb8 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 4861379..a205e8c 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 bc6279e..d5069f4 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 1b1dd1c..5d44e46 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 f847bf5..5532f8b 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 39f0261..2deb9e1 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 c309008..a6946d0 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 5943c15..ca73a1f 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 4cb5e89..22c5853 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 1dc2e5c..712387a 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 18d41c7..85b52ec 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 ef88441..52866e5 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 c71d2e1..34ee030 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 ed9a6e2..b876704 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 9117daf..a42cd55 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 143197c..286cf3f 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 f20b366..6a48fc2 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 d13ac73..f45857e 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 5bdbf8f..a9b800d 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 3613d14..102f52a 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 b7a05e2..32613ea 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 2b47dcb..2fc2265 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 b69e1ec..2925bda 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 b9dd3d8..93264d3 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 b497130..9dc2d6b 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 8de59c8..4866188 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 b1d8158..165c938 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 e8d8f13..3c1e824 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 cc58337..8a3196e 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 550ddd1..c6a462d 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 1b2a6d5..97d21a0 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 f719120..4769fab 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 259feb4..e9a7643 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 e212544..08697e1 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 ada604a..1b3cbaf 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 5d9fe33..1eb14ee 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 59a4764..109c32b 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 aadb69b..0e4911d 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 cd724b7..3e2ae8b 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 efcb41a..ef35592 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 e2ecea0..7159cd6 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 dbd0056..7979b8f 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 29eac70..bc153dd 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 2c5343b..8af3bd1 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 bfc2cc1..83568da 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 b480f0d..b05a1ba 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 d3459df..acbbe07 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 8fb6011..4009a0b 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 bbc29b3..f9780b2 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 cb81ed9..6a67132 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 67a6567..42f486c 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 9160e28..c53b748 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 b214dd0..d166dff 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 214e7fb..c225f4d 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 5fdee80..00a8a84 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 76b2209..625e633 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 985e2fb..5186ba2 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 a2616a7..11989c7 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 381a427..1f9db8e 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 f052151..1822e39 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 d07376e..af65412 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 e09cdb3..d5d193a 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 5e52721..46c3b03 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 6dfed23..c22a8fa 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 ffbae36..2da5d9f 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 793b728..9d4cc3a 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 04dce72..bdca2f9 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 eb14a51..4ab744f 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 7460507..a1829f1 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 26ca0ad..eb4cfb4 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 cd2dc76..cbbb547 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 96e6383..763d788 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 730db8a..8c650e2 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 dc6e70c..f1e6805 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 cbe0392..f18ff8b 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 db99b34..2ebaabb 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 469b26c..79990b3 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 ecd486d..1c91d7a 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 1e107e3..e403b31 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 f6ec263..8b7c806 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 3506a65..456eebc 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 7b1869c..5620abe 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 741b561..67225e4 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 d6610f8..760abaa 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 5daf3e4..e2da7e6 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 323500f..78ba0a2 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 16cd4f0..6b642a5 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 ae41310..6e0f597 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 1790d8d..45ffd87 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 04d538a..26da641 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 a52aad3..d0cfeb3 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 28f8ffd..aa05d03 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 1226760..55b03f0 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 31d4e28..688f345 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 08efe05..0aa3b7a 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 91325b0..ccd5e2a 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 7e3ecbf..9a1216b 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 02cb297..a608ca8 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 e389cb8..35bdb3c 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 7ab4300..09f9373 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 343d2cc..886fec1 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 900dfcd..5d4ff4f 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 89cf4dd..db7f158 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 153c39a..239b581 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 c9cf261..9bd2e31 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 ed48675..62884cb 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 5181f21..bad187f 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 e024f3a..e3fcc3b 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 f5390c2..d2d3c2c 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 af0acb5..f28afab 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 c979ee4..7bf56c5 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 2cddaa9..33c3a1b 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 47eebc7..7ff7fe9 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 28fc05a..7bf4b7f 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 8eea980..96df8b2 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 84b152e..dc54a6c 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 37f9ea5..442f3b3 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 9d2806b..e8a62ea 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 48ab599..d334516 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 4596738..b91154d 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 aba9bad..e436bfc 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 88d3026..6e6653f 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 c942f0d..cc49db6 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 db60b9b..3faf865 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 9125df2..9f757ea 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 b0c5af4..20bec2c 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 5fe245a..81e7fde 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 6782e56..6a13789 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 337ef7a..30443fc 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 09830cf..50c7c8e 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 18c5dd5..0981ab5 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 ea7e44e..1b4c116 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 3e20481..ed94148 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 4c9ff02..8057169 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 e5e2407..1098696 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 e89a68e..e857e64 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 c4290c0..200147e 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 a08fd24..a10c489 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 f0900db..08236e4 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 7267708..228923c 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 d5f75f0..da380b0 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 43c833d..4280047 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 caf5b86..8a31d32 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 f155cb5..0887165 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 2658c7a..5f606fa 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 143d28a..1427049 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 f659687..9ffd47f 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 1952935..b601a4e 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 daf0bb3..e091bad 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 0639da4..a390645 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 277b90d..db1110a 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 088b600..422be7d 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 9738aa8..23d1b5a 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 c42eb60..a15f800 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 14b1dc9..f151b05 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 ac69b04..b487b10 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 a673e0e..86f243d 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 3a21c9b..2661eef 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 e61cc85..ae5322c 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 43c64a8..36875f0 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 952499e..644e3f6 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 fe50ca9..3332eac 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 8644101..ed7bf58 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 3dfcfb5..cf3362f 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 e86b27c..dc6e5a8 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 963b329..8c27912 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 2e44f01..eda594c 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 106f713..08b8247 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 7b10cf1..0598413 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 a5404bc..4cae1a8 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 98eab0f..2af0195 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 3b84203..4350108 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 c1745aa..0e06110 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 8410436..28added 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 aba7920..1497771 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 26323e3..fe9a793 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 90c934c..6249e79 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 0aa498a..5e3e0cc 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 d54f7e2..6d4c498 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 c2ef2c7..38b5479 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 6c7dc42..6181e50 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 a02df9f..5872e7e 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 406c414..9fc830d 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 3104f9b..4f70487 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 dc53e44..f74baee 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 61af7b4..b5805bc 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 7be038c..ab8194e 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 0bfff27..2c1dd84 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 a083c8e..39009f5 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 24977bf..81f1ca7 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 e8d596e..7abdcdd 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 3441628..e64d563 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 01d888f..536dde3 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 a8705e3..462ad5b 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 d073e9d..d8d4cc6 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 47f3c21..bd2cc48 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 476e3d5..ad74f12 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 0d09dc2..d6775be 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 2551fb5..e80c465 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 b5bc065..49c6fe4 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 799538f..a6dbd04 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 e6c0a37..6f4eddf 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 4f53028..d07f8c2 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 6443def..c4f6f51 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 cb54a78..e192c48 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 c68e5e0..671e017 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 8239b2d..907a21e 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 104b9f0..b55704e 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 07b3a53..67a4571 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 3393599..d04cee3 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 4d2cc5d..08b48cd 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 628fe13..d168be2 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 48cd0ba..b1b6bfd 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 5d5be9f..4e39981 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 bf2f17a..46eaac8 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 6fa12a1..bbb0aae 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 eff8660..c397c4e 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 519c40e..b6728c3 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 2fff033..ea1099c 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 af60c10..3eccbe7 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 9860cd3..e9b5ef4 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 88715f3..fb4b462 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 91c9515..4b62096 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 d53fb2a..ea6f7e8 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 c2f8834..261898d 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 5e6b3db..1c747ae 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 0c55240..49edfdd 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 9c1ad3b..1c1ad3d 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 ea18d8e..7b8e0c7 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 63bbe79..9b86207 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 c9bd25c..f03083b 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 adc6ab7..cb08548 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 751f775..6aeb47c 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 519b492..758962a 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 96c6b47..32e7464 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 cf96739..02a60cc 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 201faef..d52668b 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 f701664..73f67ee 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 5fd6229..c011d7d 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 f7956e1..0618753 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 f8c2388..ebbbbb9 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 f6b74f4..8968b9b 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 56cecea..4c3fe9b 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 8f042de..454f00e 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 fa37d91..2e47c6d 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 5ecbb99..0642851 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 24546bc..09c4bad 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 e03caf9..0916f9d 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 796366d..d96d106 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 12437ef..69e9bba 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 c747b48..cced4a7 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 4245ff8..115a80a 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 3b0dbd4..a5fb542 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 532c79d..7ef4647 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 535c674..2367ed7 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 8a6004f..27a51cd 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 134f13d..36ff2c4 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 c8f9da7..d769d4d 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 1e3e102..bcc5560 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 49ff681..d456434 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 dfec052..27f36d7 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 3b9c423..955ef42 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 b77dfbb..69e751d 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 a7c5a19..0bc3b2c 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 231c70c..52ecbbc 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 f4b1de6..3be6e36 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 2569313..0536596 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 7cd4ec1..badf909 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 4490772..1e447a7 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 913c438..ce19c6f 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 340dca4..3ebcef2 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 bee62cb..f840678 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 0315bd9..bd5fac7 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 7792e3c..c3cfde6 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 72e90bc..76a7345 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 031a5ee..0be7702 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 2a13344..f477517 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 0c9f779..bc4855d 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 923a291..0c4e8f2 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 2804977..5dd35b0 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 1c791c2..103298b 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 22a626b..1cff2a7 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 08af6a6..67de13b 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 7ed52a5..c6b1dca 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 5c01501..c3ceeed 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 3387059..5b9511b 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 6d2e15b..7b010be 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 669e363..22edd2b 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 23d70ae..afd50a4 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 1ddd80d..b055c31 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 362f14a..ecc3118 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 b93fdc7..51382d0 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 1a14dc2..4c3e98c 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 a6cf257..0cc1cfd 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 719f749..61e4489 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 797d138..590c269 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 b7ce6aa..e983657 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 a2ea11b..1b6c768 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 022d2d3..39621e6 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 1735776..16698fb 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 5bdab61..a1fc6f8 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 61f543c..aca0442 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 732d75c..0e8e18c 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 cecfc13..a1eddfb 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 88f83e5..86107d7 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 60e0e37..aa170c4 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 db494e8..3b60a39 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 0bf6f4b..2d01291 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 41d6300..cbc7aa7 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 266a88a..cde8d1a 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 b330692..dd91c73 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 9c740c3..a1bae15 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 d284c60..f38f8be 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 e97622c..7027d9b 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 f3e04bd..26309b2 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 92c463c..1c9eb9f 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 06725af..782e62c 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 ac53329..fe974f2 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 e32c137..a88a5f5 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 f68f1fd..ffa60c4 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 f8b2031..94e9bf2 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 f7349d1..472fc49 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 ( -- GitLab