diff --git a/.codacy.yaml b/.codacy.yaml index 3f4c27fd..68b8563f 100644 --- a/.codacy.yaml +++ b/.codacy.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2023 Steffen Vogel +# SPDX-License-Identifier: Apache-2.0 + --- exclude_paths: - docs/usage/** diff --git a/.codecov.yaml b/.codecov.yaml index 6ca49021..4b23b87c 100644 --- a/.codecov.yaml +++ b/.codecov.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2023 Steffen Vogel +# SPDX-License-Identifier: Apache-2.0 + --- ignore: # Auto-generated files diff --git a/.github/workflows/analysis.yaml b/.github/workflows/analysis.yaml index 4fb84e06..e3bfc2ae 100644 --- a/.github/workflows/analysis.yaml +++ b/.github/workflows/analysis.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2023 Steffen Vogel +# SPDX-License-Identifier: Apache-2.0 + # yaml-language-server: $schema=https://raw.githubusercontent.com/SchemaStore/schemastore/master/src/schemas/json/github-workflow.json --- name: Analysis diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 7bca90ab..b2e2e9c5 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2023 Steffen Vogel +# SPDX-License-Identifier: Apache-2.0 + # yaml-language-server: $schema=https://raw.githubusercontent.com/SchemaStore/schemastore/master/src/schemas/json/github-workflow.json --- name: Build diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index fe868751..43f5839a 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2023 Steffen Vogel +# SPDX-License-Identifier: Apache-2.0 + # yaml-language-server: $schema=https://raw.githubusercontent.com/SchemaStore/schemastore/master/src/schemas/json/github-workflow.json --- name: Release diff --git a/.github/workflows/test-website.yaml b/.github/workflows/test-website.yaml index 9db07a55..9da2cb6d 100644 --- a/.github/workflows/test-website.yaml +++ b/.github/workflows/test-website.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2023 Steffen Vogel +# SPDX-License-Identifier: Apache-2.0 + # yaml-language-server: $schema=https://raw.githubusercontent.com/SchemaStore/schemastore/master/src/schemas/json/github-workflow.json --- name: Test build of website diff --git a/.github/workflows/website.yaml b/.github/workflows/website.yaml index b7c2eeef..ea1c5262 100644 --- a/.github/workflows/website.yaml +++ b/.github/workflows/website.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2023 Steffen Vogel +# SPDX-License-Identifier: Apache-2.0 + # yaml-language-server: $schema=https://raw.githubusercontent.com/SchemaStore/schemastore/master/src/schemas/json/github-workflow.json --- name: Build and deploy website to GitHub Pages diff --git a/.gitignore b/.gitignore index da4f36db..52e063b3 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2023 Steffen Vogel +# SPDX-License-Identifier: Apache-2.0 + build/ completions/ .vscode/ diff --git a/.golangci.yaml b/.golangci.yaml index 38d0d683..0d4fa7a9 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2023 Steffen Vogel +# SPDX-License-Identifier: Apache-2.0 + run: skip-files: - ".*\\.pb\\.go$" diff --git a/.goreleaser.yaml b/.goreleaser.yaml index f9ad9bc7..63dec3d9 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2023 Steffen Vogel +# SPDX-License-Identifier: Apache-2.0 + # yaml-language-server: $schema=https://goreleaser.com/static/schema.json --- project_name: cunicu diff --git a/.reuse/dep5 b/.reuse/dep5 new file mode 100644 index 00000000..25e55e13 --- /dev/null +++ b/.reuse/dep5 @@ -0,0 +1,12 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: cunicu +Upstream-Contact: Steffen Vogel +Source: https://cunicu.li + +Files: website/static/CNAME pkg/selfupdate/keys/09BE3BAE8D55D4CD8579285A9675EAC34897E6E2.gpg +Copyright: 2023 Steffen Vogel +License: CC0-1.0 + +Files: go.sum website/package.json website/yarn.lock +Copyright: 2023 Steffen Vogel +License: Apache-2.0 diff --git a/Dockerfile b/Dockerfile index fa79b3ee..164a3bf9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2023 Steffen Vogel +# SPDX-License-Identifier: Apache-2.0 + FROM golang:1.20-alpine AS builder RUN apk add \ diff --git a/Dockerfile.scratch b/Dockerfile.scratch index 3dc2f825..94f71123 100644 --- a/Dockerfile.scratch +++ b/Dockerfile.scratch @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2023 Steffen Vogel +# SPDX-License-Identifier: Apache-2.0 + FROM scratch ENTRYPOINT ["/cunicu"] COPY cunicu / diff --git a/LICENSES/Apache-2.0.txt b/LICENSES/Apache-2.0.txt new file mode 100644 index 00000000..137069b8 --- /dev/null +++ b/LICENSES/Apache-2.0.txt @@ -0,0 +1,73 @@ +Apache License +Version 2.0, January 2004 +http://www.apache.org/licenses/ + +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + +1. Definitions. + +"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. + +"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. + +"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. + +"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. + +"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. + +"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. + +"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). + +"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. + +"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." + +"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. + +2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. + +3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. + +4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: + + (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. + + You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. + +5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. + +6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. + +7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. + +8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. + +9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. + +END OF TERMS AND CONDITIONS + +APPENDIX: How to apply the Apache License to your work. + +To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. + +Copyright [yyyy] [name of copyright owner] + +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/LICENSES/CC0-1.0.txt b/LICENSES/CC0-1.0.txt new file mode 100644 index 00000000..0e259d42 --- /dev/null +++ b/LICENSES/CC0-1.0.txt @@ -0,0 +1,121 @@ +Creative Commons Legal Code + +CC0 1.0 Universal + + CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE + LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN + ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS + INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES + REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS + PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM + THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED + HEREUNDER. + +Statement of Purpose + +The laws of most jurisdictions throughout the world automatically confer +exclusive Copyright and Related Rights (defined below) upon the creator +and subsequent owner(s) (each and all, an "owner") of an original work of +authorship and/or a database (each, a "Work"). + +Certain owners wish to permanently relinquish those rights to a Work for +the purpose of contributing to a commons of creative, cultural and +scientific works ("Commons") that the public can reliably and without fear +of later claims of infringement build upon, modify, incorporate in other +works, reuse and redistribute as freely as possible in any form whatsoever +and for any purposes, including without limitation commercial purposes. +These owners may contribute to the Commons to promote the ideal of a free +culture and the further production of creative, cultural and scientific +works, or to gain reputation or greater distribution for their Work in +part through the use and efforts of others. + +For these and/or other purposes and motivations, and without any +expectation of additional consideration or compensation, the person +associating CC0 with a Work (the "Affirmer"), to the extent that he or she +is an owner of Copyright and Related Rights in the Work, voluntarily +elects to apply CC0 to the Work and publicly distribute the Work under its +terms, with knowledge of his or her Copyright and Related Rights in the +Work and the meaning and intended legal effect of CC0 on those rights. + +1. Copyright and Related Rights. A Work made available under CC0 may be +protected by copyright and related or neighboring rights ("Copyright and +Related Rights"). Copyright and Related Rights include, but are not +limited to, the following: + + i. the right to reproduce, adapt, distribute, perform, display, + communicate, and translate a Work; + ii. moral rights retained by the original author(s) and/or performer(s); +iii. publicity and privacy rights pertaining to a person's image or + likeness depicted in a Work; + iv. rights protecting against unfair competition in regards to a Work, + subject to the limitations in paragraph 4(a), below; + v. rights protecting the extraction, dissemination, use and reuse of data + in a Work; + vi. database rights (such as those arising under Directive 96/9/EC of the + European Parliament and of the Council of 11 March 1996 on the legal + protection of databases, and under any national implementation + thereof, including any amended or successor version of such + directive); and +vii. other similar, equivalent or corresponding rights throughout the + world based on applicable law or treaty, and any national + implementations thereof. + +2. Waiver. To the greatest extent permitted by, but not in contravention +of, applicable law, Affirmer hereby overtly, fully, permanently, +irrevocably and unconditionally waives, abandons, and surrenders all of +Affirmer's Copyright and Related Rights and associated claims and causes +of action, whether now known or unknown (including existing as well as +future claims and causes of action), in the Work (i) in all territories +worldwide, (ii) for the maximum duration provided by applicable law or +treaty (including future time extensions), (iii) in any current or future +medium and for any number of copies, and (iv) for any purpose whatsoever, +including without limitation commercial, advertising or promotional +purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each +member of the public at large and to the detriment of Affirmer's heirs and +successors, fully intending that such Waiver shall not be subject to +revocation, rescission, cancellation, termination, or any other legal or +equitable action to disrupt the quiet enjoyment of the Work by the public +as contemplated by Affirmer's express Statement of Purpose. + +3. Public License Fallback. Should any part of the Waiver for any reason +be judged legally invalid or ineffective under applicable law, then the +Waiver shall be preserved to the maximum extent permitted taking into +account Affirmer's express Statement of Purpose. In addition, to the +extent the Waiver is so judged Affirmer hereby grants to each affected +person a royalty-free, non transferable, non sublicensable, non exclusive, +irrevocable and unconditional license to exercise Affirmer's Copyright and +Related Rights in the Work (i) in all territories worldwide, (ii) for the +maximum duration provided by applicable law or treaty (including future +time extensions), (iii) in any current or future medium and for any number +of copies, and (iv) for any purpose whatsoever, including without +limitation commercial, advertising or promotional purposes (the +"License"). The License shall be deemed effective as of the date CC0 was +applied by Affirmer to the Work. Should any part of the License for any +reason be judged legally invalid or ineffective under applicable law, such +partial invalidity or ineffectiveness shall not invalidate the remainder +of the License, and in such case Affirmer hereby affirms that he or she +will not (i) exercise any of his or her remaining Copyright and Related +Rights in the Work or (ii) assert any associated claims and causes of +action with respect to the Work, in either case contrary to Affirmer's +express Statement of Purpose. + +4. Limitations and Disclaimers. + + a. No trademark or patent rights held by Affirmer are waived, abandoned, + surrendered, licensed or otherwise affected by this document. + b. Affirmer offers the Work as-is and makes no representations or + warranties of any kind concerning the Work, express, implied, + statutory or otherwise, including without limitation warranties of + title, merchantability, fitness for a particular purpose, non + infringement, or the absence of latent or other defects, accuracy, or + the present or absence of errors, whether or not discoverable, all to + the greatest extent permissible under applicable law. + c. Affirmer disclaims responsibility for clearing rights of other persons + that may apply to the Work or any use thereof, including without + limitation any person's Copyright and Related Rights in the Work. + Further, Affirmer disclaims responsibility for obtaining any necessary + consents, permissions or other rights required for any use of the + Work. + d. Affirmer understands and acknowledges that Creative Commons is not a + party to this document and has no duty or obligation with respect to + this CC0 or use of the Work. diff --git a/Makefile b/Makefile index 6aff36eb..5e0d3fd4 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2023 Steffen Vogel +# SPDX-License-Identifier: Apache-2.0 + PKG = $(shell grep module go.mod | cut -f2 -d" ") export CGO_ENABLED = 0 diff --git a/README.md b/README.md index 00af07d3..c4d68900 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,8 @@ + +

cunīcu logo

