From a078bb85a796e029198b4fdc590944c0bffbcd7c Mon Sep 17 00:00:00 2001 From: Pritesh Bandi Date: Wed, 17 Jan 2024 04:36:29 -0800 Subject: [PATCH] chore: add license header (#8) Adding copyright text to all `*.go` files. Signed-off-by: Pritesh Bandi --- cli/cli.go | 13 +++++++++++++ cli/cli_test.go | 13 +++++++++++++ cli/internal/mock/plugin.go | 13 +++++++++++++ cli/utils.go | 13 +++++++++++++ cli/utils_test.go | 13 +++++++++++++ example/main.go | 13 +++++++++++++ example/plugin.go | 13 +++++++++++++ internal/slices/slices.go | 13 +++++++++++++ log/log.go | 13 +++++++++++++ plugin/algorithm.go | 13 +++++++++++++ plugin/describekey.go | 13 +++++++++++++ plugin/errors.go | 13 +++++++++++++ plugin/metadata.go | 13 +++++++++++++ plugin/metadata_test.go | 13 +++++++++++++ plugin/plugin.go | 13 +++++++++++++ plugin/proto.go | 13 +++++++++++++ plugin/sign.go | 13 +++++++++++++ plugin/verify.go | 13 +++++++++++++ 18 files changed, 234 insertions(+) diff --git a/cli/cli.go b/cli/cli.go index 91bd6c5..ac256ad 100644 --- a/cli/cli.go +++ b/cli/cli.go @@ -1,3 +1,16 @@ +// Copyright The Notary Project 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 cli provides boilerplate code required to generate plugin executable. // At high level it performs following tasks // 1. Validate command arguments diff --git a/cli/cli_test.go b/cli/cli_test.go index b8f3ef0..59e1f1d 100644 --- a/cli/cli_test.go +++ b/cli/cli_test.go @@ -1,3 +1,16 @@ +// Copyright The Notary Project 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 cli import ( diff --git a/cli/internal/mock/plugin.go b/cli/internal/mock/plugin.go index 7a3da94..c896dc6 100644 --- a/cli/internal/mock/plugin.go +++ b/cli/internal/mock/plugin.go @@ -1,3 +1,16 @@ +// Copyright The Notary Project 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 mock contains various mock structures required for testing. package mock diff --git a/cli/utils.go b/cli/utils.go index 8418a36..1526cdd 100644 --- a/cli/utils.go +++ b/cli/utils.go @@ -1,3 +1,16 @@ +// Copyright The Notary Project 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 cli import ( diff --git a/cli/utils_test.go b/cli/utils_test.go index 946a40b..78472e5 100644 --- a/cli/utils_test.go +++ b/cli/utils_test.go @@ -1,3 +1,16 @@ +// Copyright The Notary Project 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 cli import ( diff --git a/example/main.go b/example/main.go index 310a977..c7e6307 100644 --- a/example/main.go +++ b/example/main.go @@ -1,3 +1,16 @@ +// Copyright The Notary Project 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 main import ( diff --git a/example/plugin.go b/example/plugin.go index 30c75a8..9b16ca8 100644 --- a/example/plugin.go +++ b/example/plugin.go @@ -1,3 +1,16 @@ +// Copyright The Notary Project 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 main import ( diff --git a/internal/slices/slices.go b/internal/slices/slices.go index 0d348cd..dc675cc 100644 --- a/internal/slices/slices.go +++ b/internal/slices/slices.go @@ -1,3 +1,16 @@ +// Copyright The Notary Project 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 slices // Contains reports whether v is present in s. diff --git a/log/log.go b/log/log.go index 2e50e87..12b7f90 100644 --- a/log/log.go +++ b/log/log.go @@ -1,3 +1,16 @@ +// Copyright The Notary Project 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 log provides logging functionality. // 3rd party loggers that implement log.Logger: github.com/uber-go/zap.SugaredLogger // and github.com/sirupsen/logrus.Logger. diff --git a/plugin/algorithm.go b/plugin/algorithm.go index 9a768d0..fa097ef 100644 --- a/plugin/algorithm.go +++ b/plugin/algorithm.go @@ -1,3 +1,16 @@ +// Copyright The Notary Project 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 plugin // KeySpec is type of the signing algorithm, including algorithm and size. diff --git a/plugin/describekey.go b/plugin/describekey.go index 785f51d..5bdaeba 100644 --- a/plugin/describekey.go +++ b/plugin/describekey.go @@ -1,3 +1,16 @@ +// Copyright The Notary Project 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 plugin // DescribeKeyRequest contains the parameters passed in a describe-key request. diff --git a/plugin/errors.go b/plugin/errors.go index 0048ab7..dcf5cb1 100644 --- a/plugin/errors.go +++ b/plugin/errors.go @@ -1,3 +1,16 @@ +// Copyright The Notary Project 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 plugin import ( diff --git a/plugin/metadata.go b/plugin/metadata.go index 1a2b173..74190a1 100644 --- a/plugin/metadata.go +++ b/plugin/metadata.go @@ -1,3 +1,16 @@ +// Copyright The Notary Project 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 plugin // GetMetadataRequest contains the parameters passed in a get-plugin-metadata diff --git a/plugin/metadata_test.go b/plugin/metadata_test.go index 5db4661..b4c81c5 100644 --- a/plugin/metadata_test.go +++ b/plugin/metadata_test.go @@ -1,3 +1,16 @@ +// Copyright The Notary Project 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 plugin import ( diff --git a/plugin/plugin.go b/plugin/plugin.go index 207166b..9fb8105 100644 --- a/plugin/plugin.go +++ b/plugin/plugin.go @@ -1,3 +1,16 @@ +// Copyright The Notary Project 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 plugin provides the tooling to use the notation plugin. // // includes a CLIManager and a CLIPlugin implementation. diff --git a/plugin/proto.go b/plugin/proto.go index 13065a9..144ae29 100644 --- a/plugin/proto.go +++ b/plugin/proto.go @@ -1,3 +1,16 @@ +// Copyright The Notary Project 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 plugin defines the protocol layer for communication between notation // and notation external plugin. package plugin diff --git a/plugin/sign.go b/plugin/sign.go index c8a1c06..2afe07d 100644 --- a/plugin/sign.go +++ b/plugin/sign.go @@ -1,3 +1,16 @@ +// Copyright The Notary Project 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 plugin // GenerateSignatureRequest contains the parameters passed in a diff --git a/plugin/verify.go b/plugin/verify.go index a764642..a07c55d 100644 --- a/plugin/verify.go +++ b/plugin/verify.go @@ -1,3 +1,16 @@ +// Copyright The Notary Project 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 plugin import (