From a0770b689409ed38ba66e15a6e83e673d4f9675d Mon Sep 17 00:00:00 2001 From: Yujie Xia Date: Mon, 18 Oct 2021 17:50:43 +0800 Subject: [PATCH] *: add missing copyrights (#2231) --- cmd/dm-portal/main.go | 13 +++++++++++++ dm/config/checker_config.go | 13 +++++++++++++ dm/config/expression_filter.go | 13 +++++++++++++ dm/config/source_config.go | 13 +++++++++++++ dm/pb/hide_password.go | 13 +++++++++++++ dm/portal/api.go | 13 +++++++++++++ dm/portal/api_test.go | 13 +++++++++++++ dm/portal/config.go | 13 +++++++++++++ dm/portal/config_test.go | 13 +++++++++++++ monitoring/dashboards/dashboard.go | 13 +++++++++++++ openapi/logger.go | 13 +++++++++++++ openapi/logger_test.go | 13 +++++++++++++ openapi/swaggerui.go | 13 +++++++++++++ openapi/swaggerui_test.go | 13 +++++++++++++ openapi/task_test.go | 13 +++++++++++++ pkg/binlog/status.go | 13 +++++++++++++ pkg/binlog/status_test.go | 13 +++++++++++++ pkg/conn/mockdb.go | 13 +++++++++++++ pkg/printinit/noimport.go | 13 +++++++++++++ syncer/dbconn/db.go | 13 +++++++++++++ syncer/expr_filter_group.go | 13 +++++++++++++ syncer/status_test.go | 13 +++++++++++++ syncer/streamer_controller_test.go | 13 +++++++++++++ tests/_utils/send_lark_notify.go | 13 +++++++++++++ 24 files changed, 312 insertions(+) diff --git a/cmd/dm-portal/main.go b/cmd/dm-portal/main.go index 7b99843643..44eee7b83a 100644 --- a/cmd/dm-portal/main.go +++ b/cmd/dm-portal/main.go @@ -1,3 +1,16 @@ +// Copyright 2021 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package main import ( diff --git a/dm/config/checker_config.go b/dm/config/checker_config.go index 0b3e961190..d7934a8a5b 100644 --- a/dm/config/checker_config.go +++ b/dm/config/checker_config.go @@ -1,3 +1,16 @@ +// Copyright 2021 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package config import ( diff --git a/dm/config/expression_filter.go b/dm/config/expression_filter.go index e12f40c204..8365fcdc76 100644 --- a/dm/config/expression_filter.go +++ b/dm/config/expression_filter.go @@ -1,3 +1,16 @@ +// Copyright 2021 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package config // TODO: move related struct to tidb-tools diff --git a/dm/config/source_config.go b/dm/config/source_config.go index bcd873f3aa..30813af3d9 100644 --- a/dm/config/source_config.go +++ b/dm/config/source_config.go @@ -1,3 +1,16 @@ +// Copyright 2021 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package config import ( diff --git a/dm/pb/hide_password.go b/dm/pb/hide_password.go index 6e10847a27..840b697f9b 100644 --- a/dm/pb/hide_password.go +++ b/dm/pb/hide_password.go @@ -1,3 +1,16 @@ +// Copyright 2021 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package pb import ( diff --git a/dm/portal/api.go b/dm/portal/api.go index c76a818713..5534d1393a 100644 --- a/dm/portal/api.go +++ b/dm/portal/api.go @@ -1,3 +1,16 @@ +// Copyright 2021 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package portal import ( diff --git a/dm/portal/api_test.go b/dm/portal/api_test.go index 87f7c6b4c8..313dbaafc3 100644 --- a/dm/portal/api_test.go +++ b/dm/portal/api_test.go @@ -1,3 +1,16 @@ +// Copyright 2021 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package portal import ( diff --git a/dm/portal/config.go b/dm/portal/config.go index 27b2610273..dad2e2cc62 100644 --- a/dm/portal/config.go +++ b/dm/portal/config.go @@ -1,3 +1,16 @@ +// Copyright 2021 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package portal import ( diff --git a/dm/portal/config_test.go b/dm/portal/config_test.go index 8c291ec5da..0271506926 100644 --- a/dm/portal/config_test.go +++ b/dm/portal/config_test.go @@ -1,3 +1,16 @@ +// Copyright 2021 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package portal import ( diff --git a/monitoring/dashboards/dashboard.go b/monitoring/dashboards/dashboard.go index 9fc97b7271..fc182e2be3 100644 --- a/monitoring/dashboards/dashboard.go +++ b/monitoring/dashboards/dashboard.go @@ -1,3 +1,16 @@ +// Copyright 2021 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package main import ( diff --git a/openapi/logger.go b/openapi/logger.go index 761390462d..c581569bd2 100644 --- a/openapi/logger.go +++ b/openapi/logger.go @@ -1,3 +1,16 @@ +// Copyright 2021 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package openapi import ( diff --git a/openapi/logger_test.go b/openapi/logger_test.go index 6735229c9d..3e37ec9bc8 100644 --- a/openapi/logger_test.go +++ b/openapi/logger_test.go @@ -1,3 +1,16 @@ +// Copyright 2021 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package openapi import ( diff --git a/openapi/swaggerui.go b/openapi/swaggerui.go index c4e2387497..a02130253e 100644 --- a/openapi/swaggerui.go +++ b/openapi/swaggerui.go @@ -1,3 +1,16 @@ +// Copyright 2021 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package openapi import ( diff --git a/openapi/swaggerui_test.go b/openapi/swaggerui_test.go index e05a047ce7..129c7e0636 100644 --- a/openapi/swaggerui_test.go +++ b/openapi/swaggerui_test.go @@ -1,3 +1,16 @@ +// Copyright 2021 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package openapi import ( diff --git a/openapi/task_test.go b/openapi/task_test.go index 46f5f2d807..ab043e04f7 100644 --- a/openapi/task_test.go +++ b/openapi/task_test.go @@ -1,3 +1,16 @@ +// Copyright 2021 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package openapi import ( diff --git a/pkg/binlog/status.go b/pkg/binlog/status.go index fee715216e..39d548e976 100644 --- a/pkg/binlog/status.go +++ b/pkg/binlog/status.go @@ -1,3 +1,16 @@ +// Copyright 2021 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package binlog import ( diff --git a/pkg/binlog/status_test.go b/pkg/binlog/status_test.go index df85ade1a3..e69de61b5d 100644 --- a/pkg/binlog/status_test.go +++ b/pkg/binlog/status_test.go @@ -1,3 +1,16 @@ +// Copyright 2021 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package binlog import ( diff --git a/pkg/conn/mockdb.go b/pkg/conn/mockdb.go index 8fa07b688d..99c0fbb4d8 100644 --- a/pkg/conn/mockdb.go +++ b/pkg/conn/mockdb.go @@ -1,3 +1,16 @@ +// Copyright 2021 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package conn import ( diff --git a/pkg/printinit/noimport.go b/pkg/printinit/noimport.go index 76fa073f04..9e22bb36bd 100644 --- a/pkg/printinit/noimport.go +++ b/pkg/printinit/noimport.go @@ -1,3 +1,16 @@ +// Copyright 2021 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package printinit // we expect this helper function to be called at very early stage of initialization, because this package has no diff --git a/syncer/dbconn/db.go b/syncer/dbconn/db.go index 17b21b4f15..e92b1cbe14 100644 --- a/syncer/dbconn/db.go +++ b/syncer/dbconn/db.go @@ -1,3 +1,16 @@ +// Copyright 2021 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package dbconn import ( diff --git a/syncer/expr_filter_group.go b/syncer/expr_filter_group.go index c6eae4dd8f..7b7d7c3782 100644 --- a/syncer/expr_filter_group.go +++ b/syncer/expr_filter_group.go @@ -1,3 +1,16 @@ +// Copyright 2021 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package syncer import ( diff --git a/syncer/status_test.go b/syncer/status_test.go index fa0ed4fa65..c172d7ca6d 100644 --- a/syncer/status_test.go +++ b/syncer/status_test.go @@ -1,3 +1,16 @@ +// Copyright 2021 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package syncer import ( diff --git a/syncer/streamer_controller_test.go b/syncer/streamer_controller_test.go index f9c34cd320..0b49ff937b 100644 --- a/syncer/streamer_controller_test.go +++ b/syncer/streamer_controller_test.go @@ -1,3 +1,16 @@ +// Copyright 2021 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package syncer import ( diff --git a/tests/_utils/send_lark_notify.go b/tests/_utils/send_lark_notify.go index 5b7b387914..ccf8ac0cb1 100644 --- a/tests/_utils/send_lark_notify.go +++ b/tests/_utils/send_lark_notify.go @@ -1,3 +1,16 @@ +// Copyright 2021 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + package main import (