diff --git a/cmd/cunicu/addresses.go b/cmd/cunicu/addresses.go index 3b28c200..198022aa 100644 --- a/cmd/cunicu/addresses.go +++ b/cmd/cunicu/addresses.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package main import ( diff --git a/cmd/cunicu/banner.go b/cmd/cunicu/banner.go index 1600fc30..db53f665 100644 --- a/cmd/cunicu/banner.go +++ b/cmd/cunicu/banner.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package main import ( diff --git a/cmd/cunicu/client.go b/cmd/cunicu/client.go index c6e7718a..2b1a6a1f 100644 --- a/cmd/cunicu/client.go +++ b/cmd/cunicu/client.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package main import ( diff --git a/cmd/cunicu/cmd.go b/cmd/cunicu/cmd.go index 3221f4d1..48bda57c 100644 --- a/cmd/cunicu/cmd.go +++ b/cmd/cunicu/cmd.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + //nolint:gci package main diff --git a/cmd/cunicu/cmd_test.go b/cmd/cunicu/cmd_test.go index 0c55ee15..4d272075 100644 --- a/cmd/cunicu/cmd_test.go +++ b/cmd/cunicu/cmd_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + //go:build test package main diff --git a/cmd/cunicu/completions.go b/cmd/cunicu/completions.go index 02e39b59..ab047275 100644 --- a/cmd/cunicu/completions.go +++ b/cmd/cunicu/completions.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package main import ( diff --git a/cmd/cunicu/config.go b/cmd/cunicu/config.go index 762706ae..df1f2047 100644 --- a/cmd/cunicu/config.go +++ b/cmd/cunicu/config.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package main import ( diff --git a/cmd/cunicu/daemon.go b/cmd/cunicu/daemon.go index 459ccbfd..9723ad72 100644 --- a/cmd/cunicu/daemon.go +++ b/cmd/cunicu/daemon.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package main import ( diff --git a/cmd/cunicu/docs.go b/cmd/cunicu/docs.go index 4f4b5584..54134d36 100644 --- a/cmd/cunicu/docs.go +++ b/cmd/cunicu/docs.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package main import ( diff --git a/cmd/cunicu/invite.go b/cmd/cunicu/invite.go index a82d5b8a..d48343de 100644 --- a/cmd/cunicu/invite.go +++ b/cmd/cunicu/invite.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package main import ( diff --git a/cmd/cunicu/monitor.go b/cmd/cunicu/monitor.go index 701582a0..edf2ff35 100644 --- a/cmd/cunicu/monitor.go +++ b/cmd/cunicu/monitor.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package main import ( diff --git a/cmd/cunicu/relay.go b/cmd/cunicu/relay.go index ca04e475..be147693 100644 --- a/cmd/cunicu/relay.go +++ b/cmd/cunicu/relay.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package main import ( diff --git a/cmd/cunicu/restart.go b/cmd/cunicu/restart.go index 43af4577..ec2166cd 100644 --- a/cmd/cunicu/restart.go +++ b/cmd/cunicu/restart.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package main import ( diff --git a/cmd/cunicu/root.go b/cmd/cunicu/root.go index d13076fe..6d644413 100644 --- a/cmd/cunicu/root.go +++ b/cmd/cunicu/root.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + // Package main implements the command line interface package main diff --git a/cmd/cunicu/selfupdate.go b/cmd/cunicu/selfupdate.go index 04d6dc3c..84f46a6b 100644 --- a/cmd/cunicu/selfupdate.go +++ b/cmd/cunicu/selfupdate.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package main // derived from http://github.com/restic/restic diff --git a/cmd/cunicu/signal.go b/cmd/cunicu/signal.go index 05219a7f..7c70bd78 100644 --- a/cmd/cunicu/signal.go +++ b/cmd/cunicu/signal.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package main import ( diff --git a/cmd/cunicu/status.go b/cmd/cunicu/status.go index 2ed60994..01c07069 100644 --- a/cmd/cunicu/status.go +++ b/cmd/cunicu/status.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package main import ( diff --git a/cmd/cunicu/stop.go b/cmd/cunicu/stop.go index 285a8e78..9f309054 100644 --- a/cmd/cunicu/stop.go +++ b/cmd/cunicu/stop.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package main import ( diff --git a/cmd/cunicu/sync.go b/cmd/cunicu/sync.go index a69dc176..2e0e5950 100644 --- a/cmd/cunicu/sync.go +++ b/cmd/cunicu/sync.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package main import ( diff --git a/cmd/cunicu/version.go b/cmd/cunicu/version.go index 429b259a..ea4122b8 100644 --- a/cmd/cunicu/version.go +++ b/cmd/cunicu/version.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package main import ( diff --git a/cmd/cunicu/wg.go b/cmd/cunicu/wg.go index 5b454940..8770b5d6 100644 --- a/cmd/cunicu/wg.go +++ b/cmd/cunicu/wg.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package main import ( diff --git a/cmd/cunicu/wg_conf.go b/cmd/cunicu/wg_conf.go index 98020c0d..41f49af2 100644 --- a/cmd/cunicu/wg_conf.go +++ b/cmd/cunicu/wg_conf.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package main import ( diff --git a/cmd/cunicu/wg_extract_handshakes.go b/cmd/cunicu/wg_extract_handshakes.go index 54670c88..ba40b260 100644 --- a/cmd/cunicu/wg_extract_handshakes.go +++ b/cmd/cunicu/wg_extract_handshakes.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + //go:build tracer package main diff --git a/cmd/cunicu/wg_key.go b/cmd/cunicu/wg_key.go index b3f93af6..2ac83ed9 100644 --- a/cmd/cunicu/wg_key.go +++ b/cmd/cunicu/wg_key.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package main import ( diff --git a/cmd/cunicu/wg_show.go b/cmd/cunicu/wg_show.go index 46914b37..ba0af711 100644 --- a/cmd/cunicu/wg_show.go +++ b/cmd/cunicu/wg_show.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + //nolint:goconst package main diff --git a/docs/comparison.md b/docs/comparison.md index b01da522..3a8fc04c 100644 --- a/docs/comparison.md +++ b/docs/comparison.md @@ -1,3 +1,8 @@ + + --- title: Comparison sidebar_position: 99 diff --git a/docs/config-reference.md b/docs/config-reference.md index 435dfa0b..492ffaef 100644 --- a/docs/config-reference.md +++ b/docs/config-reference.md @@ -1,3 +1,8 @@ + + --- sidebar_position: 8 --- diff --git a/docs/config.md b/docs/config.md index 0b5f35d3..25f71d0f 100644 --- a/docs/config.md +++ b/docs/config.md @@ -1,3 +1,8 @@ + + --- sidebar_position: 7 --- diff --git a/docs/design.md b/docs/design.md index 3abc2d47..c45beba2 100644 --- a/docs/design.md +++ b/docs/design.md @@ -1,3 +1,8 @@ + + --- sidebar_position: 20 --- diff --git a/docs/development/index.md b/docs/development/index.md index f7bc3e04..91081af6 100644 --- a/docs/development/index.md +++ b/docs/development/index.md @@ -1,3 +1,8 @@ + + --- sidebar_position: 199 --- diff --git a/docs/development/proxying.md b/docs/development/proxying.md index 1a51bdae..2a0f522d 100644 --- a/docs/development/proxying.md +++ b/docs/development/proxying.md @@ -1,3 +1,8 @@ + + # Proxying cunīcu implements multiple ways of running an ICE agent alongside WireGuard on the same UDP ports. diff --git a/docs/development/signaling.md b/docs/development/signaling.md index 8ce99db1..ba546bd3 100644 --- a/docs/development/signaling.md +++ b/docs/development/signaling.md @@ -1,3 +1,8 @@ + + # Session Signaling Lets assume two peers $P_a$ & $P_b$ are seeking to establish a ICE session. diff --git a/docs/features/_category_.yml b/docs/features/_category_.yml index 28cbfe94..80e16ebb 100644 --- a/docs/features/_category_.yml +++ b/docs/features/_category_.yml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2023 Steffen Vogel +# SPDX-License-Identifier: Apache-2.0 + position: 9 label: "Features" collapsible: true diff --git a/docs/features/autocfg.md b/docs/features/autocfg.md index 9e0e6885..2d8ed6e3 100644 --- a/docs/features/autocfg.md +++ b/docs/features/autocfg.md @@ -1,3 +1,8 @@ + + --- title: Auto-configuration --- diff --git a/docs/features/cfgsync.md b/docs/features/cfgsync.md index cae8e947..99b2c4f2 100644 --- a/docs/features/cfgsync.md +++ b/docs/features/cfgsync.md @@ -1,3 +1,8 @@ + + --- title: Config-file Synchronization --- diff --git a/docs/features/epdisc.md b/docs/features/epdisc.md index 28cf69ce..4750e019 100644 --- a/docs/features/epdisc.md +++ b/docs/features/epdisc.md @@ -1,3 +1,8 @@ + + --- title: Endpoint Discovery --- diff --git a/docs/features/hooks.md b/docs/features/hooks.md index 14222fff..a28b6d31 100644 --- a/docs/features/hooks.md +++ b/docs/features/hooks.md @@ -1,3 +1,8 @@ + + --- title: Hooks --- diff --git a/docs/features/hsync.md b/docs/features/hsync.md index ed9550d8..a79de5a3 100644 --- a/docs/features/hsync.md +++ b/docs/features/hsync.md @@ -1,3 +1,8 @@ + + --- title: Hosts-file Synchronization --- diff --git a/docs/features/index.md b/docs/features/index.md index 5966efbf..33b4b1c4 100644 --- a/docs/features/index.md +++ b/docs/features/index.md @@ -1,3 +1,8 @@ + + --- --- diff --git a/docs/features/pdisc.md b/docs/features/pdisc.md index 39aa9668..9dc9ff0a 100644 --- a/docs/features/pdisc.md +++ b/docs/features/pdisc.md @@ -1,3 +1,8 @@ + + --- title: Peer Discovery --- diff --git a/docs/features/pske.md b/docs/features/pske.md index dde35f59..a1537498 100644 --- a/docs/features/pske.md +++ b/docs/features/pske.md @@ -1,3 +1,8 @@ + + --- title: Pre-shared Key Establishment --- diff --git a/docs/features/rtsync.md b/docs/features/rtsync.md index 41400483..b37937df 100644 --- a/docs/features/rtsync.md +++ b/docs/features/rtsync.md @@ -1,3 +1,8 @@ + + --- title: Route Synchronization --- diff --git a/docs/index.md b/docs/index.md index 9616e3f6..4fc42a72 100644 --- a/docs/index.md +++ b/docs/index.md @@ -1,3 +1,8 @@ + + --- title: Welcome sidebar_position: 1 diff --git a/docs/install.md b/docs/install.md index a8807e83..4dcf51e9 100644 --- a/docs/install.md +++ b/docs/install.md @@ -1,3 +1,8 @@ + + --- sidebar_position: 5 --- diff --git a/docs/usage/_category_.yml b/docs/usage/_category_.yml index 157f6fe4..7c9da78e 100644 --- a/docs/usage/_category_.yml +++ b/docs/usage/_category_.yml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2023 Steffen Vogel +# SPDX-License-Identifier: Apache-2.0 + position: 10 label: "Usage" collapsible: true diff --git a/docs/usage/index.md b/docs/usage/index.md index 74e11b9a..080e82b4 100644 --- a/docs/usage/index.md +++ b/docs/usage/index.md @@ -1,3 +1,8 @@ + + # Usage ## Command Line diff --git a/docs/usage/md/_category_.yml b/docs/usage/md/_category_.yml index 9facb583..fb7e72f3 100644 --- a/docs/usage/md/_category_.yml +++ b/docs/usage/md/_category_.yml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2023 Steffen Vogel +# SPDX-License-Identifier: Apache-2.0 + position: 3.5 label: "Man Pages" collapsible: true diff --git a/docs/usage/upgrade.md b/docs/usage/upgrade.md index 83c03594..84cc3226 100644 --- a/docs/usage/upgrade.md +++ b/docs/usage/upgrade.md @@ -1,3 +1,8 @@ + + # Self-update cunīcu has a built-in self update functionality. diff --git a/docs/usage/usecases.md b/docs/usage/usecases.md index 7b5dce4b..843847b2 100644 --- a/docs/usage/usecases.md +++ b/docs/usage/usecases.md @@ -1,3 +1,8 @@ + + # Use-cases ## Zero-configuration diff --git a/etc/cunicu.yaml b/etc/cunicu.yaml index 7abcbc6c..f553444a 100644 --- a/etc/cunicu.yaml +++ b/etc/cunicu.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2023 Steffen Vogel +# SPDX-License-Identifier: Apache-2.0 + # An interval at which cunīcu will periodically check for added, # removed or modified WireGuard interfaces. watch_interval: 1s diff --git a/etc/systemd/cunicu.service b/etc/systemd/cunicu.service index fd46b901..0af465bd 100644 --- a/etc/systemd/cunicu.service +++ b/etc/systemd/cunicu.service @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2023 Steffen Vogel +# SPDX-License-Identifier: Apache-2.0 + [Unit] Description=WireGuard Interactive Connectivity Establishment diff --git a/go.mod b/go.mod index 3ca75fdc..4effbdfb 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + module github.com/stv0g/cunicu go 1.20 diff --git a/pkg/buildinfo/buildinfo.go b/pkg/buildinfo/buildinfo.go index e4c3ebd9..0dca44de 100644 --- a/pkg/buildinfo/buildinfo.go +++ b/pkg/buildinfo/buildinfo.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + // Package buildinfo provides access to build-time information such as the build date and version control details package buildinfo diff --git a/pkg/config/agent.go b/pkg/config/agent.go index c96e31cb..cb0aeefb 100644 --- a/pkg/config/agent.go +++ b/pkg/config/agent.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package config import ( diff --git a/pkg/config/agent_test.go b/pkg/config/agent_test.go index 06b3e1e8..baf6f601 100644 --- a/pkg/config/agent_test.go +++ b/pkg/config/agent_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package config_test import ( diff --git a/pkg/config/config.go b/pkg/config/config.go index e00fcd9f..87866860 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + // Package config defines, loads and parses project wide configuration settings from various sources package config diff --git a/pkg/config/config_test.go b/pkg/config/config_test.go index a4d6acdb..09d54357 100644 --- a/pkg/config/config_test.go +++ b/pkg/config/config_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package config_test import ( diff --git a/pkg/config/defaults.go b/pkg/config/defaults.go index 1ace587a..891c8a8d 100644 --- a/pkg/config/defaults.go +++ b/pkg/config/defaults.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package config import ( diff --git a/pkg/config/defaults_linux.go b/pkg/config/defaults_linux.go index c428cba6..88034dfa 100644 --- a/pkg/config/defaults_linux.go +++ b/pkg/config/defaults_linux.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package config const ( diff --git a/pkg/config/defaults_other.go b/pkg/config/defaults_other.go index 21e61e62..58737bf0 100644 --- a/pkg/config/defaults_other.go +++ b/pkg/config/defaults_other.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + //go:build !linux package config diff --git a/pkg/config/defaults_test.go b/pkg/config/defaults_test.go index ce5dfae7..18fa4373 100644 --- a/pkg/config/defaults_test.go +++ b/pkg/config/defaults_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package config_test import ( diff --git a/pkg/config/defaults_unix.go b/pkg/config/defaults_unix.go index 7f2f2959..443ae413 100644 --- a/pkg/config/defaults_unix.go +++ b/pkg/config/defaults_unix.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package config //nolint:gochecknoglobals diff --git a/pkg/config/diff.go b/pkg/config/diff.go index d5008114..755c3a9e 100644 --- a/pkg/config/diff.go +++ b/pkg/config/diff.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package config import ( diff --git a/pkg/config/diff_test.go b/pkg/config/diff_test.go index e5579571..b25e9e5d 100644 --- a/pkg/config/diff_test.go +++ b/pkg/config/diff_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package config_test import ( diff --git a/pkg/config/handlers.go b/pkg/config/handlers.go index 4b16b602..dd36ec66 100644 --- a/pkg/config/handlers.go +++ b/pkg/config/handlers.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package config import ( diff --git a/pkg/config/hooks.go b/pkg/config/hooks.go index 71dcb243..f7075618 100644 --- a/pkg/config/hooks.go +++ b/pkg/config/hooks.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package config import ( diff --git a/pkg/config/lookup_test.go b/pkg/config/lookup_test.go index 681781cf..53bfd7a8 100644 --- a/pkg/config/lookup_test.go +++ b/pkg/config/lookup_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package config_test import ( diff --git a/pkg/config/map.go b/pkg/config/map.go index e14cf69b..9f07b584 100644 --- a/pkg/config/map.go +++ b/pkg/config/map.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package config import ( diff --git a/pkg/config/map_test.go b/pkg/config/map_test.go index 6e9c7799..eb7fc15e 100644 --- a/pkg/config/map_test.go +++ b/pkg/config/map_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package config_test import ( diff --git a/pkg/config/meta.go b/pkg/config/meta.go index 5183ef79..f73a7103 100644 --- a/pkg/config/meta.go +++ b/pkg/config/meta.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package config import ( diff --git a/pkg/config/meta_test.go b/pkg/config/meta_test.go index 02bd7858..3c0a105a 100644 --- a/pkg/config/meta_test.go +++ b/pkg/config/meta_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package config_test import ( diff --git a/pkg/config/order.go b/pkg/config/order.go index d48d5aea..0df3bd6b 100644 --- a/pkg/config/order.go +++ b/pkg/config/order.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package config import ( diff --git a/pkg/config/order_test.go b/pkg/config/order_test.go index c95b7f5f..5fdeb6df 100644 --- a/pkg/config/order_test.go +++ b/pkg/config/order_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package config_test import ( diff --git a/pkg/config/provider_env.go b/pkg/config/provider_env.go index 907ed186..f841b08d 100644 --- a/pkg/config/provider_env.go +++ b/pkg/config/provider_env.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package config import ( diff --git a/pkg/config/provider_file.go b/pkg/config/provider_file.go index 0d143975..9ccadfb0 100644 --- a/pkg/config/provider_file.go +++ b/pkg/config/provider_file.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package config import ( diff --git a/pkg/config/provider_flags.go b/pkg/config/provider_flags.go index 3c0e355d..3527f4ab 100644 --- a/pkg/config/provider_flags.go +++ b/pkg/config/provider_flags.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package config import ( diff --git a/pkg/config/provider_lookup.go b/pkg/config/provider_lookup.go index b7bb1452..6cea2820 100644 --- a/pkg/config/provider_lookup.go +++ b/pkg/config/provider_lookup.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package config import ( diff --git a/pkg/config/provider_structs.go b/pkg/config/provider_structs.go index 9042c922..b52dcbae 100644 --- a/pkg/config/provider_structs.go +++ b/pkg/config/provider_structs.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package config type StructsProvider struct { diff --git a/pkg/config/provider_wg.go b/pkg/config/provider_wg.go index 20114c60..a2250b32 100644 --- a/pkg/config/provider_wg.go +++ b/pkg/config/provider_wg.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package config import ( diff --git a/pkg/config/providers.go b/pkg/config/providers.go index 595e6090..30d79e46 100644 --- a/pkg/config/providers.go +++ b/pkg/config/providers.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package config import ( diff --git a/pkg/config/settings.go b/pkg/config/settings.go index a1eeeb2c..c60513be 100644 --- a/pkg/config/settings.go +++ b/pkg/config/settings.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package config import ( diff --git a/pkg/config/source.go b/pkg/config/source.go index 0b59e144..8f9e0ab6 100644 --- a/pkg/config/source.go +++ b/pkg/config/source.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package config import ( diff --git a/pkg/config/types.go b/pkg/config/types.go index dbee9d23..df059a2b 100644 --- a/pkg/config/types.go +++ b/pkg/config/types.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package config import ( diff --git a/pkg/config/types_test.go b/pkg/config/types_test.go index acf28840..bbeec94a 100644 --- a/pkg/config/types_test.go +++ b/pkg/config/types_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package config_test import ( diff --git a/pkg/config/wg_test.go b/pkg/config/wg_test.go index b5cdd2f9..8c1056f5 100644 --- a/pkg/config/wg_test.go +++ b/pkg/config/wg_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package config_test import ( diff --git a/pkg/crypto/crypto.go b/pkg/crypto/crypto.go index 0d4d306c..c3e04742 100644 --- a/pkg/crypto/crypto.go +++ b/pkg/crypto/crypto.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + // Package crypto implements basic crypto primitives used in the project package crypto diff --git a/pkg/crypto/crypto_test.go b/pkg/crypto/crypto_test.go index 7d21d0d2..29be55d5 100644 --- a/pkg/crypto/crypto_test.go +++ b/pkg/crypto/crypto_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package crypto_test import ( diff --git a/pkg/crypto/types.go b/pkg/crypto/types.go index c97eeaf9..d3610d50 100644 --- a/pkg/crypto/types.go +++ b/pkg/crypto/types.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package crypto // TODO: Remove nolint directive once gci knows the new package diff --git a/pkg/crypto/types_test.go b/pkg/crypto/types_test.go index 9c4f7c67..92a718ef 100644 --- a/pkg/crypto/types_test.go +++ b/pkg/crypto/types_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package crypto_test import ( diff --git a/pkg/daemon/daemon.go b/pkg/daemon/daemon.go index 9ef0d0a9..a10692d9 100644 --- a/pkg/daemon/daemon.go +++ b/pkg/daemon/daemon.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package daemon import ( diff --git a/pkg/daemon/daemon_handlers.go b/pkg/daemon/daemon_handlers.go index a3812133..b1b3ed9a 100644 --- a/pkg/daemon/daemon_handlers.go +++ b/pkg/daemon/daemon_handlers.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package daemon import ( diff --git a/pkg/daemon/feature.go b/pkg/daemon/feature.go index 0e83f87c..b77530dc 100644 --- a/pkg/daemon/feature.go +++ b/pkg/daemon/feature.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package daemon import ( diff --git a/pkg/daemon/feature/autocfg/autocfg.go b/pkg/daemon/feature/autocfg/autocfg.go index 8b8515e9..c7055c8e 100644 --- a/pkg/daemon/feature/autocfg/autocfg.go +++ b/pkg/daemon/feature/autocfg/autocfg.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + // Package autocfg handles initial auto-configuration of new interfaces and peers package autocfg diff --git a/pkg/daemon/feature/autocfg/handlers.go b/pkg/daemon/feature/autocfg/handlers.go index 4f70cd22..80c92f29 100644 --- a/pkg/daemon/feature/autocfg/handlers.go +++ b/pkg/daemon/feature/autocfg/handlers.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package autocfg import ( diff --git a/pkg/daemon/feature/cfgsync/cfgsync.go b/pkg/daemon/feature/cfgsync/cfgsync.go index caf0074d..103d19bf 100644 --- a/pkg/daemon/feature/cfgsync/cfgsync.go +++ b/pkg/daemon/feature/cfgsync/cfgsync.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package cfgsync import ( diff --git a/pkg/daemon/feature/epdisc/epdisc.go b/pkg/daemon/feature/epdisc/epdisc.go index c0a4f3c5..f67c146e 100644 --- a/pkg/daemon/feature/epdisc/epdisc.go +++ b/pkg/daemon/feature/epdisc/epdisc.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + // Package epdisc implements endpoint (EP) discovery using Interactive Connection Establishment (ICE). package epdisc diff --git a/pkg/daemon/feature/epdisc/handlers.go b/pkg/daemon/feature/epdisc/handlers.go index 3b759b85..96e154ad 100644 --- a/pkg/daemon/feature/epdisc/handlers.go +++ b/pkg/daemon/feature/epdisc/handlers.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package epdisc import ( diff --git a/pkg/daemon/feature/epdisc/mux.go b/pkg/daemon/feature/epdisc/mux.go index 76eed175..457b8434 100644 --- a/pkg/daemon/feature/epdisc/mux.go +++ b/pkg/daemon/feature/epdisc/mux.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package epdisc import ( diff --git a/pkg/daemon/feature/epdisc/nat.go b/pkg/daemon/feature/epdisc/nat.go index 585a46b2..0aaf1f6d 100644 --- a/pkg/daemon/feature/epdisc/nat.go +++ b/pkg/daemon/feature/epdisc/nat.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package epdisc import ( diff --git a/pkg/daemon/feature/epdisc/nat_linux.go b/pkg/daemon/feature/epdisc/nat_linux.go index a4ed8ebc..206bd072 100644 --- a/pkg/daemon/feature/epdisc/nat_linux.go +++ b/pkg/daemon/feature/epdisc/nat_linux.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package epdisc import ( diff --git a/pkg/daemon/feature/epdisc/nat_others.go b/pkg/daemon/feature/epdisc/nat_others.go index 2ab656b3..8c1108c8 100644 --- a/pkg/daemon/feature/epdisc/nat_others.go +++ b/pkg/daemon/feature/epdisc/nat_others.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + //go:build !linux package epdisc diff --git a/pkg/daemon/feature/epdisc/nftables_linux.go b/pkg/daemon/feature/epdisc/nftables_linux.go index 41c132a2..53b95771 100644 --- a/pkg/daemon/feature/epdisc/nftables_linux.go +++ b/pkg/daemon/feature/epdisc/nftables_linux.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package epdisc import "encoding/binary" diff --git a/pkg/daemon/feature/epdisc/peer.go b/pkg/daemon/feature/epdisc/peer.go index 65dca0a2..bf2713d4 100644 --- a/pkg/daemon/feature/epdisc/peer.go +++ b/pkg/daemon/feature/epdisc/peer.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package epdisc import ( diff --git a/pkg/daemon/feature/epdisc/peer_handlers.go b/pkg/daemon/feature/epdisc/peer_handlers.go index e2dfeb44..7d649ba1 100644 --- a/pkg/daemon/feature/epdisc/peer_handlers.go +++ b/pkg/daemon/feature/epdisc/peer_handlers.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package epdisc import ( diff --git a/pkg/daemon/feature/epdisc/peer_state.go b/pkg/daemon/feature/epdisc/peer_state.go index 49799667..c5743935 100644 --- a/pkg/daemon/feature/epdisc/peer_state.go +++ b/pkg/daemon/feature/epdisc/peer_state.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package epdisc import ( diff --git a/pkg/daemon/feature/epdisc/proxy.go b/pkg/daemon/feature/epdisc/proxy.go index 8a1f72ff..a925676d 100644 --- a/pkg/daemon/feature/epdisc/proxy.go +++ b/pkg/daemon/feature/epdisc/proxy.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package epdisc import ( diff --git a/pkg/daemon/feature/epdisc/proxy_bind.go b/pkg/daemon/feature/epdisc/proxy_bind.go index 87f9b540..912ba8e5 100644 --- a/pkg/daemon/feature/epdisc/proxy_bind.go +++ b/pkg/daemon/feature/epdisc/proxy_bind.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package epdisc import ( diff --git a/pkg/daemon/feature/epdisc/proxy_kernel_conn.go b/pkg/daemon/feature/epdisc/proxy_kernel_conn.go index 80b7559e..302421e0 100644 --- a/pkg/daemon/feature/epdisc/proxy_kernel_conn.go +++ b/pkg/daemon/feature/epdisc/proxy_kernel_conn.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package epdisc import ( diff --git a/pkg/daemon/feature/epdisc/proxy_kernel_nat.go b/pkg/daemon/feature/epdisc/proxy_kernel_nat.go index 9185a50a..6e7fcca7 100644 --- a/pkg/daemon/feature/epdisc/proxy_kernel_nat.go +++ b/pkg/daemon/feature/epdisc/proxy_kernel_nat.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package epdisc import ( diff --git a/pkg/daemon/feature/hooks/exec.go b/pkg/daemon/feature/hooks/exec.go index 545bfb84..d05f1d2b 100644 --- a/pkg/daemon/feature/hooks/exec.go +++ b/pkg/daemon/feature/hooks/exec.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package hooks import ( diff --git a/pkg/daemon/feature/hooks/hooks.go b/pkg/daemon/feature/hooks/hooks.go index 64e6d528..e760a010 100644 --- a/pkg/daemon/feature/hooks/hooks.go +++ b/pkg/daemon/feature/hooks/hooks.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package hooks import ( diff --git a/pkg/daemon/feature/hooks/marshal.go b/pkg/daemon/feature/hooks/marshal.go index 3a86242d..5e61f954 100644 --- a/pkg/daemon/feature/hooks/marshal.go +++ b/pkg/daemon/feature/hooks/marshal.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package hooks import ( diff --git a/pkg/daemon/feature/hooks/web.go b/pkg/daemon/feature/hooks/web.go index 7f2fbb15..3e445eec 100644 --- a/pkg/daemon/feature/hooks/web.go +++ b/pkg/daemon/feature/hooks/web.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package hooks import ( diff --git a/pkg/daemon/feature/hsync/handlers.go b/pkg/daemon/feature/hsync/handlers.go index 06596947..9d125a6d 100644 --- a/pkg/daemon/feature/hsync/handlers.go +++ b/pkg/daemon/feature/hsync/handlers.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package hsync import ( diff --git a/pkg/daemon/feature/hsync/host.go b/pkg/daemon/feature/hsync/host.go index 16b77c75..da4058a9 100644 --- a/pkg/daemon/feature/hsync/host.go +++ b/pkg/daemon/feature/hsync/host.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package hsync import ( diff --git a/pkg/daemon/feature/hsync/hsync.go b/pkg/daemon/feature/hsync/hsync.go index 9fb509b6..af00a966 100644 --- a/pkg/daemon/feature/hsync/hsync.go +++ b/pkg/daemon/feature/hsync/hsync.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + // Package hsync synchronizes /etc/hosts with pairs of peer hostname and their respective IP addresses package hsync diff --git a/pkg/daemon/feature/hsync/util.go b/pkg/daemon/feature/hsync/util.go index a147bba4..4af30dae 100644 --- a/pkg/daemon/feature/hsync/util.go +++ b/pkg/daemon/feature/hsync/util.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package hsync import ( diff --git a/pkg/daemon/feature/pdisc/handlers.go b/pkg/daemon/feature/pdisc/handlers.go index aedb0d42..58d06f25 100644 --- a/pkg/daemon/feature/pdisc/handlers.go +++ b/pkg/daemon/feature/pdisc/handlers.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package pdisc import ( diff --git a/pkg/daemon/feature/pdisc/pdisc.go b/pkg/daemon/feature/pdisc/pdisc.go index bb5fdccc..5d07b276 100644 --- a/pkg/daemon/feature/pdisc/pdisc.go +++ b/pkg/daemon/feature/pdisc/pdisc.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + // Package pdisc implements peer discovery based on a shared community passphrase. package pdisc diff --git a/pkg/daemon/feature/rtsync/handlers.go b/pkg/daemon/feature/rtsync/handlers.go index c28c3648..57ffe4ff 100644 --- a/pkg/daemon/feature/rtsync/handlers.go +++ b/pkg/daemon/feature/rtsync/handlers.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package rtsync import ( diff --git a/pkg/daemon/feature/rtsync/rtsync.go b/pkg/daemon/feature/rtsync/rtsync.go index ddf9c45b..45ad1e96 100644 --- a/pkg/daemon/feature/rtsync/rtsync.go +++ b/pkg/daemon/feature/rtsync/rtsync.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + // Package rtsync synchronizes the kernel routing table with the AllowedIPs of each WireGuard peer package rtsync diff --git a/pkg/daemon/feature/rtsync/sync_linux.go b/pkg/daemon/feature/rtsync/sync_linux.go index 4ca07853..e4b8efa7 100644 --- a/pkg/daemon/feature/rtsync/sync_linux.go +++ b/pkg/daemon/feature/rtsync/sync_linux.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package rtsync import ( diff --git a/pkg/daemon/feature/rtsync/sync_others.go b/pkg/daemon/feature/rtsync/sync_others.go index c0b179f4..02f6a2eb 100644 --- a/pkg/daemon/feature/rtsync/sync_others.go +++ b/pkg/daemon/feature/rtsync/sync_others.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + //go:build !linux package rtsync diff --git a/pkg/daemon/handlers_all.go b/pkg/daemon/handlers_all.go index fceeb877..936380f9 100644 --- a/pkg/daemon/handlers_all.go +++ b/pkg/daemon/handlers_all.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package daemon import ( diff --git a/pkg/daemon/handlers_event.go b/pkg/daemon/handlers_event.go index fb234494..3003bb17 100644 --- a/pkg/daemon/handlers_event.go +++ b/pkg/daemon/handlers_event.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package daemon import ( diff --git a/pkg/daemon/interface.go b/pkg/daemon/interface.go index 804ef84f..e10b7e39 100644 --- a/pkg/daemon/interface.go +++ b/pkg/daemon/interface.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package daemon import ( diff --git a/pkg/daemon/interface_handlers.go b/pkg/daemon/interface_handlers.go index 164023b4..b4c08833 100644 --- a/pkg/daemon/interface_handlers.go +++ b/pkg/daemon/interface_handlers.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package daemon import ( diff --git a/pkg/daemon/interface_list.go b/pkg/daemon/interface_list.go index 43a92fde..77ab3aa1 100644 --- a/pkg/daemon/interface_list.go +++ b/pkg/daemon/interface_list.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package daemon import ( diff --git a/pkg/daemon/interface_modifier.go b/pkg/daemon/interface_modifier.go index 3564b9ce..b1571b25 100644 --- a/pkg/daemon/interface_modifier.go +++ b/pkg/daemon/interface_modifier.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package daemon import "strings" diff --git a/pkg/daemon/interface_modifier_test.go b/pkg/daemon/interface_modifier_test.go index 150d7164..024ea885 100644 --- a/pkg/daemon/interface_modifier_test.go +++ b/pkg/daemon/interface_modifier_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package daemon_test import ( diff --git a/pkg/daemon/peer.go b/pkg/daemon/peer.go index 86ddbc44..0973da13 100644 --- a/pkg/daemon/peer.go +++ b/pkg/daemon/peer.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package daemon import ( diff --git a/pkg/daemon/peer_handlers.go b/pkg/daemon/peer_handlers.go index b98f3ffe..ad81e541 100644 --- a/pkg/daemon/peer_handlers.go +++ b/pkg/daemon/peer_handlers.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package daemon import ( diff --git a/pkg/daemon/peer_modifier.go b/pkg/daemon/peer_modifier.go index 18b2f0ef..17b65ad8 100644 --- a/pkg/daemon/peer_modifier.go +++ b/pkg/daemon/peer_modifier.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package daemon import "strings" diff --git a/pkg/daemon/peer_state.go b/pkg/daemon/peer_state.go index 80ae801d..d34704b4 100644 --- a/pkg/daemon/peer_state.go +++ b/pkg/daemon/peer_state.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package daemon import ( diff --git a/pkg/daemon/watcher.go b/pkg/daemon/watcher.go index bc49f7ae..2ae1cfa2 100644 --- a/pkg/daemon/watcher.go +++ b/pkg/daemon/watcher.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + // Package watcher keeps track and monitors for new, removed and modified WireGuard interfaces and peers. package daemon diff --git a/pkg/daemon/watcher_handlers.go b/pkg/daemon/watcher_handlers.go index 53255250..c592b4bb 100644 --- a/pkg/daemon/watcher_handlers.go +++ b/pkg/daemon/watcher_handlers.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package daemon import "golang.org/x/exp/slices" diff --git a/pkg/daemon/watcher_linux.go b/pkg/daemon/watcher_linux.go index 0d35554e..a0ee1eec 100644 --- a/pkg/daemon/watcher_linux.go +++ b/pkg/daemon/watcher_linux.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package daemon import ( diff --git a/pkg/daemon/watcher_linux_test.go b/pkg/daemon/watcher_linux_test.go index 2a430af8..11cd6e11 100644 --- a/pkg/daemon/watcher_linux_test.go +++ b/pkg/daemon/watcher_linux_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + //go:build linux package daemon_test diff --git a/pkg/daemon/watcher_others.go b/pkg/daemon/watcher_others.go index 4b27757b..4c01468e 100644 --- a/pkg/daemon/watcher_others.go +++ b/pkg/daemon/watcher_others.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + //go:build !linux package daemon diff --git a/pkg/daemon/watcher_test.go b/pkg/daemon/watcher_test.go index c32e2303..31a28088 100644 --- a/pkg/daemon/watcher_test.go +++ b/pkg/daemon/watcher_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package daemon_test import ( diff --git a/pkg/daemon/watcher_user.go b/pkg/daemon/watcher_user.go index ef7a8dcd..e03dd3b5 100644 --- a/pkg/daemon/watcher_user.go +++ b/pkg/daemon/watcher_user.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package daemon import ( diff --git a/pkg/device/device.go b/pkg/device/device.go index cecde26f..6e203deb 100644 --- a/pkg/device/device.go +++ b/pkg/device/device.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + // Package device implements OS abstractions for managing WireGuard links package device diff --git a/pkg/device/device_kernel.go b/pkg/device/device_kernel.go index c09909bf..65286fa3 100644 --- a/pkg/device/device_kernel.go +++ b/pkg/device/device_kernel.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package device import ( diff --git a/pkg/device/device_test.go b/pkg/device/device_test.go index cb7c5dbc..3b1896bb 100644 --- a/pkg/device/device_test.go +++ b/pkg/device/device_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package device_test import ( diff --git a/pkg/device/device_user.go b/pkg/device/device_user.go index bb19f857..ff81075d 100644 --- a/pkg/device/device_user.go +++ b/pkg/device/device_user.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package device import ( diff --git a/pkg/device/device_user_others.go b/pkg/device/device_user_others.go index 1d9931bf..51741e78 100644 --- a/pkg/device/device_user_others.go +++ b/pkg/device/device_user_others.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + //go:build !windows package device diff --git a/pkg/device/device_user_windows.go b/pkg/device/device_user_windows.go index 2fd1822e..b29f76c5 100644 --- a/pkg/device/device_user_windows.go +++ b/pkg/device/device_user_windows.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package device import ( diff --git a/pkg/ice/ice.go b/pkg/ice/ice.go index ec81a2fa..1c5e8507 100644 --- a/pkg/ice/ice.go +++ b/pkg/ice/ice.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + // Package ice extends the pion/ice package with custom (un-)marshaling support package ice diff --git a/pkg/ice/ice_test.go b/pkg/ice/ice_test.go index 734c5ef9..848d9617 100644 --- a/pkg/ice/ice_test.go +++ b/pkg/ice/ice_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package ice_test import ( diff --git a/pkg/ice/mux.go b/pkg/ice/mux.go index b1bb0bd4..82345b72 100644 --- a/pkg/ice/mux.go +++ b/pkg/ice/mux.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package ice import ( diff --git a/pkg/ice/types.go b/pkg/ice/types.go index 6cce1bab..c038e384 100644 --- a/pkg/ice/types.go +++ b/pkg/ice/types.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package ice import ( diff --git a/pkg/ice/types_test.go b/pkg/ice/types_test.go index 06e5913f..b9ca5f40 100644 --- a/pkg/ice/types_test.go +++ b/pkg/ice/types_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package ice_test import ( diff --git a/pkg/link/link.go b/pkg/link/link.go index 1a42fbed..8204d98a 100644 --- a/pkg/link/link.go +++ b/pkg/link/link.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package link import ( diff --git a/pkg/link/link_bsd.go b/pkg/link/link_bsd.go index f6a8729f..00c20110 100644 --- a/pkg/link/link_bsd.go +++ b/pkg/link/link_bsd.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + //go:build darwin || freebsd package link diff --git a/pkg/link/link_darwin.go b/pkg/link/link_darwin.go index 02289cd0..4ea0729c 100644 --- a/pkg/link/link_darwin.go +++ b/pkg/link/link_darwin.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package link import ( diff --git a/pkg/link/link_freebsd.go b/pkg/link/link_freebsd.go index 981341bc..485ed20a 100644 --- a/pkg/link/link_freebsd.go +++ b/pkg/link/link_freebsd.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package link import ( diff --git a/pkg/link/link_linux.go b/pkg/link/link_linux.go index 4dad9a13..a7e064f0 100644 --- a/pkg/link/link_linux.go +++ b/pkg/link/link_linux.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package link import ( diff --git a/pkg/link/link_linux_test.go b/pkg/link/link_linux_test.go index 725d06ec..41bc7c4d 100644 --- a/pkg/link/link_linux_test.go +++ b/pkg/link/link_linux_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + //go:build linux package link_test diff --git a/pkg/link/link_others.go b/pkg/link/link_others.go index cb0c7c48..82a7eb94 100644 --- a/pkg/link/link_others.go +++ b/pkg/link/link_others.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + //go:build !(linux || freebsd || darwin) package link diff --git a/pkg/link/link_test.go b/pkg/link/link_test.go index 07a39a59..b72a1ebb 100644 --- a/pkg/link/link_test.go +++ b/pkg/link/link_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package link_test import ( diff --git a/pkg/link/link_windows.go b/pkg/link/link_windows.go index fd6406c5..b6220e88 100644 --- a/pkg/link/link_windows.go +++ b/pkg/link/link_windows.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package link import ( diff --git a/pkg/log/grpc.go b/pkg/log/grpc.go index 15c7ebec..132d2098 100644 --- a/pkg/log/grpc.go +++ b/pkg/log/grpc.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package log import ( diff --git a/pkg/log/log.go b/pkg/log/log.go index 29142fcc..28f1be9f 100644 --- a/pkg/log/log.go +++ b/pkg/log/log.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + // Package log implements adapters between logging types of various used packages package log diff --git a/pkg/log/log_test.go b/pkg/log/log_test.go index bc17af95..f1c7b226 100644 --- a/pkg/log/log_test.go +++ b/pkg/log/log_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package log_test import ( diff --git a/pkg/log/verbosity.go b/pkg/log/verbosity.go index 1ef926a1..172f15e0 100644 --- a/pkg/log/verbosity.go +++ b/pkg/log/verbosity.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package log import ( diff --git a/pkg/net/filtered_conn.go b/pkg/net/filtered_conn.go index 63dc4573..a0cd0bab 100644 --- a/pkg/net/filtered_conn.go +++ b/pkg/net/filtered_conn.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package net import ( diff --git a/pkg/net/filtered_conn_stun.go b/pkg/net/filtered_conn_stun.go index e842394a..ab2593d9 100644 --- a/pkg/net/filtered_conn_stun.go +++ b/pkg/net/filtered_conn_stun.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package net import ( diff --git a/pkg/net/filtered_conn_stun_test.go b/pkg/net/filtered_conn_stun_test.go index bb6bdaa1..69a34c49 100644 --- a/pkg/net/filtered_conn_stun_test.go +++ b/pkg/net/filtered_conn_stun_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package net_test import ( diff --git a/pkg/net/filtered_conn_test.go b/pkg/net/filtered_conn_test.go index b281d252..97b0abee 100644 --- a/pkg/net/filtered_conn_test.go +++ b/pkg/net/filtered_conn_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package net_test import ( diff --git a/pkg/net/listen.go b/pkg/net/listen.go index 15529904..198b2807 100644 --- a/pkg/net/listen.go +++ b/pkg/net/listen.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package net import ( diff --git a/pkg/net/listen_test.go b/pkg/net/listen_test.go index 34f24095..dcbb9634 100644 --- a/pkg/net/listen_test.go +++ b/pkg/net/listen_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package net_test import ( diff --git a/pkg/net/net.go b/pkg/net/net.go index 6ea83674..3928ea9f 100644 --- a/pkg/net/net.go +++ b/pkg/net/net.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package net import ( diff --git a/pkg/net/net_test.go b/pkg/net/net_test.go index 0c534329..db403bea 100644 --- a/pkg/net/net_test.go +++ b/pkg/net/net_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package net_test import ( diff --git a/pkg/net/packet_pipe.go b/pkg/net/packet_pipe.go index d0d305df..cc138db3 100644 --- a/pkg/net/packet_pipe.go +++ b/pkg/net/packet_pipe.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package net import ( diff --git a/pkg/net/packet_pipe_conn.go b/pkg/net/packet_pipe_conn.go index 823acb27..69ebea27 100644 --- a/pkg/net/packet_pipe_conn.go +++ b/pkg/net/packet_pipe_conn.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package net import ( diff --git a/pkg/net/packet_pipe_conn_test.go b/pkg/net/packet_pipe_conn_test.go index d5b23565..a3b57938 100644 --- a/pkg/net/packet_pipe_conn_test.go +++ b/pkg/net/packet_pipe_conn_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package net_test import ( diff --git a/pkg/net/packet_pipe_test.go b/pkg/net/packet_pipe_test.go index d19c1d5e..e3c75176 100644 --- a/pkg/net/packet_pipe_test.go +++ b/pkg/net/packet_pipe_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package net_test import ( diff --git a/pkg/net/split_conn.go b/pkg/net/split_conn.go index a12fafb6..c1633315 100644 --- a/pkg/net/split_conn.go +++ b/pkg/net/split_conn.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package net import ( diff --git a/pkg/net/split_conn_test.go b/pkg/net/split_conn_test.go index d306b665..72fc2f58 100644 --- a/pkg/net/split_conn_test.go +++ b/pkg/net/split_conn_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package net_test import ( diff --git a/pkg/os/capabilities_bsd.go b/pkg/os/capabilities_bsd.go index 22c10b6a..3e1ac365 100644 --- a/pkg/os/capabilities_bsd.go +++ b/pkg/os/capabilities_bsd.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + //go:build darwin || freebsd || openbsd || netbsd || plan9 || dragonfly || solaris package os diff --git a/pkg/os/capabilities_linux.go b/pkg/os/capabilities_linux.go index f79b0ff6..500fec0a 100644 --- a/pkg/os/capabilities_linux.go +++ b/pkg/os/capabilities_linux.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package os import "kernel.org/pub/linux/libs/security/libcap/cap" diff --git a/pkg/os/capabilities_others.go b/pkg/os/capabilities_others.go index bac78e0d..7b014d91 100644 --- a/pkg/os/capabilities_others.go +++ b/pkg/os/capabilities_others.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + //go:build !(linux || darwin || freebsd || openbsd || netbsd || plan9 || dragonfly || solaris) package os diff --git a/pkg/os/os.go b/pkg/os/os.go index cc4888cb..5d27ef57 100644 --- a/pkg/os/os.go +++ b/pkg/os/os.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package os import "errors" diff --git a/pkg/os/os_test.go b/pkg/os/os_test.go index c4be5477..0aa189fe 100644 --- a/pkg/os/os_test.go +++ b/pkg/os/os_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package os_test import ( diff --git a/pkg/os/reexec_others.go b/pkg/os/reexec_others.go index e4549c0c..d5336346 100644 --- a/pkg/os/reexec_others.go +++ b/pkg/os/reexec_others.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + //go:build !unix package os diff --git a/pkg/os/reexec_unix.go b/pkg/os/reexec_unix.go index ea26aab4..b71ca9bf 100644 --- a/pkg/os/reexec_unix.go +++ b/pkg/os/reexec_unix.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + //go:build unix package os diff --git a/pkg/os/signal.go b/pkg/os/signal.go index 916c868f..45a0e8ba 100644 --- a/pkg/os/signal.go +++ b/pkg/os/signal.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package os import ( diff --git a/pkg/os/signal_others.go b/pkg/os/signal_others.go index d57fbd49..e8de8815 100644 --- a/pkg/os/signal_others.go +++ b/pkg/os/signal_others.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + //go:build !windows package os diff --git a/pkg/os/signal_windows.go b/pkg/os/signal_windows.go index f852b017..5c6c3ab6 100644 --- a/pkg/os/signal_windows.go +++ b/pkg/os/signal_windows.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + //go:build windows package os diff --git a/pkg/os/sysctl_linux.go b/pkg/os/sysctl_linux.go index c5ef337e..0e703f4f 100644 --- a/pkg/os/sysctl_linux.go +++ b/pkg/os/sysctl_linux.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package os import ( diff --git a/pkg/os/sysctl_others.go b/pkg/os/sysctl_others.go index b4b207c6..cfb4c724 100644 --- a/pkg/os/sysctl_others.go +++ b/pkg/os/sysctl_others.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + //go:build !linux package os diff --git a/pkg/proto/common.go b/pkg/proto/common.go index debfbd74..c01bb1b5 100644 --- a/pkg/proto/common.go +++ b/pkg/proto/common.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package proto import ( diff --git a/pkg/proto/common.pb.go b/pkg/proto/common.pb.go index c9b5a56a..488144f3 100644 --- a/pkg/proto/common.pb.go +++ b/pkg/proto/common.pb.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.28.1 diff --git a/pkg/proto/common_test.go b/pkg/proto/common_test.go index 1e547109..aff410f7 100644 --- a/pkg/proto/common_test.go +++ b/pkg/proto/common_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package proto_test import ( diff --git a/pkg/proto/core/interface.go b/pkg/proto/core/interface.go index 6116acd0..c9fc87d1 100644 --- a/pkg/proto/core/interface.go +++ b/pkg/proto/core/interface.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package core import ( diff --git a/pkg/proto/core/interface.pb.go b/pkg/proto/core/interface.pb.go index 2f55c614..3aa80855 100644 --- a/pkg/proto/core/interface.pb.go +++ b/pkg/proto/core/interface.pb.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.28.1 diff --git a/pkg/proto/core/net.go b/pkg/proto/core/net.go index 91adc476..f140b9cb 100644 --- a/pkg/proto/core/net.go +++ b/pkg/proto/core/net.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package core import "net" diff --git a/pkg/proto/core/net.pb.go b/pkg/proto/core/net.pb.go index 27fe2999..cf9eed5c 100644 --- a/pkg/proto/core/net.pb.go +++ b/pkg/proto/core/net.pb.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.28.1 diff --git a/pkg/proto/core/peer.go b/pkg/proto/core/peer.go index ad1b069c..581f6b00 100644 --- a/pkg/proto/core/peer.go +++ b/pkg/proto/core/peer.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package core import ( diff --git a/pkg/proto/core/peer.pb.go b/pkg/proto/core/peer.pb.go index e8efa8d8..19256b7f 100644 --- a/pkg/proto/core/peer.pb.go +++ b/pkg/proto/core/peer.pb.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.28.1 diff --git a/pkg/proto/core/peer_state.go b/pkg/proto/core/peer_state.go index d2cc029f..d76b956a 100644 --- a/pkg/proto/core/peer_state.go +++ b/pkg/proto/core/peer_state.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package core import ( diff --git a/pkg/proto/feature/epdisc/epdisc.go b/pkg/proto/feature/epdisc/epdisc.go index bb308f4f..ceabf699 100644 --- a/pkg/proto/feature/epdisc/epdisc.go +++ b/pkg/proto/feature/epdisc/epdisc.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package epdisc import ( diff --git a/pkg/proto/feature/epdisc/epdisc.pb.go b/pkg/proto/feature/epdisc/epdisc.pb.go index e52da0b4..d45fb059 100644 --- a/pkg/proto/feature/epdisc/epdisc.pb.go +++ b/pkg/proto/feature/epdisc/epdisc.pb.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.28.1 diff --git a/pkg/proto/feature/epdisc/epdisc_candidate.go b/pkg/proto/feature/epdisc/epdisc_candidate.go index a75d5387..2f984d66 100644 --- a/pkg/proto/feature/epdisc/epdisc_candidate.go +++ b/pkg/proto/feature/epdisc/epdisc_candidate.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package epdisc import ( diff --git a/pkg/proto/feature/epdisc/epdisc_candidate.pb.go b/pkg/proto/feature/epdisc/epdisc_candidate.pb.go index 999e59e0..07247c6c 100644 --- a/pkg/proto/feature/epdisc/epdisc_candidate.pb.go +++ b/pkg/proto/feature/epdisc/epdisc_candidate.pb.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.28.1 diff --git a/pkg/proto/feature/epdisc/types.go b/pkg/proto/feature/epdisc/types.go index bc3ca67c..682a3bba 100644 --- a/pkg/proto/feature/epdisc/types.go +++ b/pkg/proto/feature/epdisc/types.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package epdisc func NewProtocol(rp string) RelayProtocol { diff --git a/pkg/proto/feature/hooks/hooks.pb.go b/pkg/proto/feature/hooks/hooks.pb.go index f95f35bf..272256e8 100644 --- a/pkg/proto/feature/hooks/hooks.pb.go +++ b/pkg/proto/feature/hooks/hooks.pb.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.28.1 diff --git a/pkg/proto/feature/pdisc/pdisc.go b/pkg/proto/feature/pdisc/pdisc.go index fe5a0fc2..022fed45 100644 --- a/pkg/proto/feature/pdisc/pdisc.go +++ b/pkg/proto/feature/pdisc/pdisc.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package pdisc import ( diff --git a/pkg/proto/feature/pdisc/pdisc.pb.go b/pkg/proto/feature/pdisc/pdisc.pb.go index 7062e1e7..3507c6c1 100644 --- a/pkg/proto/feature/pdisc/pdisc.pb.go +++ b/pkg/proto/feature/pdisc/pdisc.pb.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.28.1 diff --git a/pkg/proto/feature/pske/pske.pb.go b/pkg/proto/feature/pske/pske.pb.go index eed693cc..d39f24de 100644 --- a/pkg/proto/feature/pske/pske.pb.go +++ b/pkg/proto/feature/pske/pske.pb.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.28.1 diff --git a/pkg/proto/proto.go b/pkg/proto/proto.go index 59f96bee..1ccfeef5 100644 --- a/pkg/proto/proto.go +++ b/pkg/proto/proto.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + // Package proto contains auto-generated Go-code based of Protobuf descriptions package proto diff --git a/pkg/proto/proto_test.go b/pkg/proto/proto_test.go index 870de3e8..8e1fd42c 100644 --- a/pkg/proto/proto_test.go +++ b/pkg/proto/proto_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package proto_test import ( diff --git a/pkg/proto/rpc/daemon.pb.go b/pkg/proto/rpc/daemon.pb.go index 736164fb..68e01cef 100644 --- a/pkg/proto/rpc/daemon.pb.go +++ b/pkg/proto/rpc/daemon.pb.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.28.1 diff --git a/pkg/proto/rpc/daemon_grpc.pb.go b/pkg/proto/rpc/daemon_grpc.pb.go index 7f634c6b..00ce6fba 100644 --- a/pkg/proto/rpc/daemon_grpc.pb.go +++ b/pkg/proto/rpc/daemon_grpc.pb.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.3.0 diff --git a/pkg/proto/rpc/epdisc.pb.go b/pkg/proto/rpc/epdisc.pb.go index 68acef85..23f9cd8d 100644 --- a/pkg/proto/rpc/epdisc.pb.go +++ b/pkg/proto/rpc/epdisc.pb.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.28.1 diff --git a/pkg/proto/rpc/epdisc_grpc.pb.go b/pkg/proto/rpc/epdisc_grpc.pb.go index 372a5917..bddcc68c 100644 --- a/pkg/proto/rpc/epdisc_grpc.pb.go +++ b/pkg/proto/rpc/epdisc_grpc.pb.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.3.0 diff --git a/pkg/proto/rpc/event.go b/pkg/proto/rpc/event.go index 18090542..629173cd 100644 --- a/pkg/proto/rpc/event.go +++ b/pkg/proto/rpc/event.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package rpc import ( diff --git a/pkg/proto/rpc/event.pb.go b/pkg/proto/rpc/event.pb.go index 9fa696c4..4e0a6ea2 100644 --- a/pkg/proto/rpc/event.pb.go +++ b/pkg/proto/rpc/event.pb.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.28.1 diff --git a/pkg/proto/rpc/invitation.pb.go b/pkg/proto/rpc/invitation.pb.go index 956a1229..adcb8ecf 100644 --- a/pkg/proto/rpc/invitation.pb.go +++ b/pkg/proto/rpc/invitation.pb.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.28.1 diff --git a/pkg/proto/rpc/rpc.go b/pkg/proto/rpc/rpc.go index c0fefb2b..374e50d2 100644 --- a/pkg/proto/rpc/rpc.go +++ b/pkg/proto/rpc/rpc.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package rpc import ( diff --git a/pkg/proto/rpc/signaling.pb.go b/pkg/proto/rpc/signaling.pb.go index a49c75fd..bd937716 100644 --- a/pkg/proto/rpc/signaling.pb.go +++ b/pkg/proto/rpc/signaling.pb.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.28.1 diff --git a/pkg/proto/rpc/signaling_grpc.pb.go b/pkg/proto/rpc/signaling_grpc.pb.go index 4d215918..f16ab069 100644 --- a/pkg/proto/rpc/signaling_grpc.pb.go +++ b/pkg/proto/rpc/signaling_grpc.pb.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.3.0 diff --git a/pkg/proto/signaling/relay.pb.go b/pkg/proto/signaling/relay.pb.go index d2efb5c0..2e85952a 100644 --- a/pkg/proto/signaling/relay.pb.go +++ b/pkg/proto/signaling/relay.pb.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.28.1 diff --git a/pkg/proto/signaling/relay_grpc.pb.go b/pkg/proto/signaling/relay_grpc.pb.go index 4a81698f..618592c5 100644 --- a/pkg/proto/signaling/relay_grpc.pb.go +++ b/pkg/proto/signaling/relay_grpc.pb.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.3.0 diff --git a/pkg/proto/signaling/signaling.go b/pkg/proto/signaling/signaling.go index 040e2e24..9547eedc 100644 --- a/pkg/proto/signaling/signaling.go +++ b/pkg/proto/signaling/signaling.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package signaling import ( diff --git a/pkg/proto/signaling/signaling.pb.go b/pkg/proto/signaling/signaling.pb.go index 610ee819..0d2821e4 100644 --- a/pkg/proto/signaling/signaling.pb.go +++ b/pkg/proto/signaling/signaling.pb.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.28.1 diff --git a/pkg/proto/signaling/signaling_grpc.pb.go b/pkg/proto/signaling/signaling_grpc.pb.go index 444c9c01..1a613104 100644 --- a/pkg/proto/signaling/signaling_grpc.pb.go +++ b/pkg/proto/signaling/signaling_grpc.pb.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.3.0 diff --git a/pkg/proto/signaling/signaling_test.go b/pkg/proto/signaling/signaling_test.go index 691aac2c..40a84bd9 100644 --- a/pkg/proto/signaling/signaling_test.go +++ b/pkg/proto/signaling/signaling_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package signaling_test import ( diff --git a/pkg/rpc/client.go b/pkg/rpc/client.go index 6379e01d..d3fa64a9 100644 --- a/pkg/rpc/client.go +++ b/pkg/rpc/client.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package rpc import ( diff --git a/pkg/rpc/events.go b/pkg/rpc/events.go index af1867df..83a25a61 100644 --- a/pkg/rpc/events.go +++ b/pkg/rpc/events.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package rpc import ( diff --git a/pkg/rpc/rpc.go b/pkg/rpc/rpc.go index 32110089..3fb2b482 100644 --- a/pkg/rpc/rpc.go +++ b/pkg/rpc/rpc.go @@ -1,2 +1,5 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + // Package rpc implements a gRPC client and server for management and monitoring of a cunicu daemon package rpc diff --git a/pkg/rpc/rpc_test.go b/pkg/rpc/rpc_test.go index ed40844f..73360b93 100644 --- a/pkg/rpc/rpc_test.go +++ b/pkg/rpc/rpc_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package rpc_test import ( diff --git a/pkg/rpc/server.go b/pkg/rpc/server.go index 358600e5..82a9b6db 100644 --- a/pkg/rpc/server.go +++ b/pkg/rpc/server.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package rpc import ( diff --git a/pkg/rpc/server_daemon.go b/pkg/rpc/server_daemon.go index fe951dfb..5bace29a 100644 --- a/pkg/rpc/server_daemon.go +++ b/pkg/rpc/server_daemon.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package rpc import ( diff --git a/pkg/rpc/server_epdisc.go b/pkg/rpc/server_epdisc.go index 0504e76e..34ca3512 100644 --- a/pkg/rpc/server_epdisc.go +++ b/pkg/rpc/server_epdisc.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package rpc import ( diff --git a/pkg/rpc/server_signaling.go b/pkg/rpc/server_signaling.go index 5d6bc24e..8b70314b 100644 --- a/pkg/rpc/server_signaling.go +++ b/pkg/rpc/server_signaling.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package rpc import ( diff --git a/pkg/rpc/types.go b/pkg/rpc/types.go index e99cdaec..e8898057 100644 --- a/pkg/rpc/types.go +++ b/pkg/rpc/types.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package rpc import ( diff --git a/pkg/selfupdate/download.go b/pkg/selfupdate/download.go index ecbe2096..ae3c971c 100644 --- a/pkg/selfupdate/download.go +++ b/pkg/selfupdate/download.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package selfupdate import ( diff --git a/pkg/selfupdate/github.go b/pkg/selfupdate/github.go index 326f263c..42d3d7ec 100644 --- a/pkg/selfupdate/github.go +++ b/pkg/selfupdate/github.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package selfupdate // derived from http://github.com/restic/restic diff --git a/pkg/selfupdate/github_test.go b/pkg/selfupdate/github_test.go index 9b00ddb6..7b41b074 100644 --- a/pkg/selfupdate/github_test.go +++ b/pkg/selfupdate/github_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package selfupdate_test import ( diff --git a/pkg/selfupdate/selfupdate.go b/pkg/selfupdate/selfupdate.go index eeef34c3..7054cbc3 100644 --- a/pkg/selfupdate/selfupdate.go +++ b/pkg/selfupdate/selfupdate.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + // Package selfupdate implements a cryptographically secured self-update mechanism which fetches binaries via GitHub's API. package selfupdate diff --git a/pkg/selfupdate/selfupdate_test.go b/pkg/selfupdate/selfupdate_test.go index 39e08ec1..24f33ab2 100644 --- a/pkg/selfupdate/selfupdate_test.go +++ b/pkg/selfupdate/selfupdate_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package selfupdate_test import ( diff --git a/pkg/selfupdate/verify.go b/pkg/selfupdate/verify.go index a406409f..8f6489a1 100644 --- a/pkg/selfupdate/verify.go +++ b/pkg/selfupdate/verify.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package selfupdate // derived from http://github.com/restic/restic diff --git a/pkg/signaling/backend.go b/pkg/signaling/backend.go index 42605216..028a6cfc 100644 --- a/pkg/signaling/backend.go +++ b/pkg/signaling/backend.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package signaling import ( diff --git a/pkg/signaling/backend_test.go b/pkg/signaling/backend_test.go index ebc66682..351879f5 100644 --- a/pkg/signaling/backend_test.go +++ b/pkg/signaling/backend_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package signaling_test import ( diff --git a/pkg/signaling/grpc/backend.go b/pkg/signaling/grpc/backend.go index 4f4d27e4..be3c8719 100644 --- a/pkg/signaling/grpc/backend.go +++ b/pkg/signaling/grpc/backend.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package grpc import ( diff --git a/pkg/signaling/grpc/backend_test.go b/pkg/signaling/grpc/backend_test.go index 19353682..3fa4e1f0 100644 --- a/pkg/signaling/grpc/backend_test.go +++ b/pkg/signaling/grpc/backend_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package grpc_test import ( diff --git a/pkg/signaling/grpc/config.go b/pkg/signaling/grpc/config.go index 90a62a25..272339c0 100644 --- a/pkg/signaling/grpc/config.go +++ b/pkg/signaling/grpc/config.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package grpc import ( diff --git a/pkg/signaling/grpc/grpc.go b/pkg/signaling/grpc/grpc.go index aa9b768b..704438c4 100644 --- a/pkg/signaling/grpc/grpc.go +++ b/pkg/signaling/grpc/grpc.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + // Package grpc implements a signaling backend using a central gRPC service package grpc diff --git a/pkg/signaling/grpc/server.go b/pkg/signaling/grpc/server.go index c6105bd9..499120b9 100644 --- a/pkg/signaling/grpc/server.go +++ b/pkg/signaling/grpc/server.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package grpc import ( diff --git a/pkg/signaling/grpc/server_relay.go b/pkg/signaling/grpc/server_relay.go index e742313f..f1acf054 100644 --- a/pkg/signaling/grpc/server_relay.go +++ b/pkg/signaling/grpc/server_relay.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package grpc import ( diff --git a/pkg/signaling/grpc/server_relay_test.go b/pkg/signaling/grpc/server_relay_test.go index a31ab3d2..b3fe535c 100644 --- a/pkg/signaling/grpc/server_relay_test.go +++ b/pkg/signaling/grpc/server_relay_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package grpc_test import ( diff --git a/pkg/signaling/grpc/topic.go b/pkg/signaling/grpc/topic.go index c26035a2..7549b1ef 100644 --- a/pkg/signaling/grpc/topic.go +++ b/pkg/signaling/grpc/topic.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package grpc import ( diff --git a/pkg/signaling/grpc/topic_registry.go b/pkg/signaling/grpc/topic_registry.go index dd90f9d1..f05b5029 100644 --- a/pkg/signaling/grpc/topic_registry.go +++ b/pkg/signaling/grpc/topic_registry.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package grpc import ( diff --git a/pkg/signaling/inprocess/backend.go b/pkg/signaling/inprocess/backend.go index 6b03e4b2..f85a673f 100644 --- a/pkg/signaling/inprocess/backend.go +++ b/pkg/signaling/inprocess/backend.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package inprocess import ( diff --git a/pkg/signaling/inprocess/backend_test.go b/pkg/signaling/inprocess/backend_test.go index 5e3c6b28..9e33267f 100644 --- a/pkg/signaling/inprocess/backend_test.go +++ b/pkg/signaling/inprocess/backend_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package inprocess_test import ( diff --git a/pkg/signaling/inprocess/inprocess.go b/pkg/signaling/inprocess/inprocess.go index 3e3775dd..df06e69b 100644 --- a/pkg/signaling/inprocess/inprocess.go +++ b/pkg/signaling/inprocess/inprocess.go @@ -1,2 +1,5 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + // Package inprocess implements an in-process signaling backend using Go channels package inprocess diff --git a/pkg/signaling/multi.go b/pkg/signaling/multi.go index 680f7574..4c05c992 100644 --- a/pkg/signaling/multi.go +++ b/pkg/signaling/multi.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package signaling import ( diff --git a/pkg/signaling/signaling.go b/pkg/signaling/signaling.go index f98a0ede..d4a7b3b6 100644 --- a/pkg/signaling/signaling.go +++ b/pkg/signaling/signaling.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + // Package signaling implements various signaling backends to exchange encrypted messages between peers package signaling diff --git a/pkg/signaling/signaling_test.go b/pkg/signaling/signaling_test.go index 5ce09fa3..107b537c 100644 --- a/pkg/signaling/signaling_test.go +++ b/pkg/signaling/signaling_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package signaling_test import ( diff --git a/pkg/signaling/subscriptions.go b/pkg/signaling/subscriptions.go index a314af57..6ba8a53d 100644 --- a/pkg/signaling/subscriptions.go +++ b/pkg/signaling/subscriptions.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package signaling import ( diff --git a/pkg/tty/ansi_stripper.go b/pkg/tty/ansi_stripper.go index 40c2c946..817484d7 100644 --- a/pkg/tty/ansi_stripper.go +++ b/pkg/tty/ansi_stripper.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package tty import ( diff --git a/pkg/tty/ansi_stripper_test.go b/pkg/tty/ansi_stripper_test.go index 69a03ef3..b72e5313 100644 --- a/pkg/tty/ansi_stripper_test.go +++ b/pkg/tty/ansi_stripper_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package tty_test import ( diff --git a/pkg/tty/human.go b/pkg/tty/human.go index 97463e6a..370b1f35 100644 --- a/pkg/tty/human.go +++ b/pkg/tty/human.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package tty import ( diff --git a/pkg/tty/human_test.go b/pkg/tty/human_test.go index 2a9aa97a..5e44ac4b 100644 --- a/pkg/tty/human_test.go +++ b/pkg/tty/human_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package tty_test import ( diff --git a/pkg/tty/indenter.go b/pkg/tty/indenter.go index 53876aec..50e4aafd 100644 --- a/pkg/tty/indenter.go +++ b/pkg/tty/indenter.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package tty import ( diff --git a/pkg/tty/indenter_test.go b/pkg/tty/indenter_test.go index f1ae7d91..bb70e7b7 100644 --- a/pkg/tty/indenter_test.go +++ b/pkg/tty/indenter_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package tty_test import ( diff --git a/pkg/tty/json.go b/pkg/tty/json.go index bc391ceb..519e0a60 100644 --- a/pkg/tty/json.go +++ b/pkg/tty/json.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package tty import "encoding/json" diff --git a/pkg/tty/json_test.go b/pkg/tty/json_test.go index 6faf85c4..5e54e6e6 100644 --- a/pkg/tty/json_test.go +++ b/pkg/tty/json_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package tty_test import ( diff --git a/pkg/tty/tty.go b/pkg/tty/tty.go index 141aecb8..fb51f907 100644 --- a/pkg/tty/tty.go +++ b/pkg/tty/tty.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package tty import ( diff --git a/pkg/tty/tty_test.go b/pkg/tty/tty_test.go index cc485cd6..f118a05f 100644 --- a/pkg/tty/tty_test.go +++ b/pkg/tty/tty_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package tty_test import ( diff --git a/pkg/types/atomic_enum.go b/pkg/types/atomic_enum.go index 70670932..da634da9 100644 --- a/pkg/types/atomic_enum.go +++ b/pkg/types/atomic_enum.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package types import ( diff --git a/pkg/types/atomic_enum_test.go b/pkg/types/atomic_enum_test.go index 71192c04..77d943a1 100644 --- a/pkg/types/atomic_enum_test.go +++ b/pkg/types/atomic_enum_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package types_test import ( diff --git a/pkg/types/fan_out.go b/pkg/types/fan_out.go index e7cb5e08..6b5fd97e 100644 --- a/pkg/types/fan_out.go +++ b/pkg/types/fan_out.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package types import ( diff --git a/pkg/types/fan_out_test.go b/pkg/types/fan_out_test.go index c0dd2b40..974cbec4 100644 --- a/pkg/types/fan_out_test.go +++ b/pkg/types/fan_out_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package types_test import ( diff --git a/pkg/types/ginkgo.report b/pkg/types/ginkgo.report deleted file mode 100644 index 391dcb54..00000000 --- a/pkg/types/ginkgo.report +++ /dev/null @@ -1,1270 +0,0 @@ -[ - { - "SuitePath": "/home/stv0g/workspace/cunicu/pkg/types", - "SuiteDescription": "Types Suite", - "SuiteLabels": [], - "SuiteSucceeded": true, - "SuiteHasProgrammaticFocus": false, - "SpecialSuiteFailureReasons": null, - "PreRunStats": { - "TotalSpecs": 9, - "SpecsThatWillRun": 5 - }, - "StartTime": "2023-02-07T18:55:48.89058451+01:00", - "EndTime": "2023-02-07T18:55:48.89092451+01:00", - "RunTime": 339958, - "SuiteConfig": { - "RandomSeed": 1675792547, - "RandomizeAllSpecs": false, - "FocusStrings": [ - "AtomicEnum" - ], - "SkipStrings": null, - "FocusFiles": null, - "SkipFiles": null, - "LabelFilter": "", - "FailOnPending": false, - "FailFast": false, - "FlakeAttempts": 0, - "DryRun": false, - "PollProgressAfter": 0, - "PollProgressInterval": 0, - "Timeout": 3598764627588, - "EmitSpecProgress": false, - "OutputInterceptorMode": "", - "SourceRoots": null, - "GracePeriod": 30000000000, - "ParallelProcess": 1, - "ParallelTotal": 1, - "ParallelHost": "" - }, - "SpecReports": [ - { - "ContainerHierarchyTexts": [ - "FanOut" - ], - "ContainerHierarchyLocations": [ - { - "FileName": "/home/stv0g/workspace/cunicu/pkg/types/fan_out_test.go", - "LineNumber": 9 - } - ], - "ContainerHierarchyLabels": [ - [] - ], - "LeafNodeType": "It", - "LeafNodeLocation": { - "FileName": "/home/stv0g/workspace/cunicu/pkg/types/fan_out_test.go", - "LineNumber": 10 - }, - "LeafNodeLabels": [], - "LeafNodeText": "works with no channel", - "State": "skipped", - "StartTime": "2023-02-07T18:55:48.890691177+01:00", - "EndTime": "0001-01-01T00:00:00Z", - "RunTime": 0, - "ParallelProcess": 1, - "NumAttempts": 0, - "MaxFlakeAttempts": 0, - "MaxMustPassRepeatedly": 0 - }, - { - "ContainerHierarchyTexts": [ - "FanOut" - ], - "ContainerHierarchyLocations": [ - { - "FileName": "/home/stv0g/workspace/cunicu/pkg/types/fan_out_test.go", - "LineNumber": 9 - } - ], - "ContainerHierarchyLabels": [ - [] - ], - "LeafNodeType": "It", - "LeafNodeLocation": { - "FileName": "/home/stv0g/workspace/cunicu/pkg/types/fan_out_test.go", - "LineNumber": 18 - }, - "LeafNodeLabels": [], - "LeafNodeText": "works with a single channel", - "State": "skipped", - "StartTime": "2023-02-07T18:55:48.890703885+01:00", - "EndTime": "0001-01-01T00:00:00Z", - "RunTime": 0, - "ParallelProcess": 1, - "NumAttempts": 0, - "MaxFlakeAttempts": 0, - "MaxMustPassRepeatedly": 0 - }, - { - "ContainerHierarchyTexts": [ - "FanOut" - ], - "ContainerHierarchyLocations": [ - { - "FileName": "/home/stv0g/workspace/cunicu/pkg/types/fan_out_test.go", - "LineNumber": 9 - } - ], - "ContainerHierarchyLabels": [ - [] - ], - "LeafNodeType": "It", - "LeafNodeLocation": { - "FileName": "/home/stv0g/workspace/cunicu/pkg/types/fan_out_test.go", - "LineNumber": 29 - }, - "LeafNodeLabels": [], - "LeafNodeText": "works with two channels", - "State": "skipped", - "StartTime": "2023-02-07T18:55:48.890711094+01:00", - "EndTime": "0001-01-01T00:00:00Z", - "RunTime": 0, - "ParallelProcess": 1, - "NumAttempts": 0, - "MaxFlakeAttempts": 0, - "MaxMustPassRepeatedly": 0 - }, - { - "ContainerHierarchyTexts": [ - "FanOut" - ], - "ContainerHierarchyLocations": [ - { - "FileName": "/home/stv0g/workspace/cunicu/pkg/types/fan_out_test.go", - "LineNumber": 9 - } - ], - "ContainerHierarchyLabels": [ - [] - ], - "LeafNodeType": "It", - "LeafNodeLocation": { - "FileName": "/home/stv0g/workspace/cunicu/pkg/types/fan_out_test.go", - "LineNumber": 43 - }, - "LeafNodeLabels": [], - "LeafNodeText": "works with two channels after one has been removed", - "State": "skipped", - "StartTime": "2023-02-07T18:55:48.890717594+01:00", - "EndTime": "0001-01-01T00:00:00Z", - "RunTime": 0, - "ParallelProcess": 1, - "NumAttempts": 0, - "MaxFlakeAttempts": 0, - "MaxMustPassRepeatedly": 0 - }, - { - "ContainerHierarchyTexts": [ - "AtomicEnum" - ], - "ContainerHierarchyLocations": [ - { - "FileName": "/home/stv0g/workspace/cunicu/pkg/types/atomic_enum_test.go", - "LineNumber": 9 - } - ], - "ContainerHierarchyLabels": [ - [] - ], - "LeafNodeType": "It", - "LeafNodeLocation": { - "FileName": "/home/stv0g/workspace/cunicu/pkg/types/atomic_enum_test.go", - "LineNumber": 24 - }, - "LeafNodeLabels": [], - "LeafNodeText": "is zero initialized", - "State": "passed", - "StartTime": "2023-02-07T18:55:48.890723177+01:00", - "EndTime": "2023-02-07T18:55:48.890799719+01:00", - "RunTime": 76541, - "ParallelProcess": 1, - "NumAttempts": 1, - "MaxFlakeAttempts": 0, - "MaxMustPassRepeatedly": 0, - "SpecEvents": [ - { - "SpecEventType": "Node", - "CodeLocation": { - "FileName": "/home/stv0g/workspace/cunicu/pkg/types/atomic_enum_test.go", - "LineNumber": 20 - }, - "TimelineLocation": { - "Order": 1, - "Time": "2023-02-07T18:55:48.890740594+01:00" - }, - "Message": "AtomicEnum", - "NodeType": "BeforeEach" - }, - { - "SpecEventType": "Node (End)", - "CodeLocation": { - "FileName": "/home/stv0g/workspace/cunicu/pkg/types/atomic_enum_test.go", - "LineNumber": 20 - }, - "TimelineLocation": { - "Order": 3, - "Time": "2023-02-07T18:55:48.89075251+01:00" - }, - "Message": "AtomicEnum", - "Duration": 11958, - "NodeType": "BeforeEach" - }, - { - "SpecEventType": "Node", - "CodeLocation": { - "FileName": "/home/stv0g/workspace/cunicu/pkg/types/atomic_enum_test.go", - "LineNumber": 24 - }, - "TimelineLocation": { - "Order": 4, - "Time": "2023-02-07T18:55:48.890754052+01:00" - }, - "Message": "is zero initialized", - "NodeType": "It" - }, - { - "SpecEventType": "Node (End)", - "CodeLocation": { - "FileName": "/home/stv0g/workspace/cunicu/pkg/types/atomic_enum_test.go", - "LineNumber": 24 - }, - "TimelineLocation": { - "Order": 6, - "Time": "2023-02-07T18:55:48.89079826+01:00" - }, - "Message": "is zero initialized", - "Duration": 44250, - "NodeType": "It" - } - ] - }, - { - "ContainerHierarchyTexts": [ - "AtomicEnum" - ], - "ContainerHierarchyLocations": [ - { - "FileName": "/home/stv0g/workspace/cunicu/pkg/types/atomic_enum_test.go", - "LineNumber": 9 - } - ], - "ContainerHierarchyLabels": [ - [] - ], - "LeafNodeType": "It", - "LeafNodeLocation": { - "FileName": "/home/stv0g/workspace/cunicu/pkg/types/atomic_enum_test.go", - "LineNumber": 28 - }, - "LeafNodeLabels": [], - "LeafNodeText": "can store", - "State": "passed", - "StartTime": "2023-02-07T18:55:48.890813177+01:00", - "EndTime": "2023-02-07T18:55:48.890828719+01:00", - "RunTime": 15541, - "ParallelProcess": 1, - "NumAttempts": 1, - "MaxFlakeAttempts": 0, - "MaxMustPassRepeatedly": 0, - "SpecEvents": [ - { - "SpecEventType": "Node", - "CodeLocation": { - "FileName": "/home/stv0g/workspace/cunicu/pkg/types/atomic_enum_test.go", - "LineNumber": 20 - }, - "TimelineLocation": { - "Order": 7, - "Time": "2023-02-07T18:55:48.890813927+01:00" - }, - "Message": "AtomicEnum", - "NodeType": "BeforeEach" - }, - { - "SpecEventType": "Node (End)", - "CodeLocation": { - "FileName": "/home/stv0g/workspace/cunicu/pkg/types/atomic_enum_test.go", - "LineNumber": 20 - }, - "TimelineLocation": { - "Order": 9, - "Time": "2023-02-07T18:55:48.890821344+01:00" - }, - "Message": "AtomicEnum", - "Duration": 7416, - "NodeType": "BeforeEach" - }, - { - "SpecEventType": "Node", - "CodeLocation": { - "FileName": "/home/stv0g/workspace/cunicu/pkg/types/atomic_enum_test.go", - "LineNumber": 28 - }, - "TimelineLocation": { - "Order": 10, - "Time": "2023-02-07T18:55:48.89082176+01:00" - }, - "Message": "can store", - "NodeType": "It" - }, - { - "SpecEventType": "Node (End)", - "CodeLocation": { - "FileName": "/home/stv0g/workspace/cunicu/pkg/types/atomic_enum_test.go", - "LineNumber": 28 - }, - "TimelineLocation": { - "Order": 12, - "Time": "2023-02-07T18:55:48.890828094+01:00" - }, - "Message": "can store", - "Duration": 6292, - "NodeType": "It" - } - ] - }, - { - "ContainerHierarchyTexts": [ - "AtomicEnum" - ], - "ContainerHierarchyLocations": [ - { - "FileName": "/home/stv0g/workspace/cunicu/pkg/types/atomic_enum_test.go", - "LineNumber": 9 - } - ], - "ContainerHierarchyLabels": [ - [] - ], - "LeafNodeType": "It", - "LeafNodeLocation": { - "FileName": "/home/stv0g/workspace/cunicu/pkg/types/atomic_enum_test.go", - "LineNumber": 33 - }, - "LeafNodeLabels": [], - "LeafNodeText": "can compare and swap 1", - "State": "passed", - "StartTime": "2023-02-07T18:55:48.89083901+01:00", - "EndTime": "2023-02-07T18:55:48.890856052+01:00", - "RunTime": 17084, - "ParallelProcess": 1, - "NumAttempts": 1, - "MaxFlakeAttempts": 0, - "MaxMustPassRepeatedly": 0, - "SpecEvents": [ - { - "SpecEventType": "Node", - "CodeLocation": { - "FileName": "/home/stv0g/workspace/cunicu/pkg/types/atomic_enum_test.go", - "LineNumber": 20 - }, - "TimelineLocation": { - "Order": 13, - "Time": "2023-02-07T18:55:48.890840719+01:00" - }, - "Message": "AtomicEnum", - "NodeType": "BeforeEach" - }, - { - "SpecEventType": "Node (End)", - "CodeLocation": { - "FileName": "/home/stv0g/workspace/cunicu/pkg/types/atomic_enum_test.go", - "LineNumber": 20 - }, - "TimelineLocation": { - "Order": 15, - "Time": "2023-02-07T18:55:48.890846344+01:00" - }, - "Message": "AtomicEnum", - "Duration": 5625, - "NodeType": "BeforeEach" - }, - { - "SpecEventType": "Node", - "CodeLocation": { - "FileName": "/home/stv0g/workspace/cunicu/pkg/types/atomic_enum_test.go", - "LineNumber": 33 - }, - "TimelineLocation": { - "Order": 16, - "Time": "2023-02-07T18:55:48.89084676+01:00" - }, - "Message": "can compare and swap 1", - "NodeType": "It" - }, - { - "SpecEventType": "Node (End)", - "CodeLocation": { - "FileName": "/home/stv0g/workspace/cunicu/pkg/types/atomic_enum_test.go", - "LineNumber": 33 - }, - "TimelineLocation": { - "Order": 18, - "Time": "2023-02-07T18:55:48.890855427+01:00" - }, - "Message": "can compare and swap 1", - "Duration": 8667, - "NodeType": "It" - } - ] - }, - { - "ContainerHierarchyTexts": [ - "AtomicEnum" - ], - "ContainerHierarchyLocations": [ - { - "FileName": "/home/stv0g/workspace/cunicu/pkg/types/atomic_enum_test.go", - "LineNumber": 9 - } - ], - "ContainerHierarchyLabels": [ - [] - ], - "LeafNodeType": "It", - "LeafNodeLocation": { - "FileName": "/home/stv0g/workspace/cunicu/pkg/types/atomic_enum_test.go", - "LineNumber": 39 - }, - "LeafNodeLabels": [], - "LeafNodeText": "can compare and swap 2", - "State": "passed", - "StartTime": "2023-02-07T18:55:48.890863927+01:00", - "EndTime": "2023-02-07T18:55:48.890875302+01:00", - "RunTime": 11333, - "ParallelProcess": 1, - "NumAttempts": 1, - "MaxFlakeAttempts": 0, - "MaxMustPassRepeatedly": 0, - "SpecEvents": [ - { - "SpecEventType": "Node", - "CodeLocation": { - "FileName": "/home/stv0g/workspace/cunicu/pkg/types/atomic_enum_test.go", - "LineNumber": 20 - }, - "TimelineLocation": { - "Order": 19, - "Time": "2023-02-07T18:55:48.890864635+01:00" - }, - "Message": "AtomicEnum", - "NodeType": "BeforeEach" - }, - { - "SpecEventType": "Node (End)", - "CodeLocation": { - "FileName": "/home/stv0g/workspace/cunicu/pkg/types/atomic_enum_test.go", - "LineNumber": 20 - }, - "TimelineLocation": { - "Order": 21, - "Time": "2023-02-07T18:55:48.89086976+01:00" - }, - "Message": "AtomicEnum", - "Duration": 5125, - "NodeType": "BeforeEach" - }, - { - "SpecEventType": "Node", - "CodeLocation": { - "FileName": "/home/stv0g/workspace/cunicu/pkg/types/atomic_enum_test.go", - "LineNumber": 39 - }, - "TimelineLocation": { - "Order": 22, - "Time": "2023-02-07T18:55:48.890870177+01:00" - }, - "Message": "can compare and swap 2", - "NodeType": "It" - }, - { - "SpecEventType": "Node (End)", - "CodeLocation": { - "FileName": "/home/stv0g/workspace/cunicu/pkg/types/atomic_enum_test.go", - "LineNumber": 39 - }, - "TimelineLocation": { - "Order": 24, - "Time": "2023-02-07T18:55:48.89087476+01:00" - }, - "Message": "can compare and swap 2", - "Duration": 4541, - "NodeType": "It" - } - ] - }, - { - "ContainerHierarchyTexts": [ - "AtomicEnum" - ], - "ContainerHierarchyLocations": [ - { - "FileName": "/home/stv0g/workspace/cunicu/pkg/types/atomic_enum_test.go", - "LineNumber": 9 - } - ], - "ContainerHierarchyLabels": [ - [] - ], - "LeafNodeType": "It", - "LeafNodeLocation": { - "FileName": "/home/stv0g/workspace/cunicu/pkg/types/atomic_enum_test.go", - "LineNumber": 45 - }, - "LeafNodeLabels": [], - "LeafNodeText": "can swap", - "State": "passed", - "StartTime": "2023-02-07T18:55:48.890881094+01:00", - "EndTime": "2023-02-07T18:55:48.890891927+01:00", - "RunTime": 10792, - "ParallelProcess": 1, - "NumAttempts": 1, - "MaxFlakeAttempts": 0, - "MaxMustPassRepeatedly": 0, - "SpecEvents": [ - { - "SpecEventType": "Node", - "CodeLocation": { - "FileName": "/home/stv0g/workspace/cunicu/pkg/types/atomic_enum_test.go", - "LineNumber": 20 - }, - "TimelineLocation": { - "Order": 25, - "Time": "2023-02-07T18:55:48.89088251+01:00" - }, - "Message": "AtomicEnum", - "NodeType": "BeforeEach" - }, - { - "SpecEventType": "Node (End)", - "CodeLocation": { - "FileName": "/home/stv0g/workspace/cunicu/pkg/types/atomic_enum_test.go", - "LineNumber": 20 - }, - "TimelineLocation": { - "Order": 27, - "Time": "2023-02-07T18:55:48.89088676+01:00" - }, - "Message": "AtomicEnum", - "Duration": 4208, - "NodeType": "BeforeEach" - }, - { - "SpecEventType": "Node", - "CodeLocation": { - "FileName": "/home/stv0g/workspace/cunicu/pkg/types/atomic_enum_test.go", - "LineNumber": 45 - }, - "TimelineLocation": { - "Order": 28, - "Time": "2023-02-07T18:55:48.890887177+01:00" - }, - "Message": "can swap", - "NodeType": "It" - }, - { - "SpecEventType": "Node (End)", - "CodeLocation": { - "FileName": "/home/stv0g/workspace/cunicu/pkg/types/atomic_enum_test.go", - "LineNumber": 45 - }, - "TimelineLocation": { - "Order": 30, - "Time": "2023-02-07T18:55:48.890891385+01:00" - }, - "Message": "can swap", - "Duration": 4250, - "NodeType": "It" - } - ] - } - ] - }, - { - "SuitePath": "/home/stv0g/workspace/cunicu/pkg/types/slices", - "SuiteDescription": "Slices Suite", - "SuiteLabels": [], - "SuiteSucceeded": true, - "SuiteHasProgrammaticFocus": false, - "SpecialSuiteFailureReasons": null, - "PreRunStats": { - "TotalSpecs": 17, - "SpecsThatWillRun": 0 - }, - "StartTime": "2023-02-07T18:55:50.109126752+01:00", - "EndTime": "2023-02-07T18:55:50.109328627+01:00", - "RunTime": 201833, - "SuiteConfig": { - "RandomSeed": 1675792547, - "RandomizeAllSpecs": false, - "FocusStrings": [ - "AtomicEnum" - ], - "SkipStrings": null, - "FocusFiles": null, - "SkipFiles": null, - "LabelFilter": "", - "FailOnPending": false, - "FailFast": false, - "FlakeAttempts": 0, - "DryRun": false, - "PollProgressAfter": 0, - "PollProgressInterval": 0, - "Timeout": 3597545917888, - "EmitSpecProgress": false, - "OutputInterceptorMode": "", - "SourceRoots": null, - "GracePeriod": 30000000000, - "ParallelProcess": 1, - "ParallelTotal": 1, - "ParallelHost": "" - }, - "SpecReports": [ - { - "ContainerHierarchyTexts": [ - "slice" - ], - "ContainerHierarchyLocations": [ - { - "FileName": "/home/stv0g/workspace/cunicu/pkg/types/slices/slices_test.go", - "LineNumber": 20 - } - ], - "ContainerHierarchyLabels": [ - [] - ], - "LeafNodeType": "It", - "LeafNodeLocation": { - "FileName": "/home/stv0g/workspace/cunicu/pkg/types/slices/slices_test.go", - "LineNumber": 27 - }, - "LeafNodeLabels": [], - "LeafNodeText": "map", - "State": "skipped", - "StartTime": "2023-02-07T18:55:50.109192502+01:00", - "EndTime": "0001-01-01T00:00:00Z", - "RunTime": 0, - "ParallelProcess": 1, - "NumAttempts": 0, - "MaxFlakeAttempts": 0, - "MaxMustPassRepeatedly": 0 - }, - { - "ContainerHierarchyTexts": [ - "slice" - ], - "ContainerHierarchyLocations": [ - { - "FileName": "/home/stv0g/workspace/cunicu/pkg/types/slices/slices_test.go", - "LineNumber": 20 - } - ], - "ContainerHierarchyLabels": [ - [] - ], - "LeafNodeType": "It", - "LeafNodeLocation": { - "FileName": "/home/stv0g/workspace/cunicu/pkg/types/slices/slices_test.go", - "LineNumber": 31 - }, - "LeafNodeLabels": [], - "LeafNodeText": "string", - "State": "skipped", - "StartTime": "2023-02-07T18:55:50.109202002+01:00", - "EndTime": "0001-01-01T00:00:00Z", - "RunTime": 0, - "ParallelProcess": 1, - "NumAttempts": 0, - "MaxFlakeAttempts": 0, - "MaxMustPassRepeatedly": 0 - }, - { - "ContainerHierarchyTexts": [ - "slice" - ], - "ContainerHierarchyLocations": [ - { - "FileName": "/home/stv0g/workspace/cunicu/pkg/types/slices/slices_test.go", - "LineNumber": 20 - } - ], - "ContainerHierarchyLabels": [ - [] - ], - "LeafNodeType": "It", - "LeafNodeLocation": { - "FileName": "/home/stv0g/workspace/cunicu/pkg/types/slices/slices_test.go", - "LineNumber": 35 - }, - "LeafNodeLabels": [], - "LeafNodeText": "filter", - "State": "skipped", - "StartTime": "2023-02-07T18:55:50.109212711+01:00", - "EndTime": "0001-01-01T00:00:00Z", - "RunTime": 0, - "ParallelProcess": 1, - "NumAttempts": 0, - "MaxFlakeAttempts": 0, - "MaxMustPassRepeatedly": 0 - }, - { - "ContainerHierarchyTexts": [ - "slice" - ], - "ContainerHierarchyLocations": [ - { - "FileName": "/home/stv0g/workspace/cunicu/pkg/types/slices/slices_test.go", - "LineNumber": 20 - } - ], - "ContainerHierarchyLabels": [ - [] - ], - "LeafNodeType": "It", - "LeafNodeLocation": { - "FileName": "/home/stv0g/workspace/cunicu/pkg/types/slices/slices_test.go", - "LineNumber": 40 - }, - "LeafNodeLabels": [], - "LeafNodeText": "contains", - "State": "skipped", - "StartTime": "2023-02-07T18:55:50.109220086+01:00", - "EndTime": "0001-01-01T00:00:00Z", - "RunTime": 0, - "ParallelProcess": 1, - "NumAttempts": 0, - "MaxFlakeAttempts": 0, - "MaxMustPassRepeatedly": 0 - }, - { - "ContainerHierarchyTexts": [ - "slice", - "shuffle" - ], - "ContainerHierarchyLocations": [ - { - "FileName": "/home/stv0g/workspace/cunicu/pkg/types/slices/slices_test.go", - "LineNumber": 20 - }, - { - "FileName": "/home/stv0g/workspace/cunicu/pkg/types/slices/slices_test.go", - "LineNumber": 45 - } - ], - "ContainerHierarchyLabels": [ - [], - [] - ], - "LeafNodeType": "It", - "LeafNodeLocation": { - "FileName": "/home/stv0g/workspace/cunicu/pkg/types/slices/slices_test.go", - "LineNumber": 55 - }, - "LeafNodeLabels": [], - "LeafNodeText": "shuffles properly", - "State": "skipped", - "StartTime": "2023-02-07T18:55:50.109239127+01:00", - "EndTime": "0001-01-01T00:00:00Z", - "RunTime": 0, - "ParallelProcess": 1, - "NumAttempts": 0, - "MaxFlakeAttempts": 0, - "MaxMustPassRepeatedly": 0 - }, - { - "ContainerHierarchyTexts": [ - "slice", - "diff", - "func" - ], - "ContainerHierarchyLocations": [ - { - "FileName": "/home/stv0g/workspace/cunicu/pkg/types/slices/slices_test.go", - "LineNumber": 20 - }, - { - "FileName": "/home/stv0g/workspace/cunicu/pkg/types/slices/slices_test.go", - "LineNumber": 66 - }, - { - "FileName": "/home/stv0g/workspace/cunicu/pkg/types/slices/slices_test.go", - "LineNumber": 136 - } - ], - "ContainerHierarchyLabels": [ - [], - [], - [] - ], - "LeafNodeType": "It", - "LeafNodeLocation": { - "FileName": "/home/stv0g/workspace/cunicu/pkg/types/slices/slices_test.go", - "LineNumber": 87 - }, - "LeafNodeLabels": [], - "LeafNodeText": "finds added elements", - "State": "skipped", - "StartTime": "2023-02-07T18:55:50.109249877+01:00", - "EndTime": "0001-01-01T00:00:00Z", - "RunTime": 0, - "ParallelProcess": 1, - "NumAttempts": 0, - "MaxFlakeAttempts": 0, - "MaxMustPassRepeatedly": 0 - }, - { - "ContainerHierarchyTexts": [ - "slice", - "diff", - "func" - ], - "ContainerHierarchyLocations": [ - { - "FileName": "/home/stv0g/workspace/cunicu/pkg/types/slices/slices_test.go", - "LineNumber": 20 - }, - { - "FileName": "/home/stv0g/workspace/cunicu/pkg/types/slices/slices_test.go", - "LineNumber": 66 - }, - { - "FileName": "/home/stv0g/workspace/cunicu/pkg/types/slices/slices_test.go", - "LineNumber": 136 - } - ], - "ContainerHierarchyLabels": [ - [], - [], - [] - ], - "LeafNodeType": "It", - "LeafNodeLocation": { - "FileName": "/home/stv0g/workspace/cunicu/pkg/types/slices/slices_test.go", - "LineNumber": 95 - }, - "LeafNodeLabels": [], - "LeafNodeText": "finds removed elements", - "State": "skipped", - "StartTime": "2023-02-07T18:55:50.109258961+01:00", - "EndTime": "0001-01-01T00:00:00Z", - "RunTime": 0, - "ParallelProcess": 1, - "NumAttempts": 0, - "MaxFlakeAttempts": 0, - "MaxMustPassRepeatedly": 0 - }, - { - "ContainerHierarchyTexts": [ - "slice", - "diff", - "func" - ], - "ContainerHierarchyLocations": [ - { - "FileName": "/home/stv0g/workspace/cunicu/pkg/types/slices/slices_test.go", - "LineNumber": 20 - }, - { - "FileName": "/home/stv0g/workspace/cunicu/pkg/types/slices/slices_test.go", - "LineNumber": 66 - }, - { - "FileName": "/home/stv0g/workspace/cunicu/pkg/types/slices/slices_test.go", - "LineNumber": 136 - } - ], - "ContainerHierarchyLabels": [ - [], - [], - [] - ], - "LeafNodeType": "It", - "LeafNodeLocation": { - "FileName": "/home/stv0g/workspace/cunicu/pkg/types/slices/slices_test.go", - "LineNumber": 103 - }, - "LeafNodeLabels": [], - "LeafNodeText": "finds kept elements", - "State": "skipped", - "StartTime": "2023-02-07T18:55:50.109261877+01:00", - "EndTime": "0001-01-01T00:00:00Z", - "RunTime": 0, - "ParallelProcess": 1, - "NumAttempts": 0, - "MaxFlakeAttempts": 0, - "MaxMustPassRepeatedly": 0 - }, - { - "ContainerHierarchyTexts": [ - "slice", - "diff", - "func" - ], - "ContainerHierarchyLocations": [ - { - "FileName": "/home/stv0g/workspace/cunicu/pkg/types/slices/slices_test.go", - "LineNumber": 20 - }, - { - "FileName": "/home/stv0g/workspace/cunicu/pkg/types/slices/slices_test.go", - "LineNumber": 66 - }, - { - "FileName": "/home/stv0g/workspace/cunicu/pkg/types/slices/slices_test.go", - "LineNumber": 136 - } - ], - "ContainerHierarchyLabels": [ - [], - [], - [] - ], - "LeafNodeType": "It", - "LeafNodeLocation": { - "FileName": "/home/stv0g/workspace/cunicu/pkg/types/slices/slices_test.go", - "LineNumber": 111 - }, - "LeafNodeLabels": [], - "LeafNodeText": "finds no changes on empty slices", - "State": "skipped", - "StartTime": "2023-02-07T18:55:50.109265961+01:00", - "EndTime": "0001-01-01T00:00:00Z", - "RunTime": 0, - "ParallelProcess": 1, - "NumAttempts": 0, - "MaxFlakeAttempts": 0, - "MaxMustPassRepeatedly": 0 - }, - { - "ContainerHierarchyTexts": [ - "slice", - "diff", - "func" - ], - "ContainerHierarchyLocations": [ - { - "FileName": "/home/stv0g/workspace/cunicu/pkg/types/slices/slices_test.go", - "LineNumber": 20 - }, - { - "FileName": "/home/stv0g/workspace/cunicu/pkg/types/slices/slices_test.go", - "LineNumber": 66 - }, - { - "FileName": "/home/stv0g/workspace/cunicu/pkg/types/slices/slices_test.go", - "LineNumber": 136 - } - ], - "ContainerHierarchyLabels": [ - [], - [], - [] - ], - "LeafNodeType": "It", - "LeafNodeLocation": { - "FileName": "/home/stv0g/workspace/cunicu/pkg/types/slices/slices_test.go", - "LineNumber": 119 - }, - "LeafNodeLabels": [], - "LeafNodeText": "finds added and removed elements", - "State": "skipped", - "StartTime": "2023-02-07T18:55:50.109271961+01:00", - "EndTime": "0001-01-01T00:00:00Z", - "RunTime": 0, - "ParallelProcess": 1, - "NumAttempts": 0, - "MaxFlakeAttempts": 0, - "MaxMustPassRepeatedly": 0 - }, - { - "ContainerHierarchyTexts": [ - "slice", - "diff", - "func" - ], - "ContainerHierarchyLocations": [ - { - "FileName": "/home/stv0g/workspace/cunicu/pkg/types/slices/slices_test.go", - "LineNumber": 20 - }, - { - "FileName": "/home/stv0g/workspace/cunicu/pkg/types/slices/slices_test.go", - "LineNumber": 66 - }, - { - "FileName": "/home/stv0g/workspace/cunicu/pkg/types/slices/slices_test.go", - "LineNumber": 136 - } - ], - "ContainerHierarchyLabels": [ - [], - [], - [] - ], - "LeafNodeType": "It", - "LeafNodeLocation": { - "FileName": "/home/stv0g/workspace/cunicu/pkg/types/slices/slices_test.go", - "LineNumber": 127 - }, - "LeafNodeLabels": [], - "LeafNodeText": "finds all changes at once", - "State": "skipped", - "StartTime": "2023-02-07T18:55:50.109275627+01:00", - "EndTime": "0001-01-01T00:00:00Z", - "RunTime": 0, - "ParallelProcess": 1, - "NumAttempts": 0, - "MaxFlakeAttempts": 0, - "MaxMustPassRepeatedly": 0 - }, - { - "ContainerHierarchyTexts": [ - "slice", - "diff", - "no func" - ], - "ContainerHierarchyLocations": [ - { - "FileName": "/home/stv0g/workspace/cunicu/pkg/types/slices/slices_test.go", - "LineNumber": 20 - }, - { - "FileName": "/home/stv0g/workspace/cunicu/pkg/types/slices/slices_test.go", - "LineNumber": 66 - }, - { - "FileName": "/home/stv0g/workspace/cunicu/pkg/types/slices/slices_test.go", - "LineNumber": 148 - } - ], - "ContainerHierarchyLabels": [ - [], - [], - [] - ], - "LeafNodeType": "It", - "LeafNodeLocation": { - "FileName": "/home/stv0g/workspace/cunicu/pkg/types/slices/slices_test.go", - "LineNumber": 87 - }, - "LeafNodeLabels": [], - "LeafNodeText": "finds added elements", - "State": "skipped", - "StartTime": "2023-02-07T18:55:50.109279211+01:00", - "EndTime": "0001-01-01T00:00:00Z", - "RunTime": 0, - "ParallelProcess": 1, - "NumAttempts": 0, - "MaxFlakeAttempts": 0, - "MaxMustPassRepeatedly": 0 - }, - { - "ContainerHierarchyTexts": [ - "slice", - "diff", - "no func" - ], - "ContainerHierarchyLocations": [ - { - "FileName": "/home/stv0g/workspace/cunicu/pkg/types/slices/slices_test.go", - "LineNumber": 20 - }, - { - "FileName": "/home/stv0g/workspace/cunicu/pkg/types/slices/slices_test.go", - "LineNumber": 66 - }, - { - "FileName": "/home/stv0g/workspace/cunicu/pkg/types/slices/slices_test.go", - "LineNumber": 148 - } - ], - "ContainerHierarchyLabels": [ - [], - [], - [] - ], - "LeafNodeType": "It", - "LeafNodeLocation": { - "FileName": "/home/stv0g/workspace/cunicu/pkg/types/slices/slices_test.go", - "LineNumber": 95 - }, - "LeafNodeLabels": [], - "LeafNodeText": "finds removed elements", - "State": "skipped", - "StartTime": "2023-02-07T18:55:50.109288544+01:00", - "EndTime": "0001-01-01T00:00:00Z", - "RunTime": 0, - "ParallelProcess": 1, - "NumAttempts": 0, - "MaxFlakeAttempts": 0, - "MaxMustPassRepeatedly": 0 - }, - { - "ContainerHierarchyTexts": [ - "slice", - "diff", - "no func" - ], - "ContainerHierarchyLocations": [ - { - "FileName": "/home/stv0g/workspace/cunicu/pkg/types/slices/slices_test.go", - "LineNumber": 20 - }, - { - "FileName": "/home/stv0g/workspace/cunicu/pkg/types/slices/slices_test.go", - "LineNumber": 66 - }, - { - "FileName": "/home/stv0g/workspace/cunicu/pkg/types/slices/slices_test.go", - "LineNumber": 148 - } - ], - "ContainerHierarchyLabels": [ - [], - [], - [] - ], - "LeafNodeType": "It", - "LeafNodeLocation": { - "FileName": "/home/stv0g/workspace/cunicu/pkg/types/slices/slices_test.go", - "LineNumber": 103 - }, - "LeafNodeLabels": [], - "LeafNodeText": "finds kept elements", - "State": "skipped", - "StartTime": "2023-02-07T18:55:50.109291711+01:00", - "EndTime": "0001-01-01T00:00:00Z", - "RunTime": 0, - "ParallelProcess": 1, - "NumAttempts": 0, - "MaxFlakeAttempts": 0, - "MaxMustPassRepeatedly": 0 - }, - { - "ContainerHierarchyTexts": [ - "slice", - "diff", - "no func" - ], - "ContainerHierarchyLocations": [ - { - "FileName": "/home/stv0g/workspace/cunicu/pkg/types/slices/slices_test.go", - "LineNumber": 20 - }, - { - "FileName": "/home/stv0g/workspace/cunicu/pkg/types/slices/slices_test.go", - "LineNumber": 66 - }, - { - "FileName": "/home/stv0g/workspace/cunicu/pkg/types/slices/slices_test.go", - "LineNumber": 148 - } - ], - "ContainerHierarchyLabels": [ - [], - [], - [] - ], - "LeafNodeType": "It", - "LeafNodeLocation": { - "FileName": "/home/stv0g/workspace/cunicu/pkg/types/slices/slices_test.go", - "LineNumber": 111 - }, - "LeafNodeLabels": [], - "LeafNodeText": "finds no changes on empty slices", - "State": "skipped", - "StartTime": "2023-02-07T18:55:50.109300794+01:00", - "EndTime": "0001-01-01T00:00:00Z", - "RunTime": 0, - "ParallelProcess": 1, - "NumAttempts": 0, - "MaxFlakeAttempts": 0, - "MaxMustPassRepeatedly": 0 - }, - { - "ContainerHierarchyTexts": [ - "slice", - "diff", - "no func" - ], - "ContainerHierarchyLocations": [ - { - "FileName": "/home/stv0g/workspace/cunicu/pkg/types/slices/slices_test.go", - "LineNumber": 20 - }, - { - "FileName": "/home/stv0g/workspace/cunicu/pkg/types/slices/slices_test.go", - "LineNumber": 66 - }, - { - "FileName": "/home/stv0g/workspace/cunicu/pkg/types/slices/slices_test.go", - "LineNumber": 148 - } - ], - "ContainerHierarchyLabels": [ - [], - [], - [] - ], - "LeafNodeType": "It", - "LeafNodeLocation": { - "FileName": "/home/stv0g/workspace/cunicu/pkg/types/slices/slices_test.go", - "LineNumber": 119 - }, - "LeafNodeLabels": [], - "LeafNodeText": "finds added and removed elements", - "State": "skipped", - "StartTime": "2023-02-07T18:55:50.109304002+01:00", - "EndTime": "0001-01-01T00:00:00Z", - "RunTime": 0, - "ParallelProcess": 1, - "NumAttempts": 0, - "MaxFlakeAttempts": 0, - "MaxMustPassRepeatedly": 0 - }, - { - "ContainerHierarchyTexts": [ - "slice", - "diff", - "no func" - ], - "ContainerHierarchyLocations": [ - { - "FileName": "/home/stv0g/workspace/cunicu/pkg/types/slices/slices_test.go", - "LineNumber": 20 - }, - { - "FileName": "/home/stv0g/workspace/cunicu/pkg/types/slices/slices_test.go", - "LineNumber": 66 - }, - { - "FileName": "/home/stv0g/workspace/cunicu/pkg/types/slices/slices_test.go", - "LineNumber": 148 - } - ], - "ContainerHierarchyLabels": [ - [], - [], - [] - ], - "LeafNodeType": "It", - "LeafNodeLocation": { - "FileName": "/home/stv0g/workspace/cunicu/pkg/types/slices/slices_test.go", - "LineNumber": 127 - }, - "LeafNodeLabels": [], - "LeafNodeText": "finds all changes at once", - "State": "skipped", - "StartTime": "2023-02-07T18:55:50.109309586+01:00", - "EndTime": "0001-01-01T00:00:00Z", - "RunTime": 0, - "ParallelProcess": 1, - "NumAttempts": 0, - "MaxFlakeAttempts": 0, - "MaxMustPassRepeatedly": 0 - } - ] - } -] diff --git a/pkg/types/slices/slices.go b/pkg/types/slices/slices.go index ad0fa091..47fc5a2e 100644 --- a/pkg/types/slices/slices.go +++ b/pkg/types/slices/slices.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package slices import ( diff --git a/pkg/types/slices/slices_test.go b/pkg/types/slices/slices_test.go index f97dd0ca..12e4d9ab 100644 --- a/pkg/types/slices/slices_test.go +++ b/pkg/types/slices/slices_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package slices_test import ( diff --git a/pkg/types/types_test.go b/pkg/types/types_test.go index a0b34296..6ac9b73f 100644 --- a/pkg/types/types_test.go +++ b/pkg/types/types_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package types_test import ( diff --git a/pkg/wg/bind.go b/pkg/wg/bind.go index 9eecb6b7..72ad2147 100644 --- a/pkg/wg/bind.go +++ b/pkg/wg/bind.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package wg import ( diff --git a/pkg/wg/bind_conn.go b/pkg/wg/bind_conn.go index a1eb3283..0aca214c 100644 --- a/pkg/wg/bind_conn.go +++ b/pkg/wg/bind_conn.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package wg import ( diff --git a/pkg/wg/bind_endpoint.go b/pkg/wg/bind_endpoint.go index a366c22d..afeec780 100644 --- a/pkg/wg/bind_endpoint.go +++ b/pkg/wg/bind_endpoint.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package wg import ( diff --git a/pkg/wg/cleanup_others.go b/pkg/wg/cleanup_others.go index 9d02dc89..17fcc833 100644 --- a/pkg/wg/cleanup_others.go +++ b/pkg/wg/cleanup_others.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + //go:build !unix package wg diff --git a/pkg/wg/cleanup_unix.go b/pkg/wg/cleanup_unix.go index 8b660185..251c7039 100644 --- a/pkg/wg/cleanup_unix.go +++ b/pkg/wg/cleanup_unix.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + //go:build unix package wg diff --git a/pkg/wg/compare.go b/pkg/wg/compare.go index 7a8e7a2a..cd90edde 100644 --- a/pkg/wg/compare.go +++ b/pkg/wg/compare.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package wg import ( diff --git a/pkg/wg/compare_test.go b/pkg/wg/compare_test.go index deb4c0b9..d5b56cf4 100644 --- a/pkg/wg/compare_test.go +++ b/pkg/wg/compare_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package wg_test import ( diff --git a/pkg/wg/device.go b/pkg/wg/device.go index e9181eb6..adab4620 100644 --- a/pkg/wg/device.go +++ b/pkg/wg/device.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package wg import ( diff --git a/pkg/wg/device_config.go b/pkg/wg/device_config.go index b903cecc..1428cf68 100644 --- a/pkg/wg/device_config.go +++ b/pkg/wg/device_config.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package wg import ( diff --git a/pkg/wg/device_config_test.go b/pkg/wg/device_config_test.go index c07e00d9..50ae3cd0 100644 --- a/pkg/wg/device_config_test.go +++ b/pkg/wg/device_config_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package wg_test import ( diff --git a/pkg/wg/device_test.go b/pkg/wg/device_test.go index 7aa571e9..7e5f9f1b 100644 --- a/pkg/wg/device_test.go +++ b/pkg/wg/device_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package wg_test import ( diff --git a/pkg/wg/kernel_freebsd.go b/pkg/wg/kernel_freebsd.go index 8f8693ad..c7ffca4c 100644 --- a/pkg/wg/kernel_freebsd.go +++ b/pkg/wg/kernel_freebsd.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package wg import ( diff --git a/pkg/wg/kernel_linux.go b/pkg/wg/kernel_linux.go index 60a49ea9..03260b61 100644 --- a/pkg/wg/kernel_linux.go +++ b/pkg/wg/kernel_linux.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package wg import ( diff --git a/pkg/wg/kernel_linux_test.go b/pkg/wg/kernel_linux_test.go index d7952308..d2a17088 100644 --- a/pkg/wg/kernel_linux_test.go +++ b/pkg/wg/kernel_linux_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package wg_test import ( diff --git a/pkg/wg/kernel_others.go b/pkg/wg/kernel_others.go index eacbf521..328efd9d 100644 --- a/pkg/wg/kernel_others.go +++ b/pkg/wg/kernel_others.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + //go:build !(linux || freebsd) package wg diff --git a/pkg/wg/mark.go b/pkg/wg/mark.go index 9774a462..670c60d0 100644 --- a/pkg/wg/mark.go +++ b/pkg/wg/mark.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + //go:build android || linux || openbsd || freebsd package wg diff --git a/pkg/wg/mark_freebsd.go b/pkg/wg/mark_freebsd.go index 068544af..52d83872 100644 --- a/pkg/wg/mark_freebsd.go +++ b/pkg/wg/mark_freebsd.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package wg import "golang.org/x/sys/unix" diff --git a/pkg/wg/mark_linux.go b/pkg/wg/mark_linux.go index 2de2f9ac..d64d0fed 100644 --- a/pkg/wg/mark_linux.go +++ b/pkg/wg/mark_linux.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package wg import "golang.org/x/sys/unix" diff --git a/pkg/wg/mark_openbsd.go b/pkg/wg/mark_openbsd.go index d470c816..73128085 100644 --- a/pkg/wg/mark_openbsd.go +++ b/pkg/wg/mark_openbsd.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package wg import "golang.org/x/sys/unix" diff --git a/pkg/wg/mark_others.go b/pkg/wg/mark_others.go index 9ce38c7a..165b1cc2 100644 --- a/pkg/wg/mark_others.go +++ b/pkg/wg/mark_others.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + //go:build !(android || linux || freebsd || openbsd) package wg diff --git a/pkg/wg/tracer/.gitignore b/pkg/wg/tracer/.gitignore index 93985e7b..be3ad88f 100644 --- a/pkg/wg/tracer/.gitignore +++ b/pkg/wg/tracer/.gitignore @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2023 Steffen Vogel +# SPDX-License-Identifier: Apache-2.0 + kernel/*.cmd kernel/config.o kernel/config diff --git a/pkg/wg/tracer/handshake.go b/pkg/wg/tracer/handshake.go index 3d6e9cd9..b0df7cbd 100644 --- a/pkg/wg/tracer/handshake.go +++ b/pkg/wg/tracer/handshake.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + //go:build tracer package tracer diff --git a/pkg/wg/tracer/include/bpf_helpers.h b/pkg/wg/tracer/include/bpf_helpers.h index 8506bd58..5021b1aa 100644 --- a/pkg/wg/tracer/include/bpf_helpers.h +++ b/pkg/wg/tracer/include/bpf_helpers.h @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + /* Limited set of BPF related helpers */ #pragma once diff --git a/pkg/wg/tracer/kernel/Makefile b/pkg/wg/tracer/kernel/Makefile index 7dfd9a74..bcbdfeca 100644 --- a/pkg/wg/tracer/kernel/Makefile +++ b/pkg/wg/tracer/kernel/Makefile @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2023 Steffen Vogel +# SPDX-License-Identifier: Apache-2.0 + ifeq ($(KERNELRELEASE),) KERNELDIR ?= /lib/modules/$(shell uname -r)/build PWD := $(shell pwd) diff --git a/pkg/wg/tracer/kernel/config.c b/pkg/wg/tracer/kernel/config.c index a5c5a823..6315747a 100644 --- a/pkg/wg/tracer/kernel/config.c +++ b/pkg/wg/tracer/kernel/config.c @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + //go:build ignore // @author Steffen Vogel diff --git a/pkg/wg/tracer/kernel/kernel.go b/pkg/wg/tracer/kernel/kernel.go index f68f102e..45e9d88e 100644 --- a/pkg/wg/tracer/kernel/kernel.go +++ b/pkg/wg/tracer/kernel/kernel.go @@ -1,2 +1,5 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + // Package kernel defines some constants of the Kernel version and arch for which the code has been generated package kernel diff --git a/pkg/wg/tracer/kprobe_wg_index_hashtable_insert.c b/pkg/wg/tracer/kprobe_wg_index_hashtable_insert.c index 23a1d403..a33f9c8f 100644 --- a/pkg/wg/tracer/kprobe_wg_index_hashtable_insert.c +++ b/pkg/wg/tracer/kprobe_wg_index_hashtable_insert.c @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + //go:build ignore // @author Steffen Vogel diff --git a/pkg/wg/tracer/tracer.go b/pkg/wg/tracer/tracer.go index f4f60370..34bf5799 100644 --- a/pkg/wg/tracer/tracer.go +++ b/pkg/wg/tracer/tracer.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + //go:build tracer // Package tracer uses Linux Kprobes to gather ephemeral keys from handshakes of local WireGuard interfaces diff --git a/pkg/wg/wg.go b/pkg/wg/wg.go index 65544b43..f9fbd6ea 100644 --- a/pkg/wg/wg.go +++ b/pkg/wg/wg.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + // Package wg provides various helpers for WireGuard package wg diff --git a/pkg/wg/wg_test.go b/pkg/wg/wg_test.go index d09d00d0..66b9cde7 100644 --- a/pkg/wg/wg_test.go +++ b/pkg/wg/wg_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package wg_test import ( diff --git a/proto/README.md b/proto/README.md index f9b6affb..5e4a892e 100644 --- a/proto/README.md +++ b/proto/README.md @@ -1,2 +1,7 @@ + + This directory contains all protobuf descrptions used by cunīcu They are used to generate the Go code at ./pkg/proto. \ No newline at end of file diff --git a/proto/common.proto b/proto/common.proto index c599c95e..9c6d3dbc 100644 --- a/proto/common.proto +++ b/proto/common.proto @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + syntax = "proto3"; package cunicu; diff --git a/proto/core/interface.proto b/proto/core/interface.proto index 3a059bba..d8e10251 100644 --- a/proto/core/interface.proto +++ b/proto/core/interface.proto @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + syntax = "proto3"; package cunicu.core; diff --git a/proto/core/net.proto b/proto/core/net.proto index 8a5807e5..7c16fdbd 100644 --- a/proto/core/net.proto +++ b/proto/core/net.proto @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + syntax = "proto3"; package cunicu.core; diff --git a/proto/core/peer.proto b/proto/core/peer.proto index 17a273ef..b2ece577 100644 --- a/proto/core/peer.proto +++ b/proto/core/peer.proto @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + syntax = "proto3"; package cunicu.core; diff --git a/proto/feature/epdisc.proto b/proto/feature/epdisc.proto index 6afe5950..52c6bbde 100644 --- a/proto/feature/epdisc.proto +++ b/proto/feature/epdisc.proto @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + syntax = "proto3"; package cunicu.epdisc; diff --git a/proto/feature/epdisc_candidate.proto b/proto/feature/epdisc_candidate.proto index 2b20c948..58ed1777 100644 --- a/proto/feature/epdisc_candidate.proto +++ b/proto/feature/epdisc_candidate.proto @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + syntax = "proto3"; package cunicu.epdisc; diff --git a/proto/feature/hooks.proto b/proto/feature/hooks.proto index 1b66e609..fbb2bb4f 100644 --- a/proto/feature/hooks.proto +++ b/proto/feature/hooks.proto @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + syntax = "proto3"; package cunicu.hooks; diff --git a/proto/feature/pdisc.proto b/proto/feature/pdisc.proto index 5a6dbccc..5851bde5 100644 --- a/proto/feature/pdisc.proto +++ b/proto/feature/pdisc.proto @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + syntax = "proto3"; package cunicu.pdisc; diff --git a/proto/feature/pske.proto b/proto/feature/pske.proto index 7b322e77..9c8ceae0 100644 --- a/proto/feature/pske.proto +++ b/proto/feature/pske.proto @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + syntax = "proto3"; package cunicu.pske; diff --git a/proto/rpc/daemon.proto b/proto/rpc/daemon.proto index a0d15903..94526a37 100644 --- a/proto/rpc/daemon.proto +++ b/proto/rpc/daemon.proto @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + syntax = "proto3"; package cunicu.rpc; diff --git a/proto/rpc/epdisc.proto b/proto/rpc/epdisc.proto index 0b0a9d1e..c34a5e74 100644 --- a/proto/rpc/epdisc.proto +++ b/proto/rpc/epdisc.proto @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + syntax = "proto3"; package cunicu.rpc; diff --git a/proto/rpc/event.proto b/proto/rpc/event.proto index 0c5c328e..712ed139 100644 --- a/proto/rpc/event.proto +++ b/proto/rpc/event.proto @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + syntax = "proto3"; package cunicu.rpc; diff --git a/proto/rpc/invitation.proto b/proto/rpc/invitation.proto index 759ccef7..e42a0460 100644 --- a/proto/rpc/invitation.proto +++ b/proto/rpc/invitation.proto @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + syntax = "proto3"; package cunicu.rpc; diff --git a/proto/rpc/signaling.proto b/proto/rpc/signaling.proto index f4fae4a7..98d99c04 100644 --- a/proto/rpc/signaling.proto +++ b/proto/rpc/signaling.proto @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + syntax = "proto3"; package cunicu.rpc; diff --git a/proto/signaling/relay.proto b/proto/signaling/relay.proto index ffb9c214..b6d86a64 100644 --- a/proto/signaling/relay.proto +++ b/proto/signaling/relay.proto @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + syntax = "proto3"; package cunicu.signaling; diff --git a/proto/signaling/signaling.proto b/proto/signaling/signaling.proto index cf8f1e38..11ec44ce 100644 --- a/proto/signaling/signaling.proto +++ b/proto/signaling/signaling.proto @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + syntax = "proto3"; package cunicu.signaling; diff --git a/scripts/get_cunicu.sh b/scripts/get_cunicu.sh index 403ae8b3..53821b60 100644 --- a/scripts/get_cunicu.sh +++ b/scripts/get_cunicu.sh @@ -1,18 +1,8 @@ #!/usr/bin/env bash # Copyright The cunicu 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. +# SPDX-FileCopyrightText: 2023 Steffen Vogel +# SPDX-License-Identifier: Apache-2.0 # The install script is based off of the Apache-2.0-licensed script from Helm: # https://github.com/helm/helm/blob/main/scripts/get-helm-3 diff --git a/scripts/sign_release.sh b/scripts/sign_release.sh index c4426903..b4a95f5c 100644 --- a/scripts/sign_release.sh +++ b/scripts/sign_release.sh @@ -1,5 +1,8 @@ #!/bin/bash +# SPDX-FileCopyrightText: 2023 Steffen Vogel +# SPDX-License-Identifier: Apache-2.0 + set -e function request() { diff --git a/scripts/wg_extract_handshakes.sh b/scripts/wg_extract_handshakes.sh index fbbd4ad4..fd4f2a41 100644 --- a/scripts/wg_extract_handshakes.sh +++ b/scripts/wg_extract_handshakes.sh @@ -1,5 +1,8 @@ #!/bin/bash +# SPDX-FileCopyrightText: 2023 Steffen Vogel +# SPDX-License-Identifier: Apache-2.0 + # Author: Steffen Vogel # License: Apache-2.0 # Copyright: Institute for Automation of Complex Power Systems, RWTH Aachen University diff --git a/test/backend.go b/test/backend.go index f545c32d..2b7118d1 100644 --- a/test/backend.go +++ b/test/backend.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package test import ( diff --git a/test/e2e/nat_double_test.go b/test/e2e/nat_double_test.go index 26514d8b..30b7505a 100644 --- a/test/e2e/nat_double_test.go +++ b/test/e2e/nat_double_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package e2e_test import ( diff --git a/test/e2e/nat_test.go b/test/e2e/nat_test.go index a6c036e6..0d557581 100644 --- a/test/e2e/nat_test.go +++ b/test/e2e/nat_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package e2e_test import ( diff --git a/test/e2e/network_others_test.go b/test/e2e/network_others_test.go index d1944775..87d8c590 100644 --- a/test/e2e/network_others_test.go +++ b/test/e2e/network_others_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + //go:build !tracer package e2e_test diff --git a/test/e2e/network_test.go b/test/e2e/network_test.go index e9db3a13..476b8a9c 100644 --- a/test/e2e/network_test.go +++ b/test/e2e/network_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package e2e_test import ( diff --git a/test/e2e/network_tracer_test.go b/test/e2e/network_tracer_test.go index 6dab176e..03d73f46 100644 --- a/test/e2e/network_tracer_test.go +++ b/test/e2e/network_tracer_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + //go:build tracer package e2e_test diff --git a/test/e2e/nodes/agent.go b/test/e2e/nodes/agent.go index 0e941ccc..1b23deed 100644 --- a/test/e2e/nodes/agent.go +++ b/test/e2e/nodes/agent.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package nodes import ( diff --git a/test/e2e/nodes/agent_list.go b/test/e2e/nodes/agent_list.go index 461b8d49..54b697ec 100644 --- a/test/e2e/nodes/agent_list.go +++ b/test/e2e/nodes/agent_list.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package nodes import ( diff --git a/test/e2e/nodes/build.go b/test/e2e/nodes/build.go index cc377630..71448d6b 100644 --- a/test/e2e/nodes/build.go +++ b/test/e2e/nodes/build.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package nodes import ( diff --git a/test/e2e/nodes/node.go b/test/e2e/nodes/node.go index d9413ad9..4b81b826 100644 --- a/test/e2e/nodes/node.go +++ b/test/e2e/nodes/node.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package nodes import ( diff --git a/test/e2e/nodes/options/agent.go b/test/e2e/nodes/options/agent.go index 9ac32818..a0cd22f2 100644 --- a/test/e2e/nodes/options/agent.go +++ b/test/e2e/nodes/options/agent.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package options import ( diff --git a/test/e2e/nodes/options/wg/interface.go b/test/e2e/nodes/options/wg/interface.go index 44f27883..57846aab 100644 --- a/test/e2e/nodes/options/wg/interface.go +++ b/test/e2e/nodes/options/wg/interface.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package wg import ( diff --git a/test/e2e/nodes/options/wg/peer.go b/test/e2e/nodes/options/wg/peer.go index efee81b4..b8d80fb2 100644 --- a/test/e2e/nodes/options/wg/peer.go +++ b/test/e2e/nodes/options/wg/peer.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package wg import ( diff --git a/test/e2e/nodes/relay.go b/test/e2e/nodes/relay.go index f0649622..38e185ad 100644 --- a/test/e2e/nodes/relay.go +++ b/test/e2e/nodes/relay.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package nodes import ( diff --git a/test/e2e/nodes/relay_coturn.go b/test/e2e/nodes/relay_coturn.go index 76e05db5..05f2272a 100644 --- a/test/e2e/nodes/relay_coturn.go +++ b/test/e2e/nodes/relay_coturn.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package nodes import ( diff --git a/test/e2e/nodes/relay_list.go b/test/e2e/nodes/relay_list.go index 644ef42c..f83e1a19 100644 --- a/test/e2e/nodes/relay_list.go +++ b/test/e2e/nodes/relay_list.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + //nolint:dupl package nodes diff --git a/test/e2e/nodes/signaling.go b/test/e2e/nodes/signaling.go index 0b26e12a..d3b720f1 100644 --- a/test/e2e/nodes/signaling.go +++ b/test/e2e/nodes/signaling.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package nodes import "net/url" diff --git a/test/e2e/nodes/signaling_grpc.go b/test/e2e/nodes/signaling_grpc.go index d0c6eb3b..c9615df2 100644 --- a/test/e2e/nodes/signaling_grpc.go +++ b/test/e2e/nodes/signaling_grpc.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package nodes import ( diff --git a/test/e2e/nodes/signaling_list.go b/test/e2e/nodes/signaling_list.go index 923ca6c3..61ee6588 100644 --- a/test/e2e/nodes/signaling_list.go +++ b/test/e2e/nodes/signaling_list.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + //nolint:dupl package nodes diff --git a/test/e2e/nodes/wg_interface.go b/test/e2e/nodes/wg_interface.go index 227f4be7..2c4da3cd 100644 --- a/test/e2e/nodes/wg_interface.go +++ b/test/e2e/nodes/wg_interface.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package nodes import ( diff --git a/test/e2e/nodes/wg_peer.go b/test/e2e/nodes/wg_peer.go index 04258fc8..92699c0a 100644 --- a/test/e2e/nodes/wg_peer.go +++ b/test/e2e/nodes/wg_peer.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package nodes import ( diff --git a/test/e2e/restart_test.go b/test/e2e/restart_test.go index 1d0813a3..a980daf3 100644 --- a/test/e2e/restart_test.go +++ b/test/e2e/restart_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package e2e_test import ( diff --git a/test/e2e/simple_test.go b/test/e2e/simple_test.go index 3ed652c4..cef6245e 100644 --- a/test/e2e/simple_test.go +++ b/test/e2e/simple_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package e2e_test import ( diff --git a/test/e2e/single_test.go b/test/e2e/single_test.go index 98449499..5d2708c0 100644 --- a/test/e2e/single_test.go +++ b/test/e2e/single_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package e2e_test import ( diff --git a/test/e2e/suite_test.go b/test/e2e/suite_test.go index 74e74075..e80e6b10 100644 --- a/test/e2e/suite_test.go +++ b/test/e2e/suite_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package e2e_test import ( diff --git a/test/log.go b/test/log.go index 45566d60..d8078035 100644 --- a/test/log.go +++ b/test/log.go @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package test import ( diff --git a/test/matchers.go b/test/matchers.go index ce591937..64f7e0e9 100644 --- a/test/matchers.go +++ b/test/matchers.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package test import ( diff --git a/test/progress.go b/test/progress.go index c93dad67..ee316395 100644 --- a/test/progress.go +++ b/test/progress.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package test import ( diff --git a/test/test.go b/test/test.go index ed301ed9..ae1c479d 100644 --- a/test/test.go +++ b/test/test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + // Package test implements universal helpers for unit and integration tests package test diff --git a/test/test_norace.go b/test/test_norace.go index beeec265..72bd9916 100644 --- a/test/test_norace.go +++ b/test/test_norace.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + //go:build !race package test diff --git a/test/test_race.go b/test/test_race.go index 5f80c9fe..f0ad4c9a 100644 --- a/test/test_race.go +++ b/test/test_race.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + //go:build race package test diff --git a/test/test_test.go b/test/test_test.go index 17ce7e43..9bc7f453 100644 --- a/test/test_test.go +++ b/test/test_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + package test_test import ( diff --git a/website/.gitignore b/website/.gitignore index b2d6de30..b4491477 100644 --- a/website/.gitignore +++ b/website/.gitignore @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2023 Steffen Vogel +# SPDX-License-Identifier: Apache-2.0 + # Dependencies /node_modules diff --git a/website/README.md b/website/README.md index bde4ed2c..526990d1 100644 --- a/website/README.md +++ b/website/README.md @@ -1,3 +1,8 @@ + + # Website This website is built using [Docusaurus 2](https://docusaurus.io/), a modern static website generator. diff --git a/website/babel.config.js b/website/babel.config.js index bfd75dbd..ad424efc 100644 --- a/website/babel.config.js +++ b/website/babel.config.js @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + module.exports = { presets: [require.resolve("@docusaurus/core/lib/babel/preset")], }; diff --git a/website/blog/2022-09-15-welcome/index.md b/website/blog/2022-09-15-welcome/index.md index 8477bd81..da3f9802 100644 --- a/website/blog/2022-09-15-welcome/index.md +++ b/website/blog/2022-09-15-welcome/index.md @@ -1,3 +1,8 @@ + + --- slug: welcome title: Welcome diff --git a/website/blog/authors.yml b/website/blog/authors.yml index d800045e..16977200 100644 --- a/website/blog/authors.yml +++ b/website/blog/authors.yml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2023 Steffen Vogel +# SPDX-License-Identifier: Apache-2.0 + stv0g: name: Steffen Vogel title: Maintainer of cunīcu diff --git a/website/docusaurus.config.js b/website/docusaurus.config.js index dc696267..37bfca43 100644 --- a/website/docusaurus.config.js +++ b/website/docusaurus.config.js @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + // @ts-check // Note: type annotations allow type checking and IDEs autocompletion diff --git a/website/sidebars.js b/website/sidebars.js index 90c6e8cf..d2008e9e 100644 --- a/website/sidebars.js +++ b/website/sidebars.js @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + // @ts-check /** @type {import("@docusaurus/plugin-content-docs").SidebarsConfig} */ diff --git a/website/src/components/ExampleConfig/index.js b/website/src/components/ExampleConfig/index.js index c3eecd74..2eac5718 100644 --- a/website/src/components/ExampleConfig/index.js +++ b/website/src/components/ExampleConfig/index.js @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + import React from 'react'; import CodeBlock from '@theme/CodeBlock'; import ExampleConfigSource from '!!raw-loader!../../../../etc/cunicu.yaml'; diff --git a/website/src/components/HomepageFeatures/index.js b/website/src/components/HomepageFeatures/index.js index ab17bfda..259b7561 100644 --- a/website/src/components/HomepageFeatures/index.js +++ b/website/src/components/HomepageFeatures/index.js @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + import React from 'react'; import clsx from 'clsx'; import styles from './styles.module.css'; diff --git a/website/src/components/HomepageFeatures/styles.module.css b/website/src/components/HomepageFeatures/styles.module.css index b248eb2e..6139eed2 100644 --- a/website/src/components/HomepageFeatures/styles.module.css +++ b/website/src/components/HomepageFeatures/styles.module.css @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2023 Steffen Vogel + * + * SPDX-License-Identifier: Apache-2.0 + */ + .features { display: flex; align-items: center; diff --git a/website/src/css/custom.css b/website/src/css/custom.css index 42b2cd44..637d92e4 100644 --- a/website/src/css/custom.css +++ b/website/src/css/custom.css @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2023 Steffen Vogel + * + * SPDX-License-Identifier: Apache-2.0 + */ + /** * Any CSS included here will be global. The classic template * bundles Infima by default. Infima is a CSS framework designed to diff --git a/website/src/pages/index.js b/website/src/pages/index.js index c528e9b9..c0969edd 100644 --- a/website/src/pages/index.js +++ b/website/src/pages/index.js @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Steffen Vogel +// SPDX-License-Identifier: Apache-2.0 + import React from 'react'; import clsx from 'clsx'; import Link from '@docusaurus/Link'; diff --git a/website/src/pages/index.module.css b/website/src/pages/index.module.css index 9f71a5da..84e29215 100644 --- a/website/src/pages/index.module.css +++ b/website/src/pages/index.module.css @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2023 Steffen Vogel + * + * SPDX-License-Identifier: Apache-2.0 + */ + /** * CSS files with the .module.css suffix will be treated as CSS modules * and scoped locally. diff --git a/website/src/pages/markdown-page.md b/website/src/pages/markdown-page.md index 9756c5b6..11a676ec 100644 --- a/website/src/pages/markdown-page.md +++ b/website/src/pages/markdown-page.md @@ -1,3 +1,8 @@ + + --- title: Markdown page example --- diff --git a/website/static/img/architecture.drawio.license b/website/static/img/architecture.drawio.license new file mode 100644 index 00000000..bf69d3f3 --- /dev/null +++ b/website/static/img/architecture.drawio.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 2023 Steffen Vogel + +SPDX-License-Identifier: Apache-2.0 diff --git a/website/static/img/architecture.svg.license b/website/static/img/architecture.svg.license new file mode 100644 index 00000000..bf69d3f3 --- /dev/null +++ b/website/static/img/architecture.svg.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 2023 Steffen Vogel + +SPDX-License-Identifier: Apache-2.0 diff --git a/website/static/img/classes.drawio.license b/website/static/img/classes.drawio.license new file mode 100644 index 00000000..bf69d3f3 --- /dev/null +++ b/website/static/img/classes.drawio.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 2023 Steffen Vogel + +SPDX-License-Identifier: Apache-2.0 diff --git a/website/static/img/cunicu_icon.png.license b/website/static/img/cunicu_icon.png.license new file mode 100644 index 00000000..bf69d3f3 --- /dev/null +++ b/website/static/img/cunicu_icon.png.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 2023 Steffen Vogel + +SPDX-License-Identifier: Apache-2.0 diff --git a/website/static/img/cunicu_icon.svg.license b/website/static/img/cunicu_icon.svg.license new file mode 100644 index 00000000..bf69d3f3 --- /dev/null +++ b/website/static/img/cunicu_icon.svg.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 2023 Steffen Vogel + +SPDX-License-Identifier: Apache-2.0 diff --git a/website/static/img/cunicu_logo.png.license b/website/static/img/cunicu_logo.png.license new file mode 100644 index 00000000..bf69d3f3 --- /dev/null +++ b/website/static/img/cunicu_logo.png.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 2023 Steffen Vogel + +SPDX-License-Identifier: Apache-2.0 diff --git a/website/static/img/cunicu_logo.svg.license b/website/static/img/cunicu_logo.svg.license new file mode 100644 index 00000000..bf69d3f3 --- /dev/null +++ b/website/static/img/cunicu_logo.svg.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 2023 Steffen Vogel + +SPDX-License-Identifier: Apache-2.0 diff --git a/website/static/img/cunicu_logo_dark.svg.license b/website/static/img/cunicu_logo_dark.svg.license new file mode 100644 index 00000000..bf69d3f3 --- /dev/null +++ b/website/static/img/cunicu_logo_dark.svg.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 2023 Steffen Vogel + +SPDX-License-Identifier: Apache-2.0 diff --git a/website/static/img/cunicu_sticker.svg.license b/website/static/img/cunicu_sticker.svg.license new file mode 100644 index 00000000..bf69d3f3 --- /dev/null +++ b/website/static/img/cunicu_sticker.svg.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 2023 Steffen Vogel + +SPDX-License-Identifier: Apache-2.0 diff --git a/website/static/img/dataflow.drawio.license b/website/static/img/dataflow.drawio.license new file mode 100644 index 00000000..bf69d3f3 --- /dev/null +++ b/website/static/img/dataflow.drawio.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 2023 Steffen Vogel + +SPDX-License-Identifier: Apache-2.0 diff --git a/website/static/img/docusaurus.png.license b/website/static/img/docusaurus.png.license new file mode 100644 index 00000000..bf69d3f3 --- /dev/null +++ b/website/static/img/docusaurus.png.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 2023 Steffen Vogel + +SPDX-License-Identifier: Apache-2.0 diff --git a/website/static/img/eonerc.png.license b/website/static/img/eonerc.png.license new file mode 100644 index 00000000..bf69d3f3 --- /dev/null +++ b/website/static/img/eonerc.png.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 2023 Steffen Vogel + +SPDX-License-Identifier: Apache-2.0 diff --git a/website/static/img/favicon.png.license b/website/static/img/favicon.png.license new file mode 100644 index 00000000..bf69d3f3 --- /dev/null +++ b/website/static/img/favicon.png.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 2023 Steffen Vogel + +SPDX-License-Identifier: Apache-2.0 diff --git a/website/static/img/flag_of_europe.svg.license b/website/static/img/flag_of_europe.svg.license new file mode 100644 index 00000000..bf69d3f3 --- /dev/null +++ b/website/static/img/flag_of_europe.svg.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 2023 Steffen Vogel + +SPDX-License-Identifier: Apache-2.0 diff --git a/website/static/img/logo.svg.license b/website/static/img/logo.svg.license new file mode 100644 index 00000000..bf69d3f3 --- /dev/null +++ b/website/static/img/logo.svg.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 2023 Steffen Vogel + +SPDX-License-Identifier: Apache-2.0 diff --git a/website/static/img/peer_state.drawio.license b/website/static/img/peer_state.drawio.license new file mode 100644 index 00000000..bf69d3f3 --- /dev/null +++ b/website/static/img/peer_state.drawio.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 2023 Steffen Vogel + +SPDX-License-Identifier: Apache-2.0 diff --git a/website/static/img/proxy.drawio.license b/website/static/img/proxy.drawio.license new file mode 100644 index 00000000..bf69d3f3 --- /dev/null +++ b/website/static/img/proxy.drawio.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 2023 Steffen Vogel + +SPDX-License-Identifier: Apache-2.0 diff --git a/website/static/img/proxy.svg.license b/website/static/img/proxy.svg.license new file mode 100644 index 00000000..bf69d3f3 --- /dev/null +++ b/website/static/img/proxy.svg.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 2023 Steffen Vogel + +SPDX-License-Identifier: Apache-2.0 diff --git a/website/static/img/undraw_docusaurus_mountain.svg.license b/website/static/img/undraw_docusaurus_mountain.svg.license new file mode 100644 index 00000000..bf69d3f3 --- /dev/null +++ b/website/static/img/undraw_docusaurus_mountain.svg.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 2023 Steffen Vogel + +SPDX-License-Identifier: Apache-2.0 diff --git a/website/static/img/undraw_docusaurus_react.svg.license b/website/static/img/undraw_docusaurus_react.svg.license new file mode 100644 index 00000000..bf69d3f3 --- /dev/null +++ b/website/static/img/undraw_docusaurus_react.svg.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 2023 Steffen Vogel + +SPDX-License-Identifier: Apache-2.0 diff --git a/website/static/img/undraw_docusaurus_tree.svg.license b/website/static/img/undraw_docusaurus_tree.svg.license new file mode 100644 index 00000000..bf69d3f3 --- /dev/null +++ b/website/static/img/undraw_docusaurus_tree.svg.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 2023 Steffen Vogel + +SPDX-License-Identifier: Apache-2.0 diff --git a/website/static/img/webrtc_logo.svg.license b/website/static/img/webrtc_logo.svg.license new file mode 100644 index 00000000..bf69d3f3 --- /dev/null +++ b/website/static/img/webrtc_logo.svg.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 2023 Steffen Vogel + +SPDX-License-Identifier: Apache-2.0 diff --git a/website/static/img/wireguard_logo.svg.license b/website/static/img/wireguard_logo.svg.license new file mode 100644 index 00000000..bf69d3f3 --- /dev/null +++ b/website/static/img/wireguard_logo.svg.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 2023 Steffen Vogel + +SPDX-License-Identifier: Apache-2.0