From 77e0150afe0665438bc75e2bc6b2caa72aeb46c8 Mon Sep 17 00:00:00 2001 From: Tomofumi Hayashi Date: Wed, 2 Nov 2022 21:49:57 +0900 Subject: [PATCH] Fix license boilerplate/copyright in go files (#947) This change fix license boilerplate and its copyright. The updated year in copyright is based on the file creation date. If older than 2021, added copyright is transfered to multus authors from Intel corporation as the multus code was officially transfered to Kubernetes Networking Plumbing Working Group on March 11, 2021. --- cmd/multus-daemon/main.go | 1 - cmd/multus-shim/main.go | 2 +- cmd/multus/main.go | 3 ++- pkg/checkpoint/checkpoint.go | 2 +- pkg/checkpoint/checkpoint_test.go | 15 +++++++++++++++ pkg/checkpoint/doc.go | 3 ++- pkg/k8sclient/doc.go | 3 ++- pkg/k8sclient/k8sclient.go | 3 ++- pkg/k8sclient/k8sclient_test.go | 4 ++-- pkg/kubeletclient/doc.go | 3 ++- pkg/kubeletclient/kubeletclient.go | 15 +++++++++++++++ pkg/kubeletclient/kubeletclient_test.go | 15 +++++++++++++++ pkg/logging/doc.go | 3 ++- pkg/logging/logging.go | 1 + pkg/logging/logging_test.go | 1 + pkg/multus/doc.go | 3 ++- pkg/multus/multus.go | 3 ++- pkg/multus/multus_cni020_test.go | 3 +-- pkg/multus/multus_cni040_test.go | 3 +-- pkg/multus/multus_cni100_test.go | 3 +-- pkg/multus/multus_suite_test.go | 2 +- pkg/netutils/doc.go | 3 ++- pkg/netutils/netutils.go | 4 ++-- pkg/netutils/netutils_test.go | 4 ++-- pkg/server/api/api.go | 1 - pkg/server/api/doc.go | 1 + pkg/server/api/shim.go | 1 - pkg/server/api/socket.go | 3 +-- pkg/server/config/config_suite_test.go | 3 +-- pkg/server/config/doc.go | 3 ++- pkg/server/config/generator.go | 1 - pkg/server/config/generator_test.go | 1 - pkg/server/config/manager.go | 1 - pkg/server/config/manager_test.go | 1 - pkg/server/doc.go | 3 ++- pkg/server/exec_chroot.go | 2 +- pkg/server/exec_chroot_test.go | 3 +-- pkg/server/server.go | 3 +-- pkg/server/server_suite_test.go | 3 +-- pkg/server/thick_cni_test.go | 3 +-- pkg/server/types.go | 14 ++++++++++++++ pkg/testing/doc.go | 3 ++- pkg/testing/testing.go | 4 ++-- pkg/types/conf.go | 4 ++-- pkg/types/conf_test.go | 4 ++-- pkg/types/doc.go | 3 ++- pkg/types/types.go | 4 ++-- 47 files changed, 115 insertions(+), 56 deletions(-) diff --git a/cmd/multus-daemon/main.go b/cmd/multus-daemon/main.go index 2095908d0..2ec6e3a28 100644 --- a/cmd/multus-daemon/main.go +++ b/cmd/multus-daemon/main.go @@ -11,7 +11,6 @@ // 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. -// // This binary works as a server that receives requests from multus-shim // CNI plugin and creates network interface for kubernets pods. diff --git a/cmd/multus-shim/main.go b/cmd/multus-shim/main.go index 617af7ae3..606622d95 100644 --- a/cmd/multus-shim/main.go +++ b/cmd/multus-shim/main.go @@ -1,4 +1,4 @@ -// Copyright (c) 2021 Multus Authors +// Copyright (c) 2022 Multus Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/cmd/multus/main.go b/cmd/multus/main.go index 42f721ca3..ce8cbdfa3 100644 --- a/cmd/multus/main.go +++ b/cmd/multus/main.go @@ -1,4 +1,5 @@ -// Copyright (c) 2017 Intel Corporation +// Copyright (c) 2016 Intel Corporation +// Copyright (c) 2021 Multus Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/pkg/checkpoint/checkpoint.go b/pkg/checkpoint/checkpoint.go index e9255d6ab..ea6cdd0b4 100644 --- a/pkg/checkpoint/checkpoint.go +++ b/pkg/checkpoint/checkpoint.go @@ -1,4 +1,5 @@ // Copyright (c) 2018 Intel Corporation +// Copyright (c) 2021 Multus Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -11,7 +12,6 @@ // 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 checkpoint diff --git a/pkg/checkpoint/checkpoint_test.go b/pkg/checkpoint/checkpoint_test.go index eea15515e..fad255687 100644 --- a/pkg/checkpoint/checkpoint_test.go +++ b/pkg/checkpoint/checkpoint_test.go @@ -1,3 +1,18 @@ +// Copyright (c) 2018 Intel Corporation +// Copyright (c) 2021 Multus 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 checkpoint import ( diff --git a/pkg/checkpoint/doc.go b/pkg/checkpoint/doc.go index b4c9052d9..42569f176 100644 --- a/pkg/checkpoint/doc.go +++ b/pkg/checkpoint/doc.go @@ -1,4 +1,4 @@ -// Copyright (c) 2021 Multus Authors +// Copyright (c) 2022 Multus Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -14,4 +14,5 @@ // Package checkpoint is the package that contains the libraries that manipulates kubelet's // checkpoint API + package checkpoint diff --git a/pkg/k8sclient/doc.go b/pkg/k8sclient/doc.go index 9c8df4b10..ef13c0813 100644 --- a/pkg/k8sclient/doc.go +++ b/pkg/k8sclient/doc.go @@ -1,4 +1,4 @@ -// Copyright (c) 2021 Multus Authors +// Copyright (c) 2022 Multus Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -13,4 +13,5 @@ // limitations under the License. // Package k8sclient is the package that contains the Kubernetes client libraries. + package k8sclient diff --git a/pkg/k8sclient/k8sclient.go b/pkg/k8sclient/k8sclient.go index 5be2b3fc6..a8f29e4af 100644 --- a/pkg/k8sclient/k8sclient.go +++ b/pkg/k8sclient/k8sclient.go @@ -1,4 +1,5 @@ -// Copyright (c) 2017 Intel Corporation +// Copyright (c) 2018 Intel Corporation +// Copyright (c) 2021 Multus Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/pkg/k8sclient/k8sclient_test.go b/pkg/k8sclient/k8sclient_test.go index 86b2522f7..7ad616075 100644 --- a/pkg/k8sclient/k8sclient_test.go +++ b/pkg/k8sclient/k8sclient_test.go @@ -1,4 +1,5 @@ -// Copyright (c) 2017 Intel Corporation +// Copyright (c) 2018 Intel Corporation +// Copyright (c) 2021 Multus Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -11,7 +12,6 @@ // 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 k8sclient diff --git a/pkg/kubeletclient/doc.go b/pkg/kubeletclient/doc.go index 2b020cb3f..9d01d76ff 100644 --- a/pkg/kubeletclient/doc.go +++ b/pkg/kubeletclient/doc.go @@ -1,4 +1,4 @@ -// Copyright (c) 2021 Multus Authors +// Copyright (c) 2022 Multus Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -14,4 +14,5 @@ // Package kubeletclient is the package that contains the kubelet's libraries that // controls podresource API in kubelet + package kubeletclient diff --git a/pkg/kubeletclient/kubeletclient.go b/pkg/kubeletclient/kubeletclient.go index 4c89bd852..4c19edb30 100644 --- a/pkg/kubeletclient/kubeletclient.go +++ b/pkg/kubeletclient/kubeletclient.go @@ -1,3 +1,18 @@ +// Copyright (c) 2019 Intel Corporation +// Copyright (c) 2021 Multus 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 kubeletclient import ( diff --git a/pkg/kubeletclient/kubeletclient_test.go b/pkg/kubeletclient/kubeletclient_test.go index 6d0f2ec3f..3a3eea89c 100644 --- a/pkg/kubeletclient/kubeletclient_test.go +++ b/pkg/kubeletclient/kubeletclient_test.go @@ -1,3 +1,18 @@ +// Copyright (c) 2019 Intel Corporation +// Copyright (c) 2021 Multus 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 kubeletclient import ( diff --git a/pkg/logging/doc.go b/pkg/logging/doc.go index 1e3fe3fec..4ab63a47c 100644 --- a/pkg/logging/doc.go +++ b/pkg/logging/doc.go @@ -1,4 +1,4 @@ -// Copyright (c) 2021 Multus Authors +// Copyright (c) 2022 Multus Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -13,4 +13,5 @@ // limitations under the License. // Package logging is the package that contains logging library. + package logging diff --git a/pkg/logging/logging.go b/pkg/logging/logging.go index cda19a729..7b6730e7c 100644 --- a/pkg/logging/logging.go +++ b/pkg/logging/logging.go @@ -1,4 +1,5 @@ // Copyright (c) 2018 Intel Corporation +// Copyright (c) 2021 Multus Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/pkg/logging/logging_test.go b/pkg/logging/logging_test.go index 0c192a6f2..06816273f 100644 --- a/pkg/logging/logging_test.go +++ b/pkg/logging/logging_test.go @@ -1,4 +1,5 @@ // Copyright (c) 2018 Intel Corporation +// Copyright (c) 2021 Multus Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/pkg/multus/doc.go b/pkg/multus/doc.go index a2c83e62a..a3c212c2b 100644 --- a/pkg/multus/doc.go +++ b/pkg/multus/doc.go @@ -1,4 +1,4 @@ -// Copyright (c) 2021 Multus Authors +// Copyright (c) 2022 Multus Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -14,4 +14,5 @@ // Package multus is the package that contains main multus function, which // manipulates CNI request for delegate plugins. + package multus diff --git a/pkg/multus/multus.go b/pkg/multus/multus.go index d11a2db7c..fbac33fd4 100644 --- a/pkg/multus/multus.go +++ b/pkg/multus/multus.go @@ -1,4 +1,5 @@ -// Copyright (c) 2017 Intel Corporation +// Copyright (c) 2016 Intel Corporation +// Copyright (c) 2021 Multus Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/pkg/multus/multus_cni020_test.go b/pkg/multus/multus_cni020_test.go index 0f92423ee..511509f1c 100644 --- a/pkg/multus/multus_cni020_test.go +++ b/pkg/multus/multus_cni020_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2017 Intel Corporation +// Copyright (c) 2022 Multus Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -11,7 +11,6 @@ // 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 multus diff --git a/pkg/multus/multus_cni040_test.go b/pkg/multus/multus_cni040_test.go index 1455c3f84..f45413718 100644 --- a/pkg/multus/multus_cni040_test.go +++ b/pkg/multus/multus_cni040_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2017 Intel Corporation +// Copyright (c) 2022 Multus Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -11,7 +11,6 @@ // 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 multus diff --git a/pkg/multus/multus_cni100_test.go b/pkg/multus/multus_cni100_test.go index 780b8bf4e..efdc80981 100644 --- a/pkg/multus/multus_cni100_test.go +++ b/pkg/multus/multus_cni100_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2022 Kubernetes Network Plumbing Working Group +// Copyright (c) 2022 Multus Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -11,7 +11,6 @@ // 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 multus diff --git a/pkg/multus/multus_suite_test.go b/pkg/multus/multus_suite_test.go index 7612633c9..4822c1654 100644 --- a/pkg/multus/multus_suite_test.go +++ b/pkg/multus/multus_suite_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2021 Kubernetes Network Plumbing Working Group +// Copyright (c) 2022 Multus Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/pkg/netutils/doc.go b/pkg/netutils/doc.go index 77b1054f4..7df3fdee2 100644 --- a/pkg/netutils/doc.go +++ b/pkg/netutils/doc.go @@ -1,4 +1,4 @@ -// Copyright (c) 2021 Multus Authors +// Copyright (c) 2022 Multus Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -13,4 +13,5 @@ // limitations under the License. // Package netutils is the package that contains network related utilities. + package netutils diff --git a/pkg/netutils/netutils.go b/pkg/netutils/netutils.go index 8b2786b6a..0aa5925c6 100644 --- a/pkg/netutils/netutils.go +++ b/pkg/netutils/netutils.go @@ -1,4 +1,5 @@ -// Copyright (c) 2019 Multus Authors +// Copyright (c) 2019 Intel Corporation +// Copyright (c) 2021 Multus Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -11,7 +12,6 @@ // 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 netutils diff --git a/pkg/netutils/netutils_test.go b/pkg/netutils/netutils_test.go index d8fcaf6b4..e41f9bda5 100644 --- a/pkg/netutils/netutils_test.go +++ b/pkg/netutils/netutils_test.go @@ -1,4 +1,5 @@ -// Copyright (c) 2019 Multus Authors +// Copyright (c) 2019 Intel Corporation +// Copyright (c) 2021 Multus Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -11,7 +12,6 @@ // 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 netutils diff --git a/pkg/server/api/api.go b/pkg/server/api/api.go index d16710e19..67f553225 100644 --- a/pkg/server/api/api.go +++ b/pkg/server/api/api.go @@ -11,7 +11,6 @@ // 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 api diff --git a/pkg/server/api/doc.go b/pkg/server/api/doc.go index 0cf94ac08..cd17d8fa8 100644 --- a/pkg/server/api/doc.go +++ b/pkg/server/api/doc.go @@ -13,4 +13,5 @@ // limitations under the License. // Package api is the package that contains thick pluigin's server apis. + package api diff --git a/pkg/server/api/shim.go b/pkg/server/api/shim.go index 8a6112b5a..167723261 100644 --- a/pkg/server/api/shim.go +++ b/pkg/server/api/shim.go @@ -11,7 +11,6 @@ // 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 api diff --git a/pkg/server/api/socket.go b/pkg/server/api/socket.go index 220c12cb0..b8049fe92 100644 --- a/pkg/server/api/socket.go +++ b/pkg/server/api/socket.go @@ -1,4 +1,4 @@ -// Copyright (c) 2021 Multus Authors +// Copyright (c) 2022 Multus Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -11,7 +11,6 @@ // 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 api diff --git a/pkg/server/config/config_suite_test.go b/pkg/server/config/config_suite_test.go index 67c86a5d3..f50de8f80 100644 --- a/pkg/server/config/config_suite_test.go +++ b/pkg/server/config/config_suite_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2021 Multus Authors +// Copyright (c) 2022 Multus Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -11,7 +11,6 @@ // 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 config diff --git a/pkg/server/config/doc.go b/pkg/server/config/doc.go index 3bbe004bc..dbe3b0a11 100644 --- a/pkg/server/config/doc.go +++ b/pkg/server/config/doc.go @@ -1,4 +1,4 @@ -// Copyright (c) 2021 Multus Authors +// Copyright (c) 2022 Multus Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -14,4 +14,5 @@ // Package config is the package that contains the libraries that operates // CNI config files + package config diff --git a/pkg/server/config/generator.go b/pkg/server/config/generator.go index 8c2ba07c0..71444c960 100644 --- a/pkg/server/config/generator.go +++ b/pkg/server/config/generator.go @@ -11,7 +11,6 @@ // 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 config diff --git a/pkg/server/config/generator_test.go b/pkg/server/config/generator_test.go index 0662547f5..da6b8089d 100644 --- a/pkg/server/config/generator_test.go +++ b/pkg/server/config/generator_test.go @@ -11,7 +11,6 @@ // 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 config diff --git a/pkg/server/config/manager.go b/pkg/server/config/manager.go index fddebf880..43d4f3778 100644 --- a/pkg/server/config/manager.go +++ b/pkg/server/config/manager.go @@ -11,7 +11,6 @@ // 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 config diff --git a/pkg/server/config/manager_test.go b/pkg/server/config/manager_test.go index 5c586aa58..ca376796b 100644 --- a/pkg/server/config/manager_test.go +++ b/pkg/server/config/manager_test.go @@ -11,7 +11,6 @@ // 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 config diff --git a/pkg/server/doc.go b/pkg/server/doc.go index 2ceb0c9cf..c7a805639 100644 --- a/pkg/server/doc.go +++ b/pkg/server/doc.go @@ -1,4 +1,4 @@ -// Copyright (c) 2021 Multus Authors +// Copyright (c) 2022 Multus Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -13,4 +13,5 @@ // limitations under the License. // Package server is the package that contains thick pluigin's server libraries. + package server diff --git a/pkg/server/exec_chroot.go b/pkg/server/exec_chroot.go index e2fcf0a71..3f84c5ed8 100644 --- a/pkg/server/exec_chroot.go +++ b/pkg/server/exec_chroot.go @@ -1,4 +1,4 @@ -// Copyright (c) 2021 Multus Authors +// Copyright (c) 2022 Multus Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/pkg/server/exec_chroot_test.go b/pkg/server/exec_chroot_test.go index 0b9a08933..8345615a1 100644 --- a/pkg/server/exec_chroot_test.go +++ b/pkg/server/exec_chroot_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2021 Multus Authors +// Copyright (c) 2022 Multus Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -11,7 +11,6 @@ // 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 server diff --git a/pkg/server/server.go b/pkg/server/server.go index 3db450849..09b780dba 100644 --- a/pkg/server/server.go +++ b/pkg/server/server.go @@ -1,4 +1,4 @@ -// Copyright (c) 2021 Multus Authors +// Copyright (c) 2022 Multus Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -11,7 +11,6 @@ // 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 server diff --git a/pkg/server/server_suite_test.go b/pkg/server/server_suite_test.go index 3c818006f..6fd454f59 100644 --- a/pkg/server/server_suite_test.go +++ b/pkg/server/server_suite_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2021 Multus Authors +// Copyright (c) 2022 Multus Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -11,7 +11,6 @@ // 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 server diff --git a/pkg/server/thick_cni_test.go b/pkg/server/thick_cni_test.go index 397decdd3..4b2794665 100644 --- a/pkg/server/thick_cni_test.go +++ b/pkg/server/thick_cni_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2021 Multus Authors +// Copyright (c) 2022 Multus Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -11,7 +11,6 @@ // 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 server diff --git a/pkg/server/types.go b/pkg/server/types.go index 5c3dcc31c..72fbb9628 100644 --- a/pkg/server/types.go +++ b/pkg/server/types.go @@ -1,3 +1,17 @@ +// Copyright (c) 2022 Multus 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 server import ( diff --git a/pkg/testing/doc.go b/pkg/testing/doc.go index 828906588..02812e196 100644 --- a/pkg/testing/doc.go +++ b/pkg/testing/doc.go @@ -1,4 +1,4 @@ -// Copyright (c) 2021 Multus Authors +// Copyright (c) 2022 Multus Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -13,4 +13,5 @@ // limitations under the License. // Package testing is the package that contains unit-test libraries. + package testing diff --git a/pkg/testing/testing.go b/pkg/testing/testing.go index 9c82260d8..98019373c 100644 --- a/pkg/testing/testing.go +++ b/pkg/testing/testing.go @@ -1,4 +1,5 @@ -// Copyright (c) 2017 Intel Corporation +// Copyright (c) 2018 Intel Corporation +// Copyright (c) 2021 Multus Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -11,7 +12,6 @@ // 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 testing diff --git a/pkg/types/conf.go b/pkg/types/conf.go index c5bfd35d1..2afc9fcac 100644 --- a/pkg/types/conf.go +++ b/pkg/types/conf.go @@ -1,4 +1,5 @@ -// Copyright (c) 2017 Intel Corporation +// Copyright (c) 2018 Intel Corporation +// Copyright (c) 2021 Multus Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -11,7 +12,6 @@ // 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 types diff --git a/pkg/types/conf_test.go b/pkg/types/conf_test.go index e9c511bd2..157f9c561 100644 --- a/pkg/types/conf_test.go +++ b/pkg/types/conf_test.go @@ -1,4 +1,5 @@ -// Copyright (c) 2017 Intel Corporation +// Copyright (c) 2018 Intel Corporation +// Copyright (c) 2021 Multus Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -11,7 +12,6 @@ // 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 types diff --git a/pkg/types/doc.go b/pkg/types/doc.go index 010cbe129..329916d4b 100644 --- a/pkg/types/doc.go +++ b/pkg/types/doc.go @@ -1,4 +1,4 @@ -// Copyright (c) 2021 Multus Authors +// Copyright (c) 2022 Multus Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -13,4 +13,5 @@ // limitations under the License. // Package types contains common types in the multus. + package types diff --git a/pkg/types/types.go b/pkg/types/types.go index 99f8e8a0f..6237b1cfe 100644 --- a/pkg/types/types.go +++ b/pkg/types/types.go @@ -1,4 +1,5 @@ -// Copyright (c) 2017 Intel Corporation +// Copyright (c) 2018 Intel Corporation +// Copyright (c) 2021 Multus Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -11,7 +12,6 @@ // 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 types