diff --git a/.conform.yaml b/.conform.yaml index f33d89592..83ad6fdfd 100644 --- a/.conform.yaml +++ b/.conform.yaml @@ -1,4 +1,9 @@ policies: +- type: commit + spec: + headerLength: 89 + dco: true + gpg: true - type: conventionalCommit spec: types: @@ -23,3 +28,8 @@ policies: - rootfs - tools - '*' +- type: license + spec: + includeSuffixes: + - .go + headerFile: LICENSE_HEADER diff --git a/LICENSE_HEADER b/LICENSE_HEADER new file mode 100644 index 000000000..e0032240a --- /dev/null +++ b/LICENSE_HEADER @@ -0,0 +1,3 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ diff --git a/Makefile b/Makefile index 6cd4e2446..4d5f50720 100644 --- a/Makefile +++ b/Makefile @@ -9,7 +9,7 @@ export DOCKER_BUILDKIT := 1 all: enforce rootfs initramfs osd osctl trustd proxyd blockd udevd test installer docs enforce: - @conform enforce + @docker run --rm -it -v $(PWD):/src -w /src autonomy/conform:latest osd: @docker build \ diff --git a/go.sum b/go.sum index e3178e88f..cb988a428 100644 --- a/go.sum +++ b/go.sum @@ -10,6 +10,7 @@ github.com/containerd/cgroups v0.0.0-20180905221500-58556f5ad844 h1:W0F6ErEE8B84 github.com/containerd/cgroups v0.0.0-20180905221500-58556f5ad844/go.mod h1:X9rLEHIqSf/wfK8NsPqxJmeZgW4pcfzdXITDrUSJ6uI= github.com/containerd/containerd v1.2.1 h1:rG4/dK9V2qa5a9ly/E3CtG6/FBXfmSkDo8An3ea2Yt8= github.com/containerd/containerd v1.2.1/go.mod h1:bC6axHOhabU15QhwfG7w5PipXdVtMXFTttgp+kVtyUA= +github.com/containerd/containerd v1.2.2 h1:N3tAHxrX+byqfAsENdDWLSMtFD4thUxK7kFElUl+8z8= github.com/containerd/continuity v0.0.0-20181003075958-be9bd761db19 h1:HSgjWPBWohO3kHDPwCPUGSLqJjXCjA7ad5057beR2ZU= github.com/containerd/continuity v0.0.0-20181003075958-be9bd761db19/go.mod h1:GL3xCUCBDV3CZiTSEKksMWbLE66hEyuu9qyDOOqM47Y= github.com/containerd/cri v1.11.1 h1:mR8+eNW4zEcbWGTGEpmDd7GzMmK7IMxMSVAZ2aIDKA4= diff --git a/internal/app/blockd/internal/reg/reg.go b/internal/app/blockd/internal/reg/reg.go index 0d261fd69..4ba5cbfff 100644 --- a/internal/app/blockd/internal/reg/reg.go +++ b/internal/app/blockd/internal/reg/reg.go @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + package reg import ( diff --git a/internal/app/blockd/main.go b/internal/app/blockd/main.go index 57a759419..7bda1ef12 100644 --- a/internal/app/blockd/main.go +++ b/internal/app/blockd/main.go @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + package main import ( diff --git a/internal/app/init/internal/platform/baremetal/baremetal.go b/internal/app/init/internal/platform/baremetal/baremetal.go index 95c856e36..64f0dd8a0 100644 --- a/internal/app/init/internal/platform/baremetal/baremetal.go +++ b/internal/app/init/internal/platform/baremetal/baremetal.go @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + package baremetal import ( diff --git a/internal/app/init/internal/platform/baremetal/baremetal_test.go b/internal/app/init/internal/platform/baremetal/baremetal_test.go index 3f74fecf4..ddd2967ef 100644 --- a/internal/app/init/internal/platform/baremetal/baremetal_test.go +++ b/internal/app/init/internal/platform/baremetal/baremetal_test.go @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + package baremetal import ( diff --git a/internal/app/init/internal/platform/cloud/aws/aws.go b/internal/app/init/internal/platform/cloud/aws/aws.go index 30ee9957d..46886b2f7 100644 --- a/internal/app/init/internal/platform/cloud/aws/aws.go +++ b/internal/app/init/internal/platform/cloud/aws/aws.go @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + package aws import ( diff --git a/internal/app/init/internal/platform/cloud/vmware/vmware.go b/internal/app/init/internal/platform/cloud/vmware/vmware.go index ce2473d9a..adbfe1d1b 100644 --- a/internal/app/init/internal/platform/cloud/vmware/vmware.go +++ b/internal/app/init/internal/platform/cloud/vmware/vmware.go @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + package vmware import ( diff --git a/internal/app/init/internal/platform/platform.go b/internal/app/init/internal/platform/platform.go index 0d1037153..1b9e0716c 100644 --- a/internal/app/init/internal/platform/platform.go +++ b/internal/app/init/internal/platform/platform.go @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + package platform import ( diff --git a/internal/app/init/internal/rootfs/cni/cni.go b/internal/app/init/internal/rootfs/cni/cni.go index 0315be89c..2c62b5a15 100644 --- a/internal/app/init/internal/rootfs/cni/cni.go +++ b/internal/app/init/internal/rootfs/cni/cni.go @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + package cni import ( diff --git a/internal/app/init/internal/rootfs/etc/etc.go b/internal/app/init/internal/rootfs/etc/etc.go index ee4aa3c44..be75714dc 100644 --- a/internal/app/init/internal/rootfs/etc/etc.go +++ b/internal/app/init/internal/rootfs/etc/etc.go @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + package etc import ( diff --git a/internal/app/init/internal/rootfs/mount/mount.go b/internal/app/init/internal/rootfs/mount/mount.go index 8e4ccf88a..d12ae8c8c 100644 --- a/internal/app/init/internal/rootfs/mount/mount.go +++ b/internal/app/init/internal/rootfs/mount/mount.go @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + package mount import ( diff --git a/internal/app/init/internal/rootfs/proc/proc.go b/internal/app/init/internal/rootfs/proc/proc.go index d886cd443..46aee1527 100644 --- a/internal/app/init/internal/rootfs/proc/proc.go +++ b/internal/app/init/internal/rootfs/proc/proc.go @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + package proc import ( diff --git a/internal/app/init/internal/rootfs/rootfs.go b/internal/app/init/internal/rootfs/rootfs.go index 5bcab6cec..4fd3916be 100644 --- a/internal/app/init/internal/rootfs/rootfs.go +++ b/internal/app/init/internal/rootfs/rootfs.go @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + package rootfs import ( diff --git a/internal/app/init/internal/security/cis/cis.go b/internal/app/init/internal/security/cis/cis.go index 9de3924d4..09923841c 100644 --- a/internal/app/init/internal/security/cis/cis.go +++ b/internal/app/init/internal/security/cis/cis.go @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + package cis import ( @@ -11,7 +15,7 @@ import ( "github.com/autonomy/talos/internal/pkg/constants" - "k8s.io/api/core/v1" + v1 "k8s.io/api/core/v1" kubeadmapi "k8s.io/kubernetes/cmd/kubeadm/app/apis/kubeadm" ) diff --git a/internal/app/init/main.go b/internal/app/init/main.go index 2d1fa5d73..dffb8d9b7 100644 --- a/internal/app/init/main.go +++ b/internal/app/init/main.go @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + package main import ( diff --git a/internal/app/init/pkg/system/conditions/conditions.go b/internal/app/init/pkg/system/conditions/conditions.go index daf37647c..d5b82d479 100644 --- a/internal/app/init/pkg/system/conditions/conditions.go +++ b/internal/app/init/pkg/system/conditions/conditions.go @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + package conditions import ( diff --git a/internal/app/init/pkg/system/runner/containerd/containerd.go b/internal/app/init/pkg/system/runner/containerd/containerd.go index dfcaea0ef..901411ac7 100644 --- a/internal/app/init/pkg/system/runner/containerd/containerd.go +++ b/internal/app/init/pkg/system/runner/containerd/containerd.go @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + package containerd import ( diff --git a/internal/app/init/pkg/system/runner/process/log/log.go b/internal/app/init/pkg/system/runner/process/log/log.go index 7bc39dc44..ec8efb726 100644 --- a/internal/app/init/pkg/system/runner/process/log/log.go +++ b/internal/app/init/pkg/system/runner/process/log/log.go @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + package log import ( diff --git a/internal/app/init/pkg/system/runner/process/process.go b/internal/app/init/pkg/system/runner/process/process.go index 5f3c5f282..0b0ff2a74 100644 --- a/internal/app/init/pkg/system/runner/process/process.go +++ b/internal/app/init/pkg/system/runner/process/process.go @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + package process import ( diff --git a/internal/app/init/pkg/system/runner/runner.go b/internal/app/init/pkg/system/runner/runner.go index 395b24f58..39cb15917 100644 --- a/internal/app/init/pkg/system/runner/runner.go +++ b/internal/app/init/pkg/system/runner/runner.go @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + package runner import ( diff --git a/internal/app/init/pkg/system/services/blockd.go b/internal/app/init/pkg/system/services/blockd.go index 960ea33c7..9d18a1fa4 100644 --- a/internal/app/init/pkg/system/services/blockd.go +++ b/internal/app/init/pkg/system/services/blockd.go @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + // nolint: dupl,golint package services diff --git a/internal/app/init/pkg/system/services/containerd.go b/internal/app/init/pkg/system/services/containerd.go index b418a77e3..8262c600f 100644 --- a/internal/app/init/pkg/system/services/containerd.go +++ b/internal/app/init/pkg/system/services/containerd.go @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + package services import ( diff --git a/internal/app/init/pkg/system/services/kubeadm.go b/internal/app/init/pkg/system/services/kubeadm.go index 307eedf4c..2f8f29d3c 100644 --- a/internal/app/init/pkg/system/services/kubeadm.go +++ b/internal/app/init/pkg/system/services/kubeadm.go @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + package services import ( diff --git a/internal/app/init/pkg/system/services/kubelet.go b/internal/app/init/pkg/system/services/kubelet.go index 9d13f09a9..e279cfafd 100644 --- a/internal/app/init/pkg/system/services/kubelet.go +++ b/internal/app/init/pkg/system/services/kubelet.go @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + package services import ( diff --git a/internal/app/init/pkg/system/services/osd.go b/internal/app/init/pkg/system/services/osd.go index cf3fa64b3..3a1bf69cc 100644 --- a/internal/app/init/pkg/system/services/osd.go +++ b/internal/app/init/pkg/system/services/osd.go @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + // nolint: dupl,golint package services diff --git a/internal/app/init/pkg/system/services/proxyd.go b/internal/app/init/pkg/system/services/proxyd.go index a69a2b0d5..10ad61878 100644 --- a/internal/app/init/pkg/system/services/proxyd.go +++ b/internal/app/init/pkg/system/services/proxyd.go @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + // nolint: dupl,golint package services diff --git a/internal/app/init/pkg/system/services/trustd.go b/internal/app/init/pkg/system/services/trustd.go index 13ebb602d..945303c0f 100644 --- a/internal/app/init/pkg/system/services/trustd.go +++ b/internal/app/init/pkg/system/services/trustd.go @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + // nolint: dupl,golint package services diff --git a/internal/app/init/pkg/system/services/udevd.go b/internal/app/init/pkg/system/services/udevd.go index 68c51508f..beb91fe5c 100644 --- a/internal/app/init/pkg/system/services/udevd.go +++ b/internal/app/init/pkg/system/services/udevd.go @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + package services import ( diff --git a/internal/app/init/pkg/system/system.go b/internal/app/init/pkg/system/system.go index d6d07fe8e..9bf7b775c 100644 --- a/internal/app/init/pkg/system/system.go +++ b/internal/app/init/pkg/system/system.go @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + package system import ( diff --git a/internal/app/osctl/cmd/config.go b/internal/app/osctl/cmd/config.go index 07ea54b20..eac8c8f47 100644 --- a/internal/app/osctl/cmd/config.go +++ b/internal/app/osctl/cmd/config.go @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + package cmd import ( diff --git a/internal/app/osctl/cmd/dmesg.go b/internal/app/osctl/cmd/dmesg.go index dd5ecf008..5f3bd1bf1 100644 --- a/internal/app/osctl/cmd/dmesg.go +++ b/internal/app/osctl/cmd/dmesg.go @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + package cmd import ( diff --git a/internal/app/osctl/cmd/gen.go b/internal/app/osctl/cmd/gen.go index d8f5b00e4..c86915900 100644 --- a/internal/app/osctl/cmd/gen.go +++ b/internal/app/osctl/cmd/gen.go @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + package cmd import ( diff --git a/internal/app/osctl/cmd/inject.go b/internal/app/osctl/cmd/inject.go index 439b75596..bd9e49a16 100644 --- a/internal/app/osctl/cmd/inject.go +++ b/internal/app/osctl/cmd/inject.go @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + package cmd import ( diff --git a/internal/app/osctl/cmd/kubeconfig.go b/internal/app/osctl/cmd/kubeconfig.go index c5f9320ae..1c01340ee 100644 --- a/internal/app/osctl/cmd/kubeconfig.go +++ b/internal/app/osctl/cmd/kubeconfig.go @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + // nolint: dupl,golint package cmd diff --git a/internal/app/osctl/cmd/logs.go b/internal/app/osctl/cmd/logs.go index 29490ef54..8a6ebdac5 100644 --- a/internal/app/osctl/cmd/logs.go +++ b/internal/app/osctl/cmd/logs.go @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + package cmd import ( diff --git a/internal/app/osctl/cmd/ps.go b/internal/app/osctl/cmd/ps.go index d7772a1e7..73888d394 100644 --- a/internal/app/osctl/cmd/ps.go +++ b/internal/app/osctl/cmd/ps.go @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + // nolint: dupl,golint package cmd diff --git a/internal/app/osctl/cmd/reboot.go b/internal/app/osctl/cmd/reboot.go index 80e91a49d..abe633457 100644 --- a/internal/app/osctl/cmd/reboot.go +++ b/internal/app/osctl/cmd/reboot.go @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + // nolint: dupl,golint package cmd diff --git a/internal/app/osctl/cmd/reset.go b/internal/app/osctl/cmd/reset.go index 837eeefd3..15edd6ee7 100644 --- a/internal/app/osctl/cmd/reset.go +++ b/internal/app/osctl/cmd/reset.go @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + // nolint: dupl,golint package cmd diff --git a/internal/app/osctl/cmd/restart.go b/internal/app/osctl/cmd/restart.go index 02200bddc..9defb57d4 100644 --- a/internal/app/osctl/cmd/restart.go +++ b/internal/app/osctl/cmd/restart.go @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + // nolint: dupl,golint package cmd diff --git a/internal/app/osctl/cmd/root.go b/internal/app/osctl/cmd/root.go index e626992b6..4d2325418 100644 --- a/internal/app/osctl/cmd/root.go +++ b/internal/app/osctl/cmd/root.go @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + package cmd import ( diff --git a/internal/app/osctl/cmd/version.go b/internal/app/osctl/cmd/version.go index ecfa22a52..05a0d2e10 100644 --- a/internal/app/osctl/cmd/version.go +++ b/internal/app/osctl/cmd/version.go @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + package cmd import ( diff --git a/internal/app/osctl/internal/client/client.go b/internal/app/osctl/internal/client/client.go index bb00760f1..d10b73637 100644 --- a/internal/app/osctl/internal/client/client.go +++ b/internal/app/osctl/internal/client/client.go @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + package client import ( diff --git a/internal/app/osctl/internal/client/config/config.go b/internal/app/osctl/internal/client/config/config.go index b92c25665..129af6f62 100644 --- a/internal/app/osctl/internal/client/config/config.go +++ b/internal/app/osctl/internal/client/config/config.go @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + package config import ( diff --git a/internal/app/osctl/main.go b/internal/app/osctl/main.go index 166c1692d..3f1c7bac3 100644 --- a/internal/app/osctl/main.go +++ b/internal/app/osctl/main.go @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + package main import "github.com/autonomy/talos/internal/app/osctl/cmd" diff --git a/internal/app/osd/internal/reg/reg.go b/internal/app/osd/internal/reg/reg.go index b8344d141..9088e43a2 100644 --- a/internal/app/osd/internal/reg/reg.go +++ b/internal/app/osd/internal/reg/reg.go @@ -1,4 +1,6 @@ -//+build linux +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ package reg diff --git a/internal/app/osd/main.go b/internal/app/osd/main.go index d184c5c8c..d0478da07 100644 --- a/internal/app/osd/main.go +++ b/internal/app/osd/main.go @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + package main import ( diff --git a/internal/app/proxyd/internal/backend/backend.go b/internal/app/proxyd/internal/backend/backend.go index cdc7c67ee..ebe459e33 100644 --- a/internal/app/proxyd/internal/backend/backend.go +++ b/internal/app/proxyd/internal/backend/backend.go @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + package backend // Backend represents a backend. diff --git a/internal/app/proxyd/internal/frontend/frontend.go b/internal/app/proxyd/internal/frontend/frontend.go index 306476812..1522101df 100644 --- a/internal/app/proxyd/internal/frontend/frontend.go +++ b/internal/app/proxyd/internal/frontend/frontend.go @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + package frontend import ( @@ -13,7 +17,7 @@ import ( "github.com/autonomy/talos/internal/app/proxyd/internal/backend" pkgnet "github.com/autonomy/talos/internal/pkg/net" - "k8s.io/api/core/v1" + v1 "k8s.io/api/core/v1" "k8s.io/apimachinery/pkg/fields" "k8s.io/client-go/kubernetes" "k8s.io/client-go/tools/cache" diff --git a/internal/app/proxyd/main.go b/internal/app/proxyd/main.go index c29acd628..7ad6ade0e 100644 --- a/internal/app/proxyd/main.go +++ b/internal/app/proxyd/main.go @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + package main import ( diff --git a/internal/app/trustd/internal/reg/reg.go b/internal/app/trustd/internal/reg/reg.go index c74f8d4cf..a317bfe2e 100644 --- a/internal/app/trustd/internal/reg/reg.go +++ b/internal/app/trustd/internal/reg/reg.go @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + package reg import ( diff --git a/internal/app/trustd/main.go b/internal/app/trustd/main.go index 4dbf9216f..fd0641651 100644 --- a/internal/app/trustd/main.go +++ b/internal/app/trustd/main.go @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + package main import ( diff --git a/internal/app/udevd/internal/drivers/scsi/scsi.go b/internal/app/udevd/internal/drivers/scsi/scsi.go index 67efb79cf..d5dda2f11 100644 --- a/internal/app/udevd/internal/drivers/scsi/scsi.go +++ b/internal/app/udevd/internal/drivers/scsi/scsi.go @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + // Package scsi provices a library for working with version 3 SCSI generic // drivers. package scsi diff --git a/internal/app/udevd/internal/uevent/uevent.go b/internal/app/udevd/internal/uevent/uevent.go index 077e7b243..0361349f2 100644 --- a/internal/app/udevd/internal/uevent/uevent.go +++ b/internal/app/udevd/internal/uevent/uevent.go @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + // Package uevent is a library for working the the kernel userspace events. package uevent diff --git a/internal/app/udevd/main.go b/internal/app/udevd/main.go index f20dfa563..25cee20df 100644 --- a/internal/app/udevd/main.go +++ b/internal/app/udevd/main.go @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + // Package udevd is a library for working with uevent messages from the netlink // socket. package main diff --git a/internal/pkg/blockdevice/blockdevice.go b/internal/pkg/blockdevice/blockdevice.go index 2922ab248..660186df3 100644 --- a/internal/pkg/blockdevice/blockdevice.go +++ b/internal/pkg/blockdevice/blockdevice.go @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + // Package blockdevice provides a library for working with block devices. package blockdevice diff --git a/internal/pkg/blockdevice/filesystem/fs.go b/internal/pkg/blockdevice/filesystem/fs.go index 1fed008e2..ac6f1ec23 100644 --- a/internal/pkg/blockdevice/filesystem/fs.go +++ b/internal/pkg/blockdevice/filesystem/fs.go @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + package filesystem // SuperBlocker describes the requirements for file system super blocks. diff --git a/internal/pkg/blockdevice/filesystem/iso9660/iso9660.go b/internal/pkg/blockdevice/filesystem/iso9660/iso9660.go index f23a9f7f7..ecb31789a 100644 --- a/internal/pkg/blockdevice/filesystem/iso9660/iso9660.go +++ b/internal/pkg/blockdevice/filesystem/iso9660/iso9660.go @@ -1 +1,5 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + package iso9660 diff --git a/internal/pkg/blockdevice/filesystem/iso9660/options.go b/internal/pkg/blockdevice/filesystem/iso9660/options.go index 435ab7293..b2205a3b5 100644 --- a/internal/pkg/blockdevice/filesystem/iso9660/options.go +++ b/internal/pkg/blockdevice/filesystem/iso9660/options.go @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + package iso9660 // Options is the functional options struct. diff --git a/internal/pkg/blockdevice/filesystem/iso9660/superblock.go b/internal/pkg/blockdevice/filesystem/iso9660/superblock.go index 0030d0736..d1a8cf2b0 100644 --- a/internal/pkg/blockdevice/filesystem/iso9660/superblock.go +++ b/internal/pkg/blockdevice/filesystem/iso9660/superblock.go @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + package iso9660 import "bytes" diff --git a/internal/pkg/blockdevice/filesystem/vfat/options.go b/internal/pkg/blockdevice/filesystem/vfat/options.go index e73ba1b1d..ded889d4e 100644 --- a/internal/pkg/blockdevice/filesystem/vfat/options.go +++ b/internal/pkg/blockdevice/filesystem/vfat/options.go @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + package vfat // Options is the functional options struct. diff --git a/internal/pkg/blockdevice/filesystem/vfat/superblock.go b/internal/pkg/blockdevice/filesystem/vfat/superblock.go index 1859e2b95..22425c77c 100644 --- a/internal/pkg/blockdevice/filesystem/vfat/superblock.go +++ b/internal/pkg/blockdevice/filesystem/vfat/superblock.go @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + package vfat import ( diff --git a/internal/pkg/blockdevice/filesystem/vfat/vfat.go b/internal/pkg/blockdevice/filesystem/vfat/vfat.go index bf5117b34..a832b6267 100644 --- a/internal/pkg/blockdevice/filesystem/vfat/vfat.go +++ b/internal/pkg/blockdevice/filesystem/vfat/vfat.go @@ -1 +1,5 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + package vfat diff --git a/internal/pkg/blockdevice/filesystem/xfs/options.go b/internal/pkg/blockdevice/filesystem/xfs/options.go index ccf6fbf51..61eab0235 100644 --- a/internal/pkg/blockdevice/filesystem/xfs/options.go +++ b/internal/pkg/blockdevice/filesystem/xfs/options.go @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + package xfs // Options is the functional options struct. diff --git a/internal/pkg/blockdevice/filesystem/xfs/superblock.go b/internal/pkg/blockdevice/filesystem/xfs/superblock.go index 8d524a224..0f2784a68 100644 --- a/internal/pkg/blockdevice/filesystem/xfs/superblock.go +++ b/internal/pkg/blockdevice/filesystem/xfs/superblock.go @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + package xfs const ( diff --git a/internal/pkg/blockdevice/filesystem/xfs/xfs.go b/internal/pkg/blockdevice/filesystem/xfs/xfs.go index d055a6327..88af1e132 100644 --- a/internal/pkg/blockdevice/filesystem/xfs/xfs.go +++ b/internal/pkg/blockdevice/filesystem/xfs/xfs.go @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + // Package xfs provides an interface to xfsprogs. package xfs diff --git a/internal/pkg/blockdevice/lba/lba.go b/internal/pkg/blockdevice/lba/lba.go index 2e47985bc..097989b9b 100644 --- a/internal/pkg/blockdevice/lba/lba.go +++ b/internal/pkg/blockdevice/lba/lba.go @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + // Package lba provides a library for working with Logical Block Addresses. package lba diff --git a/internal/pkg/blockdevice/options.go b/internal/pkg/blockdevice/options.go index 3a0cbc214..412e0bb5a 100644 --- a/internal/pkg/blockdevice/options.go +++ b/internal/pkg/blockdevice/options.go @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + package blockdevice // Options is the functional options struct. diff --git a/internal/pkg/blockdevice/probe/probe.go b/internal/pkg/blockdevice/probe/probe.go index 6b4866c9a..c53b15e9e 100644 --- a/internal/pkg/blockdevice/probe/probe.go +++ b/internal/pkg/blockdevice/probe/probe.go @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + package probe import ( diff --git a/internal/pkg/blockdevice/table/gpt/gpt.go b/internal/pkg/blockdevice/table/gpt/gpt.go index 750ec0412..0b75519c1 100644 --- a/internal/pkg/blockdevice/table/gpt/gpt.go +++ b/internal/pkg/blockdevice/table/gpt/gpt.go @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + // Package gpt provides a library for working with GPT partitions. package gpt diff --git a/internal/pkg/blockdevice/table/gpt/header/header.go b/internal/pkg/blockdevice/table/gpt/header/header.go index c0ff7178c..9711840cb 100644 --- a/internal/pkg/blockdevice/table/gpt/header/header.go +++ b/internal/pkg/blockdevice/table/gpt/header/header.go @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + // Package header provides a library for working with GPT headers. package header diff --git a/internal/pkg/blockdevice/table/gpt/header/options.go b/internal/pkg/blockdevice/table/gpt/header/options.go index 752866deb..da88a7721 100644 --- a/internal/pkg/blockdevice/table/gpt/header/options.go +++ b/internal/pkg/blockdevice/table/gpt/header/options.go @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + package header // Options is the functional options struct. diff --git a/internal/pkg/blockdevice/table/gpt/options.go b/internal/pkg/blockdevice/table/gpt/options.go index be4464976..26d56977c 100644 --- a/internal/pkg/blockdevice/table/gpt/options.go +++ b/internal/pkg/blockdevice/table/gpt/options.go @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + package gpt // Options is the functional options struct. diff --git a/internal/pkg/blockdevice/table/gpt/partition/options.go b/internal/pkg/blockdevice/table/gpt/partition/options.go index 031b49001..e18f85461 100644 --- a/internal/pkg/blockdevice/table/gpt/partition/options.go +++ b/internal/pkg/blockdevice/table/gpt/partition/options.go @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + package partition import ( diff --git a/internal/pkg/blockdevice/table/gpt/partition/partition.go b/internal/pkg/blockdevice/table/gpt/partition/partition.go index 491c9f608..28d1563c1 100644 --- a/internal/pkg/blockdevice/table/gpt/partition/partition.go +++ b/internal/pkg/blockdevice/table/gpt/partition/partition.go @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + // Package partition provides a library for working with GPT partitions. package partition diff --git a/internal/pkg/blockdevice/table/table.go b/internal/pkg/blockdevice/table/table.go index 2c313e064..3da5e8c90 100644 --- a/internal/pkg/blockdevice/table/table.go +++ b/internal/pkg/blockdevice/table/table.go @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + // Package table provides a library for working with block device partition tables. package table diff --git a/internal/pkg/blockdevice/util/util.go b/internal/pkg/blockdevice/util/util.go index 8c2a21e5d..e16ceec33 100644 --- a/internal/pkg/blockdevice/util/util.go +++ b/internal/pkg/blockdevice/util/util.go @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + package util import ( diff --git a/internal/pkg/blockdevice/util/util_test.go b/internal/pkg/blockdevice/util/util_test.go index dbabc1e83..a6f20fa27 100644 --- a/internal/pkg/blockdevice/util/util_test.go +++ b/internal/pkg/blockdevice/util/util_test.go @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + //nolint: scopelint package util diff --git a/internal/pkg/chunker/chunker.go b/internal/pkg/chunker/chunker.go index 790e7c253..c2e05dfe6 100644 --- a/internal/pkg/chunker/chunker.go +++ b/internal/pkg/chunker/chunker.go @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + package chunker import ( diff --git a/internal/pkg/chunker/file/file.go b/internal/pkg/chunker/file/file.go index fa0d6bc90..78daefe5c 100644 --- a/internal/pkg/chunker/file/file.go +++ b/internal/pkg/chunker/file/file.go @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + package file import ( diff --git a/internal/pkg/chunker/stream/stream.go b/internal/pkg/chunker/stream/stream.go index d31d05624..38ec5f8f1 100644 --- a/internal/pkg/chunker/stream/stream.go +++ b/internal/pkg/chunker/stream/stream.go @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + package stream import ( diff --git a/internal/pkg/constants/constants.go b/internal/pkg/constants/constants.go index 1bbe359ed..4302c0166 100644 --- a/internal/pkg/constants/constants.go +++ b/internal/pkg/constants/constants.go @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + package constants const ( diff --git a/internal/pkg/crypto/x509/x509.go b/internal/pkg/crypto/x509/x509.go index bd841af26..f962db3d0 100644 --- a/internal/pkg/crypto/x509/x509.go +++ b/internal/pkg/crypto/x509/x509.go @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + package x509 import ( diff --git a/internal/pkg/grpc/factory/factory.go b/internal/pkg/grpc/factory/factory.go index a7b2d6054..84d4ec2f5 100644 --- a/internal/pkg/grpc/factory/factory.go +++ b/internal/pkg/grpc/factory/factory.go @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + package factory import ( diff --git a/internal/pkg/grpc/gen/gen.go b/internal/pkg/grpc/gen/gen.go index f9dee1637..17f7e4285 100644 --- a/internal/pkg/grpc/gen/gen.go +++ b/internal/pkg/grpc/gen/gen.go @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + package gen import ( diff --git a/internal/pkg/grpc/middleware/auth/basic/basic.go b/internal/pkg/grpc/middleware/auth/basic/basic.go index 8c971e0c8..ad9d219e9 100644 --- a/internal/pkg/grpc/middleware/auth/basic/basic.go +++ b/internal/pkg/grpc/middleware/auth/basic/basic.go @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + package basic import ( diff --git a/internal/pkg/grpc/middleware/log/log.go b/internal/pkg/grpc/middleware/log/log.go index 7330d5405..c4539f00c 100644 --- a/internal/pkg/grpc/middleware/log/log.go +++ b/internal/pkg/grpc/middleware/log/log.go @@ -1 +1,5 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + package log diff --git a/internal/pkg/grpc/tls/tls.go b/internal/pkg/grpc/tls/tls.go index 5d45838e9..829fe22de 100644 --- a/internal/pkg/grpc/tls/tls.go +++ b/internal/pkg/grpc/tls/tls.go @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + package tls import ( diff --git a/internal/pkg/kernel/kernel.go b/internal/pkg/kernel/kernel.go index 0275e1d4f..deb086bc9 100644 --- a/internal/pkg/kernel/kernel.go +++ b/internal/pkg/kernel/kernel.go @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + package kernel import ( diff --git a/internal/pkg/mount/cgroups/cgroups.go b/internal/pkg/mount/cgroups/cgroups.go index beeb08b4f..1d1cf699d 100644 --- a/internal/pkg/mount/cgroups/cgroups.go +++ b/internal/pkg/mount/cgroups/cgroups.go @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + package cgroups import ( diff --git a/internal/pkg/mount/iter.go b/internal/pkg/mount/iter.go index 15c12291d..101ba159c 100644 --- a/internal/pkg/mount/iter.go +++ b/internal/pkg/mount/iter.go @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + package mount // PointsIterator represents an iteratable group of mount points. diff --git a/internal/pkg/mount/mount.go b/internal/pkg/mount/mount.go index fb78994e4..68ca5c19e 100644 --- a/internal/pkg/mount/mount.go +++ b/internal/pkg/mount/mount.go @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + package mount import ( diff --git a/internal/pkg/mount/options.go b/internal/pkg/mount/options.go index 4cfeb5d3e..e7ac7b85a 100644 --- a/internal/pkg/mount/options.go +++ b/internal/pkg/mount/options.go @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + package mount // Options is the functional options struct. diff --git a/internal/pkg/net/net.go b/internal/pkg/net/net.go index d160769e3..e4a7eb93d 100644 --- a/internal/pkg/net/net.go +++ b/internal/pkg/net/net.go @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + package net import ( diff --git a/internal/pkg/serde/serde.go b/internal/pkg/serde/serde.go index b59609308..6a43848b3 100644 --- a/internal/pkg/serde/serde.go +++ b/internal/pkg/serde/serde.go @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + package serde import ( diff --git a/internal/pkg/userdata/userdata.go b/internal/pkg/userdata/userdata.go index 94e51c104..8bac175fe 100644 --- a/internal/pkg/userdata/userdata.go +++ b/internal/pkg/userdata/userdata.go @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + package userdata import ( diff --git a/internal/pkg/userdata/userdata_test.go b/internal/pkg/userdata/userdata_test.go index fe342538f..9e605dbc6 100644 --- a/internal/pkg/userdata/userdata_test.go +++ b/internal/pkg/userdata/userdata_test.go @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + package userdata import ( diff --git a/internal/pkg/version/version.go b/internal/pkg/version/version.go index 2188c6376..be8eb7f88 100644 --- a/internal/pkg/version/version.go +++ b/internal/pkg/version/version.go @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + package version import (