From cb0aafb63d400b60ff83810e18683eb08d89763f Mon Sep 17 00:00:00 2001 From: Nick Santos Date: Mon, 21 Oct 2024 10:05:26 -0400 Subject: [PATCH] add copyright headers (#65) fixes https://github.com/docker/terraform-provider-docker/issues/63 Signed-off-by: Nick Santos --- .github/workflows/ci.yaml | 7 ++++++- Makefile | 12 ++++++++++++ internal/envvar/envvar.go | 16 ++++++++++++++++ internal/hubclient/client.go | 16 ++++++++++++++++ internal/hubclient/client_access_token.go | 16 ++++++++++++++++ internal/hubclient/client_organization.go | 16 ++++++++++++++++ internal/hubclient/client_repository.go | 16 ++++++++++++++++ internal/provider/data_source_access_token.go | 16 ++++++++++++++++ internal/provider/data_source_access_tokens.go | 16 ++++++++++++++++ internal/provider/data_source_org.go | 16 ++++++++++++++++ internal/provider/data_source_org_team.go | 16 ++++++++++++++++ internal/provider/data_source_org_team_member.go | 16 ++++++++++++++++ internal/provider/data_source_org_team_test.go | 16 ++++++++++++++++ internal/provider/data_source_org_test.go | 16 ++++++++++++++++ internal/provider/data_source_repositories.go | 16 ++++++++++++++++ .../provider/data_source_repositories_test.go | 16 ++++++++++++++++ internal/provider/data_source_repository.go | 16 ++++++++++++++++ internal/provider/data_source_repository_test.go | 16 ++++++++++++++++ internal/provider/provider.go | 16 ++++++++++++++++ internal/provider/provider_test.go | 16 ++++++++++++++++ internal/provider/resource_access_token.go | 16 ++++++++++++++++ internal/provider/resource_access_token_test.go | 16 ++++++++++++++++ internal/provider/resource_org_member.go | 16 ++++++++++++++++ internal/provider/resource_org_member_test.go | 16 ++++++++++++++++ ...source_org_setting_image_access_management.go | 16 ++++++++++++++++ ...e_org_setting_image_access_management_test.go | 16 ++++++++++++++++ ...rce_org_setting_registry_access_management.go | 16 ++++++++++++++++ ...rg_setting_registry_access_management_test.go | 16 ++++++++++++++++ internal/provider/resource_org_team.go | 16 ++++++++++++++++ internal/provider/resource_org_team_member.go | 16 ++++++++++++++++ .../provider/resource_org_team_member_test.go | 16 ++++++++++++++++ internal/provider/resource_org_team_test.go | 16 ++++++++++++++++ internal/provider/resource_repository.go | 16 ++++++++++++++++ .../resource_repository_team_permission.go | 16 ++++++++++++++++ .../resource_repository_team_permission_test.go | 16 ++++++++++++++++ internal/provider/resource_repository_test.go | 16 ++++++++++++++++ internal/repositoryutils/repositoryutils.go | 16 ++++++++++++++++ main.go | 16 ++++++++++++++++ template/go.txt | 16 ++++++++++++++++ tools/credentials.go | 16 ++++++++++++++++ tools/tools.go | 16 ++++++++++++++++ 41 files changed, 642 insertions(+), 1 deletion(-) create mode 100644 template/go.txt diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index a836578..93baa73 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -17,6 +17,11 @@ jobs: - uses: actions/setup-go@v5 - - name: vet + - name: check headers + run: | + make ltag-validate + + - name: test run: | go vet ./... + go test ./... diff --git a/Makefile b/Makefile index 4510d17..35587a5 100644 --- a/Makefile +++ b/Makefile @@ -24,6 +24,18 @@ install: docs: go generate ./... +# Generate headers. +.PHONY: ltag +ltag: + go install github.com/kunalkushwaha/ltag@latest + ltag + +# Generate headers. +.PHONY: ltag-validate +ltag-validate: + go install github.com/kunalkushwaha/ltag@latest + ltag -check + # Setup local development environment .PHONY: local-build local-build: install setup-terraformrc diff --git a/internal/envvar/envvar.go b/internal/envvar/envvar.go index d57fb5c..cb2eacf 100644 --- a/internal/envvar/envvar.go +++ b/internal/envvar/envvar.go @@ -1,3 +1,19 @@ +/* + Copyright 2024 Docker Terraform Provider 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 envvar contains constants and defaults for various environment // variables for the provider. package envvar diff --git a/internal/hubclient/client.go b/internal/hubclient/client.go index 3ba5d42..cbabe91 100644 --- a/internal/hubclient/client.go +++ b/internal/hubclient/client.go @@ -1,3 +1,19 @@ +/* + Copyright 2024 Docker Terraform Provider 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 hubclient import ( diff --git a/internal/hubclient/client_access_token.go b/internal/hubclient/client_access_token.go index 664bff6..dc62ea4 100644 --- a/internal/hubclient/client_access_token.go +++ b/internal/hubclient/client_access_token.go @@ -1,3 +1,19 @@ +/* + Copyright 2024 Docker Terraform Provider 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 hubclient import ( diff --git a/internal/hubclient/client_organization.go b/internal/hubclient/client_organization.go index f9f0ab2..fe7ce60 100644 --- a/internal/hubclient/client_organization.go +++ b/internal/hubclient/client_organization.go @@ -1,3 +1,19 @@ +/* + Copyright 2024 Docker Terraform Provider 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 hubclient import ( diff --git a/internal/hubclient/client_repository.go b/internal/hubclient/client_repository.go index 3a93d93..310c49b 100644 --- a/internal/hubclient/client_repository.go +++ b/internal/hubclient/client_repository.go @@ -1,3 +1,19 @@ +/* + Copyright 2024 Docker Terraform Provider 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 hubclient import ( diff --git a/internal/provider/data_source_access_token.go b/internal/provider/data_source_access_token.go index 83ca55a..e933384 100644 --- a/internal/provider/data_source_access_token.go +++ b/internal/provider/data_source_access_token.go @@ -1,3 +1,19 @@ +/* + Copyright 2024 Docker Terraform Provider 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 provider import ( diff --git a/internal/provider/data_source_access_tokens.go b/internal/provider/data_source_access_tokens.go index 33f5f13..e342798 100644 --- a/internal/provider/data_source_access_tokens.go +++ b/internal/provider/data_source_access_tokens.go @@ -1,3 +1,19 @@ +/* + Copyright 2024 Docker Terraform Provider 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 provider import ( diff --git a/internal/provider/data_source_org.go b/internal/provider/data_source_org.go index 10b892f..5d08035 100644 --- a/internal/provider/data_source_org.go +++ b/internal/provider/data_source_org.go @@ -1,3 +1,19 @@ +/* + Copyright 2024 Docker Terraform Provider 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 provider import ( diff --git a/internal/provider/data_source_org_team.go b/internal/provider/data_source_org_team.go index 44d4b77..2d0a21c 100644 --- a/internal/provider/data_source_org_team.go +++ b/internal/provider/data_source_org_team.go @@ -1,3 +1,19 @@ +/* + Copyright 2024 Docker Terraform Provider 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 provider import ( diff --git a/internal/provider/data_source_org_team_member.go b/internal/provider/data_source_org_team_member.go index 032e4fb..f5346f8 100644 --- a/internal/provider/data_source_org_team_member.go +++ b/internal/provider/data_source_org_team_member.go @@ -1,3 +1,19 @@ +/* + Copyright 2024 Docker Terraform Provider 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 provider import ( diff --git a/internal/provider/data_source_org_team_test.go b/internal/provider/data_source_org_team_test.go index 335d56a..0350ef2 100644 --- a/internal/provider/data_source_org_team_test.go +++ b/internal/provider/data_source_org_team_test.go @@ -1,3 +1,19 @@ +/* + Copyright 2024 Docker Terraform Provider 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 provider import ( diff --git a/internal/provider/data_source_org_test.go b/internal/provider/data_source_org_test.go index 5d8257a..235efb7 100644 --- a/internal/provider/data_source_org_test.go +++ b/internal/provider/data_source_org_test.go @@ -1,3 +1,19 @@ +/* + Copyright 2024 Docker Terraform Provider 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 provider import ( diff --git a/internal/provider/data_source_repositories.go b/internal/provider/data_source_repositories.go index df219d2..738ad02 100644 --- a/internal/provider/data_source_repositories.go +++ b/internal/provider/data_source_repositories.go @@ -1,3 +1,19 @@ +/* + Copyright 2024 Docker Terraform Provider 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 provider import ( diff --git a/internal/provider/data_source_repositories_test.go b/internal/provider/data_source_repositories_test.go index 41ce614..bdd2283 100644 --- a/internal/provider/data_source_repositories_test.go +++ b/internal/provider/data_source_repositories_test.go @@ -1,3 +1,19 @@ +/* + Copyright 2024 Docker Terraform Provider 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 provider import ( diff --git a/internal/provider/data_source_repository.go b/internal/provider/data_source_repository.go index 0dfc4a5..34656e6 100644 --- a/internal/provider/data_source_repository.go +++ b/internal/provider/data_source_repository.go @@ -1,3 +1,19 @@ +/* + Copyright 2024 Docker Terraform Provider 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 provider import ( diff --git a/internal/provider/data_source_repository_test.go b/internal/provider/data_source_repository_test.go index bd1cd72..dff2d04 100644 --- a/internal/provider/data_source_repository_test.go +++ b/internal/provider/data_source_repository_test.go @@ -1,3 +1,19 @@ +/* + Copyright 2024 Docker Terraform Provider 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 provider import ( diff --git a/internal/provider/provider.go b/internal/provider/provider.go index 5dab48c..39f182d 100644 --- a/internal/provider/provider.go +++ b/internal/provider/provider.go @@ -1,3 +1,19 @@ +/* + Copyright 2024 Docker Terraform Provider 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 provider import ( diff --git a/internal/provider/provider_test.go b/internal/provider/provider_test.go index 0ce3fb9..b5345cc 100644 --- a/internal/provider/provider_test.go +++ b/internal/provider/provider_test.go @@ -1,3 +1,19 @@ +/* + Copyright 2024 Docker Terraform Provider 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 provider import ( diff --git a/internal/provider/resource_access_token.go b/internal/provider/resource_access_token.go index 2f24614..4026cba 100644 --- a/internal/provider/resource_access_token.go +++ b/internal/provider/resource_access_token.go @@ -1,3 +1,19 @@ +/* + Copyright 2024 Docker Terraform Provider 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 provider import ( diff --git a/internal/provider/resource_access_token_test.go b/internal/provider/resource_access_token_test.go index 79ef122..806657a 100644 --- a/internal/provider/resource_access_token_test.go +++ b/internal/provider/resource_access_token_test.go @@ -1,3 +1,19 @@ +/* + Copyright 2024 Docker Terraform Provider 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 provider import ( diff --git a/internal/provider/resource_org_member.go b/internal/provider/resource_org_member.go index c5c269a..a06d960 100644 --- a/internal/provider/resource_org_member.go +++ b/internal/provider/resource_org_member.go @@ -1,3 +1,19 @@ +/* + Copyright 2024 Docker Terraform Provider 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 provider import ( diff --git a/internal/provider/resource_org_member_test.go b/internal/provider/resource_org_member_test.go index ff81f81..cdf3ab9 100644 --- a/internal/provider/resource_org_member_test.go +++ b/internal/provider/resource_org_member_test.go @@ -1,3 +1,19 @@ +/* + Copyright 2024 Docker Terraform Provider 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 provider import ( diff --git a/internal/provider/resource_org_setting_image_access_management.go b/internal/provider/resource_org_setting_image_access_management.go index b969a7b..23547a6 100644 --- a/internal/provider/resource_org_setting_image_access_management.go +++ b/internal/provider/resource_org_setting_image_access_management.go @@ -1,3 +1,19 @@ +/* + Copyright 2024 Docker Terraform Provider 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 provider import ( diff --git a/internal/provider/resource_org_setting_image_access_management_test.go b/internal/provider/resource_org_setting_image_access_management_test.go index a662f60..62ef029 100644 --- a/internal/provider/resource_org_setting_image_access_management_test.go +++ b/internal/provider/resource_org_setting_image_access_management_test.go @@ -1,3 +1,19 @@ +/* + Copyright 2024 Docker Terraform Provider 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 provider import ( diff --git a/internal/provider/resource_org_setting_registry_access_management.go b/internal/provider/resource_org_setting_registry_access_management.go index feada68..95bdbf3 100644 --- a/internal/provider/resource_org_setting_registry_access_management.go +++ b/internal/provider/resource_org_setting_registry_access_management.go @@ -1,3 +1,19 @@ +/* + Copyright 2024 Docker Terraform Provider 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 provider import ( diff --git a/internal/provider/resource_org_setting_registry_access_management_test.go b/internal/provider/resource_org_setting_registry_access_management_test.go index 1dc3358..7df9834 100644 --- a/internal/provider/resource_org_setting_registry_access_management_test.go +++ b/internal/provider/resource_org_setting_registry_access_management_test.go @@ -1,3 +1,19 @@ +/* + Copyright 2024 Docker Terraform Provider 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 provider import ( diff --git a/internal/provider/resource_org_team.go b/internal/provider/resource_org_team.go index 21c717f..bf1d5b6 100644 --- a/internal/provider/resource_org_team.go +++ b/internal/provider/resource_org_team.go @@ -1,3 +1,19 @@ +/* + Copyright 2024 Docker Terraform Provider 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 provider import ( diff --git a/internal/provider/resource_org_team_member.go b/internal/provider/resource_org_team_member.go index 7b10c14..df8c77f 100644 --- a/internal/provider/resource_org_team_member.go +++ b/internal/provider/resource_org_team_member.go @@ -1,3 +1,19 @@ +/* + Copyright 2024 Docker Terraform Provider 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 provider import ( diff --git a/internal/provider/resource_org_team_member_test.go b/internal/provider/resource_org_team_member_test.go index 571fb4c..7e07647 100644 --- a/internal/provider/resource_org_team_member_test.go +++ b/internal/provider/resource_org_team_member_test.go @@ -1,3 +1,19 @@ +/* + Copyright 2024 Docker Terraform Provider 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 provider import ( diff --git a/internal/provider/resource_org_team_test.go b/internal/provider/resource_org_team_test.go index a99b902..79c69ea 100644 --- a/internal/provider/resource_org_team_test.go +++ b/internal/provider/resource_org_team_test.go @@ -1,3 +1,19 @@ +/* + Copyright 2024 Docker Terraform Provider 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 provider import ( diff --git a/internal/provider/resource_repository.go b/internal/provider/resource_repository.go index cb030ae..11d3d4d 100644 --- a/internal/provider/resource_repository.go +++ b/internal/provider/resource_repository.go @@ -1,3 +1,19 @@ +/* + Copyright 2024 Docker Terraform Provider 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 provider import ( diff --git a/internal/provider/resource_repository_team_permission.go b/internal/provider/resource_repository_team_permission.go index 7c7b482..e5d1856 100644 --- a/internal/provider/resource_repository_team_permission.go +++ b/internal/provider/resource_repository_team_permission.go @@ -1,3 +1,19 @@ +/* + Copyright 2024 Docker Terraform Provider 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 provider import ( diff --git a/internal/provider/resource_repository_team_permission_test.go b/internal/provider/resource_repository_team_permission_test.go index f34bac7..b21bf20 100644 --- a/internal/provider/resource_repository_team_permission_test.go +++ b/internal/provider/resource_repository_team_permission_test.go @@ -1,3 +1,19 @@ +/* + Copyright 2024 Docker Terraform Provider 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 provider import ( diff --git a/internal/provider/resource_repository_test.go b/internal/provider/resource_repository_test.go index 5f9fb79..98d28bc 100644 --- a/internal/provider/resource_repository_test.go +++ b/internal/provider/resource_repository_test.go @@ -1,3 +1,19 @@ +/* + Copyright 2024 Docker Terraform Provider 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 provider import ( diff --git a/internal/repositoryutils/repositoryutils.go b/internal/repositoryutils/repositoryutils.go index 720def9..5000da2 100644 --- a/internal/repositoryutils/repositoryutils.go +++ b/internal/repositoryutils/repositoryutils.go @@ -1,3 +1,19 @@ +/* + Copyright 2024 Docker Terraform Provider 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 repositoryutils import "fmt" diff --git a/main.go b/main.go index d761a48..5bbbda0 100644 --- a/main.go +++ b/main.go @@ -1,3 +1,19 @@ +/* + Copyright 2024 Docker Terraform Provider 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/template/go.txt b/template/go.txt new file mode 100644 index 0000000..d97aedc --- /dev/null +++ b/template/go.txt @@ -0,0 +1,16 @@ +/* + Copyright 2024 Docker Terraform Provider 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/tools/credentials.go b/tools/credentials.go index 655e6c3..adc53a5 100644 --- a/tools/credentials.go +++ b/tools/credentials.go @@ -1,3 +1,19 @@ +/* + Copyright 2024 Docker Terraform Provider 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 tools import ( diff --git a/tools/tools.go b/tools/tools.go index 2c4f8fb..78a6b79 100644 --- a/tools/tools.go +++ b/tools/tools.go @@ -1,5 +1,21 @@ //go:build tools +/* + Copyright 2024 Docker Terraform Provider 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 tools import (