diff --git a/Makefile b/Makefile index 890fa0c..5b36b89 100644 --- a/Makefile +++ b/Makefile @@ -85,6 +85,11 @@ swag: ## Generates the swagger documentation of the p2p server. @echo "+ $@" cd $(ROOT_DIR)/internal/handlers; swag init --ot go,yaml -o $(ROOT_DIR)/api -g ./root.go +.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"' {} \; + define HEADER _____ _ diff --git a/api/docs.go b/api/docs.go index 4c571f4..0543062 100644 --- a/api/docs.go +++ b/api/docs.go @@ -1,3 +1,5 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the Apache License, Version 2.0. // Package api Code generated by swaggo/swag. DO NOT EDIT package api diff --git a/build/ci/scripts/install-deps.sh b/build/ci/scripts/install-deps.sh old mode 100644 new mode 100755 diff --git a/build/ci/scripts/kind.sh b/build/ci/scripts/kind.sh old mode 100644 new mode 100755 diff --git a/cmd/proxy/cmd.go b/cmd/proxy/cmd.go index 960e5cc..3cee54a 100644 --- a/cmd/proxy/cmd.go +++ b/cmd/proxy/cmd.go @@ -1,3 +1,5 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the Apache License, Version 2.0. package main type ServerCmd struct { diff --git a/cmd/proxy/main.go b/cmd/proxy/main.go index 79ff834..6e6ebab 100644 --- a/cmd/proxy/main.go +++ b/cmd/proxy/main.go @@ -1,3 +1,5 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the Apache License, Version 2.0. package main import ( diff --git a/internal/cache/syncmap.go b/internal/cache/syncmap.go index bc1596d..097c289 100644 --- a/internal/cache/syncmap.go +++ b/internal/cache/syncmap.go @@ -1,3 +1,5 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the Apache License, Version 2.0. package cache import ( diff --git a/internal/cache/syncmap_test.go b/internal/cache/syncmap_test.go index a8f36dc..a19f497 100644 --- a/internal/cache/syncmap_test.go +++ b/internal/cache/syncmap_test.go @@ -1,3 +1,5 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the Apache License, Version 2.0. package cache import ( diff --git a/internal/containerd/mirror.go b/internal/containerd/mirror.go index 4275415..19e154d 100644 --- a/internal/containerd/mirror.go +++ b/internal/containerd/mirror.go @@ -1,3 +1,5 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the Apache License, Version 2.0. package containerd import ( diff --git a/internal/containerd/mirror_test.go b/internal/containerd/mirror_test.go index 2cb66a8..d07cb92 100644 --- a/internal/containerd/mirror_test.go +++ b/internal/containerd/mirror_test.go @@ -1,3 +1,5 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the Apache License, Version 2.0. package containerd import ( diff --git a/internal/context/context.go b/internal/context/context.go index ec99c80..c51826e 100644 --- a/internal/context/context.go +++ b/internal/context/context.go @@ -1,3 +1,5 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the Apache License, Version 2.0. package context import ( diff --git a/internal/context/context_test.go b/internal/context/context_test.go index f6eb7b8..2096153 100644 --- a/internal/context/context_test.go +++ b/internal/context/context_test.go @@ -1,3 +1,5 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the Apache License, Version 2.0. package context import ( diff --git a/internal/files/cache/cache.go b/internal/files/cache/cache.go index b60ea4e..bae0e04 100644 --- a/internal/files/cache/cache.go +++ b/internal/files/cache/cache.go @@ -1,3 +1,5 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the Apache License, Version 2.0. package cache import ( diff --git a/internal/files/cache/cache_test.go b/internal/files/cache/cache_test.go index e4d5788..24122cc 100644 --- a/internal/files/cache/cache_test.go +++ b/internal/files/cache/cache_test.go @@ -1,3 +1,5 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the Apache License, Version 2.0. package cache import ( diff --git a/internal/files/cache/interface.go b/internal/files/cache/interface.go index 0cbcfe7..134cabb 100644 --- a/internal/files/cache/interface.go +++ b/internal/files/cache/interface.go @@ -1,3 +1,5 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the Apache License, Version 2.0. package cache // Cache describes the cache of files. diff --git a/internal/files/cache/item.go b/internal/files/cache/item.go index 4666d8d..d511192 100644 --- a/internal/files/cache/item.go +++ b/internal/files/cache/item.go @@ -1,3 +1,5 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the Apache License, Version 2.0. package cache import ( diff --git a/internal/files/cache/item_test.go b/internal/files/cache/item_test.go index 7c54b04..1695981 100644 --- a/internal/files/cache/item_test.go +++ b/internal/files/cache/item_test.go @@ -1,3 +1,5 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the Apache License, Version 2.0. package cache import ( diff --git a/internal/files/cache/main_test.go b/internal/files/cache/main_test.go index 699db89..80c01de 100644 --- a/internal/files/cache/main_test.go +++ b/internal/files/cache/main_test.go @@ -1,3 +1,5 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the Apache License, Version 2.0. package cache import ( diff --git a/internal/files/files.go b/internal/files/files.go index db7c48b..5369048 100644 --- a/internal/files/files.go +++ b/internal/files/files.go @@ -1,3 +1,5 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the Apache License, Version 2.0. package files import ( diff --git a/internal/files/files_test.go b/internal/files/files_test.go index 730d843..c75c4bd 100644 --- a/internal/files/files_test.go +++ b/internal/files/files_test.go @@ -1,3 +1,5 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the Apache License, Version 2.0. package files import ( diff --git a/internal/files/store/file.go b/internal/files/store/file.go index 341bbb3..e190557 100644 --- a/internal/files/store/file.go +++ b/internal/files/store/file.go @@ -1,3 +1,5 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the Apache License, Version 2.0. package store import ( diff --git a/internal/files/store/file_test.go b/internal/files/store/file_test.go index 97f057f..28abf4c 100644 --- a/internal/files/store/file_test.go +++ b/internal/files/store/file_test.go @@ -1,3 +1,5 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the Apache License, Version 2.0. package store import ( diff --git a/internal/files/store/interface.go b/internal/files/store/interface.go index 10602e6..a2fb26e 100644 --- a/internal/files/store/interface.go +++ b/internal/files/store/interface.go @@ -1,3 +1,5 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the Apache License, Version 2.0. package store import ( diff --git a/internal/files/store/main_test.go b/internal/files/store/main_test.go index a3c2cc4..ea66294 100644 --- a/internal/files/store/main_test.go +++ b/internal/files/store/main_test.go @@ -1,3 +1,5 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the Apache License, Version 2.0. package store import ( diff --git a/internal/files/store/mockstore.go b/internal/files/store/mockstore.go index 2354caa..d101ea4 100644 --- a/internal/files/store/mockstore.go +++ b/internal/files/store/mockstore.go @@ -1,3 +1,5 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the Apache License, Version 2.0. package store import ( diff --git a/internal/files/store/store.go b/internal/files/store/store.go index 021ec99..1bedb15 100644 --- a/internal/files/store/store.go +++ b/internal/files/store/store.go @@ -1,3 +1,5 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the Apache License, Version 2.0. package store import ( diff --git a/internal/files/store/store_test.go b/internal/files/store/store_test.go index de69b29..d306a65 100644 --- a/internal/files/store/store_test.go +++ b/internal/files/store/store_test.go @@ -1,3 +1,5 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the Apache License, Version 2.0. package store import ( diff --git a/internal/handlers/files/handler.go b/internal/handlers/files/handler.go index aff1d02..d15d4bd 100644 --- a/internal/handlers/files/handler.go +++ b/internal/handlers/files/handler.go @@ -1,3 +1,5 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the Apache License, Version 2.0. package handlers import ( diff --git a/internal/handlers/files/handler_test.go b/internal/handlers/files/handler_test.go index 5c2e8ab..397ca9d 100644 --- a/internal/handlers/files/handler_test.go +++ b/internal/handlers/files/handler_test.go @@ -1,3 +1,5 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the Apache License, Version 2.0. package handlers import ( diff --git a/internal/handlers/files/main_test.go b/internal/handlers/files/main_test.go index 925cc4b..f930ace 100644 --- a/internal/handlers/files/main_test.go +++ b/internal/handlers/files/main_test.go @@ -1,3 +1,5 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the Apache License, Version 2.0. package handlers import ( diff --git a/internal/handlers/root.go b/internal/handlers/root.go index b2e303e..01c670d 100644 --- a/internal/handlers/root.go +++ b/internal/handlers/root.go @@ -1,3 +1,5 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the Apache License, Version 2.0. package handlers import ( diff --git a/internal/handlers/v2/handler.go b/internal/handlers/v2/handler.go index 8a35f56..42b2106 100644 --- a/internal/handlers/v2/handler.go +++ b/internal/handlers/v2/handler.go @@ -1,3 +1,5 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the Apache License, Version 2.0. package handlers import ( diff --git a/internal/k8s/events/events.go b/internal/k8s/events/events.go index ba1e74b..3f1d254 100644 --- a/internal/k8s/events/events.go +++ b/internal/k8s/events/events.go @@ -1,3 +1,5 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the Apache License, Version 2.0. package events import ( diff --git a/internal/k8s/events/events_test.go b/internal/k8s/events/events_test.go index 4905f00..edd6dec 100644 --- a/internal/k8s/events/events_test.go +++ b/internal/k8s/events/events_test.go @@ -1,3 +1,5 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the Apache License, Version 2.0. package events import ( diff --git a/internal/k8s/events/interface.go b/internal/k8s/events/interface.go index 61b1c33..8bf3b6d 100644 --- a/internal/k8s/events/interface.go +++ b/internal/k8s/events/interface.go @@ -1,3 +1,5 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the Apache License, Version 2.0. package events // EventRecorder can be used to record various event. diff --git a/internal/math/math.go b/internal/math/math.go index 186293e..e4ab6f7 100644 --- a/internal/math/math.go +++ b/internal/math/math.go @@ -1,3 +1,5 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the Apache License, Version 2.0. package math import ( diff --git a/internal/math/math_test.go b/internal/math/math_test.go index e3da86c..1201a27 100644 --- a/internal/math/math_test.go +++ b/internal/math/math_test.go @@ -1,3 +1,5 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the Apache License, Version 2.0. package math import "testing" diff --git a/internal/math/reverse.go b/internal/math/reverse.go index 61171f8..47bd06e 100644 --- a/internal/math/reverse.go +++ b/internal/math/reverse.go @@ -1,3 +1,5 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the Apache License, Version 2.0. package math import "sort" diff --git a/internal/math/reverse_test.go b/internal/math/reverse_test.go index 8c1f79c..79d62c4 100644 --- a/internal/math/reverse_test.go +++ b/internal/math/reverse_test.go @@ -1,3 +1,5 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the Apache License, Version 2.0. package math import ( diff --git a/internal/metrics/interface.go b/internal/metrics/interface.go index cbf295c..2cdaecb 100644 --- a/internal/metrics/interface.go +++ b/internal/metrics/interface.go @@ -1,3 +1,5 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the Apache License, Version 2.0. 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 bc3e2d0..a44471b 100644 --- a/internal/metrics/main_test.go +++ b/internal/metrics/main_test.go @@ -1,3 +1,5 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the Apache License, Version 2.0. package metrics import ( diff --git a/internal/metrics/memory.go b/internal/metrics/memory.go index adfab58..7754f82 100644 --- a/internal/metrics/memory.go +++ b/internal/metrics/memory.go @@ -1,3 +1,5 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the Apache License, Version 2.0. package metrics import ( diff --git a/internal/metrics/memory_test.go b/internal/metrics/memory_test.go index dd908a3..64d47cf 100644 --- a/internal/metrics/memory_test.go +++ b/internal/metrics/memory_test.go @@ -1,3 +1,5 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the Apache License, Version 2.0. package metrics import ( diff --git a/internal/oci/distribution/v2.go b/internal/oci/distribution/v2.go index 9081e9d..250a5ad 100644 --- a/internal/oci/distribution/v2.go +++ b/internal/oci/distribution/v2.go @@ -1,3 +1,5 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the Apache License, Version 2.0. package distribution import ( diff --git a/internal/oci/distribution/v2_test.go b/internal/oci/distribution/v2_test.go index 78c20da..056dca3 100644 --- a/internal/oci/distribution/v2_test.go +++ b/internal/oci/distribution/v2_test.go @@ -1,3 +1,5 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the Apache License, Version 2.0. package distribution import ( diff --git a/internal/oci/mirror.go b/internal/oci/mirror.go index a76fb5b..f7dab74 100644 --- a/internal/oci/mirror.go +++ b/internal/oci/mirror.go @@ -1,3 +1,5 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the Apache License, Version 2.0. package oci import ( diff --git a/internal/oci/mirror_test.go b/internal/oci/mirror_test.go index 5bfc791..c9cc92f 100644 --- a/internal/oci/mirror_test.go +++ b/internal/oci/mirror_test.go @@ -1,3 +1,5 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the Apache License, Version 2.0. package oci import ( diff --git a/internal/oci/registry.go b/internal/oci/registry.go index 4deac40..01090ff 100644 --- a/internal/oci/registry.go +++ b/internal/oci/registry.go @@ -1,3 +1,5 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the Apache License, Version 2.0. package oci import ( diff --git a/internal/oci/store/tests/mock.go b/internal/oci/store/tests/mock.go index c291b8a..fe0681c 100644 --- a/internal/oci/store/tests/mock.go +++ b/internal/oci/store/tests/mock.go @@ -1,3 +1,5 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the Apache License, Version 2.0. package tests import ( diff --git a/internal/remote/interface.go b/internal/remote/interface.go index 585d010..b37dac6 100644 --- a/internal/remote/interface.go +++ b/internal/remote/interface.go @@ -1,3 +1,5 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the Apache License, Version 2.0. package remote import ( diff --git a/internal/remote/reader.go b/internal/remote/reader.go index 02cf2aa..f91a6a4 100644 --- a/internal/remote/reader.go +++ b/internal/remote/reader.go @@ -1,3 +1,5 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the Apache License, Version 2.0. package remote import ( diff --git a/internal/remote/reader_test.go b/internal/remote/reader_test.go index a69fa14..53cf858 100644 --- a/internal/remote/reader_test.go +++ b/internal/remote/reader_test.go @@ -1,3 +1,5 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the Apache License, Version 2.0. package remote import ( diff --git a/internal/remote/tests/mockreader.go b/internal/remote/tests/mockreader.go index 92fee1c..5b67eba 100644 --- a/internal/remote/tests/mockreader.go +++ b/internal/remote/tests/mockreader.go @@ -1,3 +1,5 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the Apache License, Version 2.0. package tests import ( diff --git a/internal/routing/interface.go b/internal/routing/interface.go index 2cde9a1..7363708 100644 --- a/internal/routing/interface.go +++ b/internal/routing/interface.go @@ -1,3 +1,5 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the Apache License, Version 2.0. package routing import ( diff --git a/internal/routing/router.go b/internal/routing/router.go index 6aeb63f..b845f3f 100644 --- a/internal/routing/router.go +++ b/internal/routing/router.go @@ -1,3 +1,5 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the Apache License, Version 2.0. package routing import ( diff --git a/internal/routing/router_test.go b/internal/routing/router_test.go index 1d6a246..ba10e9f 100644 --- a/internal/routing/router_test.go +++ b/internal/routing/router_test.go @@ -1,3 +1,5 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the Apache License, Version 2.0. package routing import ( diff --git a/internal/routing/tests/mock.go b/internal/routing/tests/mock.go index 43f241f..79d0799 100644 --- a/internal/routing/tests/mock.go +++ b/internal/routing/tests/mock.go @@ -1,3 +1,5 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the Apache License, Version 2.0. package tests import ( diff --git a/internal/state/state.go b/internal/state/state.go index 0bfe776..dbe567f 100644 --- a/internal/state/state.go +++ b/internal/state/state.go @@ -1,3 +1,5 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the Apache License, Version 2.0. package state import ( diff --git a/internal/state/state_test.go b/internal/state/state_test.go index 438f8d5..6535dcb 100644 --- a/internal/state/state_test.go +++ b/internal/state/state_test.go @@ -1,3 +1,5 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the Apache License, Version 2.0. package state import ( diff --git a/pkg/containerd/reference.go b/pkg/containerd/reference.go index 53e4fce..70b63f8 100644 --- a/pkg/containerd/reference.go +++ b/pkg/containerd/reference.go @@ -1,3 +1,5 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the Apache License, Version 2.0. package containerd import ( diff --git a/pkg/containerd/reference_test.go b/pkg/containerd/reference_test.go index dd7ca3c..07b71ed 100644 --- a/pkg/containerd/reference_test.go +++ b/pkg/containerd/reference_test.go @@ -1,3 +1,5 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the Apache License, Version 2.0. package containerd import ( diff --git a/pkg/containerd/store.go b/pkg/containerd/store.go index 2f1a451..53a7eba 100644 --- a/pkg/containerd/store.go +++ b/pkg/containerd/store.go @@ -1,3 +1,5 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the Apache License, Version 2.0. package containerd import ( diff --git a/pkg/containerd/store_test.go b/pkg/containerd/store_test.go index 23930c8..f96d5eb 100644 --- a/pkg/containerd/store_test.go +++ b/pkg/containerd/store_test.go @@ -1,3 +1,5 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the Apache License, Version 2.0. package containerd import ( diff --git a/pkg/k8s/election/election.go b/pkg/k8s/election/election.go index 8a1edad..be696db 100644 --- a/pkg/k8s/election/election.go +++ b/pkg/k8s/election/election.go @@ -1,3 +1,5 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the Apache License, Version 2.0. package election import ( diff --git a/pkg/k8s/election/election_test.go b/pkg/k8s/election/election_test.go index 52d9129..fc0d2e1 100644 --- a/pkg/k8s/election/election_test.go +++ b/pkg/k8s/election/election_test.go @@ -1,3 +1,5 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the Apache License, Version 2.0. package election import ( diff --git a/pkg/k8s/k8s.go b/pkg/k8s/k8s.go index c1c04ed..9593b21 100644 --- a/pkg/k8s/k8s.go +++ b/pkg/k8s/k8s.go @@ -1,3 +1,5 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the Apache License, Version 2.0. package k8s import ( diff --git a/pkg/k8s/k8s_test.go b/pkg/k8s/k8s_test.go index 023d612..355bc5c 100644 --- a/pkg/k8s/k8s_test.go +++ b/pkg/k8s/k8s_test.go @@ -1,3 +1,5 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the Apache License, Version 2.0. package k8s import ( diff --git a/pkg/math/compare.go b/pkg/math/compare.go index 78889d3..f480296 100644 --- a/pkg/math/compare.go +++ b/pkg/math/compare.go @@ -1,3 +1,5 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the Apache License, Version 2.0. 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 b9e22c8..881293b 100644 --- a/pkg/math/compare_test.go +++ b/pkg/math/compare_test.go @@ -1,3 +1,5 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the Apache License, Version 2.0. package math import "testing" diff --git a/pkg/math/segments.go b/pkg/math/segments.go index 9f04735..3155f8e 100644 --- a/pkg/math/segments.go +++ b/pkg/math/segments.go @@ -1,3 +1,5 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the Apache License, Version 2.0. package math import "fmt" diff --git a/pkg/math/segments_test.go b/pkg/math/segments_test.go index f526617..267c8fa 100644 --- a/pkg/math/segments_test.go +++ b/pkg/math/segments_test.go @@ -1,3 +1,5 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the Apache License, Version 2.0. package math import "testing" diff --git a/pkg/mocks/contentstore.go b/pkg/mocks/contentstore.go index 75f9d89..e8a970f 100644 --- a/pkg/mocks/contentstore.go +++ b/pkg/mocks/contentstore.go @@ -1,3 +1,5 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the Apache License, Version 2.0. package mocks import ( diff --git a/pkg/mocks/eventservice.go b/pkg/mocks/eventservice.go index 4b50364..cbb1bfc 100644 --- a/pkg/mocks/eventservice.go +++ b/pkg/mocks/eventservice.go @@ -1,3 +1,5 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the Apache License, Version 2.0. package mocks import ( diff --git a/pkg/mocks/host.go b/pkg/mocks/host.go index 8cdd8d9..1463449 100644 --- a/pkg/mocks/host.go +++ b/pkg/mocks/host.go @@ -1,3 +1,5 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the Apache License, Version 2.0. package mocks import ( diff --git a/pkg/mocks/imagestore.go b/pkg/mocks/imagestore.go index 0aa0e67..a6a9985 100644 --- a/pkg/mocks/imagestore.go +++ b/pkg/mocks/imagestore.go @@ -1,3 +1,5 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the Apache License, Version 2.0. package mocks import ( diff --git a/pkg/mocks/peerstore.go b/pkg/mocks/peerstore.go index 7c6ca88..ae21590 100644 --- a/pkg/mocks/peerstore.go +++ b/pkg/mocks/peerstore.go @@ -1,3 +1,5 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the Apache License, Version 2.0. package mocks import ( diff --git a/pkg/peernet/network.go b/pkg/peernet/network.go index d2ec0bd..7fc03c8 100644 --- a/pkg/peernet/network.go +++ b/pkg/peernet/network.go @@ -1,3 +1,5 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the Apache License, Version 2.0. package peernet import ( diff --git a/pkg/peernet/network_test.go b/pkg/peernet/network_test.go index 7ff6fac..470b0ce 100644 --- a/pkg/peernet/network_test.go +++ b/pkg/peernet/network_test.go @@ -1,3 +1,5 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the Apache License, Version 2.0. package peernet import ( diff --git a/pkg/urlparser/azure.go b/pkg/urlparser/azure.go index 5aa1c2b..c4fef96 100644 --- a/pkg/urlparser/azure.go +++ b/pkg/urlparser/azure.go @@ -1,3 +1,5 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the Apache License, Version 2.0. package urlparser import ( diff --git a/pkg/urlparser/azure_test.go b/pkg/urlparser/azure_test.go index 58e281c..8a8e5a6 100644 --- a/pkg/urlparser/azure_test.go +++ b/pkg/urlparser/azure_test.go @@ -1,3 +1,5 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the Apache License, Version 2.0. package urlparser import ( diff --git a/pkg/urlparser/parser.go b/pkg/urlparser/parser.go index 089d878..6874e24 100644 --- a/pkg/urlparser/parser.go +++ b/pkg/urlparser/parser.go @@ -1,3 +1,5 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the Apache License, Version 2.0. // 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 9e8023f..d98512e 100644 --- a/pkg/urlparser/parser_test.go +++ b/pkg/urlparser/parser_test.go @@ -1,3 +1,5 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the Apache License, Version 2.0. package urlparser import ( diff --git a/scripts/coverage.sh b/scripts/coverage.sh old mode 100644 new mode 100755 diff --git a/tests/cmd/cmd.go b/tests/cmd/cmd.go index dae5ff1..4512f99 100644 --- a/tests/cmd/cmd.go +++ b/tests/cmd/cmd.go @@ -1,3 +1,5 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the Apache License, Version 2.0. package main type RandomCmd struct { diff --git a/tests/cmd/main.go b/tests/cmd/main.go index 846aae3..55ba88b 100644 --- a/tests/cmd/main.go +++ b/tests/cmd/main.go @@ -1,3 +1,5 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the Apache License, Version 2.0. package main import ( diff --git a/tests/random/random.go b/tests/random/random.go index 20691c0..f2e56da 100644 --- a/tests/random/random.go +++ b/tests/random/random.go @@ -1,3 +1,5 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the Apache License, Version 2.0. package random import ( diff --git a/tests/scanner/scanner.go b/tests/scanner/scanner.go index 9c74f75..278dd57 100644 --- a/tests/scanner/scanner.go +++ b/tests/scanner/scanner.go @@ -1,3 +1,5 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the Apache License, Version 2.0. package scanner import (