diff --git a/cmd/common/config/flags.go b/cmd/common/config/flags.go index 8bb293fc7..5a09c924e 100644 --- a/cmd/common/config/flags.go +++ b/cmd/common/config/flags.go @@ -1,16 +1,5 @@ -// Copyright 2020 Authors of Hubble -// -// 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. +// SPDX-License-Identifier: Apache-2.0 +// Copyright Authors of Hubble package config diff --git a/cmd/common/config/viper.go b/cmd/common/config/viper.go index 8bf520e2b..284f142d6 100644 --- a/cmd/common/config/viper.go +++ b/cmd/common/config/viper.go @@ -1,16 +1,5 @@ -// Copyright 2020 Authors of Hubble -// -// 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. +// SPDX-License-Identifier: Apache-2.0 +// Copyright Authors of Hubble package config diff --git a/cmd/common/conn/conn.go b/cmd/common/conn/conn.go index c1cacb8f3..c0f94de07 100644 --- a/cmd/common/conn/conn.go +++ b/cmd/common/conn/conn.go @@ -1,16 +1,5 @@ -// Copyright 2020 Authors of Hubble -// -// 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. +// SPDX-License-Identifier: Apache-2.0 +// Copyright Authors of Hubble package conn diff --git a/cmd/common/conn/tls.go b/cmd/common/conn/tls.go index cf4870fe5..db0e2dc99 100644 --- a/cmd/common/conn/tls.go +++ b/cmd/common/conn/tls.go @@ -1,16 +1,5 @@ -// Copyright 2020 Authors of Hubble -// -// 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. +// SPDX-License-Identifier: Apache-2.0 +// Copyright Authors of Hubble package conn diff --git a/cmd/common/doc.go b/cmd/common/doc.go index 942e26355..0b2cc947e 100644 --- a/cmd/common/doc.go +++ b/cmd/common/doc.go @@ -1,16 +1,5 @@ -// Copyright 2020 Authors of Hubble -// -// 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. +// SPDX-License-Identifier: Apache-2.0 +// Copyright Authors of Hubble // Package common implements utilities that are meant to be used commonly by // all sub-commands to ensure consistency across them. diff --git a/cmd/common/template/usage.go b/cmd/common/template/usage.go index ec7be6c7e..65b58bb40 100644 --- a/cmd/common/template/usage.go +++ b/cmd/common/template/usage.go @@ -1,16 +1,5 @@ -// Copyright 2020 Authors of Hubble -// -// 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. +// SPDX-License-Identifier: Apache-2.0 +// Copyright Authors of Hubble package template diff --git a/cmd/common/template/usage_test.go b/cmd/common/template/usage_test.go index 370c6b05f..9704d94d6 100644 --- a/cmd/common/template/usage_test.go +++ b/cmd/common/template/usage_test.go @@ -1,16 +1,5 @@ -// Copyright 2020 Authors of Hubble -// -// 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. +// SPDX-License-Identifier: Apache-2.0 +// Copyright Authors of Hubble package template diff --git a/cmd/common/validate/doc.go b/cmd/common/validate/doc.go index c72d6442a..04581e577 100644 --- a/cmd/common/validate/doc.go +++ b/cmd/common/validate/doc.go @@ -1,16 +1,5 @@ -// Copyright 2020 Authors of Hubble -// -// 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. +// SPDX-License-Identifier: Apache-2.0 +// Copyright Authors of Hubble // Package validate implements utilities to validate the command configuration // by, for example, validating a set of given options. diff --git a/cmd/common/validate/flag.go b/cmd/common/validate/flag.go index da61fe69f..b13a412f6 100644 --- a/cmd/common/validate/flag.go +++ b/cmd/common/validate/flag.go @@ -1,16 +1,5 @@ -// Copyright 2020 Authors of Hubble -// -// 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. +// SPDX-License-Identifier: Apache-2.0 +// Copyright Authors of Hubble package validate diff --git a/cmd/common/validate/tls.go b/cmd/common/validate/tls.go index 55e62d5c8..64b0970c5 100644 --- a/cmd/common/validate/tls.go +++ b/cmd/common/validate/tls.go @@ -1,16 +1,5 @@ -// Copyright 2020 Authors of Hubble -// -// 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. +// SPDX-License-Identifier: Apache-2.0 +// Copyright Authors of Hubble package validate diff --git a/cmd/config/config.go b/cmd/config/config.go index 6327c4c31..6e5d44573 100644 --- a/cmd/config/config.go +++ b/cmd/config/config.go @@ -1,16 +1,5 @@ -// Copyright 2020 Authors of Hubble -// -// 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. +// SPDX-License-Identifier: Apache-2.0 +// Copyright Authors of Hubble package config diff --git a/cmd/config/get.go b/cmd/config/get.go index da59df0f2..aa77f12da 100644 --- a/cmd/config/get.go +++ b/cmd/config/get.go @@ -1,16 +1,5 @@ -// Copyright 2020 Authors of Hubble -// -// 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. +// SPDX-License-Identifier: Apache-2.0 +// Copyright Authors of Hubble package config diff --git a/cmd/config/reset.go b/cmd/config/reset.go index 345695d04..a0a4b41f1 100644 --- a/cmd/config/reset.go +++ b/cmd/config/reset.go @@ -1,16 +1,5 @@ -// Copyright 2020 Authors of Hubble -// -// 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. +// SPDX-License-Identifier: Apache-2.0 +// Copyright Authors of Hubble package config diff --git a/cmd/config/set.go b/cmd/config/set.go index 8ba394597..23e1e8fc5 100644 --- a/cmd/config/set.go +++ b/cmd/config/set.go @@ -1,16 +1,5 @@ -// Copyright 2020 Authors of Hubble -// -// 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. +// SPDX-License-Identifier: Apache-2.0 +// Copyright Authors of Hubble package config diff --git a/cmd/config/view.go b/cmd/config/view.go index a49e0c8df..d01fdaf36 100644 --- a/cmd/config/view.go +++ b/cmd/config/view.go @@ -1,16 +1,5 @@ -// Copyright 2020 Authors of Hubble -// -// 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. +// SPDX-License-Identifier: Apache-2.0 +// Copyright Authors of Hubble package config diff --git a/cmd/list/list.go b/cmd/list/list.go index 19d84a46c..f1abf1a06 100644 --- a/cmd/list/list.go +++ b/cmd/list/list.go @@ -1,16 +1,5 @@ -// Copyright 2020 Authors of Hubble -// -// 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. +// SPDX-License-Identifier: Apache-2.0 +// Copyright Authors of Hubble package list diff --git a/cmd/list/node.go b/cmd/list/node.go index 3a1e21dec..6e0cf10b3 100644 --- a/cmd/list/node.go +++ b/cmd/list/node.go @@ -1,16 +1,5 @@ -// Copyright 2020 Authors of Hubble -// -// 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. +// SPDX-License-Identifier: Apache-2.0 +// Copyright Authors of Hubble package list diff --git a/cmd/list/node_test.go b/cmd/list/node_test.go index 7363b42e8..999cb0928 100644 --- a/cmd/list/node_test.go +++ b/cmd/list/node_test.go @@ -1,16 +1,5 @@ -// Copyright 2021 Authors of Hubble -// -// 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. +// SPDX-License-Identifier: Apache-2.0 +// Copyright Authors of Hubble package list diff --git a/cmd/observe/agent_events.go b/cmd/observe/agent_events.go index 33dc86cd8..770d1266d 100644 --- a/cmd/observe/agent_events.go +++ b/cmd/observe/agent_events.go @@ -1,16 +1,5 @@ -// Copyright 2021 Authors of Hubble -// -// 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. +// SPDX-License-Identifier: Apache-2.0 +// Copyright Authors of Hubble package observe diff --git a/cmd/observe/agent_events_test.go b/cmd/observe/agent_events_test.go index cbed77189..f65ce2778 100644 --- a/cmd/observe/agent_events_test.go +++ b/cmd/observe/agent_events_test.go @@ -1,16 +1,5 @@ -// Copyright 2021 Authors of Hubble -// -// 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. +// SPDX-License-Identifier: Apache-2.0 +// Copyright Authors of Hubble package observe diff --git a/cmd/observe/debug_events.go b/cmd/observe/debug_events.go index 97cbbc246..286a0ad22 100644 --- a/cmd/observe/debug_events.go +++ b/cmd/observe/debug_events.go @@ -1,16 +1,5 @@ -// Copyright 2021 Authors of Hubble -// -// 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. +// SPDX-License-Identifier: Apache-2.0 +// Copyright Authors of Hubble package observe diff --git a/cmd/observe/debug_events_test.go b/cmd/observe/debug_events_test.go index c50f160fc..d88b1bfc8 100644 --- a/cmd/observe/debug_events_test.go +++ b/cmd/observe/debug_events_test.go @@ -1,16 +1,5 @@ -// Copyright 2021 Authors of Hubble -// -// 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. +// SPDX-License-Identifier: Apache-2.0 +// Copyright Authors of Hubble package observe diff --git a/cmd/observe/events.go b/cmd/observe/events.go index 7b97f32ed..d2cbf8ce5 100644 --- a/cmd/observe/events.go +++ b/cmd/observe/events.go @@ -1,16 +1,5 @@ -// Copyright 2021 Authors of Hubble -// -// 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. +// SPDX-License-Identifier: Apache-2.0 +// Copyright Authors of Hubble package observe diff --git a/cmd/observe/flows.go b/cmd/observe/flows.go index 3fa1f1336..1a6daa316 100644 --- a/cmd/observe/flows.go +++ b/cmd/observe/flows.go @@ -1,16 +1,5 @@ -// Copyright 2019-2021 Authors of Hubble -// -// 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. +// SPDX-License-Identifier: Apache-2.0 +// Copyright Authors of Hubble package observe diff --git a/cmd/observe/flows_filter.go b/cmd/observe/flows_filter.go index 715b294cf..61c7e08a0 100644 --- a/cmd/observe/flows_filter.go +++ b/cmd/observe/flows_filter.go @@ -1,16 +1,5 @@ -// Copyright 2019-2020 Authors of Hubble -// -// 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. +// SPDX-License-Identifier: Apache-2.0 +// Copyright Authors of Hubble package observe diff --git a/cmd/observe/flows_filter_test.go b/cmd/observe/flows_filter_test.go index e37a39ac4..4f5643ccc 100644 --- a/cmd/observe/flows_filter_test.go +++ b/cmd/observe/flows_filter_test.go @@ -1,16 +1,5 @@ -// Copyright 2019 Authors of Hubble -// -// 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. +// SPDX-License-Identifier: Apache-2.0 +// Copyright Authors of Hubble package observe diff --git a/cmd/observe/flows_test.go b/cmd/observe/flows_test.go index ea46bf8fa..f4e42e7c4 100644 --- a/cmd/observe/flows_test.go +++ b/cmd/observe/flows_test.go @@ -1,16 +1,5 @@ -// Copyright 2021 Authors of Hubble -// -// 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. +// SPDX-License-Identifier: Apache-2.0 +// Copyright Authors of Hubble package observe diff --git a/cmd/observe/identity.go b/cmd/observe/identity.go index b0639393d..20ecc640d 100644 --- a/cmd/observe/identity.go +++ b/cmd/observe/identity.go @@ -1,16 +1,5 @@ -// Copyright 2022 Authors of Hubble -// -// 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. +// SPDX-License-Identifier: Apache-2.0 +// Copyright Authors of Hubble package observe diff --git a/cmd/observe/io_reader_observer.go b/cmd/observe/io_reader_observer.go index e01d5a6dd..27c63ca52 100644 --- a/cmd/observe/io_reader_observer.go +++ b/cmd/observe/io_reader_observer.go @@ -1,16 +1,5 @@ -// Copyright 2021 Authors of Hubble -// -// 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. +// SPDX-License-Identifier: Apache-2.0 +// Copyright Authors of Hubble package observe diff --git a/cmd/observe/io_reader_observer_test.go b/cmd/observe/io_reader_observer_test.go index 5cfb6701b..0f10ad382 100644 --- a/cmd/observe/io_reader_observer_test.go +++ b/cmd/observe/io_reader_observer_test.go @@ -1,16 +1,5 @@ -// Copyright 2021 Authors of Hubble -// -// 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. +// SPDX-License-Identifier: Apache-2.0 +// Copyright Authors of Hubble package observe diff --git a/cmd/observe/observe.go b/cmd/observe/observe.go index e0f31c792..d630a1fae 100644 --- a/cmd/observe/observe.go +++ b/cmd/observe/observe.go @@ -1,16 +1,5 @@ -// Copyright 2019-2021 Authors of Hubble -// -// 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. +// SPDX-License-Identifier: Apache-2.0 +// Copyright Authors of Hubble package observe diff --git a/cmd/observe/workload.go b/cmd/observe/workload.go index 8cada89e6..8e0334a07 100644 --- a/cmd/observe/workload.go +++ b/cmd/observe/workload.go @@ -1,16 +1,5 @@ -// Copyright 2022 Authors of Hubble -// -// 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. +// SPDX-License-Identifier: Apache-2.0 +// Copyright Authors of Hubble package observe diff --git a/cmd/observe/workload_test.go b/cmd/observe/workload_test.go index 0b3e50a9c..c3c831c12 100644 --- a/cmd/observe/workload_test.go +++ b/cmd/observe/workload_test.go @@ -1,16 +1,5 @@ -// Copyright 2022 Authors of Hubble -// -// 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. +// SPDX-License-Identifier: Apache-2.0 +// Copyright Authors of Hubble package observe diff --git a/cmd/record/record.go b/cmd/record/record.go index 46e531883..123d3b6b7 100644 --- a/cmd/record/record.go +++ b/cmd/record/record.go @@ -1,16 +1,5 @@ -// Copyright 2021 Authors of Hubble -// -// 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. +// SPDX-License-Identifier: Apache-2.0 +// Copyright Authors of Hubble package record diff --git a/cmd/record/tty_linux.go b/cmd/record/tty_linux.go index e01e3e691..39e687d03 100644 --- a/cmd/record/tty_linux.go +++ b/cmd/record/tty_linux.go @@ -1,16 +1,5 @@ -// Copyright 2021 Authors of Hubble -// -// 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. +// SPDX-License-Identifier: Apache-2.0 +// Copyright Authors of Hubble //go:build linux diff --git a/cmd/record/tty_others.go b/cmd/record/tty_others.go index 43b7e098f..f06ed06c5 100644 --- a/cmd/record/tty_others.go +++ b/cmd/record/tty_others.go @@ -1,16 +1,5 @@ -// Copyright 2021 Authors of Hubble -// -// 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. +// SPDX-License-Identifier: Apache-2.0 +// Copyright Authors of Hubble //go:build !linux diff --git a/cmd/reflect/reflect.go b/cmd/reflect/reflect.go index 9fc51fb3c..8a7ce8b86 100644 --- a/cmd/reflect/reflect.go +++ b/cmd/reflect/reflect.go @@ -1,16 +1,5 @@ -// Copyright 2020 Authors of Hubble -// -// 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. +// SPDX-License-Identifier: Apache-2.0 +// Copyright Authors of Hubble package reflect diff --git a/cmd/root.go b/cmd/root.go index c3bd8c578..53b90608d 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -1,16 +1,5 @@ -// Copyright 2017-2020 Authors of Hubble -// -// 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. +// SPDX-License-Identifier: Apache-2.0 +// Copyright Authors of Hubble package cmd diff --git a/cmd/status/status.go b/cmd/status/status.go index e7cffcd98..71a37593c 100644 --- a/cmd/status/status.go +++ b/cmd/status/status.go @@ -1,16 +1,5 @@ -// Copyright 2019 Authors of Hubble -// -// 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. +// SPDX-License-Identifier: Apache-2.0 +// Copyright Authors of Hubble package status diff --git a/cmd/version/version.go b/cmd/version/version.go index 8889c7e1d..4790047a9 100644 --- a/cmd/version/version.go +++ b/cmd/version/version.go @@ -1,16 +1,5 @@ -// Copyright 2020 Authors of Hubble -// -// 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. +// SPDX-License-Identifier: Apache-2.0 +// Copyright Authors of Hubble package version diff --git a/cmd/watch/peer.go b/cmd/watch/peer.go index 7b918a76d..951cb4b9d 100644 --- a/cmd/watch/peer.go +++ b/cmd/watch/peer.go @@ -1,16 +1,5 @@ -// Copyright 2020 Authors of Hubble -// -// 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. +// SPDX-License-Identifier: Apache-2.0 +// Copyright Authors of Hubble package watch diff --git a/cmd/watch/peer_test.go b/cmd/watch/peer_test.go index fb1aee7f4..309ceebea 100644 --- a/cmd/watch/peer_test.go +++ b/cmd/watch/peer_test.go @@ -1,16 +1,5 @@ -// Copyright 2021 Authors of Hubble -// -// 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. +// SPDX-License-Identifier: Apache-2.0 +// Copyright Authors of Hubble package watch diff --git a/cmd/watch/watch.go b/cmd/watch/watch.go index c676b49b9..95aa656a5 100644 --- a/cmd/watch/watch.go +++ b/cmd/watch/watch.go @@ -1,16 +1,5 @@ -// Copyright 2020 Authors of Hubble -// -// 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. +// SPDX-License-Identifier: Apache-2.0 +// Copyright Authors of Hubble package watch diff --git a/main.go b/main.go index c98b3a18c..1d3109d88 100644 --- a/main.go +++ b/main.go @@ -1,16 +1,5 @@ -// Copyright 2019 Authors of Hubble -// -// 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. +// SPDX-License-Identifier: Apache-2.0 +// Copyright Authors of Hubble // Ensure build fails on versions of Go that are not supported by Hubble. // This build tag should be kept in sync with the version specified in go.mod. diff --git a/pkg/defaults/defaults.go b/pkg/defaults/defaults.go index b5d3a3290..2cf5921fb 100644 --- a/pkg/defaults/defaults.go +++ b/pkg/defaults/defaults.go @@ -1,16 +1,5 @@ -// Copyright 2020 Authors of Hubble -// -// 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. +// SPDX-License-Identifier: Apache-2.0 +// Copyright Authors of Hubble package defaults diff --git a/pkg/logger/logger.go b/pkg/logger/logger.go index 097b189b6..caacd9c50 100644 --- a/pkg/logger/logger.go +++ b/pkg/logger/logger.go @@ -1,16 +1,5 @@ -// Copyright 2021 Authors of Hubble -// -// 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. +// SPDX-License-Identifier: Apache-2.0 +// Copyright Authors of Hubble package logger diff --git a/pkg/printer/color.go b/pkg/printer/color.go index b8770c098..66151c7fd 100644 --- a/pkg/printer/color.go +++ b/pkg/printer/color.go @@ -1,16 +1,5 @@ -// Copyright 2021 Authors of Hubble -// -// 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. +// SPDX-License-Identifier: Apache-2.0 +// Copyright Authors of Hubble package printer diff --git a/pkg/printer/formatter.go b/pkg/printer/formatter.go index edf0510ec..1f09f639a 100644 --- a/pkg/printer/formatter.go +++ b/pkg/printer/formatter.go @@ -1,16 +1,5 @@ -// Copyright 2021 Authors of Hubble -// -// 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. +// SPDX-License-Identifier: Apache-2.0 +// Copyright Authors of Hubble package printer diff --git a/pkg/printer/formatter_test.go b/pkg/printer/formatter_test.go index 8bbedf8b9..0c2f3a747 100644 --- a/pkg/printer/formatter_test.go +++ b/pkg/printer/formatter_test.go @@ -1,16 +1,5 @@ -// Copyright 2021 Authors of Hubble -// -// 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. +// SPDX-License-Identifier: Apache-2.0 +// Copyright Authors of Hubble package printer diff --git a/pkg/printer/options.go b/pkg/printer/options.go index 7e758fc14..608691530 100644 --- a/pkg/printer/options.go +++ b/pkg/printer/options.go @@ -1,16 +1,5 @@ -// Copyright 2019-2021 Authors of Hubble -// -// 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. +// SPDX-License-Identifier: Apache-2.0 +// Copyright Authors of Hubble package printer diff --git a/pkg/printer/printer.go b/pkg/printer/printer.go index 7d474f416..027480f2b 100644 --- a/pkg/printer/printer.go +++ b/pkg/printer/printer.go @@ -1,16 +1,5 @@ -// Copyright 2019-2021 Authors of Hubble -// -// 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. +// SPDX-License-Identifier: Apache-2.0 +// Copyright Authors of Hubble package printer diff --git a/pkg/printer/printer_test.go b/pkg/printer/printer_test.go index 5e5052f04..ae61c7890 100644 --- a/pkg/printer/printer_test.go +++ b/pkg/printer/printer_test.go @@ -1,16 +1,5 @@ -// Copyright 2019 Authors of Hubble -// -// 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. +// SPDX-License-Identifier: Apache-2.0 +// Copyright Authors of Hubble package printer diff --git a/pkg/time/time.go b/pkg/time/time.go index 4d6e7588b..5262c783c 100644 --- a/pkg/time/time.go +++ b/pkg/time/time.go @@ -1,16 +1,5 @@ -// Copyright 2019 Authors of Hubble -// -// 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. +// SPDX-License-Identifier: Apache-2.0 +// Copyright Authors of Hubble package time diff --git a/pkg/time/time_test.go b/pkg/time/time_test.go index fe31ffff1..2ecf3d801 100644 --- a/pkg/time/time_test.go +++ b/pkg/time/time_test.go @@ -1,16 +1,5 @@ -// Copyright 2019 Authors of Hubble -// -// 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. +// SPDX-License-Identifier: Apache-2.0 +// Copyright Authors of Hubble package time diff --git a/pkg/version.go b/pkg/version.go index 07564b54f..752286e45 100644 --- a/pkg/version.go +++ b/pkg/version.go @@ -1,16 +1,5 @@ -// Copyright 2020 Authors of Hubble -// -// 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. +// SPDX-License-Identifier: Apache-2.0 +// Copyright Authors of Hubble package pkg