From 15c37f99e77221da13cce8b9ec12cfc21a345ff7 Mon Sep 17 00:00:00 2001 From: zzy987 <67889264+zzy987@users.noreply.github.com> Date: Wed, 1 Sep 2021 19:36:29 +0800 Subject: [PATCH] chore: add copyright (#593) * chore: add copyright Signed-off-by: zzy987 <67889264+zzy987@users.noreply.github.com> * chore: ci Signed-off-by: zzy987 <67889264+zzy987@users.noreply.github.com> --- .../supervisor/cdn/storage/disk/disk_test.go | 16 ++++++++++++++++ manager/model/oauth.go | 16 ++++++++++++++++ pkg/rpc/manager/client/client.go | 16 ++++++++++++++++ pkg/rpc/server_listen.go | 16 ++++++++++++++++ .../hdfsprotocol/hdfs_source_client_test.go | 16 ++++++++++++++++ scheduler/job/job.go | 16 ++++++++++++++++ test/e2e/e2eutil/exec.go | 16 ++++++++++++++++ test/e2e/e2eutil/file_server.go | 16 ++++++++++++++++ test/e2e/manager/constants.go | 16 ++++++++++++++++ test/e2e/manager/preheat.go | 16 ++++++++++++++++ 10 files changed, 160 insertions(+) diff --git a/cdnsystem/supervisor/cdn/storage/disk/disk_test.go b/cdnsystem/supervisor/cdn/storage/disk/disk_test.go index b9048efe4..8143dcfff 100644 --- a/cdnsystem/supervisor/cdn/storage/disk/disk_test.go +++ b/cdnsystem/supervisor/cdn/storage/disk/disk_test.go @@ -1,3 +1,19 @@ +/* + * Copyright 2020 The Dragonfly Authors + * + * 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, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package disk import ( diff --git a/manager/model/oauth.go b/manager/model/oauth.go index f9a240548..a7cd8d8f4 100644 --- a/manager/model/oauth.go +++ b/manager/model/oauth.go @@ -1,3 +1,19 @@ +/* + * Copyright 2020 The Dragonfly Authors + * + * 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, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package model type Oauth struct { diff --git a/pkg/rpc/manager/client/client.go b/pkg/rpc/manager/client/client.go index 39f661143..4ff56e91c 100644 --- a/pkg/rpc/manager/client/client.go +++ b/pkg/rpc/manager/client/client.go @@ -1,3 +1,19 @@ +/* + * Copyright 2020 The Dragonfly Authors + * + * 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, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package client import ( diff --git a/pkg/rpc/server_listen.go b/pkg/rpc/server_listen.go index 03266ccfb..b67c68a76 100644 --- a/pkg/rpc/server_listen.go +++ b/pkg/rpc/server_listen.go @@ -1,3 +1,19 @@ +/* + * Copyright 2020 The Dragonfly Authors + * + * 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, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package rpc import ( diff --git a/pkg/source/hdfsprotocol/hdfs_source_client_test.go b/pkg/source/hdfsprotocol/hdfs_source_client_test.go index 87d5dddc3..1473574d4 100644 --- a/pkg/source/hdfsprotocol/hdfs_source_client_test.go +++ b/pkg/source/hdfsprotocol/hdfs_source_client_test.go @@ -1,3 +1,19 @@ +/* + * Copyright 2020 The Dragonfly Authors + * + * 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, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package hdfsprotocol import ( diff --git a/scheduler/job/job.go b/scheduler/job/job.go index 625b512b2..99c2aa19c 100644 --- a/scheduler/job/job.go +++ b/scheduler/job/job.go @@ -1,3 +1,19 @@ +/* + * Copyright 2020 The Dragonfly Authors + * + * 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, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package job import ( diff --git a/test/e2e/e2eutil/exec.go b/test/e2e/e2eutil/exec.go index 904962dee..c30c0341f 100644 --- a/test/e2e/e2eutil/exec.go +++ b/test/e2e/e2eutil/exec.go @@ -1,3 +1,19 @@ +/* + * Copyright 2020 The Dragonfly Authors + * + * 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, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package e2eutil import ( diff --git a/test/e2e/e2eutil/file_server.go b/test/e2e/e2eutil/file_server.go index c5aed60ef..d1e638be9 100644 --- a/test/e2e/e2eutil/file_server.go +++ b/test/e2e/e2eutil/file_server.go @@ -1,3 +1,19 @@ +/* + * Copyright 2020 The Dragonfly Authors + * + * 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, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package e2eutil import "fmt" diff --git a/test/e2e/manager/constants.go b/test/e2e/manager/constants.go index 7b97c6de2..292e9880f 100644 --- a/test/e2e/manager/constants.go +++ b/test/e2e/manager/constants.go @@ -1,3 +1,19 @@ +/* + * Copyright 2020 The Dragonfly Authors + * + * 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, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package manager const ( diff --git a/test/e2e/manager/preheat.go b/test/e2e/manager/preheat.go index 3bbb4b50a..a7ed36401 100644 --- a/test/e2e/manager/preheat.go +++ b/test/e2e/manager/preheat.go @@ -1,3 +1,19 @@ +/* + * Copyright 2020 The Dragonfly Authors + * + * 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, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package manager import (