diff --git a/LICENSE b/LICENSE index 261eeb9..63447fd 100644 --- a/LICENSE +++ b/LICENSE @@ -1,201 +1,21 @@ - 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. +Copyright (c) Microsoft Corporation. + +MIT License + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/Makefile b/Makefile index c948c28..21fb8ab 100644 --- a/Makefile +++ b/Makefile @@ -26,7 +26,7 @@ include $(ROOT_DIR)/tests/Makefile .DEFAULT_GOAL := all .PHONY: all -all: lint test build ## Runs the peerd build targets in the correct order +all: lint test build ## Runs the peerd build targets in the correct order. .PHONY: build build: ## Build the peerd packages @@ -34,7 +34,7 @@ build: ## Build the peerd packages @( $(GOBUILD) -o $(BIN_DIR)/peerd ./cmd/proxy ) .PHONY: install -install: build ## Installs the peerd service in the project bin directory +install: build ## Installs the peerd service in the project bin directory. @echo "+ $@" @( cp $(ROOT_DIR)/init/systemd/peerd.service $(BIN_DIR)/peerd.service ) @( cp $(ROOT_DIR)/api/swagger.yaml $(BIN_DIR)/swagger.yaml ) @@ -61,7 +61,7 @@ install-linter: ## Install Go linter. @( curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b /usr/local/bin v1.54.2 ) .PHONY: build-image -build-image: ## Build the peerd docker image +build-image: ## Build the peerd docker image. @echo "+ $@" ifndef CONTAINER_REGISTRY $(eval CONTAINER_REGISTRY := $(shell echo "localhost")) @@ -81,7 +81,7 @@ test: ## Runs tests. @( $(GOTEST) ./... ) .PHONY: coverage -coverage: ## Generates test results for code coverage +coverage: ## Generates test results for code coverage. @echo "+ $@" @( COVERAGE_DIR=$(COVERAGE_DIR) $(SCRIPTS_DIR)/coverage.sh "$(ROOT_DIR)" "$(TEST_PKGS)" true ) @@ -93,7 +93,7 @@ swag: ## Generates the swagger documentation of the p2p server. .PHONY: add-copyright add-copyright: ## Add the copyright header to all Go files. @echo "+ $@" - find . -type f -name "*.go" -exec sh -c 'grep -q -F "// Copyright (c) Microsoft Corporation." "$0" || sed -i "1i\\// Copyright (c) Microsoft Corporation.\\n// Licensed under the Apache License, Version 2.0." "$0"' {} \; + find $(ROOT_DIR) -type f -name "*.go" -exec sh -c 'grep -q -F "// Copyright (c) Microsoft Corporation." "$0" || sed -i "1i\\// Copyright (c) Microsoft Corporation.\\n// Licensed under the MIT License." "$0"' {} \; define HEADER diff --git a/README.md b/README.md index f12616f..30ec4d5 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ It is not yet production ready, but we're getting there. ## Quickstart -This section shows how to get started with `peerd`. +This section shows how to get started with `peerd`. To see all available commands, run `make help`. ```bash $ make help @@ -29,60 +29,67 @@ $ make help | | | __/ __/ | | (_| | |_| \___|\___|_| \__,_| -all Runs the peerd build targets in the correct order -build-image Build the peerd docker image -build Build the peerd packages -coverage Generates test results for code coverage +all Runs the peerd build targets in the correct order. +build-image Build the peerd docker image. +build Build the peerd packages. +coverage Generates test results for code coverage. help Generates help for all targets with a description. -install-gocov Install Go cov. -install-linter Install Go linter. -install Installs the peerd service in the project bin directory -kind-create Creates a kind cluster -kind-delete Deletes kind cluster -kind-deploy Deploys the p2p application to kind cluster -kind-get Shows the current kind cluster -kind-test-ctr Deploys test 'ctr' to the kind cluster -kind-test-random Deploys test 'random' to the kind cluster -lint Run linter. -swag Generates the swagger documentation of the p2p server. -test Runs tests. -tests-build Builds the tests binary -tests-deps-install Install dependencies for testing (supported only on Ubuntu) -tests-random-image Builds the 'random' tests image -tests-scanner-image Builds the 'scanner' tests image +... ``` -### Deploy Helm Chart to your Cluster +### Deploy `peerd` to Your Cluster Using `helm` -If you already have a k8s cluster, you can deploy the `peerd` helm chart to it. With containerd, `peerd` leverages the -[hosts configuration][containerd hosts] to act as a mirror for container images. +#### Prerequisites -The `peerd` container image is available at `ghcr.io/azure/acr/peerd`. +* An existing Kubernetes cluster with +* containerd as the container runtime. + +You can deploy `peerd` to your existing cluster using the included [helm chart]. With containerd, `peerd` leverages the +[hosts configuration][containerd hosts] to act as a mirror for container images. The helm chart deploys a DameonSet to +the `peerd-ns` namespace, and mounts the containerd socket to the `peerd` containers. + +The `peerd` container image is available at `ghcr.io/azure/acr/peerd`. To deploy, run the following. ```bash CLUSTER_CONTEXT= && \ + TAG=v0.0.2-alpha && \ HELM_RELEASE_NAME=peerd && \ HELM_CHART_DIR=./build/ci/k8s/peerd-helm && \ helm --kube-context=$CLUSTER_CONTEXT install --wait $HELM_RELEASE_NAME $HELM_CHART_DIR \ - --set peerd.image.ref=ghcr.io/azure/acr/dev/peerd:v0.0.2-alpha + --set peerd.image.ref=ghcr.io/azure/acr/dev/peerd:$TAG ``` -By default, only `mcr.microsoft.com` is mirrored, but this is configurable. For example, to configure `peerd` to mirror -`mcr.microsoft.com` and `ghcr.io`, run the following. +By default, `mcr.microsoft.com` and `ghcr.io` are mirrored, but this is configurable. For example, to `docker.io`, run +the following. ```bash CLUSTER_CONTEXT= && \ + TAG=v0.0.2-alpha && \ HELM_RELEASE_NAME=peerd && \ HELM_CHART_DIR=./build/ci/k8s/peerd-helm && \ helm --kube-context=$CLUSTER_CONTEXT install --wait $HELM_RELEASE_NAME $HELM_CHART_DIR \ - --set peerd.image.ref=ghcr.io/azure/acr/dev/peerd:v0.0.2-alpha \ - --set peerd.hosts="mcr.microsoft.com ghcr.io" + --set peerd.image.ref=ghcr.io/azure/acr/dev/peerd:$TAG + --set peerd.hosts="mcr.microsoft.com ghcr.io docker.io" +``` + +On deployment, each `peerd` instance will try to connect to its peers in the cluster. + +* When connected successfully, each pod will generate an event `P2PConnected`. This event is used to signal that the + `peerd` instance is ready to serve requests to its peers. + +* When a request is served by downloading data from a peer, `peerd` will emit an event called `P2PActive`, + signalling that it's actively communicating with a peer and serving data from it. + +To see logs from the `peerd` pods, run the following. + +```bash +kubectl --context=$CLUSTER_CONTEXT -n peerd-ns logs -l app=peerd -f ``` ### Build and Deploy to a Local Kind Cluster -To build and deploy `peerd` to a 3 node kind cluster, run the following. These commands will build the `peerd` -docker image, create a kind cluster, and deploy the `peerd` application to each node in it. +For local development or experimentation, you can build the `peerd` docker image, create a kind cluster, and deploy the +`peerd` application to each node in it. To build and deploy to a 3 node kind cluster, run the following. ```bash $ make build-image && \ @@ -99,14 +106,6 @@ $ make build-image && \ Success: All pods have event 'P2PConnected'. ``` -On deployment, each `peerd` instance will try to connect to its peers in the cluster. - -* When connected successfully, it will generate an event `P2PConnected`. This event is used to signal that the - `peerd` instance is ready to serverequests from its peers or upstream. It can be found in the pod events. - -* When a request is served by downloading data from a peer, `peerd` will emit an event called `P2PActive`, - signalling that it's actively communicating with a peer and serving data from it. - Clean up your deployment. ```bash @@ -115,7 +114,7 @@ $ make kind-delete ### Run a Test Workload -There are two kinds of test workloads that can be run: +There are two kinds of test workloads avaialbe in this repository: 1. Simple peer to peer sharing of a file, specified by the range of bytes to read. * This scenario is useful for block level file drivers, such as [Overlaybd]. @@ -154,17 +153,6 @@ There are two kinds of test workloads that can be run: $ make kind-delete ``` -### Build a Docker Image of `peerd` - -To build a docker image of `peerd`, which can then be deployed on each node of your cluster, run the following. - -```bash -$ make build-image - ... - ... - => naming to localhost/peerd:dev -``` - ### Build `peerd` Binary To build the `peerd` binary, run the following. @@ -174,9 +162,9 @@ $ make ... ``` -The build produces a binary and a systemd service unit file: +The build produces a binary and a systemd service unit file. Additionally, it bin-places the API swagger file. -``` +```bash |-- peerd # The binary |-- peerd.service # The service unit file for systemd |-- swagger.yml # The swagger file for the REST API @@ -265,3 +253,5 @@ A hat tip to: [DADI P2P Proxy]: https://github.com/data-accelerator/dadi-p2proxy [containerd hosts]: https://github.com/containerd/containerd/blob/main/docs/hosts.md [containerd-mirror]: ./internal/containerd/mirror.go +[helm chart]: ./build/ci/k8s/peerd-helm +``` diff --git a/api/docs.go b/api/docs.go index 0543062..1d267b8 100644 --- a/api/docs.go +++ b/api/docs.go @@ -1,5 +1,5 @@ // Copyright (c) Microsoft Corporation. -// Licensed under the Apache License, Version 2.0. +// Licensed under the MIT License. // Package api Code generated by swaggo/swag. DO NOT EDIT package api diff --git a/cmd/proxy/cmd.go b/cmd/proxy/cmd.go index 9f027fd..7890291 100644 --- a/cmd/proxy/cmd.go +++ b/cmd/proxy/cmd.go @@ -1,5 +1,5 @@ // Copyright (c) Microsoft Corporation. -// Licensed under the Apache License, Version 2.0. +// Licensed under the MIT License. package main type ServerCmd struct { diff --git a/cmd/proxy/main.go b/cmd/proxy/main.go index 4b2e948..3f5b781 100644 --- a/cmd/proxy/main.go +++ b/cmd/proxy/main.go @@ -1,5 +1,5 @@ // Copyright (c) Microsoft Corporation. -// Licensed under the Apache License, Version 2.0. +// Licensed under the MIT License. package main import ( diff --git a/internal/cache/syncmap.go b/internal/cache/syncmap.go index 097c289..2b25b74 100644 --- a/internal/cache/syncmap.go +++ b/internal/cache/syncmap.go @@ -1,5 +1,5 @@ // Copyright (c) Microsoft Corporation. -// Licensed under the Apache License, Version 2.0. +// Licensed under the MIT License. package cache import ( diff --git a/internal/cache/syncmap_test.go b/internal/cache/syncmap_test.go index a19f497..e9051b3 100644 --- a/internal/cache/syncmap_test.go +++ b/internal/cache/syncmap_test.go @@ -1,5 +1,5 @@ // Copyright (c) Microsoft Corporation. -// Licensed under the Apache License, Version 2.0. +// Licensed under the MIT License. package cache import ( diff --git a/internal/containerd/mirror.go b/internal/containerd/mirror.go index c9ed656..1d61f71 100644 --- a/internal/containerd/mirror.go +++ b/internal/containerd/mirror.go @@ -1,5 +1,5 @@ // Copyright (c) Microsoft Corporation. -// Licensed under the Apache License, Version 2.0. +// Licensed under the MIT License. package containerd import ( diff --git a/internal/containerd/mirror_test.go b/internal/containerd/mirror_test.go index 55bdb10..c8ba4fd 100644 --- a/internal/containerd/mirror_test.go +++ b/internal/containerd/mirror_test.go @@ -1,5 +1,5 @@ // Copyright (c) Microsoft Corporation. -// Licensed under the Apache License, Version 2.0. +// Licensed under the MIT License. package containerd import ( diff --git a/internal/context/context.go b/internal/context/context.go index c51826e..7832d9a 100644 --- a/internal/context/context.go +++ b/internal/context/context.go @@ -1,5 +1,5 @@ // Copyright (c) Microsoft Corporation. -// Licensed under the Apache License, Version 2.0. +// Licensed under the MIT License. package context import ( diff --git a/internal/context/context_test.go b/internal/context/context_test.go index 2096153..fad6c7e 100644 --- a/internal/context/context_test.go +++ b/internal/context/context_test.go @@ -1,5 +1,5 @@ // Copyright (c) Microsoft Corporation. -// Licensed under the Apache License, Version 2.0. +// Licensed under the MIT License. package context import ( diff --git a/internal/files/cache/cache.go b/internal/files/cache/cache.go index bae0e04..c391671 100644 --- a/internal/files/cache/cache.go +++ b/internal/files/cache/cache.go @@ -1,5 +1,5 @@ // Copyright (c) Microsoft Corporation. -// Licensed under the Apache License, Version 2.0. +// Licensed under the MIT License. package cache import ( diff --git a/internal/files/cache/cache_test.go b/internal/files/cache/cache_test.go index 24122cc..d430ccb 100644 --- a/internal/files/cache/cache_test.go +++ b/internal/files/cache/cache_test.go @@ -1,5 +1,5 @@ // Copyright (c) Microsoft Corporation. -// Licensed under the Apache License, Version 2.0. +// Licensed under the MIT License. package cache import ( diff --git a/internal/files/cache/interface.go b/internal/files/cache/interface.go index 134cabb..9ee1b09 100644 --- a/internal/files/cache/interface.go +++ b/internal/files/cache/interface.go @@ -1,5 +1,5 @@ // Copyright (c) Microsoft Corporation. -// Licensed under the Apache License, Version 2.0. +// Licensed under the MIT License. package cache // Cache describes the cache of files. diff --git a/internal/files/cache/item.go b/internal/files/cache/item.go index d511192..9d5d765 100644 --- a/internal/files/cache/item.go +++ b/internal/files/cache/item.go @@ -1,5 +1,5 @@ // Copyright (c) Microsoft Corporation. -// Licensed under the Apache License, Version 2.0. +// Licensed under the MIT License. package cache import ( diff --git a/internal/files/cache/item_test.go b/internal/files/cache/item_test.go index 1695981..d51673a 100644 --- a/internal/files/cache/item_test.go +++ b/internal/files/cache/item_test.go @@ -1,5 +1,5 @@ // Copyright (c) Microsoft Corporation. -// Licensed under the Apache License, Version 2.0. +// Licensed under the MIT License. package cache import ( diff --git a/internal/files/cache/main_test.go b/internal/files/cache/main_test.go index 80c01de..d520e94 100644 --- a/internal/files/cache/main_test.go +++ b/internal/files/cache/main_test.go @@ -1,5 +1,5 @@ // Copyright (c) Microsoft Corporation. -// Licensed under the Apache License, Version 2.0. +// Licensed under the MIT License. package cache import ( diff --git a/internal/files/files.go b/internal/files/files.go index 5369048..65d22c5 100644 --- a/internal/files/files.go +++ b/internal/files/files.go @@ -1,5 +1,5 @@ // Copyright (c) Microsoft Corporation. -// Licensed under the Apache License, Version 2.0. +// Licensed under the MIT License. package files import ( diff --git a/internal/files/files_test.go b/internal/files/files_test.go index c75c4bd..f405535 100644 --- a/internal/files/files_test.go +++ b/internal/files/files_test.go @@ -1,5 +1,5 @@ // Copyright (c) Microsoft Corporation. -// Licensed under the Apache License, Version 2.0. +// Licensed under the MIT License. package files import ( diff --git a/internal/files/store/file.go b/internal/files/store/file.go index e190557..355622a 100644 --- a/internal/files/store/file.go +++ b/internal/files/store/file.go @@ -1,5 +1,5 @@ // Copyright (c) Microsoft Corporation. -// Licensed under the Apache License, Version 2.0. +// Licensed under the MIT License. package store import ( diff --git a/internal/files/store/file_test.go b/internal/files/store/file_test.go index 28abf4c..170d2ca 100644 --- a/internal/files/store/file_test.go +++ b/internal/files/store/file_test.go @@ -1,5 +1,5 @@ // Copyright (c) Microsoft Corporation. -// Licensed under the Apache License, Version 2.0. +// Licensed under the MIT License. package store import ( diff --git a/internal/files/store/interface.go b/internal/files/store/interface.go index a2fb26e..62d67ef 100644 --- a/internal/files/store/interface.go +++ b/internal/files/store/interface.go @@ -1,5 +1,5 @@ // Copyright (c) Microsoft Corporation. -// Licensed under the Apache License, Version 2.0. +// Licensed under the MIT License. package store import ( diff --git a/internal/files/store/main_test.go b/internal/files/store/main_test.go index ea66294..263c3bc 100644 --- a/internal/files/store/main_test.go +++ b/internal/files/store/main_test.go @@ -1,5 +1,5 @@ // Copyright (c) Microsoft Corporation. -// Licensed under the Apache License, Version 2.0. +// Licensed under the MIT License. package store import ( diff --git a/internal/files/store/mockstore.go b/internal/files/store/mockstore.go index d101ea4..17f9bf2 100644 --- a/internal/files/store/mockstore.go +++ b/internal/files/store/mockstore.go @@ -1,5 +1,5 @@ // Copyright (c) Microsoft Corporation. -// Licensed under the Apache License, Version 2.0. +// Licensed under the MIT License. package store import ( diff --git a/internal/files/store/store.go b/internal/files/store/store.go index 1bedb15..6365ad4 100644 --- a/internal/files/store/store.go +++ b/internal/files/store/store.go @@ -1,5 +1,5 @@ // Copyright (c) Microsoft Corporation. -// Licensed under the Apache License, Version 2.0. +// Licensed under the MIT License. package store import ( diff --git a/internal/files/store/store_test.go b/internal/files/store/store_test.go index d306a65..a59df09 100644 --- a/internal/files/store/store_test.go +++ b/internal/files/store/store_test.go @@ -1,5 +1,5 @@ // Copyright (c) Microsoft Corporation. -// Licensed under the Apache License, Version 2.0. +// Licensed under the MIT License. package store import ( diff --git a/internal/handlers/files/handler.go b/internal/handlers/files/handler.go index d15d4bd..f7b41f0 100644 --- a/internal/handlers/files/handler.go +++ b/internal/handlers/files/handler.go @@ -1,5 +1,5 @@ // Copyright (c) Microsoft Corporation. -// Licensed under the Apache License, Version 2.0. +// Licensed under the MIT License. package handlers import ( diff --git a/internal/handlers/files/handler_test.go b/internal/handlers/files/handler_test.go index 397ca9d..ed8721d 100644 --- a/internal/handlers/files/handler_test.go +++ b/internal/handlers/files/handler_test.go @@ -1,5 +1,5 @@ // Copyright (c) Microsoft Corporation. -// Licensed under the Apache License, Version 2.0. +// Licensed under the MIT License. package handlers import ( diff --git a/internal/handlers/files/main_test.go b/internal/handlers/files/main_test.go index f930ace..9298e97 100644 --- a/internal/handlers/files/main_test.go +++ b/internal/handlers/files/main_test.go @@ -1,5 +1,5 @@ // Copyright (c) Microsoft Corporation. -// Licensed under the Apache License, Version 2.0. +// Licensed under the MIT License. package handlers import ( diff --git a/internal/handlers/root.go b/internal/handlers/root.go index 01c670d..e1308f1 100644 --- a/internal/handlers/root.go +++ b/internal/handlers/root.go @@ -1,5 +1,5 @@ // Copyright (c) Microsoft Corporation. -// Licensed under the Apache License, Version 2.0. +// Licensed under the MIT License. package handlers import ( diff --git a/internal/handlers/v2/handler.go b/internal/handlers/v2/handler.go index 42b2106..b10bd18 100644 --- a/internal/handlers/v2/handler.go +++ b/internal/handlers/v2/handler.go @@ -1,5 +1,5 @@ // Copyright (c) Microsoft Corporation. -// Licensed under the Apache License, Version 2.0. +// Licensed under the MIT License. package handlers import ( diff --git a/internal/k8s/events/events.go b/internal/k8s/events/events.go index 3f1d254..cef8cf7 100644 --- a/internal/k8s/events/events.go +++ b/internal/k8s/events/events.go @@ -1,5 +1,5 @@ // Copyright (c) Microsoft Corporation. -// Licensed under the Apache License, Version 2.0. +// Licensed under the MIT License. package events import ( diff --git a/internal/k8s/events/events_test.go b/internal/k8s/events/events_test.go index edd6dec..584a8e1 100644 --- a/internal/k8s/events/events_test.go +++ b/internal/k8s/events/events_test.go @@ -1,5 +1,5 @@ // Copyright (c) Microsoft Corporation. -// Licensed under the Apache License, Version 2.0. +// Licensed under the MIT License. package events import ( diff --git a/internal/k8s/events/interface.go b/internal/k8s/events/interface.go index 8bf3b6d..e3a2f36 100644 --- a/internal/k8s/events/interface.go +++ b/internal/k8s/events/interface.go @@ -1,5 +1,5 @@ // Copyright (c) Microsoft Corporation. -// Licensed under the Apache License, Version 2.0. +// Licensed under the MIT License. package events // EventRecorder can be used to record various event. diff --git a/internal/math/math.go b/internal/math/math.go index e4ab6f7..88a9b86 100644 --- a/internal/math/math.go +++ b/internal/math/math.go @@ -1,5 +1,5 @@ // Copyright (c) Microsoft Corporation. -// Licensed under the Apache License, Version 2.0. +// Licensed under the MIT License. package math import ( diff --git a/internal/math/math_test.go b/internal/math/math_test.go index 1201a27..6ad512c 100644 --- a/internal/math/math_test.go +++ b/internal/math/math_test.go @@ -1,5 +1,5 @@ // Copyright (c) Microsoft Corporation. -// Licensed under the Apache License, Version 2.0. +// Licensed under the MIT License. package math import "testing" diff --git a/internal/math/reverse.go b/internal/math/reverse.go index 47bd06e..2da8fa4 100644 --- a/internal/math/reverse.go +++ b/internal/math/reverse.go @@ -1,5 +1,5 @@ // Copyright (c) Microsoft Corporation. -// Licensed under the Apache License, Version 2.0. +// Licensed under the MIT License. package math import "sort" diff --git a/internal/math/reverse_test.go b/internal/math/reverse_test.go index 79d62c4..409cee4 100644 --- a/internal/math/reverse_test.go +++ b/internal/math/reverse_test.go @@ -1,5 +1,5 @@ // Copyright (c) Microsoft Corporation. -// Licensed under the Apache License, Version 2.0. +// Licensed under the MIT License. package math import ( diff --git a/internal/metrics/interface.go b/internal/metrics/interface.go index 2cdaecb..fb8cb3a 100644 --- a/internal/metrics/interface.go +++ b/internal/metrics/interface.go @@ -1,5 +1,5 @@ // Copyright (c) Microsoft Corporation. -// Licensed under the Apache License, Version 2.0. +// Licensed under the MIT License. package metrics // Metrics defines an interface to collect p2p metrics. diff --git a/internal/metrics/main_test.go b/internal/metrics/main_test.go index a44471b..757cf37 100644 --- a/internal/metrics/main_test.go +++ b/internal/metrics/main_test.go @@ -1,5 +1,5 @@ // Copyright (c) Microsoft Corporation. -// Licensed under the Apache License, Version 2.0. +// Licensed under the MIT License. package metrics import ( diff --git a/internal/metrics/memory.go b/internal/metrics/memory.go index 7754f82..de5b708 100644 --- a/internal/metrics/memory.go +++ b/internal/metrics/memory.go @@ -1,5 +1,5 @@ // Copyright (c) Microsoft Corporation. -// Licensed under the Apache License, Version 2.0. +// Licensed under the MIT License. package metrics import ( diff --git a/internal/metrics/memory_test.go b/internal/metrics/memory_test.go index 64d47cf..a6d5ba6 100644 --- a/internal/metrics/memory_test.go +++ b/internal/metrics/memory_test.go @@ -1,5 +1,5 @@ // Copyright (c) Microsoft Corporation. -// Licensed under the Apache License, Version 2.0. +// Licensed under the MIT License. package metrics import ( diff --git a/internal/oci/distribution/v2.go b/internal/oci/distribution/v2.go index 250a5ad..02c5ef0 100644 --- a/internal/oci/distribution/v2.go +++ b/internal/oci/distribution/v2.go @@ -1,5 +1,5 @@ // Copyright (c) Microsoft Corporation. -// Licensed under the Apache License, Version 2.0. +// Licensed under the MIT License. package distribution import ( diff --git a/internal/oci/distribution/v2_test.go b/internal/oci/distribution/v2_test.go index 056dca3..0495d56 100644 --- a/internal/oci/distribution/v2_test.go +++ b/internal/oci/distribution/v2_test.go @@ -1,5 +1,5 @@ // Copyright (c) Microsoft Corporation. -// Licensed under the Apache License, Version 2.0. +// Licensed under the MIT License. package distribution import ( diff --git a/internal/oci/mirror.go b/internal/oci/mirror.go index f7dab74..813b072 100644 --- a/internal/oci/mirror.go +++ b/internal/oci/mirror.go @@ -1,5 +1,5 @@ // Copyright (c) Microsoft Corporation. -// Licensed under the Apache License, Version 2.0. +// Licensed under the MIT License. package oci import ( diff --git a/internal/oci/mirror_test.go b/internal/oci/mirror_test.go index c9cc92f..d74db8e 100644 --- a/internal/oci/mirror_test.go +++ b/internal/oci/mirror_test.go @@ -1,5 +1,5 @@ // Copyright (c) Microsoft Corporation. -// Licensed under the Apache License, Version 2.0. +// Licensed under the MIT License. package oci import ( diff --git a/internal/oci/registry.go b/internal/oci/registry.go index 01090ff..cdc1752 100644 --- a/internal/oci/registry.go +++ b/internal/oci/registry.go @@ -1,5 +1,5 @@ // Copyright (c) Microsoft Corporation. -// Licensed under the Apache License, Version 2.0. +// Licensed under the MIT License. package oci import ( diff --git a/internal/oci/store/tests/mock.go b/internal/oci/store/tests/mock.go index fe0681c..04ee571 100644 --- a/internal/oci/store/tests/mock.go +++ b/internal/oci/store/tests/mock.go @@ -1,5 +1,5 @@ // Copyright (c) Microsoft Corporation. -// Licensed under the Apache License, Version 2.0. +// Licensed under the MIT License. package tests import ( diff --git a/internal/remote/interface.go b/internal/remote/interface.go index b37dac6..56c93bb 100644 --- a/internal/remote/interface.go +++ b/internal/remote/interface.go @@ -1,5 +1,5 @@ // Copyright (c) Microsoft Corporation. -// Licensed under the Apache License, Version 2.0. +// Licensed under the MIT License. package remote import ( diff --git a/internal/remote/reader.go b/internal/remote/reader.go index f91a6a4..e7c3247 100644 --- a/internal/remote/reader.go +++ b/internal/remote/reader.go @@ -1,5 +1,5 @@ // Copyright (c) Microsoft Corporation. -// Licensed under the Apache License, Version 2.0. +// Licensed under the MIT License. package remote import ( diff --git a/internal/remote/reader_test.go b/internal/remote/reader_test.go index 53cf858..4dde95a 100644 --- a/internal/remote/reader_test.go +++ b/internal/remote/reader_test.go @@ -1,5 +1,5 @@ // Copyright (c) Microsoft Corporation. -// Licensed under the Apache License, Version 2.0. +// Licensed under the MIT License. package remote import ( diff --git a/internal/remote/tests/mockreader.go b/internal/remote/tests/mockreader.go index 5b67eba..4183aa7 100644 --- a/internal/remote/tests/mockreader.go +++ b/internal/remote/tests/mockreader.go @@ -1,5 +1,5 @@ // Copyright (c) Microsoft Corporation. -// Licensed under the Apache License, Version 2.0. +// Licensed under the MIT License. package tests import ( diff --git a/internal/routing/interface.go b/internal/routing/interface.go index 7363708..1f4e21b 100644 --- a/internal/routing/interface.go +++ b/internal/routing/interface.go @@ -1,5 +1,5 @@ // Copyright (c) Microsoft Corporation. -// Licensed under the Apache License, Version 2.0. +// Licensed under the MIT License. package routing import ( diff --git a/internal/routing/router.go b/internal/routing/router.go index b845f3f..3a4f0f4 100644 --- a/internal/routing/router.go +++ b/internal/routing/router.go @@ -1,5 +1,5 @@ // Copyright (c) Microsoft Corporation. -// Licensed under the Apache License, Version 2.0. +// Licensed under the MIT License. package routing import ( diff --git a/internal/routing/router_test.go b/internal/routing/router_test.go index ba10e9f..1d3aea5 100644 --- a/internal/routing/router_test.go +++ b/internal/routing/router_test.go @@ -1,5 +1,5 @@ // Copyright (c) Microsoft Corporation. -// Licensed under the Apache License, Version 2.0. +// Licensed under the MIT License. package routing import ( diff --git a/internal/routing/tests/mock.go b/internal/routing/tests/mock.go index 79d0799..589a583 100644 --- a/internal/routing/tests/mock.go +++ b/internal/routing/tests/mock.go @@ -1,5 +1,5 @@ // Copyright (c) Microsoft Corporation. -// Licensed under the Apache License, Version 2.0. +// Licensed under the MIT License. package tests import ( diff --git a/internal/state/state.go b/internal/state/state.go index dbe567f..1fb3b32 100644 --- a/internal/state/state.go +++ b/internal/state/state.go @@ -1,5 +1,5 @@ // Copyright (c) Microsoft Corporation. -// Licensed under the Apache License, Version 2.0. +// Licensed under the MIT License. package state import ( diff --git a/internal/state/state_test.go b/internal/state/state_test.go index 6535dcb..398b64e 100644 --- a/internal/state/state_test.go +++ b/internal/state/state_test.go @@ -1,5 +1,5 @@ // Copyright (c) Microsoft Corporation. -// Licensed under the Apache License, Version 2.0. +// Licensed under the MIT License. package state import ( diff --git a/pkg/containerd/reference.go b/pkg/containerd/reference.go index 70b63f8..23377d5 100644 --- a/pkg/containerd/reference.go +++ b/pkg/containerd/reference.go @@ -1,5 +1,5 @@ // Copyright (c) Microsoft Corporation. -// Licensed under the Apache License, Version 2.0. +// Licensed under the MIT License. package containerd import ( diff --git a/pkg/containerd/reference_test.go b/pkg/containerd/reference_test.go index 07b71ed..08350b5 100644 --- a/pkg/containerd/reference_test.go +++ b/pkg/containerd/reference_test.go @@ -1,5 +1,5 @@ // Copyright (c) Microsoft Corporation. -// Licensed under the Apache License, Version 2.0. +// Licensed under the MIT License. package containerd import ( diff --git a/pkg/containerd/store.go b/pkg/containerd/store.go index 53a7eba..0dcfdf0 100644 --- a/pkg/containerd/store.go +++ b/pkg/containerd/store.go @@ -1,5 +1,5 @@ // Copyright (c) Microsoft Corporation. -// Licensed under the Apache License, Version 2.0. +// Licensed under the MIT License. package containerd import ( diff --git a/pkg/containerd/store_test.go b/pkg/containerd/store_test.go index f96d5eb..039fc52 100644 --- a/pkg/containerd/store_test.go +++ b/pkg/containerd/store_test.go @@ -1,5 +1,5 @@ // Copyright (c) Microsoft Corporation. -// Licensed under the Apache License, Version 2.0. +// Licensed under the MIT License. package containerd import ( diff --git a/pkg/k8s/election/election.go b/pkg/k8s/election/election.go index be696db..70f151b 100644 --- a/pkg/k8s/election/election.go +++ b/pkg/k8s/election/election.go @@ -1,5 +1,5 @@ // Copyright (c) Microsoft Corporation. -// Licensed under the Apache License, Version 2.0. +// Licensed under the MIT License. package election import ( diff --git a/pkg/k8s/election/election_test.go b/pkg/k8s/election/election_test.go index fc0d2e1..0264e5c 100644 --- a/pkg/k8s/election/election_test.go +++ b/pkg/k8s/election/election_test.go @@ -1,5 +1,5 @@ // Copyright (c) Microsoft Corporation. -// Licensed under the Apache License, Version 2.0. +// Licensed under the MIT License. package election import ( diff --git a/pkg/k8s/k8s.go b/pkg/k8s/k8s.go index 9593b21..fcd512f 100644 --- a/pkg/k8s/k8s.go +++ b/pkg/k8s/k8s.go @@ -1,5 +1,5 @@ // Copyright (c) Microsoft Corporation. -// Licensed under the Apache License, Version 2.0. +// Licensed under the MIT License. package k8s import ( diff --git a/pkg/k8s/k8s_test.go b/pkg/k8s/k8s_test.go index 355bc5c..04fec71 100644 --- a/pkg/k8s/k8s_test.go +++ b/pkg/k8s/k8s_test.go @@ -1,5 +1,5 @@ // Copyright (c) Microsoft Corporation. -// Licensed under the Apache License, Version 2.0. +// Licensed under the MIT License. package k8s import ( diff --git a/pkg/math/compare.go b/pkg/math/compare.go index f480296..de72fc1 100644 --- a/pkg/math/compare.go +++ b/pkg/math/compare.go @@ -1,5 +1,5 @@ // Copyright (c) Microsoft Corporation. -// Licensed under the Apache License, Version 2.0. +// Licensed under the MIT License. package math // Max64 returns the larger of x or y. diff --git a/pkg/math/compare_test.go b/pkg/math/compare_test.go index 881293b..b85ea07 100644 --- a/pkg/math/compare_test.go +++ b/pkg/math/compare_test.go @@ -1,5 +1,5 @@ // Copyright (c) Microsoft Corporation. -// Licensed under the Apache License, Version 2.0. +// Licensed under the MIT License. package math import "testing" diff --git a/pkg/math/segments.go b/pkg/math/segments.go index 3155f8e..8209adc 100644 --- a/pkg/math/segments.go +++ b/pkg/math/segments.go @@ -1,5 +1,5 @@ // Copyright (c) Microsoft Corporation. -// Licensed under the Apache License, Version 2.0. +// Licensed under the MIT License. package math import "fmt" diff --git a/pkg/math/segments_test.go b/pkg/math/segments_test.go index 267c8fa..616335b 100644 --- a/pkg/math/segments_test.go +++ b/pkg/math/segments_test.go @@ -1,5 +1,5 @@ // Copyright (c) Microsoft Corporation. -// Licensed under the Apache License, Version 2.0. +// Licensed under the MIT License. package math import "testing" diff --git a/pkg/mocks/contentstore.go b/pkg/mocks/contentstore.go index e8a970f..aa3d0b1 100644 --- a/pkg/mocks/contentstore.go +++ b/pkg/mocks/contentstore.go @@ -1,5 +1,5 @@ // Copyright (c) Microsoft Corporation. -// Licensed under the Apache License, Version 2.0. +// Licensed under the MIT License. package mocks import ( diff --git a/pkg/mocks/eventservice.go b/pkg/mocks/eventservice.go index cbb1bfc..2e87150 100644 --- a/pkg/mocks/eventservice.go +++ b/pkg/mocks/eventservice.go @@ -1,5 +1,5 @@ // Copyright (c) Microsoft Corporation. -// Licensed under the Apache License, Version 2.0. +// Licensed under the MIT License. package mocks import ( diff --git a/pkg/mocks/host.go b/pkg/mocks/host.go index 1463449..2823721 100644 --- a/pkg/mocks/host.go +++ b/pkg/mocks/host.go @@ -1,5 +1,5 @@ // Copyright (c) Microsoft Corporation. -// Licensed under the Apache License, Version 2.0. +// Licensed under the MIT License. package mocks import ( diff --git a/pkg/mocks/imagestore.go b/pkg/mocks/imagestore.go index a6a9985..120ce1d 100644 --- a/pkg/mocks/imagestore.go +++ b/pkg/mocks/imagestore.go @@ -1,5 +1,5 @@ // Copyright (c) Microsoft Corporation. -// Licensed under the Apache License, Version 2.0. +// Licensed under the MIT License. package mocks import ( diff --git a/pkg/mocks/peerstore.go b/pkg/mocks/peerstore.go index ae21590..c6e6f9e 100644 --- a/pkg/mocks/peerstore.go +++ b/pkg/mocks/peerstore.go @@ -1,5 +1,5 @@ // Copyright (c) Microsoft Corporation. -// Licensed under the Apache License, Version 2.0. +// Licensed under the MIT License. package mocks import ( diff --git a/pkg/peernet/network.go b/pkg/peernet/network.go index 7fc03c8..80bae88 100644 --- a/pkg/peernet/network.go +++ b/pkg/peernet/network.go @@ -1,5 +1,5 @@ // Copyright (c) Microsoft Corporation. -// Licensed under the Apache License, Version 2.0. +// Licensed under the MIT License. package peernet import ( diff --git a/pkg/peernet/network_test.go b/pkg/peernet/network_test.go index 470b0ce..0fb49c2 100644 --- a/pkg/peernet/network_test.go +++ b/pkg/peernet/network_test.go @@ -1,5 +1,5 @@ // Copyright (c) Microsoft Corporation. -// Licensed under the Apache License, Version 2.0. +// Licensed under the MIT License. package peernet import ( diff --git a/pkg/urlparser/azure.go b/pkg/urlparser/azure.go index c4fef96..a5dca32 100644 --- a/pkg/urlparser/azure.go +++ b/pkg/urlparser/azure.go @@ -1,5 +1,5 @@ // Copyright (c) Microsoft Corporation. -// Licensed under the Apache License, Version 2.0. +// Licensed under the MIT License. package urlparser import ( diff --git a/pkg/urlparser/azure_test.go b/pkg/urlparser/azure_test.go index 8a8e5a6..28d638e 100644 --- a/pkg/urlparser/azure_test.go +++ b/pkg/urlparser/azure_test.go @@ -1,5 +1,5 @@ // Copyright (c) Microsoft Corporation. -// Licensed under the Apache License, Version 2.0. +// Licensed under the MIT License. package urlparser import ( diff --git a/pkg/urlparser/parser.go b/pkg/urlparser/parser.go index 6874e24..8400232 100644 --- a/pkg/urlparser/parser.go +++ b/pkg/urlparser/parser.go @@ -1,5 +1,5 @@ // Copyright (c) Microsoft Corporation. -// Licensed under the Apache License, Version 2.0. +// Licensed under the MIT License. // Package urlparser provides interfaces and implementations for parsing information from a URL. package urlparser diff --git a/pkg/urlparser/parser_test.go b/pkg/urlparser/parser_test.go index d98512e..2630fb2 100644 --- a/pkg/urlparser/parser_test.go +++ b/pkg/urlparser/parser_test.go @@ -1,5 +1,5 @@ // Copyright (c) Microsoft Corporation. -// Licensed under the Apache License, Version 2.0. +// Licensed under the MIT License. package urlparser import ( diff --git a/tests/cmd/cmd.go b/tests/cmd/cmd.go index 4512f99..f0cb98a 100644 --- a/tests/cmd/cmd.go +++ b/tests/cmd/cmd.go @@ -1,5 +1,5 @@ // Copyright (c) Microsoft Corporation. -// Licensed under the Apache License, Version 2.0. +// Licensed under the MIT License. package main type RandomCmd struct { diff --git a/tests/cmd/main.go b/tests/cmd/main.go index 55ba88b..a938994 100644 --- a/tests/cmd/main.go +++ b/tests/cmd/main.go @@ -1,5 +1,5 @@ // Copyright (c) Microsoft Corporation. -// Licensed under the Apache License, Version 2.0. +// Licensed under the MIT License. package main import ( diff --git a/tests/random/random.go b/tests/random/random.go index 98f07e4..b1db8ee 100644 --- a/tests/random/random.go +++ b/tests/random/random.go @@ -1,5 +1,5 @@ // Copyright (c) Microsoft Corporation. -// Licensed under the Apache License, Version 2.0. +// Licensed under the MIT License. package random import ( diff --git a/tests/scanner/scanner.go b/tests/scanner/scanner.go index 278dd57..e53c26a 100644 --- a/tests/scanner/scanner.go +++ b/tests/scanner/scanner.go @@ -1,5 +1,5 @@ // Copyright (c) Microsoft Corporation. -// Licensed under the Apache License, Version 2.0. +// Licensed under the MIT License. package scanner import (