diff --git a/NOTICE b/NOTICE new file mode 100644 index 0000000..c54816f --- /dev/null +++ b/NOTICE @@ -0,0 +1,15 @@ +Docker attest +Copyright Docker attest authors + +This product includes software developed at Docker, Inc. (https://www.docker.com). + +The following is courtesy of our legal counsel: + +Use and transfer of Docker may be subject to certain restrictions by the +United States and other governments. +It is your responsibility to ensure that your use and/or transfer does not +violate applicable laws. + +For more information, please see https://www.bis.doc.gov + +See also https://www.apache.org/dev/crypto.html and/or seek legal counsel. diff --git a/attestation/attestation.go b/attestation/attestation.go index 7f040cf..1513ba1 100644 --- a/attestation/attestation.go +++ b/attestation/attestation.go @@ -1,3 +1,19 @@ +/* + Copyright Docker attest 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 attestation import ( diff --git a/attestation/attestation_test.go b/attestation/attestation_test.go index 362b3ab..c35d029 100644 --- a/attestation/attestation_test.go +++ b/attestation/attestation_test.go @@ -1,3 +1,19 @@ +/* + Copyright Docker attest 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 attestation_test import ( diff --git a/attestation/example_attestation_manifest_test.go b/attestation/example_attestation_manifest_test.go index a8e0ece..a96b855 100644 --- a/attestation/example_attestation_manifest_test.go +++ b/attestation/example_attestation_manifest_test.go @@ -1,3 +1,19 @@ +/* + Copyright Docker attest 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 attestation_test import ( diff --git a/attestation/layout.go b/attestation/layout.go index 94a72f3..4572458 100644 --- a/attestation/layout.go +++ b/attestation/layout.go @@ -1,3 +1,19 @@ +/* + Copyright Docker attest 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 attestation import ( diff --git a/attestation/layout_test.go b/attestation/layout_test.go index 4be30fe..a7e6273 100644 --- a/attestation/layout_test.go +++ b/attestation/layout_test.go @@ -1,3 +1,19 @@ +/* + Copyright Docker attest 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 attestation_test import ( diff --git a/attestation/mock.go b/attestation/mock.go index 98dacc9..47f6cf6 100644 --- a/attestation/mock.go +++ b/attestation/mock.go @@ -1,3 +1,19 @@ +/* + Copyright Docker attest 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 attestation import ( diff --git a/attestation/referrers.go b/attestation/referrers.go index 4c109ed..573d2e6 100644 --- a/attestation/referrers.go +++ b/attestation/referrers.go @@ -1,3 +1,19 @@ +/* + Copyright Docker attest 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 attestation import ( diff --git a/attestation/referrers_test.go b/attestation/referrers_test.go index c54d919..0b47109 100644 --- a/attestation/referrers_test.go +++ b/attestation/referrers_test.go @@ -1,3 +1,19 @@ +/* + Copyright Docker attest 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 attestation_test import ( diff --git a/attestation/registry.go b/attestation/registry.go index 73639d3..74b7b3b 100644 --- a/attestation/registry.go +++ b/attestation/registry.go @@ -1,3 +1,19 @@ +/* + Copyright Docker attest 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 attestation import ( diff --git a/attestation/registry_test.go b/attestation/registry_test.go index dbcb128..10853d8 100644 --- a/attestation/registry_test.go +++ b/attestation/registry_test.go @@ -1,3 +1,19 @@ +/* + Copyright Docker attest 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 attestation_test import ( diff --git a/attestation/resolver.go b/attestation/resolver.go index 7eae516..6d2172f 100644 --- a/attestation/resolver.go +++ b/attestation/resolver.go @@ -1,3 +1,19 @@ +/* + Copyright Docker attest 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 attestation import ( diff --git a/attestation/sign.go b/attestation/sign.go index 55eea11..e14d7c3 100644 --- a/attestation/sign.go +++ b/attestation/sign.go @@ -1,3 +1,19 @@ +/* + Copyright Docker attest 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 attestation import ( diff --git a/attestation/sign_test.go b/attestation/sign_test.go index 690998f..16711ad 100644 --- a/attestation/sign_test.go +++ b/attestation/sign_test.go @@ -1,3 +1,19 @@ +/* + Copyright Docker attest 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 attestation_test import ( diff --git a/attestation/types.go b/attestation/types.go index 043312d..53eed0a 100644 --- a/attestation/types.go +++ b/attestation/types.go @@ -1,3 +1,19 @@ +/* + Copyright Docker attest 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 attestation import ( diff --git a/attestation/types_test.go b/attestation/types_test.go index 3de793e..5dfb6fe 100644 --- a/attestation/types_test.go +++ b/attestation/types_test.go @@ -1,3 +1,19 @@ +/* + Copyright Docker attest 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 attestation import ( diff --git a/attestation/verifier.go b/attestation/verifier.go index 482aefa..acfb910 100644 --- a/attestation/verifier.go +++ b/attestation/verifier.go @@ -1,3 +1,19 @@ +/* + Copyright Docker attest 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 attestation import ( diff --git a/attestation/verifier_test.go b/attestation/verifier_test.go index d2b6d1e..5ef285c 100644 --- a/attestation/verifier_test.go +++ b/attestation/verifier_test.go @@ -1,3 +1,19 @@ +/* + Copyright Docker attest 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 attestation import ( diff --git a/attestation/verify.go b/attestation/verify.go index fbd47d6..c8d947b 100644 --- a/attestation/verify.go +++ b/attestation/verify.go @@ -1,3 +1,19 @@ +/* + Copyright Docker attest 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 attestation import ( diff --git a/attestation/verify_test.go b/attestation/verify_test.go index 0e3f0fc..c9db59a 100644 --- a/attestation/verify_test.go +++ b/attestation/verify_test.go @@ -1,3 +1,19 @@ +/* + Copyright Docker attest 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 attestation_test import ( diff --git a/attestation/vsa.go b/attestation/vsa.go index d334d03..5faa19a 100644 --- a/attestation/vsa.go +++ b/attestation/vsa.go @@ -1,3 +1,19 @@ +/* + Copyright Docker attest 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 attestation import ( diff --git a/example_sign_test.go b/example_sign_test.go index 97ab9a7..1f6d6c3 100644 --- a/example_sign_test.go +++ b/example_sign_test.go @@ -1,3 +1,19 @@ +/* + Copyright Docker attest 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 attest_test import ( diff --git a/example_verify_test.go b/example_verify_test.go index b91deee..d228ed4 100644 --- a/example_verify_test.go +++ b/example_verify_test.go @@ -1,3 +1,19 @@ +/* + Copyright Docker attest 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 attest_test import ( diff --git a/internal/embed/root.go b/internal/embed/root.go index 9bf20ae..680ccc1 100644 --- a/internal/embed/root.go +++ b/internal/embed/root.go @@ -1,3 +1,19 @@ +/* + Copyright Docker attest 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 embed import ( diff --git a/internal/test/test.go b/internal/test/test.go index dbc2cbf..a760f19 100644 --- a/internal/test/test.go +++ b/internal/test/test.go @@ -1,3 +1,19 @@ +/* + Copyright Docker attest 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 test import ( diff --git a/internal/util/crypto.go b/internal/util/crypto.go index f28d63a..e7d90b3 100644 --- a/internal/util/crypto.go +++ b/internal/util/crypto.go @@ -1,3 +1,19 @@ +/* + Copyright Docker attest 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 util import ( diff --git a/mapping/mapping.go b/mapping/mapping.go index 342454a..8c9ea28 100644 --- a/mapping/mapping.go +++ b/mapping/mapping.go @@ -1,3 +1,19 @@ +/* + Copyright Docker attest 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 mapping import ( diff --git a/mapping/mapping_test.go b/mapping/mapping_test.go index 06d4a94..8cd4540 100644 --- a/mapping/mapping_test.go +++ b/mapping/mapping_test.go @@ -1,3 +1,19 @@ +/* + Copyright Docker attest 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 mapping import ( diff --git a/mapping/match.go b/mapping/match.go index cfac8b6..755bd48 100644 --- a/mapping/match.go +++ b/mapping/match.go @@ -1,3 +1,19 @@ +/* + Copyright Docker attest 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 mapping import ( diff --git a/mapping/match_test.go b/mapping/match_test.go index 31f0c61..6d0a89a 100644 --- a/mapping/match_test.go +++ b/mapping/match_test.go @@ -1,3 +1,19 @@ +/* + Copyright Docker attest 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 mapping import ( diff --git a/mapping/types.go b/mapping/types.go index 96192e3..9a919b3 100644 --- a/mapping/types.go +++ b/mapping/types.go @@ -1,3 +1,19 @@ +/* + Copyright Docker attest 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 mapping import ( diff --git a/mirror/example_mirror_test.go b/mirror/example_mirror_test.go index 51ca46d..a3f61d0 100644 --- a/mirror/example_mirror_test.go +++ b/mirror/example_mirror_test.go @@ -1,3 +1,19 @@ +/* + Copyright Docker attest 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 mirror_test import ( diff --git a/mirror/metadata.go b/mirror/metadata.go index fc49948..9f501fd 100644 --- a/mirror/metadata.go +++ b/mirror/metadata.go @@ -1,3 +1,19 @@ +/* + Copyright Docker attest 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 mirror import ( diff --git a/mirror/metadata_test.go b/mirror/metadata_test.go index fed45d3..d1af5aa 100644 --- a/mirror/metadata_test.go +++ b/mirror/metadata_test.go @@ -1,3 +1,19 @@ +/* + Copyright Docker attest 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 mirror import ( diff --git a/mirror/mirror.go b/mirror/mirror.go index 5cb3cff..4a85627 100644 --- a/mirror/mirror.go +++ b/mirror/mirror.go @@ -1,3 +1,19 @@ +/* + Copyright Docker attest 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 mirror import ( diff --git a/mirror/targets.go b/mirror/targets.go index f189579..ac2182f 100644 --- a/mirror/targets.go +++ b/mirror/targets.go @@ -1,3 +1,19 @@ +/* + Copyright Docker attest 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 mirror import ( diff --git a/mirror/targets_test.go b/mirror/targets_test.go index 22dc7d2..c21bd50 100644 --- a/mirror/targets_test.go +++ b/mirror/targets_test.go @@ -1,3 +1,19 @@ +/* + Copyright Docker attest 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 mirror import ( diff --git a/mirror/types.go b/mirror/types.go index 865c17f..a20d0af 100644 --- a/mirror/types.go +++ b/mirror/types.go @@ -1,3 +1,19 @@ +/* + Copyright Docker attest 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 mirror import ( diff --git a/oci/authn.go b/oci/authn.go index 98452a0..91da425 100644 --- a/oci/authn.go +++ b/oci/authn.go @@ -1,3 +1,19 @@ +/* + Copyright Docker attest 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 oci import ( diff --git a/oci/authn_test.go b/oci/authn_test.go index e415d7a..fcfbd33 100644 --- a/oci/authn_test.go +++ b/oci/authn_test.go @@ -1,5 +1,21 @@ //go:build e2e +/* + Copyright Docker attest 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 oci_test import ( diff --git a/oci/oci.go b/oci/oci.go index 85183fc..bafd738 100644 --- a/oci/oci.go +++ b/oci/oci.go @@ -1,3 +1,19 @@ +/* + Copyright Docker attest 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 oci import ( diff --git a/oci/oci_test.go b/oci/oci_test.go index 65766d7..4b275bd 100644 --- a/oci/oci_test.go +++ b/oci/oci_test.go @@ -1,3 +1,19 @@ +/* + Copyright Docker attest 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 oci_test import ( diff --git a/oci/output.go b/oci/output.go index 66399eb..091fb56 100644 --- a/oci/output.go +++ b/oci/output.go @@ -1,3 +1,19 @@ +/* + Copyright Docker attest 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 oci import ( diff --git a/oci/output_test.go b/oci/output_test.go index e313836..f971f83 100644 --- a/oci/output_test.go +++ b/oci/output_test.go @@ -1,3 +1,19 @@ +/* + Copyright Docker attest 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 oci_test import ( diff --git a/oci/registry.go b/oci/registry.go index b461b4b..3c6fb11 100644 --- a/oci/registry.go +++ b/oci/registry.go @@ -1,3 +1,19 @@ +/* + Copyright Docker attest 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 oci import ( diff --git a/oci/resolver.go b/oci/resolver.go index a5aaae5..3ad1220 100644 --- a/oci/resolver.go +++ b/oci/resolver.go @@ -1,3 +1,19 @@ +/* + Copyright Docker attest 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 oci import ( diff --git a/oci/types.go b/oci/types.go index 78e6f62..8750673 100644 --- a/oci/types.go +++ b/oci/types.go @@ -1,3 +1,19 @@ +/* + Copyright Docker attest 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 oci import ( diff --git a/oci/types_test.go b/oci/types_test.go index 704fdd9..9d39820 100644 --- a/oci/types_test.go +++ b/oci/types_test.go @@ -1,3 +1,19 @@ +/* + Copyright Docker attest 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 oci import ( diff --git a/policy/evaluator.go b/policy/evaluator.go index 4e28c37..2ec2861 100644 --- a/policy/evaluator.go +++ b/policy/evaluator.go @@ -1,3 +1,19 @@ +/* + Copyright Docker attest 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 policy import ( diff --git a/policy/mock.go b/policy/mock.go index bacd5ff..a11f069 100644 --- a/policy/mock.go +++ b/policy/mock.go @@ -1,3 +1,19 @@ +/* + Copyright Docker attest 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 policy import ( diff --git a/policy/policy.go b/policy/policy.go index d63ab6a..1051b9e 100644 --- a/policy/policy.go +++ b/policy/policy.go @@ -1,3 +1,19 @@ +/* + Copyright Docker attest 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 policy import ( diff --git a/policy/policy_test.go b/policy/policy_test.go index c2d43c6..7d1b6c2 100644 --- a/policy/policy_test.go +++ b/policy/policy_test.go @@ -1,3 +1,19 @@ +/* + Copyright Docker attest 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 policy_test import ( diff --git a/policy/rego.go b/policy/rego.go index ca4b8f9..39c3867 100644 --- a/policy/rego.go +++ b/policy/rego.go @@ -1,3 +1,19 @@ +/* + Copyright Docker attest 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 policy import ( diff --git a/policy/rego_test.go b/policy/rego_test.go index 5f44083..a66198c 100644 --- a/policy/rego_test.go +++ b/policy/rego_test.go @@ -1,3 +1,19 @@ +/* + Copyright Docker attest 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 policy import ( diff --git a/policy/resolver.go b/policy/resolver.go index 66cfb47..61694b6 100644 --- a/policy/resolver.go +++ b/policy/resolver.go @@ -1,3 +1,19 @@ +/* + Copyright Docker attest 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 policy import ( diff --git a/policy/resolver_test.go b/policy/resolver_test.go index 36412c5..9d34d34 100644 --- a/policy/resolver_test.go +++ b/policy/resolver_test.go @@ -1,3 +1,19 @@ +/* + Copyright Docker attest 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 policy_test import ( diff --git a/policy/types.go b/policy/types.go index a14e56a..ff92fd0 100644 --- a/policy/types.go +++ b/policy/types.go @@ -1,3 +1,19 @@ +/* + Copyright Docker attest 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 policy import ( diff --git a/scripts/gen-testdata.sh b/scripts/gen-testdata.sh index 47621af..97c8acf 100755 --- a/scripts/gen-testdata.sh +++ b/scripts/gen-testdata.sh @@ -1,4 +1,19 @@ #!/bin/bash + +# Copyright Docker attest 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. + set -eo pipefail echo "Starting the process to generate testdata..." diff --git a/sign.go b/sign.go index 832cca2..cd96114 100644 --- a/sign.go +++ b/sign.go @@ -1,3 +1,19 @@ +/* + Copyright Docker attest 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 attest import ( diff --git a/sign_test.go b/sign_test.go index 14c1e6a..3535aba 100644 --- a/sign_test.go +++ b/sign_test.go @@ -1,3 +1,19 @@ +/* + Copyright Docker attest 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 attest import ( diff --git a/signerverifier/aws.go b/signerverifier/aws.go index a61568c..0bd295d 100644 --- a/signerverifier/aws.go +++ b/signerverifier/aws.go @@ -1,3 +1,19 @@ +/* + Copyright Docker attest 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 signerverifier import ( diff --git a/signerverifier/common.go b/signerverifier/common.go index 0747460..414e0c6 100644 --- a/signerverifier/common.go +++ b/signerverifier/common.go @@ -1,3 +1,19 @@ +/* + Copyright Docker attest 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 signerverifier import ( diff --git a/signerverifier/ecdsa.go b/signerverifier/ecdsa.go index 18bf9c7..b48e6b9 100644 --- a/signerverifier/ecdsa.go +++ b/signerverifier/ecdsa.go @@ -1,3 +1,19 @@ +/* + Copyright Docker attest 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 signerverifier import ( diff --git a/signerverifier/gcp.go b/signerverifier/gcp.go index 0768451..e6c624d 100644 --- a/signerverifier/gcp.go +++ b/signerverifier/gcp.go @@ -1,3 +1,19 @@ +/* + Copyright Docker attest 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 signerverifier import ( diff --git a/signerverifier/gcp_test.go b/signerverifier/gcp_test.go index e603ab9..a6a74b4 100644 --- a/signerverifier/gcp_test.go +++ b/signerverifier/gcp_test.go @@ -1,5 +1,21 @@ //go:build e2e +/* + Copyright Docker attest 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 signerverifier import ( diff --git a/signerverifier/keyid.go b/signerverifier/keyid.go index f709f7d..f1cd31e 100644 --- a/signerverifier/keyid.go +++ b/signerverifier/keyid.go @@ -1,3 +1,19 @@ +/* + Copyright Docker attest 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 signerverifier import ( diff --git a/signerverifier/parse.go b/signerverifier/parse.go index 93e042e..e30414e 100644 --- a/signerverifier/parse.go +++ b/signerverifier/parse.go @@ -1,3 +1,19 @@ +/* + Copyright Docker attest 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 signerverifier import ( diff --git a/template/bash.txt b/template/bash.txt new file mode 100644 index 0000000..235dda9 --- /dev/null +++ b/template/bash.txt @@ -0,0 +1,13 @@ +# Copyright Docker attest 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. diff --git a/template/dockerfile.txt b/template/dockerfile.txt new file mode 100644 index 0000000..6efc090 --- /dev/null +++ b/template/dockerfile.txt @@ -0,0 +1,13 @@ +# Copyright Docker attest 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. diff --git a/template/go.txt b/template/go.txt new file mode 100644 index 0000000..5d8ba3a --- /dev/null +++ b/template/go.txt @@ -0,0 +1,16 @@ +/* + Copyright Docker attest 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. +*/ + diff --git a/template/makefile.txt b/template/makefile.txt new file mode 100644 index 0000000..6efc090 --- /dev/null +++ b/template/makefile.txt @@ -0,0 +1,13 @@ +# Copyright Docker attest 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. diff --git a/test/Dockerfile b/test/Dockerfile index 274a7c6..c25b19d 100644 --- a/test/Dockerfile +++ b/test/Dockerfile @@ -1,3 +1,16 @@ +# Copyright Docker attest 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. FROM alpine AS build RUN echo "hello world" > /tmp/hello.txt diff --git a/tlog/mock.go b/tlog/mock.go index 9126718..7bfadd8 100644 --- a/tlog/mock.go +++ b/tlog/mock.go @@ -1,3 +1,19 @@ +/* + Copyright Docker attest 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 tlog import ( diff --git a/tlog/rekor.go b/tlog/rekor.go index 2ae536b..c7a2b5d 100644 --- a/tlog/rekor.go +++ b/tlog/rekor.go @@ -1,3 +1,19 @@ +/* + Copyright Docker attest 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 tlog import ( diff --git a/tlog/rekor_test.go b/tlog/rekor_test.go index 50ef0bb..b7263c1 100644 --- a/tlog/rekor_test.go +++ b/tlog/rekor_test.go @@ -1,5 +1,21 @@ //go:build e2e +/* + Copyright Docker attest 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 tlog import ( diff --git a/tlog/tl.go b/tlog/tl.go index 46a2dc7..eb89c4d 100644 --- a/tlog/tl.go +++ b/tlog/tl.go @@ -1,3 +1,19 @@ +/* + Copyright Docker attest 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 tlog import ( diff --git a/tlog/tl_test.go b/tlog/tl_test.go index 15f9412..c247038 100644 --- a/tlog/tl_test.go +++ b/tlog/tl_test.go @@ -1,3 +1,19 @@ +/* + Copyright Docker attest 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 tlog import ( diff --git a/tuf/example_registry_test.go b/tuf/example_registry_test.go index d67880b..51c9a31 100644 --- a/tuf/example_registry_test.go +++ b/tuf/example_registry_test.go @@ -1,3 +1,19 @@ +/* + Copyright Docker attest 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 tuf_test import ( diff --git a/tuf/mock.go b/tuf/mock.go index f024535..1df2ede 100644 --- a/tuf/mock.go +++ b/tuf/mock.go @@ -1,3 +1,19 @@ +/* + Copyright Docker attest 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 tuf import ( diff --git a/tuf/registry.go b/tuf/registry.go index c59593f..5157628 100644 --- a/tuf/registry.go +++ b/tuf/registry.go @@ -1,3 +1,19 @@ +/* + Copyright Docker attest 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 tuf import ( diff --git a/tuf/registry_test.go b/tuf/registry_test.go index f7b4094..a77b5b0 100644 --- a/tuf/registry_test.go +++ b/tuf/registry_test.go @@ -1,3 +1,19 @@ +/* + Copyright Docker attest 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 tuf import ( diff --git a/tuf/tuf.go b/tuf/tuf.go index e54911c..003662b 100644 --- a/tuf/tuf.go +++ b/tuf/tuf.go @@ -1,3 +1,19 @@ +/* + Copyright Docker attest 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 tuf import ( diff --git a/tuf/tuf_test.go b/tuf/tuf_test.go index 9edb784..65b578b 100644 --- a/tuf/tuf_test.go +++ b/tuf/tuf_test.go @@ -1,3 +1,19 @@ +/* + Copyright Docker attest 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 tuf import ( diff --git a/tuf/version.go b/tuf/version.go index 671cf5b..3e1eb62 100644 --- a/tuf/version.go +++ b/tuf/version.go @@ -1,3 +1,19 @@ +/* + Copyright Docker attest 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 tuf import ( diff --git a/tuf/version_test.go b/tuf/version_test.go index 46c21bd..2a46a53 100644 --- a/tuf/version_test.go +++ b/tuf/version_test.go @@ -1,3 +1,19 @@ +/* + Copyright Docker attest 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 tuf import ( diff --git a/types.go b/types.go index 3824208..4fe30d4 100644 --- a/types.go +++ b/types.go @@ -1,3 +1,19 @@ +/* + Copyright Docker attest 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 attest import ( diff --git a/useragent/useragent.go b/useragent/useragent.go index f551f4a..db2e74a 100644 --- a/useragent/useragent.go +++ b/useragent/useragent.go @@ -1,3 +1,19 @@ +/* + Copyright Docker attest 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 useragent import ( diff --git a/useragent/useragent_test.go b/useragent/useragent_test.go index 3cc8d92..3f921b7 100644 --- a/useragent/useragent_test.go +++ b/useragent/useragent_test.go @@ -1,3 +1,19 @@ +/* + Copyright Docker attest 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 useragent import ( diff --git a/verify.go b/verify.go index ac2c0d6..74d54bd 100644 --- a/verify.go +++ b/verify.go @@ -1,3 +1,19 @@ +/* + Copyright Docker attest 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 attest import ( diff --git a/verify_test.go b/verify_test.go index ff51fd5..0f12f49 100644 --- a/verify_test.go +++ b/verify_test.go @@ -1,3 +1,19 @@ +/* + Copyright Docker attest 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 attest import ( diff --git a/version/version.go b/version/version.go index 166dcaa..c882190 100644 --- a/version/version.go +++ b/version/version.go @@ -1,3 +1,19 @@ +/* + Copyright Docker attest 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 version import (