From 1a0eac3cf9a882c73658cf10ba78751cdd4a73a8 Mon Sep 17 00:00:00 2001 From: Thomas Vachuska Date: Mon, 4 Apr 2022 17:53:38 -0700 Subject: [PATCH] Switching license to SPDX (#17) --- .gitignore | 6 + .golangci.yml | 4 + .reuse/dep5 | 6 + .travis.yml | 4 + LICENSE | 201 ------------------ LICENSES/Apache-2.0.txt | 184 ++++++++++++++++ Makefile | 15 +- README.md | 5 + build/bin/compile_protos.sh | 3 + build/bin/coveralls-coverage | 3 + build/bin/generate-primitives.sh | 3 + build/bin/license-check | 11 - build/codegen/Dockerfile | 4 + cmd/protoc-gen-atomix/main.go | 14 +- codegen/meta/context.go | 16 +- codegen/meta/extensions.go | 14 +- codegen/meta/meta.go | 14 +- codegen/module.go | 14 +- codegen/template.go | 14 +- .../templates/driver/primitive/registry.tpl | 5 + codegen/templates/driver/primitive/server.tpl | 5 + .../templates/driver/proxy/gossip/proxy.tpl | 5 + codegen/templates/driver/proxy/rsm/proxy.tpl | 5 + .../storage/protocol/gossip/gossip.tpl | 5 + .../storage/protocol/gossip/server.tpl | 5 + .../storage/protocol/gossip/service.tpl | 5 + .../storage/protocol/rsm/adapter.tpl | 5 + .../storage/protocol/rsm/interface.tpl | 5 + docs/overview.md | 4 + pkg/atomix/broker/broker.go | 14 +- pkg/atomix/broker/options.go | 14 +- pkg/atomix/broker/primitives.go | 14 +- pkg/atomix/broker/server.go | 14 +- pkg/atomix/cluster/cluster.go | 14 +- pkg/atomix/cluster/member.go | 14 +- pkg/atomix/cluster/network.go | 14 +- pkg/atomix/cluster/options.go | 14 +- pkg/atomix/cluster/partition.go | 14 +- pkg/atomix/cluster/replica.go | 14 +- pkg/atomix/driver/agent/agent.go | 14 +- pkg/atomix/driver/agent/server.go | 14 +- pkg/atomix/driver/driver.go | 14 +- pkg/atomix/driver/env/env.go | 14 +- pkg/atomix/driver/options.go | 14 +- .../driver/primitive/counter/registry.go | 5 + pkg/atomix/driver/primitive/counter/server.go | 5 + .../driver/primitive/election/registry.go | 5 + .../driver/primitive/election/server.go | 5 + .../driver/primitive/indexedmap/registry.go | 5 + .../driver/primitive/indexedmap/server.go | 5 + pkg/atomix/driver/primitive/list/registry.go | 5 + pkg/atomix/driver/primitive/list/server.go | 5 + pkg/atomix/driver/primitive/lock/registry.go | 5 + pkg/atomix/driver/primitive/lock/server.go | 5 + pkg/atomix/driver/primitive/map/registry.go | 5 + pkg/atomix/driver/primitive/map/server.go | 5 + pkg/atomix/driver/primitive/primitive.go | 14 +- pkg/atomix/driver/primitive/registry.go | 14 +- pkg/atomix/driver/primitive/set/registry.go | 5 + pkg/atomix/driver/primitive/set/server.go | 5 + pkg/atomix/driver/primitive/value/registry.go | 5 + pkg/atomix/driver/primitive/value/server.go | 5 + pkg/atomix/driver/proxy/cache/map/cache.go | 14 +- pkg/atomix/driver/proxy/gossip/client.go | 14 +- pkg/atomix/driver/proxy/gossip/config.proto | 18 +- .../driver/proxy/gossip/counter/proxy.go | 5 + .../driver/proxy/gossip/counter/type.go | 14 +- pkg/atomix/driver/proxy/gossip/map/proxy.go | 5 + pkg/atomix/driver/proxy/gossip/map/type.go | 14 +- pkg/atomix/driver/proxy/gossip/partition.go | 14 +- pkg/atomix/driver/proxy/gossip/primitive.go | 14 +- pkg/atomix/driver/proxy/gossip/protocol.go | 14 +- pkg/atomix/driver/proxy/gossip/server.go | 14 +- pkg/atomix/driver/proxy/gossip/set/proxy.go | 5 + pkg/atomix/driver/proxy/gossip/set/type.go | 14 +- pkg/atomix/driver/proxy/gossip/value/proxy.go | 5 + pkg/atomix/driver/proxy/gossip/value/type.go | 14 +- pkg/atomix/driver/proxy/protocol.go | 14 +- pkg/atomix/driver/proxy/ro/counter/server.go | 14 +- pkg/atomix/driver/proxy/ro/election/server.go | 14 +- .../driver/proxy/ro/indexedmap/server.go | 14 +- pkg/atomix/driver/proxy/ro/list/server.go | 14 +- pkg/atomix/driver/proxy/ro/lock/server.go | 14 +- pkg/atomix/driver/proxy/ro/map/server.go | 14 +- pkg/atomix/driver/proxy/ro/set/server.go | 14 +- pkg/atomix/driver/proxy/ro/value/server.go | 14 +- pkg/atomix/driver/proxy/rsm/client.go | 14 +- pkg/atomix/driver/proxy/rsm/config.proto | 18 +- pkg/atomix/driver/proxy/rsm/counter/proxy.go | 5 + pkg/atomix/driver/proxy/rsm/counter/type.go | 14 +- pkg/atomix/driver/proxy/rsm/election/proxy.go | 5 + pkg/atomix/driver/proxy/rsm/election/type.go | 14 +- .../driver/proxy/rsm/indexedmap/proxy.go | 5 + .../driver/proxy/rsm/indexedmap/type.go | 14 +- pkg/atomix/driver/proxy/rsm/list/proxy.go | 5 + pkg/atomix/driver/proxy/rsm/list/type.go | 14 +- pkg/atomix/driver/proxy/rsm/lock/proxy.go | 5 + pkg/atomix/driver/proxy/rsm/lock/type.go | 14 +- pkg/atomix/driver/proxy/rsm/map/proxy.go | 5 + pkg/atomix/driver/proxy/rsm/map/type.go | 14 +- pkg/atomix/driver/proxy/rsm/partition.go | 14 +- pkg/atomix/driver/proxy/rsm/picker.go | 14 +- pkg/atomix/driver/proxy/rsm/primitive.go | 14 +- pkg/atomix/driver/proxy/rsm/protocol.go | 14 +- pkg/atomix/driver/proxy/rsm/resolver.go | 14 +- pkg/atomix/driver/proxy/rsm/service.go | 14 +- pkg/atomix/driver/proxy/rsm/session.go | 14 +- pkg/atomix/driver/proxy/rsm/set/proxy.go | 5 + pkg/atomix/driver/proxy/rsm/set/type.go | 14 +- pkg/atomix/driver/proxy/rsm/value/proxy.go | 5 + pkg/atomix/driver/proxy/rsm/value/type.go | 14 +- pkg/atomix/driver/server.go | 14 +- pkg/atomix/errors/errors.go | 14 +- pkg/atomix/errors/errors_test.go | 14 +- pkg/atomix/logging/config.go | 14 +- pkg/atomix/logging/field.go | 14 +- pkg/atomix/logging/level.go | 14 +- pkg/atomix/logging/logger.go | 14 +- pkg/atomix/logging/logger_test.go | 14 +- pkg/atomix/logging/output.go | 14 +- pkg/atomix/logging/test.yaml | 4 + pkg/atomix/meta/object.go | 14 +- pkg/atomix/node/node.go | 14 +- pkg/atomix/server/registry.go | 14 +- pkg/atomix/server/server.go | 14 +- .../protocol/gossip/counter/counter.go | 14 +- .../storage/protocol/gossip/counter/gossip.go | 5 + .../storage/protocol/gossip/counter/server.go | 5 + .../protocol/gossip/counter/service.go | 5 + .../protocol/gossip/counter/state.proto | 18 +- pkg/atomix/storage/protocol/gossip/manager.go | 14 +- .../storage/protocol/gossip/map/gossip.go | 5 + pkg/atomix/storage/protocol/gossip/map/map.go | 14 +- .../storage/protocol/gossip/map/server.go | 5 + .../storage/protocol/gossip/map/service.go | 5 + .../storage/protocol/gossip/map/state.proto | 18 +- pkg/atomix/storage/protocol/gossip/node.go | 14 +- .../storage/protocol/gossip/partition.go | 14 +- pkg/atomix/storage/protocol/gossip/peer.go | 14 +- .../storage/protocol/gossip/peergroup.go | 14 +- .../storage/protocol/gossip/primitive.go | 14 +- .../gossip/primitive/extensions.proto | 18 +- .../storage/protocol/gossip/protocol.proto | 18 +- .../storage/protocol/gossip/registry.go | 14 +- pkg/atomix/storage/protocol/gossip/server.go | 14 +- pkg/atomix/storage/protocol/gossip/service.go | 14 +- .../storage/protocol/gossip/set/gossip.go | 5 + .../storage/protocol/gossip/set/server.go | 5 + .../storage/protocol/gossip/set/service.go | 5 + pkg/atomix/storage/protocol/gossip/set/set.go | 14 +- .../storage/protocol/gossip/set/state.proto | 18 +- .../storage/protocol/gossip/value/gossip.go | 5 + .../storage/protocol/gossip/value/server.go | 5 + .../storage/protocol/gossip/value/service.go | 5 + .../storage/protocol/gossip/value/state.proto | 18 +- .../storage/protocol/gossip/value/value.go | 14 +- pkg/atomix/storage/protocol/rsm/command.go | 14 +- .../storage/protocol/rsm/counter/adapter.go | 5 + .../storage/protocol/rsm/counter/interface.go | 5 + .../storage/protocol/rsm/counter/service.go | 14 +- .../storage/protocol/rsm/counter/state.proto | 18 +- .../storage/protocol/rsm/election/adapter.go | 5 + .../protocol/rsm/election/interface.go | 5 + .../storage/protocol/rsm/election/service.go | 14 +- .../storage/protocol/rsm/election/state.proto | 18 +- pkg/atomix/storage/protocol/rsm/errors.go | 14 +- .../protocol/rsm/indexedmap/adapter.go | 5 + .../protocol/rsm/indexedmap/interface.go | 5 + .../protocol/rsm/indexedmap/service.go | 14 +- .../protocol/rsm/indexedmap/state.proto | 18 +- .../storage/protocol/rsm/list/adapter.go | 5 + .../storage/protocol/rsm/list/interface.go | 5 + .../storage/protocol/rsm/list/service.go | 14 +- .../storage/protocol/rsm/list/state.proto | 18 +- .../storage/protocol/rsm/lock/adapter.go | 5 + .../storage/protocol/rsm/lock/interface.go | 5 + .../storage/protocol/rsm/lock/service.go | 14 +- .../storage/protocol/rsm/lock/state.proto | 18 +- pkg/atomix/storage/protocol/rsm/manager.go | 14 +- .../storage/protocol/rsm/map/adapter.go | 5 + .../storage/protocol/rsm/map/interface.go | 5 + .../storage/protocol/rsm/map/service.go | 14 +- .../storage/protocol/rsm/map/state.proto | 18 +- pkg/atomix/storage/protocol/rsm/node.go | 14 +- pkg/atomix/storage/protocol/rsm/operation.go | 14 +- pkg/atomix/storage/protocol/rsm/partition.go | 14 +- pkg/atomix/storage/protocol/rsm/protocol.go | 14 +- pkg/atomix/storage/protocol/rsm/query.go | 14 +- pkg/atomix/storage/protocol/rsm/registry.go | 14 +- pkg/atomix/storage/protocol/rsm/scheduler.go | 14 +- pkg/atomix/storage/protocol/rsm/server.go | 14 +- pkg/atomix/storage/protocol/rsm/service.go | 14 +- pkg/atomix/storage/protocol/rsm/service.proto | 18 +- pkg/atomix/storage/protocol/rsm/session.go | 14 +- .../storage/protocol/rsm/set/adapter.go | 5 + .../storage/protocol/rsm/set/interface.go | 5 + .../storage/protocol/rsm/set/service.go | 14 +- .../storage/protocol/rsm/set/state.proto | 18 +- .../storage/protocol/rsm/value/adapter.go | 5 + .../storage/protocol/rsm/value/interface.go | 5 + .../storage/protocol/rsm/value/service.go | 14 +- .../storage/protocol/rsm/value/state.proto | 18 +- pkg/atomix/storage/protocol/server.go | 14 +- pkg/atomix/stream/stream.go | 14 +- pkg/atomix/time/composite.go | 14 +- pkg/atomix/time/epoch.go | 14 +- pkg/atomix/time/interfaces.go | 14 +- pkg/atomix/time/logical.go | 14 +- pkg/atomix/time/physical.go | 14 +- pkg/atomix/util/async/async.go | 14 +- pkg/atomix/util/async/async_test.go | 14 +- pkg/atomix/util/bytes.go | 14 +- pkg/atomix/util/bytes_test.go | 14 +- pkg/atomix/util/partition.go | 14 +- pkg/atomix/util/ready.go | 14 +- pkg/atomix/util/retry/options.go | 14 +- pkg/atomix/util/retry/retry.go | 14 +- 217 files changed, 858 insertions(+), 1912 deletions(-) create mode 100644 .reuse/dep5 delete mode 100644 LICENSE create mode 100644 LICENSES/Apache-2.0.txt delete mode 100755 build/bin/license-check diff --git a/.gitignore b/.gitignore index 6fcf0445..de68759f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2019-present Open Networking Foundation +# +# SPDX-License-Identifier: Apache-2.0 + # Binaries for programs and plugins *.exe *.exe~ @@ -11,3 +15,5 @@ build/tools # Output of the go coverage tool, specifically when used with LiteIDE *.out + +build/_output/* \ No newline at end of file diff --git a/.golangci.yml b/.golangci.yml index 2c5cd45c..311dbf3d 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2019-present Open Networking Foundation +# +# SPDX-License-Identifier: Apache-2.0 + linters: enable: - gofmt diff --git a/.reuse/dep5 b/.reuse/dep5 new file mode 100644 index 00000000..42df1358 --- /dev/null +++ b/.reuse/dep5 @@ -0,0 +1,6 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ + +Files: VERSION *.so *.png *.gif *.jpg go.mod go.sum *.pb.go +Copyright: 2019 Open Networking Foundation +License: Apache-2.0 + diff --git a/.travis.yml b/.travis.yml index f2b17b1a..a272f0a9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2019-present Open Networking Foundation +# +# SPDX-License-Identifier: Apache-2.0 + sudo: false language: go diff --git a/LICENSE b/LICENSE deleted file mode 100644 index 261eeb9e..00000000 --- a/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ - 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/Apache-2.0.txt b/LICENSES/Apache-2.0.txt new file mode 100644 index 00000000..dd730fa6 --- /dev/null +++ b/LICENSES/Apache-2.0.txt @@ -0,0 +1,184 @@ +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/Makefile b/Makefile index 398e72fe..5c6a5201 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2019-present Open Networking Foundation +# +# SPDX-License-Identifier: Apache-2.0 + export CGO_ENABLED=0 export GO111MODULE=on @@ -12,7 +16,7 @@ build: go build -v ./... test: # @HELP run the unit tests and source code validation -test: build license_check linters +test: build license # linters go test github.com/atomix/atomix-go-framework/pkg/... protoc-gen-atomix: # @HELP build the source code @@ -38,9 +42,6 @@ coverage: build linters license_check linters: # @HELP examines Go source code and reports coding problems golangci-lint run -license_check: # @HELP examine and ensure license headers exist - ./build/bin/license-check - protos: docker run -it \ -v $(PARENT_DIR)/atomix-api:/go/src/github.com/atomix/atomix-api \ @@ -48,3 +49,9 @@ protos: -w /go/src/github.com/atomix/atomix-go-framework \ --entrypoint build/bin/compile_protos.sh \ onosproject/protoc-go:stable + +reuse-tool: # @HELP install reuse if not present + command -v reuse || python3 -m pip install reuse + +license: reuse-tool # @HELP run license checks + reuse lint diff --git a/README.md b/README.md index 44200cc6..46dc2612 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,8 @@ + + # atomix-go-node [![Build Status](https://travis-ci.com/atomix/atomix-go-framework.svg?branch=master)](https://travis-ci.com/atomix/atomix-go-framework) diff --git a/build/bin/compile_protos.sh b/build/bin/compile_protos.sh index d8567ff0..fa76d5e3 100755 --- a/build/bin/compile_protos.sh +++ b/build/bin/compile_protos.sh @@ -1,4 +1,7 @@ #!/bin/sh +# SPDX-FileCopyrightText: 2019-present Open Networking Foundation +# +# SPDX-License-Identifier: Apache-2.0 proto_imports="./pkg:/go/src/github.com/atomix/atomix-api/proto:${GOPATH}/src/github.com/gogo/protobuf:${GOPATH}/src/github.com/gogo/protobuf/protobuf:${GOPATH}/src" diff --git a/build/bin/coveralls-coverage b/build/bin/coveralls-coverage index 7a51f6a0..df147569 100755 --- a/build/bin/coveralls-coverage +++ b/build/bin/coveralls-coverage @@ -1,4 +1,7 @@ #!/bin/bash +# SPDX-FileCopyrightText: 2019-present Open Networking Foundation +# +# SPDX-License-Identifier: Apache-2.0 go get github.com/go-playground/overalls && go get github.com/mattn/goveralls diff --git a/build/bin/generate-primitives.sh b/build/bin/generate-primitives.sh index 9de1bfbb..91899763 100755 --- a/build/bin/generate-primitives.sh +++ b/build/bin/generate-primitives.sh @@ -1,4 +1,7 @@ #!/bin/sh +# SPDX-FileCopyrightText: 2019-present Open Networking Foundation +# +# SPDX-License-Identifier: Apache-2.0 proto_path="./pkg:/go/src/github.com/atomix/atomix-api/proto:${GOPATH}/src/github.com/gogo/protobuf:${GOPATH}/src/github.com/gogo/protobuf/protobuf:${GOPATH}/src" diff --git a/build/bin/license-check b/build/bin/license-check deleted file mode 100755 index 04b8e2f0..00000000 --- a/build/bin/license-check +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/bash - -set -e - -if [ ! -d "build/tools" ]; then - git clone https://github.com/onosproject/build-tools.git build/tools -fi - -git -C build/tools checkout v0.6.1 - -./build/tools/licensing/boilerplate.py -v --rootdir=$(pwd) diff --git a/build/codegen/Dockerfile b/build/codegen/Dockerfile index 484d4fdc..4d769b20 100644 --- a/build/codegen/Dockerfile +++ b/build/codegen/Dockerfile @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2019-present Open Networking Foundation +# +# SPDX-License-Identifier: Apache-2.0 + FROM onosproject/protoc-go:v0.6.4 ADD build/_output/protoc-gen-atomix /usr/local/bin/protoc-gen-atomix diff --git a/cmd/protoc-gen-atomix/main.go b/cmd/protoc-gen-atomix/main.go index b2170de2..a4a08473 100644 --- a/cmd/protoc-gen-atomix/main.go +++ b/cmd/protoc-gen-atomix/main.go @@ -1,16 +1,6 @@ -// Copyright 2019-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package main diff --git a/codegen/meta/context.go b/codegen/meta/context.go index c8503665..802dbf73 100644 --- a/codegen/meta/context.go +++ b/codegen/meta/context.go @@ -1,16 +1,6 @@ -// Copyright 2019-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package meta @@ -49,7 +39,7 @@ func (c *Context) GetFilePath(entity pgs.Entity, file string) string { return filepath.Join(path, file) } -// GetFilePath returns the output path for the given entity +// GetTemplatePath returns the output path for the given entity func (c *Context) GetTemplatePath(file string) string { return file } diff --git a/codegen/meta/extensions.go b/codegen/meta/extensions.go index 2e4448a3..a99eb1ed 100644 --- a/codegen/meta/extensions.go +++ b/codegen/meta/extensions.go @@ -1,16 +1,6 @@ -// Copyright 2019-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package meta diff --git a/codegen/meta/meta.go b/codegen/meta/meta.go index 9586c66a..c86301f6 100644 --- a/codegen/meta/meta.go +++ b/codegen/meta/meta.go @@ -1,16 +1,6 @@ -// Copyright 2019-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package meta diff --git a/codegen/module.go b/codegen/module.go index e381276b..f14511f7 100644 --- a/codegen/module.go +++ b/codegen/module.go @@ -1,16 +1,6 @@ -// Copyright 2019-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package codegen diff --git a/codegen/template.go b/codegen/template.go index d974337c..3490be9f 100644 --- a/codegen/template.go +++ b/codegen/template.go @@ -1,16 +1,6 @@ -// Copyright 2019-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package codegen diff --git a/codegen/templates/driver/primitive/registry.tpl b/codegen/templates/driver/primitive/registry.tpl index 39f485bd..6d3ad5bb 100644 --- a/codegen/templates/driver/primitive/registry.tpl +++ b/codegen/templates/driver/primitive/registry.tpl @@ -1,4 +1,9 @@ // Code generated by atomix-go-framework. DO NOT EDIT. + +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation +// +// SPDX-License-Identifier: Apache-2.0 + package {{ .Package.Name }} {{ $service := printf "%s.%sServer" .Primitive.Type.Package.Alias .Primitive.Type.Name }} diff --git a/codegen/templates/driver/primitive/server.tpl b/codegen/templates/driver/primitive/server.tpl index 137f5572..07c0d887 100644 --- a/codegen/templates/driver/primitive/server.tpl +++ b/codegen/templates/driver/primitive/server.tpl @@ -1,4 +1,9 @@ // Code generated by atomix-go-framework. DO NOT EDIT. + +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation +// +// SPDX-License-Identifier: Apache-2.0 + package {{ .Package.Name }} {{ $server := printf "%sProxyServer" .Generator.Prefix }} diff --git a/codegen/templates/driver/proxy/gossip/proxy.tpl b/codegen/templates/driver/proxy/gossip/proxy.tpl index dcb522e6..51234002 100644 --- a/codegen/templates/driver/proxy/gossip/proxy.tpl +++ b/codegen/templates/driver/proxy/gossip/proxy.tpl @@ -1,4 +1,9 @@ // Code generated by atomix-go-framework. DO NOT EDIT. + +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation +// +// SPDX-License-Identifier: Apache-2.0 + package {{ .Package.Name }} {{ $proxy := printf "%sProxyServer" .Generator.Prefix }} diff --git a/codegen/templates/driver/proxy/rsm/proxy.tpl b/codegen/templates/driver/proxy/rsm/proxy.tpl index 20611482..65f95cda 100644 --- a/codegen/templates/driver/proxy/rsm/proxy.tpl +++ b/codegen/templates/driver/proxy/rsm/proxy.tpl @@ -1,4 +1,9 @@ // Code generated by atomix-go-framework. DO NOT EDIT. + +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation +// +// SPDX-License-Identifier: Apache-2.0 + package {{ .Package.Name }} {{ $primitive := .Primitive }} diff --git a/codegen/templates/storage/protocol/gossip/gossip.tpl b/codegen/templates/storage/protocol/gossip/gossip.tpl index 5686fa84..0fbb131e 100644 --- a/codegen/templates/storage/protocol/gossip/gossip.tpl +++ b/codegen/templates/storage/protocol/gossip/gossip.tpl @@ -1,4 +1,9 @@ // Code generated by atomix-go-framework. DO NOT EDIT. + +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation +// +// SPDX-License-Identifier: Apache-2.0 + package {{ .Package.Name }} {{ define "type" }} diff --git a/codegen/templates/storage/protocol/gossip/server.tpl b/codegen/templates/storage/protocol/gossip/server.tpl index 3ed50b39..6e4d0456 100644 --- a/codegen/templates/storage/protocol/gossip/server.tpl +++ b/codegen/templates/storage/protocol/gossip/server.tpl @@ -1,4 +1,9 @@ // Code generated by atomix-go-framework. DO NOT EDIT. + +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation +// +// SPDX-License-Identifier: Apache-2.0 + package {{ .Package.Name }} {{ $serviceType := printf "%sServiceType" .Generator.Prefix }} diff --git a/codegen/templates/storage/protocol/gossip/service.tpl b/codegen/templates/storage/protocol/gossip/service.tpl index 63b3995c..dec10f2f 100644 --- a/codegen/templates/storage/protocol/gossip/service.tpl +++ b/codegen/templates/storage/protocol/gossip/service.tpl @@ -1,4 +1,9 @@ // Code generated by atomix-go-framework. DO NOT EDIT. + +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation +// +// SPDX-License-Identifier: Apache-2.0 + package {{ .Package.Name }} {{ $serviceType := printf "%sServiceType" .Generator.Prefix }} diff --git a/codegen/templates/storage/protocol/rsm/adapter.tpl b/codegen/templates/storage/protocol/rsm/adapter.tpl index 3af74cc6..feb430e0 100644 --- a/codegen/templates/storage/protocol/rsm/adapter.tpl +++ b/codegen/templates/storage/protocol/rsm/adapter.tpl @@ -1,4 +1,9 @@ // Code generated by atomix-go-framework. DO NOT EDIT. + +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation +// +// SPDX-License-Identifier: Apache-2.0 + package {{ .Package.Name }} {{ $serviceInt := printf "%sService" .Generator.Prefix }} diff --git a/codegen/templates/storage/protocol/rsm/interface.tpl b/codegen/templates/storage/protocol/rsm/interface.tpl index d693e288..6f77364e 100644 --- a/codegen/templates/storage/protocol/rsm/interface.tpl +++ b/codegen/templates/storage/protocol/rsm/interface.tpl @@ -1,4 +1,9 @@ // Code generated by atomix-go-framework. DO NOT EDIT. + +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation +// +// SPDX-License-Identifier: Apache-2.0 + package {{ .Package.Name }} {{ $serviceInt := printf "%sService" .Generator.Prefix }} diff --git a/docs/overview.md b/docs/overview.md index e69de29b..20278445 100644 --- a/docs/overview.md +++ b/docs/overview.md @@ -0,0 +1,4 @@ + diff --git a/pkg/atomix/broker/broker.go b/pkg/atomix/broker/broker.go index a3cc5784..12f46b87 100644 --- a/pkg/atomix/broker/broker.go +++ b/pkg/atomix/broker/broker.go @@ -1,16 +1,6 @@ -// Copyright 2019-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package broker diff --git a/pkg/atomix/broker/options.go b/pkg/atomix/broker/options.go index efb44017..ec3ae46c 100644 --- a/pkg/atomix/broker/options.go +++ b/pkg/atomix/broker/options.go @@ -1,16 +1,6 @@ -// Copyright 2019-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package broker diff --git a/pkg/atomix/broker/primitives.go b/pkg/atomix/broker/primitives.go index f2206db6..a3ae3e75 100644 --- a/pkg/atomix/broker/primitives.go +++ b/pkg/atomix/broker/primitives.go @@ -1,16 +1,6 @@ -// Copyright 2019-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package broker diff --git a/pkg/atomix/broker/server.go b/pkg/atomix/broker/server.go index acb7df7a..54fcd615 100644 --- a/pkg/atomix/broker/server.go +++ b/pkg/atomix/broker/server.go @@ -1,16 +1,6 @@ -// Copyright 2019-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package broker diff --git a/pkg/atomix/cluster/cluster.go b/pkg/atomix/cluster/cluster.go index f2c3d2df..13ad49e6 100644 --- a/pkg/atomix/cluster/cluster.go +++ b/pkg/atomix/cluster/cluster.go @@ -1,16 +1,6 @@ -// Copyright 2019-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package cluster diff --git a/pkg/atomix/cluster/member.go b/pkg/atomix/cluster/member.go index e70cb15d..545bc901 100644 --- a/pkg/atomix/cluster/member.go +++ b/pkg/atomix/cluster/member.go @@ -1,16 +1,6 @@ -// Copyright 2019-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package cluster diff --git a/pkg/atomix/cluster/network.go b/pkg/atomix/cluster/network.go index 6ccef77e..b07b2025 100644 --- a/pkg/atomix/cluster/network.go +++ b/pkg/atomix/cluster/network.go @@ -1,16 +1,6 @@ -// Copyright 2019-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package cluster diff --git a/pkg/atomix/cluster/options.go b/pkg/atomix/cluster/options.go index 554d4f25..05a0b9d6 100644 --- a/pkg/atomix/cluster/options.go +++ b/pkg/atomix/cluster/options.go @@ -1,16 +1,6 @@ -// Copyright 2019-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package cluster diff --git a/pkg/atomix/cluster/partition.go b/pkg/atomix/cluster/partition.go index 3a3ea298..8c1ec462 100644 --- a/pkg/atomix/cluster/partition.go +++ b/pkg/atomix/cluster/partition.go @@ -1,16 +1,6 @@ -// Copyright 2019-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package cluster diff --git a/pkg/atomix/cluster/replica.go b/pkg/atomix/cluster/replica.go index 61662356..d922bf36 100644 --- a/pkg/atomix/cluster/replica.go +++ b/pkg/atomix/cluster/replica.go @@ -1,16 +1,6 @@ -// Copyright 2019-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package cluster diff --git a/pkg/atomix/driver/agent/agent.go b/pkg/atomix/driver/agent/agent.go index b9bde62b..d3eb27d6 100644 --- a/pkg/atomix/driver/agent/agent.go +++ b/pkg/atomix/driver/agent/agent.go @@ -1,16 +1,6 @@ -// Copyright 2019-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package agent diff --git a/pkg/atomix/driver/agent/server.go b/pkg/atomix/driver/agent/server.go index 5be1f850..c85617ba 100644 --- a/pkg/atomix/driver/agent/server.go +++ b/pkg/atomix/driver/agent/server.go @@ -1,16 +1,6 @@ -// Copyright 2019-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package agent diff --git a/pkg/atomix/driver/driver.go b/pkg/atomix/driver/driver.go index bb884a59..9fd923f6 100644 --- a/pkg/atomix/driver/driver.go +++ b/pkg/atomix/driver/driver.go @@ -1,16 +1,6 @@ -// Copyright 2019-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package driver diff --git a/pkg/atomix/driver/env/env.go b/pkg/atomix/driver/env/env.go index 4dcc04a3..1a8ff8b5 100644 --- a/pkg/atomix/driver/env/env.go +++ b/pkg/atomix/driver/env/env.go @@ -1,16 +1,6 @@ -// Copyright 2019-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package env diff --git a/pkg/atomix/driver/options.go b/pkg/atomix/driver/options.go index bdca2612..ebf8bbab 100644 --- a/pkg/atomix/driver/options.go +++ b/pkg/atomix/driver/options.go @@ -1,16 +1,6 @@ -// Copyright 2019-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package driver diff --git a/pkg/atomix/driver/primitive/counter/registry.go b/pkg/atomix/driver/primitive/counter/registry.go index 51939056..4fbffb5e 100644 --- a/pkg/atomix/driver/primitive/counter/registry.go +++ b/pkg/atomix/driver/primitive/counter/registry.go @@ -1,4 +1,9 @@ // Code generated by atomix-go-framework. DO NOT EDIT. + +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation +// +// SPDX-License-Identifier: Apache-2.0 + package counter import ( diff --git a/pkg/atomix/driver/primitive/counter/server.go b/pkg/atomix/driver/primitive/counter/server.go index a17aff11..460f43f7 100644 --- a/pkg/atomix/driver/primitive/counter/server.go +++ b/pkg/atomix/driver/primitive/counter/server.go @@ -1,4 +1,9 @@ // Code generated by atomix-go-framework. DO NOT EDIT. + +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation +// +// SPDX-License-Identifier: Apache-2.0 + package counter import ( diff --git a/pkg/atomix/driver/primitive/election/registry.go b/pkg/atomix/driver/primitive/election/registry.go index 63633d5c..52a3b769 100644 --- a/pkg/atomix/driver/primitive/election/registry.go +++ b/pkg/atomix/driver/primitive/election/registry.go @@ -1,4 +1,9 @@ // Code generated by atomix-go-framework. DO NOT EDIT. + +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation +// +// SPDX-License-Identifier: Apache-2.0 + package election import ( diff --git a/pkg/atomix/driver/primitive/election/server.go b/pkg/atomix/driver/primitive/election/server.go index 80243048..1f7450f1 100644 --- a/pkg/atomix/driver/primitive/election/server.go +++ b/pkg/atomix/driver/primitive/election/server.go @@ -1,4 +1,9 @@ // Code generated by atomix-go-framework. DO NOT EDIT. + +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation +// +// SPDX-License-Identifier: Apache-2.0 + package election import ( diff --git a/pkg/atomix/driver/primitive/indexedmap/registry.go b/pkg/atomix/driver/primitive/indexedmap/registry.go index 707c96d2..2b4198c9 100644 --- a/pkg/atomix/driver/primitive/indexedmap/registry.go +++ b/pkg/atomix/driver/primitive/indexedmap/registry.go @@ -1,4 +1,9 @@ // Code generated by atomix-go-framework. DO NOT EDIT. + +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation +// +// SPDX-License-Identifier: Apache-2.0 + package indexedmap import ( diff --git a/pkg/atomix/driver/primitive/indexedmap/server.go b/pkg/atomix/driver/primitive/indexedmap/server.go index 36d82140..5562f81f 100644 --- a/pkg/atomix/driver/primitive/indexedmap/server.go +++ b/pkg/atomix/driver/primitive/indexedmap/server.go @@ -1,4 +1,9 @@ // Code generated by atomix-go-framework. DO NOT EDIT. + +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation +// +// SPDX-License-Identifier: Apache-2.0 + package indexedmap import ( diff --git a/pkg/atomix/driver/primitive/list/registry.go b/pkg/atomix/driver/primitive/list/registry.go index 80defad4..216db23b 100644 --- a/pkg/atomix/driver/primitive/list/registry.go +++ b/pkg/atomix/driver/primitive/list/registry.go @@ -1,4 +1,9 @@ // Code generated by atomix-go-framework. DO NOT EDIT. + +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation +// +// SPDX-License-Identifier: Apache-2.0 + package list import ( diff --git a/pkg/atomix/driver/primitive/list/server.go b/pkg/atomix/driver/primitive/list/server.go index 83e42a41..01838ae5 100644 --- a/pkg/atomix/driver/primitive/list/server.go +++ b/pkg/atomix/driver/primitive/list/server.go @@ -1,4 +1,9 @@ // Code generated by atomix-go-framework. DO NOT EDIT. + +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation +// +// SPDX-License-Identifier: Apache-2.0 + package list import ( diff --git a/pkg/atomix/driver/primitive/lock/registry.go b/pkg/atomix/driver/primitive/lock/registry.go index f2cf2820..7338f476 100644 --- a/pkg/atomix/driver/primitive/lock/registry.go +++ b/pkg/atomix/driver/primitive/lock/registry.go @@ -1,4 +1,9 @@ // Code generated by atomix-go-framework. DO NOT EDIT. + +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation +// +// SPDX-License-Identifier: Apache-2.0 + package lock import ( diff --git a/pkg/atomix/driver/primitive/lock/server.go b/pkg/atomix/driver/primitive/lock/server.go index 9548ff5c..d26bd2df 100644 --- a/pkg/atomix/driver/primitive/lock/server.go +++ b/pkg/atomix/driver/primitive/lock/server.go @@ -1,4 +1,9 @@ // Code generated by atomix-go-framework. DO NOT EDIT. + +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation +// +// SPDX-License-Identifier: Apache-2.0 + package lock import ( diff --git a/pkg/atomix/driver/primitive/map/registry.go b/pkg/atomix/driver/primitive/map/registry.go index 9f05854f..f983e37b 100644 --- a/pkg/atomix/driver/primitive/map/registry.go +++ b/pkg/atomix/driver/primitive/map/registry.go @@ -1,4 +1,9 @@ // Code generated by atomix-go-framework. DO NOT EDIT. + +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation +// +// SPDX-License-Identifier: Apache-2.0 + package _map import ( diff --git a/pkg/atomix/driver/primitive/map/server.go b/pkg/atomix/driver/primitive/map/server.go index d78a73d9..c6d91b18 100644 --- a/pkg/atomix/driver/primitive/map/server.go +++ b/pkg/atomix/driver/primitive/map/server.go @@ -1,4 +1,9 @@ // Code generated by atomix-go-framework. DO NOT EDIT. + +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation +// +// SPDX-License-Identifier: Apache-2.0 + package _map import ( diff --git a/pkg/atomix/driver/primitive/primitive.go b/pkg/atomix/driver/primitive/primitive.go index bb42db94..3fbec8ff 100644 --- a/pkg/atomix/driver/primitive/primitive.go +++ b/pkg/atomix/driver/primitive/primitive.go @@ -1,16 +1,6 @@ -// Copyright 2019-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package primitive diff --git a/pkg/atomix/driver/primitive/registry.go b/pkg/atomix/driver/primitive/registry.go index ae110d89..c04422d0 100644 --- a/pkg/atomix/driver/primitive/registry.go +++ b/pkg/atomix/driver/primitive/registry.go @@ -1,16 +1,6 @@ -// Copyright 2019-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package primitive diff --git a/pkg/atomix/driver/primitive/set/registry.go b/pkg/atomix/driver/primitive/set/registry.go index 4bb61719..4c250942 100644 --- a/pkg/atomix/driver/primitive/set/registry.go +++ b/pkg/atomix/driver/primitive/set/registry.go @@ -1,4 +1,9 @@ // Code generated by atomix-go-framework. DO NOT EDIT. + +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation +// +// SPDX-License-Identifier: Apache-2.0 + package set import ( diff --git a/pkg/atomix/driver/primitive/set/server.go b/pkg/atomix/driver/primitive/set/server.go index 8e74f8aa..c2837166 100644 --- a/pkg/atomix/driver/primitive/set/server.go +++ b/pkg/atomix/driver/primitive/set/server.go @@ -1,4 +1,9 @@ // Code generated by atomix-go-framework. DO NOT EDIT. + +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation +// +// SPDX-License-Identifier: Apache-2.0 + package set import ( diff --git a/pkg/atomix/driver/primitive/value/registry.go b/pkg/atomix/driver/primitive/value/registry.go index cb7d4e1f..73a7f72a 100644 --- a/pkg/atomix/driver/primitive/value/registry.go +++ b/pkg/atomix/driver/primitive/value/registry.go @@ -1,4 +1,9 @@ // Code generated by atomix-go-framework. DO NOT EDIT. + +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation +// +// SPDX-License-Identifier: Apache-2.0 + package value import ( diff --git a/pkg/atomix/driver/primitive/value/server.go b/pkg/atomix/driver/primitive/value/server.go index 7c8852b1..945b6dfb 100644 --- a/pkg/atomix/driver/primitive/value/server.go +++ b/pkg/atomix/driver/primitive/value/server.go @@ -1,4 +1,9 @@ // Code generated by atomix-go-framework. DO NOT EDIT. + +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation +// +// SPDX-License-Identifier: Apache-2.0 + package value import ( diff --git a/pkg/atomix/driver/proxy/cache/map/cache.go b/pkg/atomix/driver/proxy/cache/map/cache.go index bcd28404..e7d968ff 100644 --- a/pkg/atomix/driver/proxy/cache/map/cache.go +++ b/pkg/atomix/driver/proxy/cache/map/cache.go @@ -1,16 +1,6 @@ -// Copyright 2019-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package _map diff --git a/pkg/atomix/driver/proxy/gossip/client.go b/pkg/atomix/driver/proxy/gossip/client.go index 449e52e4..d8eba8d0 100644 --- a/pkg/atomix/driver/proxy/gossip/client.go +++ b/pkg/atomix/driver/proxy/gossip/client.go @@ -1,16 +1,6 @@ -// Copyright 2019-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package gossip diff --git a/pkg/atomix/driver/proxy/gossip/config.proto b/pkg/atomix/driver/proxy/gossip/config.proto index 1fa3c53c..bd39fdb0 100644 --- a/pkg/atomix/driver/proxy/gossip/config.proto +++ b/pkg/atomix/driver/proxy/gossip/config.proto @@ -1,18 +1,6 @@ -/* -Copyright 2021-present Open Networking Foundation. - -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: 2021-present Open Networking Foundation +// +// SPDX-License-Identifier: Apache-2.0 syntax = "proto3"; diff --git a/pkg/atomix/driver/proxy/gossip/counter/proxy.go b/pkg/atomix/driver/proxy/gossip/counter/proxy.go index c5ae6ffd..dd666fbd 100644 --- a/pkg/atomix/driver/proxy/gossip/counter/proxy.go +++ b/pkg/atomix/driver/proxy/gossip/counter/proxy.go @@ -1,4 +1,9 @@ // Code generated by atomix-go-framework. DO NOT EDIT. + +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation +// +// SPDX-License-Identifier: Apache-2.0 + package counter import ( diff --git a/pkg/atomix/driver/proxy/gossip/counter/type.go b/pkg/atomix/driver/proxy/gossip/counter/type.go index 0c8f3bc8..30fbf939 100644 --- a/pkg/atomix/driver/proxy/gossip/counter/type.go +++ b/pkg/atomix/driver/proxy/gossip/counter/type.go @@ -1,16 +1,6 @@ -// Copyright 2019-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package counter diff --git a/pkg/atomix/driver/proxy/gossip/map/proxy.go b/pkg/atomix/driver/proxy/gossip/map/proxy.go index 78654e4a..caa1b26c 100644 --- a/pkg/atomix/driver/proxy/gossip/map/proxy.go +++ b/pkg/atomix/driver/proxy/gossip/map/proxy.go @@ -1,4 +1,9 @@ // Code generated by atomix-go-framework. DO NOT EDIT. + +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation +// +// SPDX-License-Identifier: Apache-2.0 + package _map import ( diff --git a/pkg/atomix/driver/proxy/gossip/map/type.go b/pkg/atomix/driver/proxy/gossip/map/type.go index 4e7de8f1..7727c882 100644 --- a/pkg/atomix/driver/proxy/gossip/map/type.go +++ b/pkg/atomix/driver/proxy/gossip/map/type.go @@ -1,16 +1,6 @@ -// Copyright 2019-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package _map diff --git a/pkg/atomix/driver/proxy/gossip/partition.go b/pkg/atomix/driver/proxy/gossip/partition.go index 1f3f38b2..3ae5bcc8 100644 --- a/pkg/atomix/driver/proxy/gossip/partition.go +++ b/pkg/atomix/driver/proxy/gossip/partition.go @@ -1,16 +1,6 @@ -// Copyright 2019-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package gossip diff --git a/pkg/atomix/driver/proxy/gossip/primitive.go b/pkg/atomix/driver/proxy/gossip/primitive.go index 49056b08..a9f24e5a 100644 --- a/pkg/atomix/driver/proxy/gossip/primitive.go +++ b/pkg/atomix/driver/proxy/gossip/primitive.go @@ -1,16 +1,6 @@ -// Copyright 2019-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package gossip diff --git a/pkg/atomix/driver/proxy/gossip/protocol.go b/pkg/atomix/driver/proxy/gossip/protocol.go index 903becc7..5ff8681e 100644 --- a/pkg/atomix/driver/proxy/gossip/protocol.go +++ b/pkg/atomix/driver/proxy/gossip/protocol.go @@ -1,16 +1,6 @@ -// Copyright 2019-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package gossip diff --git a/pkg/atomix/driver/proxy/gossip/server.go b/pkg/atomix/driver/proxy/gossip/server.go index d35b735d..f3430b75 100644 --- a/pkg/atomix/driver/proxy/gossip/server.go +++ b/pkg/atomix/driver/proxy/gossip/server.go @@ -1,16 +1,6 @@ -// Copyright 2019-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package gossip diff --git a/pkg/atomix/driver/proxy/gossip/set/proxy.go b/pkg/atomix/driver/proxy/gossip/set/proxy.go index b8d72c9c..a54229dd 100644 --- a/pkg/atomix/driver/proxy/gossip/set/proxy.go +++ b/pkg/atomix/driver/proxy/gossip/set/proxy.go @@ -1,4 +1,9 @@ // Code generated by atomix-go-framework. DO NOT EDIT. + +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation +// +// SPDX-License-Identifier: Apache-2.0 + package set import ( diff --git a/pkg/atomix/driver/proxy/gossip/set/type.go b/pkg/atomix/driver/proxy/gossip/set/type.go index f8c07f62..c0af81fd 100644 --- a/pkg/atomix/driver/proxy/gossip/set/type.go +++ b/pkg/atomix/driver/proxy/gossip/set/type.go @@ -1,16 +1,6 @@ -// Copyright 2019-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package set diff --git a/pkg/atomix/driver/proxy/gossip/value/proxy.go b/pkg/atomix/driver/proxy/gossip/value/proxy.go index 7e4c0f4b..a91df474 100644 --- a/pkg/atomix/driver/proxy/gossip/value/proxy.go +++ b/pkg/atomix/driver/proxy/gossip/value/proxy.go @@ -1,4 +1,9 @@ // Code generated by atomix-go-framework. DO NOT EDIT. + +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation +// +// SPDX-License-Identifier: Apache-2.0 + package value import ( diff --git a/pkg/atomix/driver/proxy/gossip/value/type.go b/pkg/atomix/driver/proxy/gossip/value/type.go index a11a794b..bf067b33 100644 --- a/pkg/atomix/driver/proxy/gossip/value/type.go +++ b/pkg/atomix/driver/proxy/gossip/value/type.go @@ -1,16 +1,6 @@ -// Copyright 2019-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package value diff --git a/pkg/atomix/driver/proxy/protocol.go b/pkg/atomix/driver/proxy/protocol.go index 364daf13..a8e6ef5f 100644 --- a/pkg/atomix/driver/proxy/protocol.go +++ b/pkg/atomix/driver/proxy/protocol.go @@ -1,16 +1,6 @@ -// Copyright 2019-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package proxy diff --git a/pkg/atomix/driver/proxy/ro/counter/server.go b/pkg/atomix/driver/proxy/ro/counter/server.go index d16bd288..4507daa2 100644 --- a/pkg/atomix/driver/proxy/ro/counter/server.go +++ b/pkg/atomix/driver/proxy/ro/counter/server.go @@ -1,16 +1,6 @@ -// Copyright 2019-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package counter diff --git a/pkg/atomix/driver/proxy/ro/election/server.go b/pkg/atomix/driver/proxy/ro/election/server.go index b0ea383d..8c5a0990 100644 --- a/pkg/atomix/driver/proxy/ro/election/server.go +++ b/pkg/atomix/driver/proxy/ro/election/server.go @@ -1,16 +1,6 @@ -// Copyright 2019-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package election diff --git a/pkg/atomix/driver/proxy/ro/indexedmap/server.go b/pkg/atomix/driver/proxy/ro/indexedmap/server.go index 4f2ae0c4..5ecbc6db 100644 --- a/pkg/atomix/driver/proxy/ro/indexedmap/server.go +++ b/pkg/atomix/driver/proxy/ro/indexedmap/server.go @@ -1,16 +1,6 @@ -// Copyright 2019-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package indexedmap diff --git a/pkg/atomix/driver/proxy/ro/list/server.go b/pkg/atomix/driver/proxy/ro/list/server.go index 4c912f25..d45f1633 100644 --- a/pkg/atomix/driver/proxy/ro/list/server.go +++ b/pkg/atomix/driver/proxy/ro/list/server.go @@ -1,16 +1,6 @@ -// Copyright 2019-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package list diff --git a/pkg/atomix/driver/proxy/ro/lock/server.go b/pkg/atomix/driver/proxy/ro/lock/server.go index 8b640571..1b91ab90 100644 --- a/pkg/atomix/driver/proxy/ro/lock/server.go +++ b/pkg/atomix/driver/proxy/ro/lock/server.go @@ -1,16 +1,6 @@ -// Copyright 2019-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package lock diff --git a/pkg/atomix/driver/proxy/ro/map/server.go b/pkg/atomix/driver/proxy/ro/map/server.go index ee420f8a..c222644d 100644 --- a/pkg/atomix/driver/proxy/ro/map/server.go +++ b/pkg/atomix/driver/proxy/ro/map/server.go @@ -1,16 +1,6 @@ -// Copyright 2019-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package _map diff --git a/pkg/atomix/driver/proxy/ro/set/server.go b/pkg/atomix/driver/proxy/ro/set/server.go index 65aa3d29..9c59a039 100644 --- a/pkg/atomix/driver/proxy/ro/set/server.go +++ b/pkg/atomix/driver/proxy/ro/set/server.go @@ -1,16 +1,6 @@ -// Copyright 2019-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package set diff --git a/pkg/atomix/driver/proxy/ro/value/server.go b/pkg/atomix/driver/proxy/ro/value/server.go index a0f85a23..afc96cd0 100644 --- a/pkg/atomix/driver/proxy/ro/value/server.go +++ b/pkg/atomix/driver/proxy/ro/value/server.go @@ -1,16 +1,6 @@ -// Copyright 2019-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package value diff --git a/pkg/atomix/driver/proxy/rsm/client.go b/pkg/atomix/driver/proxy/rsm/client.go index 937fc039..71817295 100644 --- a/pkg/atomix/driver/proxy/rsm/client.go +++ b/pkg/atomix/driver/proxy/rsm/client.go @@ -1,16 +1,6 @@ -// Copyright 2019-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package rsm diff --git a/pkg/atomix/driver/proxy/rsm/config.proto b/pkg/atomix/driver/proxy/rsm/config.proto index c965b8ba..4605260c 100644 --- a/pkg/atomix/driver/proxy/rsm/config.proto +++ b/pkg/atomix/driver/proxy/rsm/config.proto @@ -1,18 +1,6 @@ -/* -Copyright 2021-present Open Networking Foundation. - -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: 2021-present Open Networking Foundation +// +// SPDX-License-Identifier: Apache-2.0 syntax = "proto3"; diff --git a/pkg/atomix/driver/proxy/rsm/counter/proxy.go b/pkg/atomix/driver/proxy/rsm/counter/proxy.go index 2ed7c72e..867772fd 100644 --- a/pkg/atomix/driver/proxy/rsm/counter/proxy.go +++ b/pkg/atomix/driver/proxy/rsm/counter/proxy.go @@ -1,4 +1,9 @@ // Code generated by atomix-go-framework. DO NOT EDIT. + +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation +// +// SPDX-License-Identifier: Apache-2.0 + package counter import ( diff --git a/pkg/atomix/driver/proxy/rsm/counter/type.go b/pkg/atomix/driver/proxy/rsm/counter/type.go index 40b463b9..09bf23e8 100644 --- a/pkg/atomix/driver/proxy/rsm/counter/type.go +++ b/pkg/atomix/driver/proxy/rsm/counter/type.go @@ -1,16 +1,6 @@ -// Copyright 2019-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package counter diff --git a/pkg/atomix/driver/proxy/rsm/election/proxy.go b/pkg/atomix/driver/proxy/rsm/election/proxy.go index 7a156248..0f16cae7 100644 --- a/pkg/atomix/driver/proxy/rsm/election/proxy.go +++ b/pkg/atomix/driver/proxy/rsm/election/proxy.go @@ -1,4 +1,9 @@ // Code generated by atomix-go-framework. DO NOT EDIT. + +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation +// +// SPDX-License-Identifier: Apache-2.0 + package election import ( diff --git a/pkg/atomix/driver/proxy/rsm/election/type.go b/pkg/atomix/driver/proxy/rsm/election/type.go index 07dae146..029d4095 100644 --- a/pkg/atomix/driver/proxy/rsm/election/type.go +++ b/pkg/atomix/driver/proxy/rsm/election/type.go @@ -1,16 +1,6 @@ -// Copyright 2019-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package election diff --git a/pkg/atomix/driver/proxy/rsm/indexedmap/proxy.go b/pkg/atomix/driver/proxy/rsm/indexedmap/proxy.go index 83af6a11..0a6a6626 100644 --- a/pkg/atomix/driver/proxy/rsm/indexedmap/proxy.go +++ b/pkg/atomix/driver/proxy/rsm/indexedmap/proxy.go @@ -1,4 +1,9 @@ // Code generated by atomix-go-framework. DO NOT EDIT. + +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation +// +// SPDX-License-Identifier: Apache-2.0 + package indexedmap import ( diff --git a/pkg/atomix/driver/proxy/rsm/indexedmap/type.go b/pkg/atomix/driver/proxy/rsm/indexedmap/type.go index 9acfe19d..5184681d 100644 --- a/pkg/atomix/driver/proxy/rsm/indexedmap/type.go +++ b/pkg/atomix/driver/proxy/rsm/indexedmap/type.go @@ -1,16 +1,6 @@ -// Copyright 2019-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package indexedmap diff --git a/pkg/atomix/driver/proxy/rsm/list/proxy.go b/pkg/atomix/driver/proxy/rsm/list/proxy.go index 675a0fdb..f1ca5338 100644 --- a/pkg/atomix/driver/proxy/rsm/list/proxy.go +++ b/pkg/atomix/driver/proxy/rsm/list/proxy.go @@ -1,4 +1,9 @@ // Code generated by atomix-go-framework. DO NOT EDIT. + +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation +// +// SPDX-License-Identifier: Apache-2.0 + package list import ( diff --git a/pkg/atomix/driver/proxy/rsm/list/type.go b/pkg/atomix/driver/proxy/rsm/list/type.go index 08340e6b..01e84977 100644 --- a/pkg/atomix/driver/proxy/rsm/list/type.go +++ b/pkg/atomix/driver/proxy/rsm/list/type.go @@ -1,16 +1,6 @@ -// Copyright 2019-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package list diff --git a/pkg/atomix/driver/proxy/rsm/lock/proxy.go b/pkg/atomix/driver/proxy/rsm/lock/proxy.go index 440cdbee..9c3bf499 100644 --- a/pkg/atomix/driver/proxy/rsm/lock/proxy.go +++ b/pkg/atomix/driver/proxy/rsm/lock/proxy.go @@ -1,4 +1,9 @@ // Code generated by atomix-go-framework. DO NOT EDIT. + +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation +// +// SPDX-License-Identifier: Apache-2.0 + package lock import ( diff --git a/pkg/atomix/driver/proxy/rsm/lock/type.go b/pkg/atomix/driver/proxy/rsm/lock/type.go index a73e5a1b..f1b11e75 100644 --- a/pkg/atomix/driver/proxy/rsm/lock/type.go +++ b/pkg/atomix/driver/proxy/rsm/lock/type.go @@ -1,16 +1,6 @@ -// Copyright 2019-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package lock diff --git a/pkg/atomix/driver/proxy/rsm/map/proxy.go b/pkg/atomix/driver/proxy/rsm/map/proxy.go index f598e761..aa6f8d30 100644 --- a/pkg/atomix/driver/proxy/rsm/map/proxy.go +++ b/pkg/atomix/driver/proxy/rsm/map/proxy.go @@ -1,4 +1,9 @@ // Code generated by atomix-go-framework. DO NOT EDIT. + +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation +// +// SPDX-License-Identifier: Apache-2.0 + package _map import ( diff --git a/pkg/atomix/driver/proxy/rsm/map/type.go b/pkg/atomix/driver/proxy/rsm/map/type.go index 06b2de85..c95db123 100644 --- a/pkg/atomix/driver/proxy/rsm/map/type.go +++ b/pkg/atomix/driver/proxy/rsm/map/type.go @@ -1,16 +1,6 @@ -// Copyright 2019-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package _map //nolint:golint diff --git a/pkg/atomix/driver/proxy/rsm/partition.go b/pkg/atomix/driver/proxy/rsm/partition.go index 03203032..7af612f7 100644 --- a/pkg/atomix/driver/proxy/rsm/partition.go +++ b/pkg/atomix/driver/proxy/rsm/partition.go @@ -1,16 +1,6 @@ -// Copyright 2019-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package rsm diff --git a/pkg/atomix/driver/proxy/rsm/picker.go b/pkg/atomix/driver/proxy/rsm/picker.go index 69d27f7a..f71c6d95 100644 --- a/pkg/atomix/driver/proxy/rsm/picker.go +++ b/pkg/atomix/driver/proxy/rsm/picker.go @@ -1,16 +1,6 @@ -// Copyright 2019-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package rsm diff --git a/pkg/atomix/driver/proxy/rsm/primitive.go b/pkg/atomix/driver/proxy/rsm/primitive.go index 75b69361..1424ced0 100644 --- a/pkg/atomix/driver/proxy/rsm/primitive.go +++ b/pkg/atomix/driver/proxy/rsm/primitive.go @@ -1,16 +1,6 @@ -// Copyright 2019-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package rsm diff --git a/pkg/atomix/driver/proxy/rsm/protocol.go b/pkg/atomix/driver/proxy/rsm/protocol.go index 6b788a6d..f9a6dc6a 100644 --- a/pkg/atomix/driver/proxy/rsm/protocol.go +++ b/pkg/atomix/driver/proxy/rsm/protocol.go @@ -1,16 +1,6 @@ -// Copyright 2019-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package rsm diff --git a/pkg/atomix/driver/proxy/rsm/resolver.go b/pkg/atomix/driver/proxy/rsm/resolver.go index b1518049..63f0f5c4 100644 --- a/pkg/atomix/driver/proxy/rsm/resolver.go +++ b/pkg/atomix/driver/proxy/rsm/resolver.go @@ -1,16 +1,6 @@ -// Copyright 2019-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package rsm diff --git a/pkg/atomix/driver/proxy/rsm/service.go b/pkg/atomix/driver/proxy/rsm/service.go index 89003aa5..8eb0ab76 100644 --- a/pkg/atomix/driver/proxy/rsm/service.go +++ b/pkg/atomix/driver/proxy/rsm/service.go @@ -1,16 +1,6 @@ -// Copyright 2019-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package rsm diff --git a/pkg/atomix/driver/proxy/rsm/session.go b/pkg/atomix/driver/proxy/rsm/session.go index 9e46d5f1..9cf3d597 100644 --- a/pkg/atomix/driver/proxy/rsm/session.go +++ b/pkg/atomix/driver/proxy/rsm/session.go @@ -1,16 +1,6 @@ -// Copyright 2020-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package rsm diff --git a/pkg/atomix/driver/proxy/rsm/set/proxy.go b/pkg/atomix/driver/proxy/rsm/set/proxy.go index 4db6e1aa..ebc778ea 100644 --- a/pkg/atomix/driver/proxy/rsm/set/proxy.go +++ b/pkg/atomix/driver/proxy/rsm/set/proxy.go @@ -1,4 +1,9 @@ // Code generated by atomix-go-framework. DO NOT EDIT. + +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation +// +// SPDX-License-Identifier: Apache-2.0 + package set import ( diff --git a/pkg/atomix/driver/proxy/rsm/set/type.go b/pkg/atomix/driver/proxy/rsm/set/type.go index 0fd58587..8e16cf9c 100644 --- a/pkg/atomix/driver/proxy/rsm/set/type.go +++ b/pkg/atomix/driver/proxy/rsm/set/type.go @@ -1,16 +1,6 @@ -// Copyright 2019-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package set diff --git a/pkg/atomix/driver/proxy/rsm/value/proxy.go b/pkg/atomix/driver/proxy/rsm/value/proxy.go index 1877ca70..87e39a43 100644 --- a/pkg/atomix/driver/proxy/rsm/value/proxy.go +++ b/pkg/atomix/driver/proxy/rsm/value/proxy.go @@ -1,4 +1,9 @@ // Code generated by atomix-go-framework. DO NOT EDIT. + +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation +// +// SPDX-License-Identifier: Apache-2.0 + package value import ( diff --git a/pkg/atomix/driver/proxy/rsm/value/type.go b/pkg/atomix/driver/proxy/rsm/value/type.go index 5f3896df..d4220c9a 100644 --- a/pkg/atomix/driver/proxy/rsm/value/type.go +++ b/pkg/atomix/driver/proxy/rsm/value/type.go @@ -1,16 +1,6 @@ -// Copyright 2019-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package value diff --git a/pkg/atomix/driver/server.go b/pkg/atomix/driver/server.go index 12307557..704d41a3 100644 --- a/pkg/atomix/driver/server.go +++ b/pkg/atomix/driver/server.go @@ -1,16 +1,6 @@ -// Copyright 2019-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package driver diff --git a/pkg/atomix/errors/errors.go b/pkg/atomix/errors/errors.go index 26499ac8..4bc497d0 100644 --- a/pkg/atomix/errors/errors.go +++ b/pkg/atomix/errors/errors.go @@ -1,16 +1,6 @@ -// Copyright 2019-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package errors diff --git a/pkg/atomix/errors/errors_test.go b/pkg/atomix/errors/errors_test.go index 4a32e0b5..f5c29049 100644 --- a/pkg/atomix/errors/errors_test.go +++ b/pkg/atomix/errors/errors_test.go @@ -1,16 +1,6 @@ -// Copyright 2019-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package errors diff --git a/pkg/atomix/logging/config.go b/pkg/atomix/logging/config.go index 8016e4e2..18bac9b0 100644 --- a/pkg/atomix/logging/config.go +++ b/pkg/atomix/logging/config.go @@ -1,16 +1,6 @@ -// Copyright 2020-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package logging diff --git a/pkg/atomix/logging/field.go b/pkg/atomix/logging/field.go index d6a554ae..0caa7d4f 100644 --- a/pkg/atomix/logging/field.go +++ b/pkg/atomix/logging/field.go @@ -1,16 +1,6 @@ -// Copyright 2020-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package logging diff --git a/pkg/atomix/logging/level.go b/pkg/atomix/logging/level.go index b2b746e7..23ffaaa0 100644 --- a/pkg/atomix/logging/level.go +++ b/pkg/atomix/logging/level.go @@ -1,16 +1,6 @@ -// Copyright 2020-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package logging diff --git a/pkg/atomix/logging/logger.go b/pkg/atomix/logging/logger.go index c7abae66..368c1b0b 100644 --- a/pkg/atomix/logging/logger.go +++ b/pkg/atomix/logging/logger.go @@ -1,16 +1,6 @@ -// Copyright 2020-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package logging diff --git a/pkg/atomix/logging/logger_test.go b/pkg/atomix/logging/logger_test.go index 84357d71..cf84e19c 100644 --- a/pkg/atomix/logging/logger_test.go +++ b/pkg/atomix/logging/logger_test.go @@ -1,16 +1,6 @@ -// Copyright 2020-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package logging diff --git a/pkg/atomix/logging/output.go b/pkg/atomix/logging/output.go index 6561fc35..6f49e637 100644 --- a/pkg/atomix/logging/output.go +++ b/pkg/atomix/logging/output.go @@ -1,16 +1,6 @@ -// Copyright 2020-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package logging diff --git a/pkg/atomix/logging/test.yaml b/pkg/atomix/logging/test.yaml index 6b6cde30..85354e92 100644 --- a/pkg/atomix/logging/test.yaml +++ b/pkg/atomix/logging/test.yaml @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2019-present Open Networking Foundation +# +# SPDX-License-Identifier: Apache-2.0 + loggers: root: level: info diff --git a/pkg/atomix/meta/object.go b/pkg/atomix/meta/object.go index 9c2e11f7..6534334a 100644 --- a/pkg/atomix/meta/object.go +++ b/pkg/atomix/meta/object.go @@ -1,16 +1,6 @@ -// Copyright 2019-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package meta diff --git a/pkg/atomix/node/node.go b/pkg/atomix/node/node.go index b6786e6a..78cac9aa 100644 --- a/pkg/atomix/node/node.go +++ b/pkg/atomix/node/node.go @@ -1,16 +1,6 @@ -// Copyright 2019-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package node diff --git a/pkg/atomix/server/registry.go b/pkg/atomix/server/registry.go index e2395b76..1af1131c 100644 --- a/pkg/atomix/server/registry.go +++ b/pkg/atomix/server/registry.go @@ -1,16 +1,6 @@ -// Copyright 2019-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package server diff --git a/pkg/atomix/server/server.go b/pkg/atomix/server/server.go index 8c73f7d2..b1f1cbd8 100644 --- a/pkg/atomix/server/server.go +++ b/pkg/atomix/server/server.go @@ -1,16 +1,6 @@ -// Copyright 2019-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package server diff --git a/pkg/atomix/storage/protocol/gossip/counter/counter.go b/pkg/atomix/storage/protocol/gossip/counter/counter.go index 7eb11b4a..5fb87156 100644 --- a/pkg/atomix/storage/protocol/gossip/counter/counter.go +++ b/pkg/atomix/storage/protocol/gossip/counter/counter.go @@ -1,16 +1,6 @@ -// Copyright 2019-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package counter diff --git a/pkg/atomix/storage/protocol/gossip/counter/gossip.go b/pkg/atomix/storage/protocol/gossip/counter/gossip.go index 990aae12..8739d034 100644 --- a/pkg/atomix/storage/protocol/gossip/counter/gossip.go +++ b/pkg/atomix/storage/protocol/gossip/counter/gossip.go @@ -1,4 +1,9 @@ // Code generated by atomix-go-framework. DO NOT EDIT. + +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation +// +// SPDX-License-Identifier: Apache-2.0 + package counter import ( diff --git a/pkg/atomix/storage/protocol/gossip/counter/server.go b/pkg/atomix/storage/protocol/gossip/counter/server.go index 1fcd9a8a..4aba5853 100644 --- a/pkg/atomix/storage/protocol/gossip/counter/server.go +++ b/pkg/atomix/storage/protocol/gossip/counter/server.go @@ -1,4 +1,9 @@ // Code generated by atomix-go-framework. DO NOT EDIT. + +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation +// +// SPDX-License-Identifier: Apache-2.0 + package counter import ( diff --git a/pkg/atomix/storage/protocol/gossip/counter/service.go b/pkg/atomix/storage/protocol/gossip/counter/service.go index ec2714f9..8e9201d5 100644 --- a/pkg/atomix/storage/protocol/gossip/counter/service.go +++ b/pkg/atomix/storage/protocol/gossip/counter/service.go @@ -1,4 +1,9 @@ // Code generated by atomix-go-framework. DO NOT EDIT. + +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation +// +// SPDX-License-Identifier: Apache-2.0 + package counter import ( diff --git a/pkg/atomix/storage/protocol/gossip/counter/state.proto b/pkg/atomix/storage/protocol/gossip/counter/state.proto index 4d0654e3..6a956c94 100644 --- a/pkg/atomix/storage/protocol/gossip/counter/state.proto +++ b/pkg/atomix/storage/protocol/gossip/counter/state.proto @@ -1,18 +1,6 @@ -/* -Copyright 2021-present Open Networking Foundation. - -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: 2021-present Open Networking Foundation +// +// SPDX-License-Identifier: Apache-2.0 syntax = "proto3"; diff --git a/pkg/atomix/storage/protocol/gossip/manager.go b/pkg/atomix/storage/protocol/gossip/manager.go index a6a1fe62..7ba2a580 100644 --- a/pkg/atomix/storage/protocol/gossip/manager.go +++ b/pkg/atomix/storage/protocol/gossip/manager.go @@ -1,16 +1,6 @@ -// Copyright 2019-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package gossip diff --git a/pkg/atomix/storage/protocol/gossip/map/gossip.go b/pkg/atomix/storage/protocol/gossip/map/gossip.go index 0b04dfaf..1f7e8a33 100644 --- a/pkg/atomix/storage/protocol/gossip/map/gossip.go +++ b/pkg/atomix/storage/protocol/gossip/map/gossip.go @@ -1,4 +1,9 @@ // Code generated by atomix-go-framework. DO NOT EDIT. + +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation +// +// SPDX-License-Identifier: Apache-2.0 + package _map import ( diff --git a/pkg/atomix/storage/protocol/gossip/map/map.go b/pkg/atomix/storage/protocol/gossip/map/map.go index 4c35b4a2..604bdda6 100644 --- a/pkg/atomix/storage/protocol/gossip/map/map.go +++ b/pkg/atomix/storage/protocol/gossip/map/map.go @@ -1,16 +1,6 @@ -// Copyright 2019-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package _map diff --git a/pkg/atomix/storage/protocol/gossip/map/server.go b/pkg/atomix/storage/protocol/gossip/map/server.go index c098cf09..49c04945 100644 --- a/pkg/atomix/storage/protocol/gossip/map/server.go +++ b/pkg/atomix/storage/protocol/gossip/map/server.go @@ -1,4 +1,9 @@ // Code generated by atomix-go-framework. DO NOT EDIT. + +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation +// +// SPDX-License-Identifier: Apache-2.0 + package _map import ( diff --git a/pkg/atomix/storage/protocol/gossip/map/service.go b/pkg/atomix/storage/protocol/gossip/map/service.go index 9df20a3e..48327945 100644 --- a/pkg/atomix/storage/protocol/gossip/map/service.go +++ b/pkg/atomix/storage/protocol/gossip/map/service.go @@ -1,4 +1,9 @@ // Code generated by atomix-go-framework. DO NOT EDIT. + +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation +// +// SPDX-License-Identifier: Apache-2.0 + package _map import ( diff --git a/pkg/atomix/storage/protocol/gossip/map/state.proto b/pkg/atomix/storage/protocol/gossip/map/state.proto index 6db65dd9..4e4c03f5 100644 --- a/pkg/atomix/storage/protocol/gossip/map/state.proto +++ b/pkg/atomix/storage/protocol/gossip/map/state.proto @@ -1,18 +1,6 @@ -/* -Copyright 2021-present Open Networking Foundation. - -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: 2021-present Open Networking Foundation +// +// SPDX-License-Identifier: Apache-2.0 syntax = "proto3"; diff --git a/pkg/atomix/storage/protocol/gossip/node.go b/pkg/atomix/storage/protocol/gossip/node.go index 6b530336..d63600f6 100644 --- a/pkg/atomix/storage/protocol/gossip/node.go +++ b/pkg/atomix/storage/protocol/gossip/node.go @@ -1,16 +1,6 @@ -// Copyright 2019-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package gossip diff --git a/pkg/atomix/storage/protocol/gossip/partition.go b/pkg/atomix/storage/protocol/gossip/partition.go index e259bb95..4ff8e76b 100644 --- a/pkg/atomix/storage/protocol/gossip/partition.go +++ b/pkg/atomix/storage/protocol/gossip/partition.go @@ -1,16 +1,6 @@ -// Copyright 2019-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package gossip diff --git a/pkg/atomix/storage/protocol/gossip/peer.go b/pkg/atomix/storage/protocol/gossip/peer.go index 90b87634..95e19c62 100644 --- a/pkg/atomix/storage/protocol/gossip/peer.go +++ b/pkg/atomix/storage/protocol/gossip/peer.go @@ -1,16 +1,6 @@ -// Copyright 2019-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package gossip diff --git a/pkg/atomix/storage/protocol/gossip/peergroup.go b/pkg/atomix/storage/protocol/gossip/peergroup.go index c1e011c5..b8bede3e 100644 --- a/pkg/atomix/storage/protocol/gossip/peergroup.go +++ b/pkg/atomix/storage/protocol/gossip/peergroup.go @@ -1,16 +1,6 @@ -// Copyright 2019-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package gossip diff --git a/pkg/atomix/storage/protocol/gossip/primitive.go b/pkg/atomix/storage/protocol/gossip/primitive.go index 3de056ad..f4c3dad2 100644 --- a/pkg/atomix/storage/protocol/gossip/primitive.go +++ b/pkg/atomix/storage/protocol/gossip/primitive.go @@ -1,16 +1,6 @@ -// Copyright 2019-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package gossip diff --git a/pkg/atomix/storage/protocol/gossip/primitive/extensions.proto b/pkg/atomix/storage/protocol/gossip/primitive/extensions.proto index dfd92812..2aea84e2 100644 --- a/pkg/atomix/storage/protocol/gossip/primitive/extensions.proto +++ b/pkg/atomix/storage/protocol/gossip/primitive/extensions.proto @@ -1,18 +1,6 @@ -/* -Copyright 2020-present Open Networking Foundation. - -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: 2021-present Open Networking Foundation +// +// SPDX-License-Identifier: Apache-2.0 syntax = "proto3"; diff --git a/pkg/atomix/storage/protocol/gossip/protocol.proto b/pkg/atomix/storage/protocol/gossip/protocol.proto index 2085ce95..ff5976b8 100644 --- a/pkg/atomix/storage/protocol/gossip/protocol.proto +++ b/pkg/atomix/storage/protocol/gossip/protocol.proto @@ -1,18 +1,6 @@ -/* -Copyright 2021-present Open Networking Foundation. - -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: 2021-present Open Networking Foundation +// +// SPDX-License-Identifier: Apache-2.0 syntax = "proto3"; diff --git a/pkg/atomix/storage/protocol/gossip/registry.go b/pkg/atomix/storage/protocol/gossip/registry.go index d72b293f..3df1fe41 100644 --- a/pkg/atomix/storage/protocol/gossip/registry.go +++ b/pkg/atomix/storage/protocol/gossip/registry.go @@ -1,16 +1,6 @@ -// Copyright 2019-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package gossip diff --git a/pkg/atomix/storage/protocol/gossip/server.go b/pkg/atomix/storage/protocol/gossip/server.go index e10f287d..11bbf5f3 100644 --- a/pkg/atomix/storage/protocol/gossip/server.go +++ b/pkg/atomix/storage/protocol/gossip/server.go @@ -1,16 +1,6 @@ -// Copyright 2019-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package gossip diff --git a/pkg/atomix/storage/protocol/gossip/service.go b/pkg/atomix/storage/protocol/gossip/service.go index 56f4b667..5907237d 100644 --- a/pkg/atomix/storage/protocol/gossip/service.go +++ b/pkg/atomix/storage/protocol/gossip/service.go @@ -1,16 +1,6 @@ -// Copyright 2019-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package gossip diff --git a/pkg/atomix/storage/protocol/gossip/set/gossip.go b/pkg/atomix/storage/protocol/gossip/set/gossip.go index dc7ba432..8a29f6bd 100644 --- a/pkg/atomix/storage/protocol/gossip/set/gossip.go +++ b/pkg/atomix/storage/protocol/gossip/set/gossip.go @@ -1,4 +1,9 @@ // Code generated by atomix-go-framework. DO NOT EDIT. + +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation +// +// SPDX-License-Identifier: Apache-2.0 + package set import ( diff --git a/pkg/atomix/storage/protocol/gossip/set/server.go b/pkg/atomix/storage/protocol/gossip/set/server.go index 90100925..e4211484 100644 --- a/pkg/atomix/storage/protocol/gossip/set/server.go +++ b/pkg/atomix/storage/protocol/gossip/set/server.go @@ -1,4 +1,9 @@ // Code generated by atomix-go-framework. DO NOT EDIT. + +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation +// +// SPDX-License-Identifier: Apache-2.0 + package set import ( diff --git a/pkg/atomix/storage/protocol/gossip/set/service.go b/pkg/atomix/storage/protocol/gossip/set/service.go index 3a9ec369..e38452fa 100644 --- a/pkg/atomix/storage/protocol/gossip/set/service.go +++ b/pkg/atomix/storage/protocol/gossip/set/service.go @@ -1,4 +1,9 @@ // Code generated by atomix-go-framework. DO NOT EDIT. + +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation +// +// SPDX-License-Identifier: Apache-2.0 + package set import ( diff --git a/pkg/atomix/storage/protocol/gossip/set/set.go b/pkg/atomix/storage/protocol/gossip/set/set.go index b9098cde..55fb8242 100644 --- a/pkg/atomix/storage/protocol/gossip/set/set.go +++ b/pkg/atomix/storage/protocol/gossip/set/set.go @@ -1,16 +1,6 @@ -// Copyright 2019-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package set diff --git a/pkg/atomix/storage/protocol/gossip/set/state.proto b/pkg/atomix/storage/protocol/gossip/set/state.proto index a06ec6b9..422e7066 100644 --- a/pkg/atomix/storage/protocol/gossip/set/state.proto +++ b/pkg/atomix/storage/protocol/gossip/set/state.proto @@ -1,18 +1,6 @@ -/* -Copyright 2021-present Open Networking Foundation. - -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: 2021-present Open Networking Foundation +// +// SPDX-License-Identifier: Apache-2.0 syntax = "proto3"; diff --git a/pkg/atomix/storage/protocol/gossip/value/gossip.go b/pkg/atomix/storage/protocol/gossip/value/gossip.go index 272c067f..f248dc98 100644 --- a/pkg/atomix/storage/protocol/gossip/value/gossip.go +++ b/pkg/atomix/storage/protocol/gossip/value/gossip.go @@ -1,4 +1,9 @@ // Code generated by atomix-go-framework. DO NOT EDIT. + +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation +// +// SPDX-License-Identifier: Apache-2.0 + package value import ( diff --git a/pkg/atomix/storage/protocol/gossip/value/server.go b/pkg/atomix/storage/protocol/gossip/value/server.go index ecf7ff31..2547c25c 100644 --- a/pkg/atomix/storage/protocol/gossip/value/server.go +++ b/pkg/atomix/storage/protocol/gossip/value/server.go @@ -1,4 +1,9 @@ // Code generated by atomix-go-framework. DO NOT EDIT. + +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation +// +// SPDX-License-Identifier: Apache-2.0 + package value import ( diff --git a/pkg/atomix/storage/protocol/gossip/value/service.go b/pkg/atomix/storage/protocol/gossip/value/service.go index ea7418d2..28726945 100644 --- a/pkg/atomix/storage/protocol/gossip/value/service.go +++ b/pkg/atomix/storage/protocol/gossip/value/service.go @@ -1,4 +1,9 @@ // Code generated by atomix-go-framework. DO NOT EDIT. + +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation +// +// SPDX-License-Identifier: Apache-2.0 + package value import ( diff --git a/pkg/atomix/storage/protocol/gossip/value/state.proto b/pkg/atomix/storage/protocol/gossip/value/state.proto index 8e7815da..633f43de 100644 --- a/pkg/atomix/storage/protocol/gossip/value/state.proto +++ b/pkg/atomix/storage/protocol/gossip/value/state.proto @@ -1,18 +1,6 @@ -/* -Copyright 2021-present Open Networking Foundation. - -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: 2021-present Open Networking Foundation +// +// SPDX-License-Identifier: Apache-2.0 syntax = "proto3"; diff --git a/pkg/atomix/storage/protocol/gossip/value/value.go b/pkg/atomix/storage/protocol/gossip/value/value.go index c722934d..5811afab 100644 --- a/pkg/atomix/storage/protocol/gossip/value/value.go +++ b/pkg/atomix/storage/protocol/gossip/value/value.go @@ -1,16 +1,6 @@ -// Copyright 2019-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package value diff --git a/pkg/atomix/storage/protocol/rsm/command.go b/pkg/atomix/storage/protocol/rsm/command.go index 69d681df..f6cc031c 100644 --- a/pkg/atomix/storage/protocol/rsm/command.go +++ b/pkg/atomix/storage/protocol/rsm/command.go @@ -1,16 +1,6 @@ -// Copyright 2019-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package rsm diff --git a/pkg/atomix/storage/protocol/rsm/counter/adapter.go b/pkg/atomix/storage/protocol/rsm/counter/adapter.go index c86c5bcd..e7cf3e62 100644 --- a/pkg/atomix/storage/protocol/rsm/counter/adapter.go +++ b/pkg/atomix/storage/protocol/rsm/counter/adapter.go @@ -1,4 +1,9 @@ // Code generated by atomix-go-framework. DO NOT EDIT. + +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation +// +// SPDX-License-Identifier: Apache-2.0 + package counter import ( diff --git a/pkg/atomix/storage/protocol/rsm/counter/interface.go b/pkg/atomix/storage/protocol/rsm/counter/interface.go index a67dfe87..84ad5d04 100644 --- a/pkg/atomix/storage/protocol/rsm/counter/interface.go +++ b/pkg/atomix/storage/protocol/rsm/counter/interface.go @@ -1,4 +1,9 @@ // Code generated by atomix-go-framework. DO NOT EDIT. + +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation +// +// SPDX-License-Identifier: Apache-2.0 + package counter import ( diff --git a/pkg/atomix/storage/protocol/rsm/counter/service.go b/pkg/atomix/storage/protocol/rsm/counter/service.go index 138b8334..b45e9b61 100644 --- a/pkg/atomix/storage/protocol/rsm/counter/service.go +++ b/pkg/atomix/storage/protocol/rsm/counter/service.go @@ -1,16 +1,6 @@ -// Copyright 2019-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package counter diff --git a/pkg/atomix/storage/protocol/rsm/counter/state.proto b/pkg/atomix/storage/protocol/rsm/counter/state.proto index f518e291..28b195cc 100644 --- a/pkg/atomix/storage/protocol/rsm/counter/state.proto +++ b/pkg/atomix/storage/protocol/rsm/counter/state.proto @@ -1,18 +1,6 @@ -/* -Copyright 2021-present Open Networking Foundation. - -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: 2021-present Open Networking Foundation +// +// SPDX-License-Identifier: Apache-2.0 syntax = "proto3"; diff --git a/pkg/atomix/storage/protocol/rsm/election/adapter.go b/pkg/atomix/storage/protocol/rsm/election/adapter.go index 08223c99..9639c3ab 100644 --- a/pkg/atomix/storage/protocol/rsm/election/adapter.go +++ b/pkg/atomix/storage/protocol/rsm/election/adapter.go @@ -1,4 +1,9 @@ // Code generated by atomix-go-framework. DO NOT EDIT. + +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation +// +// SPDX-License-Identifier: Apache-2.0 + package election import ( diff --git a/pkg/atomix/storage/protocol/rsm/election/interface.go b/pkg/atomix/storage/protocol/rsm/election/interface.go index 1b5e9023..b570c7fb 100644 --- a/pkg/atomix/storage/protocol/rsm/election/interface.go +++ b/pkg/atomix/storage/protocol/rsm/election/interface.go @@ -1,4 +1,9 @@ // Code generated by atomix-go-framework. DO NOT EDIT. + +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation +// +// SPDX-License-Identifier: Apache-2.0 + package election import ( diff --git a/pkg/atomix/storage/protocol/rsm/election/service.go b/pkg/atomix/storage/protocol/rsm/election/service.go index 4f1fc4db..66da1228 100644 --- a/pkg/atomix/storage/protocol/rsm/election/service.go +++ b/pkg/atomix/storage/protocol/rsm/election/service.go @@ -1,16 +1,6 @@ -// Copyright 2019-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package election diff --git a/pkg/atomix/storage/protocol/rsm/election/state.proto b/pkg/atomix/storage/protocol/rsm/election/state.proto index a277af88..57bf6466 100644 --- a/pkg/atomix/storage/protocol/rsm/election/state.proto +++ b/pkg/atomix/storage/protocol/rsm/election/state.proto @@ -1,18 +1,6 @@ -/* -Copyright 2021-present Open Networking Foundation. - -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: 2021-present Open Networking Foundation +// +// SPDX-License-Identifier: Apache-2.0 syntax = "proto3"; diff --git a/pkg/atomix/storage/protocol/rsm/errors.go b/pkg/atomix/storage/protocol/rsm/errors.go index 56ed23c6..ecca1863 100644 --- a/pkg/atomix/storage/protocol/rsm/errors.go +++ b/pkg/atomix/storage/protocol/rsm/errors.go @@ -1,16 +1,6 @@ -// Copyright 2019-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package rsm diff --git a/pkg/atomix/storage/protocol/rsm/indexedmap/adapter.go b/pkg/atomix/storage/protocol/rsm/indexedmap/adapter.go index dec7016d..f2ab2db4 100644 --- a/pkg/atomix/storage/protocol/rsm/indexedmap/adapter.go +++ b/pkg/atomix/storage/protocol/rsm/indexedmap/adapter.go @@ -1,4 +1,9 @@ // Code generated by atomix-go-framework. DO NOT EDIT. + +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation +// +// SPDX-License-Identifier: Apache-2.0 + package indexedmap import ( diff --git a/pkg/atomix/storage/protocol/rsm/indexedmap/interface.go b/pkg/atomix/storage/protocol/rsm/indexedmap/interface.go index f4703bb2..42ebbea1 100644 --- a/pkg/atomix/storage/protocol/rsm/indexedmap/interface.go +++ b/pkg/atomix/storage/protocol/rsm/indexedmap/interface.go @@ -1,4 +1,9 @@ // Code generated by atomix-go-framework. DO NOT EDIT. + +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation +// +// SPDX-License-Identifier: Apache-2.0 + package indexedmap import ( diff --git a/pkg/atomix/storage/protocol/rsm/indexedmap/service.go b/pkg/atomix/storage/protocol/rsm/indexedmap/service.go index e17931db..e29c3e02 100644 --- a/pkg/atomix/storage/protocol/rsm/indexedmap/service.go +++ b/pkg/atomix/storage/protocol/rsm/indexedmap/service.go @@ -1,16 +1,6 @@ -// Copyright 2019-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package indexedmap diff --git a/pkg/atomix/storage/protocol/rsm/indexedmap/state.proto b/pkg/atomix/storage/protocol/rsm/indexedmap/state.proto index 040118aa..dfb75198 100644 --- a/pkg/atomix/storage/protocol/rsm/indexedmap/state.proto +++ b/pkg/atomix/storage/protocol/rsm/indexedmap/state.proto @@ -1,18 +1,6 @@ -/* -Copyright 2021-present Open Networking Foundation. - -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: 2021-present Open Networking Foundation +// +// SPDX-License-Identifier: Apache-2.0 syntax = "proto3"; diff --git a/pkg/atomix/storage/protocol/rsm/list/adapter.go b/pkg/atomix/storage/protocol/rsm/list/adapter.go index 3cdf80e9..607a7e85 100644 --- a/pkg/atomix/storage/protocol/rsm/list/adapter.go +++ b/pkg/atomix/storage/protocol/rsm/list/adapter.go @@ -1,4 +1,9 @@ // Code generated by atomix-go-framework. DO NOT EDIT. + +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation +// +// SPDX-License-Identifier: Apache-2.0 + package list import ( diff --git a/pkg/atomix/storage/protocol/rsm/list/interface.go b/pkg/atomix/storage/protocol/rsm/list/interface.go index cfed7b19..69a92df8 100644 --- a/pkg/atomix/storage/protocol/rsm/list/interface.go +++ b/pkg/atomix/storage/protocol/rsm/list/interface.go @@ -1,4 +1,9 @@ // Code generated by atomix-go-framework. DO NOT EDIT. + +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation +// +// SPDX-License-Identifier: Apache-2.0 + package list import ( diff --git a/pkg/atomix/storage/protocol/rsm/list/service.go b/pkg/atomix/storage/protocol/rsm/list/service.go index db792870..30792a07 100644 --- a/pkg/atomix/storage/protocol/rsm/list/service.go +++ b/pkg/atomix/storage/protocol/rsm/list/service.go @@ -1,16 +1,6 @@ -// Copyright 2019-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package list diff --git a/pkg/atomix/storage/protocol/rsm/list/state.proto b/pkg/atomix/storage/protocol/rsm/list/state.proto index 4d500fe0..751f3cf0 100644 --- a/pkg/atomix/storage/protocol/rsm/list/state.proto +++ b/pkg/atomix/storage/protocol/rsm/list/state.proto @@ -1,18 +1,6 @@ -/* -Copyright 2021-present Open Networking Foundation. - -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: 2011-present Open Networking Foundation +// +// SPDX-License-Identifier: Apache-2.0 syntax = "proto3"; diff --git a/pkg/atomix/storage/protocol/rsm/lock/adapter.go b/pkg/atomix/storage/protocol/rsm/lock/adapter.go index df799840..77198e42 100644 --- a/pkg/atomix/storage/protocol/rsm/lock/adapter.go +++ b/pkg/atomix/storage/protocol/rsm/lock/adapter.go @@ -1,4 +1,9 @@ // Code generated by atomix-go-framework. DO NOT EDIT. + +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation +// +// SPDX-License-Identifier: Apache-2.0 + package lock import ( diff --git a/pkg/atomix/storage/protocol/rsm/lock/interface.go b/pkg/atomix/storage/protocol/rsm/lock/interface.go index 9e1e8a0e..9ee6b30d 100644 --- a/pkg/atomix/storage/protocol/rsm/lock/interface.go +++ b/pkg/atomix/storage/protocol/rsm/lock/interface.go @@ -1,4 +1,9 @@ // Code generated by atomix-go-framework. DO NOT EDIT. + +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation +// +// SPDX-License-Identifier: Apache-2.0 + package lock import ( diff --git a/pkg/atomix/storage/protocol/rsm/lock/service.go b/pkg/atomix/storage/protocol/rsm/lock/service.go index b45b38ce..badb7967 100644 --- a/pkg/atomix/storage/protocol/rsm/lock/service.go +++ b/pkg/atomix/storage/protocol/rsm/lock/service.go @@ -1,16 +1,6 @@ -// Copyright 2019-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package lock diff --git a/pkg/atomix/storage/protocol/rsm/lock/state.proto b/pkg/atomix/storage/protocol/rsm/lock/state.proto index a43ed63c..7ad366ae 100644 --- a/pkg/atomix/storage/protocol/rsm/lock/state.proto +++ b/pkg/atomix/storage/protocol/rsm/lock/state.proto @@ -1,18 +1,6 @@ -/* -Copyright 2021-present Open Networking Foundation. - -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: 2021-present Open Networking Foundation +// +// SPDX-License-Identifier: Apache-2.0 syntax = "proto3"; diff --git a/pkg/atomix/storage/protocol/rsm/manager.go b/pkg/atomix/storage/protocol/rsm/manager.go index 0e6a7777..d9110a3a 100644 --- a/pkg/atomix/storage/protocol/rsm/manager.go +++ b/pkg/atomix/storage/protocol/rsm/manager.go @@ -1,16 +1,6 @@ -// Copyright 2019-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package rsm diff --git a/pkg/atomix/storage/protocol/rsm/map/adapter.go b/pkg/atomix/storage/protocol/rsm/map/adapter.go index 0130dcfb..266e3901 100644 --- a/pkg/atomix/storage/protocol/rsm/map/adapter.go +++ b/pkg/atomix/storage/protocol/rsm/map/adapter.go @@ -1,4 +1,9 @@ // Code generated by atomix-go-framework. DO NOT EDIT. + +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation +// +// SPDX-License-Identifier: Apache-2.0 + package _map import ( diff --git a/pkg/atomix/storage/protocol/rsm/map/interface.go b/pkg/atomix/storage/protocol/rsm/map/interface.go index d344f7b0..7a43a9f6 100644 --- a/pkg/atomix/storage/protocol/rsm/map/interface.go +++ b/pkg/atomix/storage/protocol/rsm/map/interface.go @@ -1,4 +1,9 @@ // Code generated by atomix-go-framework. DO NOT EDIT. + +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation +// +// SPDX-License-Identifier: Apache-2.0 + package _map import ( diff --git a/pkg/atomix/storage/protocol/rsm/map/service.go b/pkg/atomix/storage/protocol/rsm/map/service.go index 45913f0b..34add7ad 100644 --- a/pkg/atomix/storage/protocol/rsm/map/service.go +++ b/pkg/atomix/storage/protocol/rsm/map/service.go @@ -1,16 +1,6 @@ -// Copyright 2019-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package _map //nolint:golint diff --git a/pkg/atomix/storage/protocol/rsm/map/state.proto b/pkg/atomix/storage/protocol/rsm/map/state.proto index d5278d47..c4475135 100644 --- a/pkg/atomix/storage/protocol/rsm/map/state.proto +++ b/pkg/atomix/storage/protocol/rsm/map/state.proto @@ -1,18 +1,6 @@ -/* -Copyright 2021-present Open Networking Foundation. - -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: 2021-present Open Networking Foundation +// +// SPDX-License-Identifier: Apache-2.0 syntax = "proto3"; diff --git a/pkg/atomix/storage/protocol/rsm/node.go b/pkg/atomix/storage/protocol/rsm/node.go index d9fcdacf..d7efa7e1 100644 --- a/pkg/atomix/storage/protocol/rsm/node.go +++ b/pkg/atomix/storage/protocol/rsm/node.go @@ -1,16 +1,6 @@ -// Copyright 2019-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package rsm diff --git a/pkg/atomix/storage/protocol/rsm/operation.go b/pkg/atomix/storage/protocol/rsm/operation.go index 52b6fec2..8c2c718e 100644 --- a/pkg/atomix/storage/protocol/rsm/operation.go +++ b/pkg/atomix/storage/protocol/rsm/operation.go @@ -1,16 +1,6 @@ -// Copyright 2019-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package rsm diff --git a/pkg/atomix/storage/protocol/rsm/partition.go b/pkg/atomix/storage/protocol/rsm/partition.go index 411e37ae..dc56cd4e 100644 --- a/pkg/atomix/storage/protocol/rsm/partition.go +++ b/pkg/atomix/storage/protocol/rsm/partition.go @@ -1,16 +1,6 @@ -// Copyright 2019-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package rsm diff --git a/pkg/atomix/storage/protocol/rsm/protocol.go b/pkg/atomix/storage/protocol/rsm/protocol.go index 4c16b8fd..9c83e046 100644 --- a/pkg/atomix/storage/protocol/rsm/protocol.go +++ b/pkg/atomix/storage/protocol/rsm/protocol.go @@ -1,16 +1,6 @@ -// Copyright 2019-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package rsm diff --git a/pkg/atomix/storage/protocol/rsm/query.go b/pkg/atomix/storage/protocol/rsm/query.go index 80ef739b..645e57c9 100644 --- a/pkg/atomix/storage/protocol/rsm/query.go +++ b/pkg/atomix/storage/protocol/rsm/query.go @@ -1,16 +1,6 @@ -// Copyright 2019-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package rsm diff --git a/pkg/atomix/storage/protocol/rsm/registry.go b/pkg/atomix/storage/protocol/rsm/registry.go index 2d104f4d..92f56bdd 100644 --- a/pkg/atomix/storage/protocol/rsm/registry.go +++ b/pkg/atomix/storage/protocol/rsm/registry.go @@ -1,16 +1,6 @@ -// Copyright 2019-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package rsm diff --git a/pkg/atomix/storage/protocol/rsm/scheduler.go b/pkg/atomix/storage/protocol/rsm/scheduler.go index 3d017500..1d2c6019 100644 --- a/pkg/atomix/storage/protocol/rsm/scheduler.go +++ b/pkg/atomix/storage/protocol/rsm/scheduler.go @@ -1,16 +1,6 @@ -// Copyright 2019-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package rsm diff --git a/pkg/atomix/storage/protocol/rsm/server.go b/pkg/atomix/storage/protocol/rsm/server.go index 6bf48d04..12ff1e55 100644 --- a/pkg/atomix/storage/protocol/rsm/server.go +++ b/pkg/atomix/storage/protocol/rsm/server.go @@ -1,16 +1,6 @@ -// Copyright 2019-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package rsm diff --git a/pkg/atomix/storage/protocol/rsm/service.go b/pkg/atomix/storage/protocol/rsm/service.go index 3a151483..c40d1ab8 100644 --- a/pkg/atomix/storage/protocol/rsm/service.go +++ b/pkg/atomix/storage/protocol/rsm/service.go @@ -1,16 +1,6 @@ -// Copyright 2019-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package rsm diff --git a/pkg/atomix/storage/protocol/rsm/service.proto b/pkg/atomix/storage/protocol/rsm/service.proto index b06c7ed4..42adfc2a 100644 --- a/pkg/atomix/storage/protocol/rsm/service.proto +++ b/pkg/atomix/storage/protocol/rsm/service.proto @@ -1,18 +1,6 @@ -/* -Copyright 2019-present Open Networking Foundation. - -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: 2021-present Open Networking Foundation +// +// SPDX-License-Identifier: Apache-2.0 syntax = "proto3"; diff --git a/pkg/atomix/storage/protocol/rsm/session.go b/pkg/atomix/storage/protocol/rsm/session.go index d3630770..d1fa5ca0 100644 --- a/pkg/atomix/storage/protocol/rsm/session.go +++ b/pkg/atomix/storage/protocol/rsm/session.go @@ -1,16 +1,6 @@ -// Copyright 2019-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package rsm diff --git a/pkg/atomix/storage/protocol/rsm/set/adapter.go b/pkg/atomix/storage/protocol/rsm/set/adapter.go index 7fb03216..d844d94b 100644 --- a/pkg/atomix/storage/protocol/rsm/set/adapter.go +++ b/pkg/atomix/storage/protocol/rsm/set/adapter.go @@ -1,4 +1,9 @@ // Code generated by atomix-go-framework. DO NOT EDIT. + +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation +// +// SPDX-License-Identifier: Apache-2.0 + package set import ( diff --git a/pkg/atomix/storage/protocol/rsm/set/interface.go b/pkg/atomix/storage/protocol/rsm/set/interface.go index 7bfee8e8..2e6ef159 100644 --- a/pkg/atomix/storage/protocol/rsm/set/interface.go +++ b/pkg/atomix/storage/protocol/rsm/set/interface.go @@ -1,4 +1,9 @@ // Code generated by atomix-go-framework. DO NOT EDIT. + +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation +// +// SPDX-License-Identifier: Apache-2.0 + package set import ( diff --git a/pkg/atomix/storage/protocol/rsm/set/service.go b/pkg/atomix/storage/protocol/rsm/set/service.go index 7167e93f..8e33f314 100644 --- a/pkg/atomix/storage/protocol/rsm/set/service.go +++ b/pkg/atomix/storage/protocol/rsm/set/service.go @@ -1,16 +1,6 @@ -// Copyright 2019-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package set diff --git a/pkg/atomix/storage/protocol/rsm/set/state.proto b/pkg/atomix/storage/protocol/rsm/set/state.proto index d86d4230..da32b733 100644 --- a/pkg/atomix/storage/protocol/rsm/set/state.proto +++ b/pkg/atomix/storage/protocol/rsm/set/state.proto @@ -1,18 +1,6 @@ -/* -Copyright 2021-present Open Networking Foundation. - -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: 2021-present Open Networking Foundation +// +// SPDX-License-Identifier: Apache-2.0 syntax = "proto3"; diff --git a/pkg/atomix/storage/protocol/rsm/value/adapter.go b/pkg/atomix/storage/protocol/rsm/value/adapter.go index 7fe80f20..dcab095e 100644 --- a/pkg/atomix/storage/protocol/rsm/value/adapter.go +++ b/pkg/atomix/storage/protocol/rsm/value/adapter.go @@ -1,4 +1,9 @@ // Code generated by atomix-go-framework. DO NOT EDIT. + +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation +// +// SPDX-License-Identifier: Apache-2.0 + package value import ( diff --git a/pkg/atomix/storage/protocol/rsm/value/interface.go b/pkg/atomix/storage/protocol/rsm/value/interface.go index bbd82301..e5f969a8 100644 --- a/pkg/atomix/storage/protocol/rsm/value/interface.go +++ b/pkg/atomix/storage/protocol/rsm/value/interface.go @@ -1,4 +1,9 @@ // Code generated by atomix-go-framework. DO NOT EDIT. + +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation +// +// SPDX-License-Identifier: Apache-2.0 + package value import ( diff --git a/pkg/atomix/storage/protocol/rsm/value/service.go b/pkg/atomix/storage/protocol/rsm/value/service.go index dc2f7af6..08eb1e1a 100644 --- a/pkg/atomix/storage/protocol/rsm/value/service.go +++ b/pkg/atomix/storage/protocol/rsm/value/service.go @@ -1,16 +1,6 @@ -// Copyright 2019-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package value diff --git a/pkg/atomix/storage/protocol/rsm/value/state.proto b/pkg/atomix/storage/protocol/rsm/value/state.proto index 8551d401..e86792c7 100644 --- a/pkg/atomix/storage/protocol/rsm/value/state.proto +++ b/pkg/atomix/storage/protocol/rsm/value/state.proto @@ -1,18 +1,6 @@ -/* -Copyright 2021-present Open Networking Foundation. - -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: 2021-present Open Networking Foundation +// +// SPDX-License-Identifier: Apache-2.0 syntax = "proto3"; diff --git a/pkg/atomix/storage/protocol/server.go b/pkg/atomix/storage/protocol/server.go index 194a094c..761bc789 100644 --- a/pkg/atomix/storage/protocol/server.go +++ b/pkg/atomix/storage/protocol/server.go @@ -1,16 +1,6 @@ -// Copyright 2019-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package protocol diff --git a/pkg/atomix/stream/stream.go b/pkg/atomix/stream/stream.go index 307dbd0b..dec55229 100644 --- a/pkg/atomix/stream/stream.go +++ b/pkg/atomix/stream/stream.go @@ -1,16 +1,6 @@ -// Copyright 2019-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package stream diff --git a/pkg/atomix/time/composite.go b/pkg/atomix/time/composite.go index eb607211..2660fd24 100644 --- a/pkg/atomix/time/composite.go +++ b/pkg/atomix/time/composite.go @@ -1,16 +1,6 @@ -// Copyright 2019-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package time diff --git a/pkg/atomix/time/epoch.go b/pkg/atomix/time/epoch.go index a4207810..fcaccbef 100644 --- a/pkg/atomix/time/epoch.go +++ b/pkg/atomix/time/epoch.go @@ -1,16 +1,6 @@ -// Copyright 2019-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package time diff --git a/pkg/atomix/time/interfaces.go b/pkg/atomix/time/interfaces.go index 9c80159e..4c602e7f 100644 --- a/pkg/atomix/time/interfaces.go +++ b/pkg/atomix/time/interfaces.go @@ -1,16 +1,6 @@ -// Copyright 2019-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package time diff --git a/pkg/atomix/time/logical.go b/pkg/atomix/time/logical.go index 56023f94..edad4e20 100644 --- a/pkg/atomix/time/logical.go +++ b/pkg/atomix/time/logical.go @@ -1,16 +1,6 @@ -// Copyright 2019-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package time diff --git a/pkg/atomix/time/physical.go b/pkg/atomix/time/physical.go index d19e84d8..9f05ff74 100644 --- a/pkg/atomix/time/physical.go +++ b/pkg/atomix/time/physical.go @@ -1,16 +1,6 @@ -// Copyright 2019-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package time diff --git a/pkg/atomix/util/async/async.go b/pkg/atomix/util/async/async.go index a2e1ac20..c22ce48f 100644 --- a/pkg/atomix/util/async/async.go +++ b/pkg/atomix/util/async/async.go @@ -1,16 +1,6 @@ -// Copyright 2019-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package async diff --git a/pkg/atomix/util/async/async_test.go b/pkg/atomix/util/async/async_test.go index af33ba7f..bb248c76 100644 --- a/pkg/atomix/util/async/async_test.go +++ b/pkg/atomix/util/async/async_test.go @@ -1,16 +1,6 @@ -// Copyright 2019-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package async diff --git a/pkg/atomix/util/bytes.go b/pkg/atomix/util/bytes.go index a1af7d30..9d20ad90 100644 --- a/pkg/atomix/util/bytes.go +++ b/pkg/atomix/util/bytes.go @@ -1,16 +1,6 @@ -// Copyright 2019-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package util diff --git a/pkg/atomix/util/bytes_test.go b/pkg/atomix/util/bytes_test.go index 5ab27d58..1f6edfc1 100644 --- a/pkg/atomix/util/bytes_test.go +++ b/pkg/atomix/util/bytes_test.go @@ -1,16 +1,6 @@ -// Copyright 2019-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package util diff --git a/pkg/atomix/util/partition.go b/pkg/atomix/util/partition.go index 7c0a1714..5a5b675c 100644 --- a/pkg/atomix/util/partition.go +++ b/pkg/atomix/util/partition.go @@ -1,16 +1,6 @@ -// Copyright 2019-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package util diff --git a/pkg/atomix/util/ready.go b/pkg/atomix/util/ready.go index 50030a35..161ccf40 100644 --- a/pkg/atomix/util/ready.go +++ b/pkg/atomix/util/ready.go @@ -1,16 +1,6 @@ -// Copyright 2019-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package util diff --git a/pkg/atomix/util/retry/options.go b/pkg/atomix/util/retry/options.go index 29ec3746..c3a16c12 100644 --- a/pkg/atomix/util/retry/options.go +++ b/pkg/atomix/util/retry/options.go @@ -1,16 +1,6 @@ -// Copyright 2019-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package retry diff --git a/pkg/atomix/util/retry/retry.go b/pkg/atomix/util/retry/retry.go index 74ce9b7a..5b48f085 100644 --- a/pkg/atomix/util/retry/retry.go +++ b/pkg/atomix/util/retry/retry.go @@ -1,16 +1,6 @@ -// Copyright 2019-present Open Networking Foundation. +// SPDX-FileCopyrightText: 2019-present Open Networking Foundation // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 package retry