From 4b2137c2faa7375ebf09b56ac6f32ffbbf964576 Mon Sep 17 00:00:00 2001 From: Ronald Date: Tue, 28 Mar 2023 21:12:41 +0100 Subject: [PATCH] Add copyright headers for acl, api and bench folders (#16706) * copyright headers for agent folder * Ignore test data files * fix proto files and remove headers in agent/uiserver folder * ignore deep-copy files * copyright headers for agent folder * fix merge conflicts * copyright headers for agent folder * Ignore test data files * fix proto files * ignore agent/uiserver folder for now * copyright headers for agent folder * Add copyright headers for acl, api and bench folders --- .golangci.yml | 3 +++ acl/MockAuthorizer.go | 3 +++ acl/acl.go | 3 +++ acl/acl_oss.go | 3 +++ acl/acl_test.go | 3 +++ acl/authorizer.go | 3 +++ acl/authorizer_oss.go | 3 +++ acl/authorizer_test.go | 3 +++ acl/chained_authorizer.go | 3 +++ acl/chained_authorizer_test.go | 3 +++ acl/enterprisemeta_oss.go | 3 +++ acl/errors.go | 3 +++ acl/errors_oss.go | 3 +++ acl/errors_test.go | 3 +++ acl/policy.go | 3 +++ acl/policy_authorizer.go | 3 +++ acl/policy_authorizer_oss.go | 3 +++ acl/policy_authorizer_test.go | 3 +++ acl/policy_merger.go | 3 +++ acl/policy_merger_oss.go | 3 +++ acl/policy_oss.go | 3 +++ acl/policy_test.go | 3 +++ acl/resolver/result.go | 3 +++ acl/static_authorizer.go | 3 +++ acl/static_authorizer_test.go | 3 +++ acl/testing.go | 3 +++ acl/validation.go | 3 +++ api/acl.go | 3 +++ api/acl_test.go | 3 +++ api/agent.go | 3 +++ api/agent_test.go | 3 +++ api/api.go | 3 +++ api/api_test.go | 3 +++ api/catalog.go | 3 +++ api/catalog_test.go | 3 +++ api/config_entry.go | 3 +++ api/config_entry_discoverychain.go | 3 +++ api/config_entry_discoverychain_test.go | 3 +++ api/config_entry_exports.go | 3 +++ api/config_entry_exports_test.go | 3 +++ api/config_entry_gateways.go | 3 +++ api/config_entry_gateways_test.go | 3 +++ api/config_entry_inline_certificate.go | 3 +++ api/config_entry_inline_certificate_test.go | 3 +++ api/config_entry_intentions.go | 3 +++ api/config_entry_intentions_test.go | 3 +++ api/config_entry_mesh.go | 3 +++ api/config_entry_rate_limit_ip.go | 3 +++ api/config_entry_routes.go | 3 +++ api/config_entry_samness_group.go | 3 +++ api/config_entry_status.go | 3 +++ api/config_entry_test.go | 3 +++ api/connect.go | 3 +++ api/connect_ca.go | 3 +++ api/connect_ca_test.go | 3 +++ api/connect_intention.go | 3 +++ api/connect_intention_test.go | 3 +++ api/coordinate.go | 3 +++ api/coordinate_test.go | 3 +++ api/debug.go | 3 +++ api/debug_test.go | 3 +++ api/discovery_chain.go | 3 +++ api/discovery_chain_test.go | 3 +++ api/event.go | 3 +++ api/event_test.go | 3 +++ api/health.go | 3 +++ api/health_test.go | 3 +++ api/kv.go | 3 +++ api/kv_test.go | 3 +++ api/lock.go | 3 +++ api/lock_test.go | 3 +++ api/mock_api_test.go | 3 +++ api/namespace.go | 3 +++ api/namespace_test.go | 3 +++ api/operator.go | 3 +++ api/operator_area.go | 3 +++ api/operator_autopilot.go | 3 +++ api/operator_autopilot_test.go | 3 +++ api/operator_keyring.go | 3 +++ api/operator_keyring_test.go | 3 +++ api/operator_license.go | 3 +++ api/operator_raft.go | 3 +++ api/operator_raft_test.go | 3 +++ api/operator_segment.go | 3 +++ api/operator_usage.go | 3 +++ api/operator_usage_test.go | 3 +++ api/oss_test.go | 3 +++ api/partition.go | 3 +++ api/peering.go | 3 +++ api/peering_test.go | 3 +++ api/prepared_query.go | 3 +++ api/prepared_query_test.go | 3 +++ api/raw.go | 3 +++ api/semaphore.go | 3 +++ api/semaphore_test.go | 3 +++ api/session.go | 3 +++ api/session_test.go | 3 +++ api/snapshot.go | 3 +++ api/snapshot_test.go | 3 +++ api/status.go | 3 +++ api/status_test.go | 3 +++ api/txn.go | 3 +++ api/txn_test.go | 3 +++ api/watch/funcs.go | 3 +++ api/watch/funcs_test.go | 3 +++ api/watch/plan.go | 3 +++ api/watch/plan_test.go | 3 +++ api/watch/watch.go | 3 +++ api/watch/watch_test.go | 3 +++ 109 files changed, 327 insertions(+) diff --git a/.golangci.yml b/.golangci.yml index 60cfc50595..21f5d8228d 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + linters: disable-all: true enable: diff --git a/acl/MockAuthorizer.go b/acl/MockAuthorizer.go index 22be8c9b76..01afb5fea6 100644 --- a/acl/MockAuthorizer.go +++ b/acl/MockAuthorizer.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package acl import "github.com/stretchr/testify/mock" diff --git a/acl/acl.go b/acl/acl.go index c18ba0b078..fd6515d238 100644 --- a/acl/acl.go +++ b/acl/acl.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package acl const ( diff --git a/acl/acl_oss.go b/acl/acl_oss.go index 48f671ac7a..8c8b24eaa3 100644 --- a/acl/acl_oss.go +++ b/acl/acl_oss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/acl/acl_test.go b/acl/acl_test.go index 78f9320729..3734eb1572 100644 --- a/acl/acl_test.go +++ b/acl/acl_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package acl import ( diff --git a/acl/authorizer.go b/acl/authorizer.go index 1ecf9f2afe..f4515f11c9 100644 --- a/acl/authorizer.go +++ b/acl/authorizer.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package acl import ( diff --git a/acl/authorizer_oss.go b/acl/authorizer_oss.go index e448c84589..ed77d5e81d 100644 --- a/acl/authorizer_oss.go +++ b/acl/authorizer_oss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/acl/authorizer_test.go b/acl/authorizer_test.go index 27a7aef4b9..20774841ba 100644 --- a/acl/authorizer_test.go +++ b/acl/authorizer_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package acl import ( diff --git a/acl/chained_authorizer.go b/acl/chained_authorizer.go index cf81cc4b18..9a681187bc 100644 --- a/acl/chained_authorizer.go +++ b/acl/chained_authorizer.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package acl // ChainedAuthorizer can combine multiple Authorizers into one. diff --git a/acl/chained_authorizer_test.go b/acl/chained_authorizer_test.go index 284a1bd0e7..c17cbc907b 100644 --- a/acl/chained_authorizer_test.go +++ b/acl/chained_authorizer_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package acl import ( diff --git a/acl/enterprisemeta_oss.go b/acl/enterprisemeta_oss.go index 97d01c10a6..8b93fd6807 100644 --- a/acl/enterprisemeta_oss.go +++ b/acl/enterprisemeta_oss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/acl/errors.go b/acl/errors.go index 9938957c19..7302e0392f 100644 --- a/acl/errors.go +++ b/acl/errors.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package acl import ( diff --git a/acl/errors_oss.go b/acl/errors_oss.go index ef8dc993cd..8c2e84ac5c 100644 --- a/acl/errors_oss.go +++ b/acl/errors_oss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/acl/errors_test.go b/acl/errors_test.go index 963b2cbb16..4988f69599 100644 --- a/acl/errors_test.go +++ b/acl/errors_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package acl import ( diff --git a/acl/policy.go b/acl/policy.go index 51e53be95f..e26c887131 100644 --- a/acl/policy.go +++ b/acl/policy.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package acl import ( diff --git a/acl/policy_authorizer.go b/acl/policy_authorizer.go index 7de30d029a..e87635a036 100644 --- a/acl/policy_authorizer.go +++ b/acl/policy_authorizer.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package acl import ( diff --git a/acl/policy_authorizer_oss.go b/acl/policy_authorizer_oss.go index 4829048a86..89708a5be9 100644 --- a/acl/policy_authorizer_oss.go +++ b/acl/policy_authorizer_oss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/acl/policy_authorizer_test.go b/acl/policy_authorizer_test.go index 0f5f9ca8b6..1c69595278 100644 --- a/acl/policy_authorizer_test.go +++ b/acl/policy_authorizer_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package acl import ( diff --git a/acl/policy_merger.go b/acl/policy_merger.go index 3a617aa1e1..df065a9cb1 100644 --- a/acl/policy_merger.go +++ b/acl/policy_merger.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package acl type policyRulesMergeContext struct { diff --git a/acl/policy_merger_oss.go b/acl/policy_merger_oss.go index cff74c7325..b221f25875 100644 --- a/acl/policy_merger_oss.go +++ b/acl/policy_merger_oss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/acl/policy_oss.go b/acl/policy_oss.go index a5d6828b63..b33c324336 100644 --- a/acl/policy_oss.go +++ b/acl/policy_oss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/acl/policy_test.go b/acl/policy_test.go index 7095df286b..ac23e3c0df 100644 --- a/acl/policy_test.go +++ b/acl/policy_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package acl import ( diff --git a/acl/resolver/result.go b/acl/resolver/result.go index abf8505688..190d15eca5 100644 --- a/acl/resolver/result.go +++ b/acl/resolver/result.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package resolver import ( diff --git a/acl/static_authorizer.go b/acl/static_authorizer.go index 07cc845114..a667892569 100644 --- a/acl/static_authorizer.go +++ b/acl/static_authorizer.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package acl var ( diff --git a/acl/static_authorizer_test.go b/acl/static_authorizer_test.go index b9ed590933..e94ac44e50 100644 --- a/acl/static_authorizer_test.go +++ b/acl/static_authorizer_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package acl import ( diff --git a/acl/testing.go b/acl/testing.go index 283446d00c..1c67458b17 100644 --- a/acl/testing.go +++ b/acl/testing.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package acl import ( diff --git a/acl/validation.go b/acl/validation.go index 816ec0cae1..400465efaf 100644 --- a/acl/validation.go +++ b/acl/validation.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package acl import "regexp" diff --git a/api/acl.go b/api/acl.go index 3e13ccc88f..93087cd31c 100644 --- a/api/acl.go +++ b/api/acl.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import ( diff --git a/api/acl_test.go b/api/acl_test.go index 35ea380490..2a7bcbd23f 100644 --- a/api/acl_test.go +++ b/api/acl_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import ( diff --git a/api/agent.go b/api/agent.go index f049afa51d..baa6de03a2 100644 --- a/api/agent.go +++ b/api/agent.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import ( diff --git a/api/agent_test.go b/api/agent_test.go index 72196a1fec..4fdc31bb90 100644 --- a/api/agent_test.go +++ b/api/agent_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import ( diff --git a/api/api.go b/api/api.go index 772f8693b0..e7109141b5 100644 --- a/api/api.go +++ b/api/api.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import ( diff --git a/api/api_test.go b/api/api_test.go index 7a9a722c41..49670b41eb 100644 --- a/api/api_test.go +++ b/api/api_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import ( diff --git a/api/catalog.go b/api/catalog.go index 27407de90f..8f9c6567ac 100644 --- a/api/catalog.go +++ b/api/catalog.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import ( diff --git a/api/catalog_test.go b/api/catalog_test.go index c49b0a7172..6226691353 100644 --- a/api/catalog_test.go +++ b/api/catalog_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import ( diff --git a/api/config_entry.go b/api/config_entry.go index 24254ec709..340ad771fa 100644 --- a/api/config_entry.go +++ b/api/config_entry.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import ( diff --git a/api/config_entry_discoverychain.go b/api/config_entry_discoverychain.go index 4fd7471d06..62c5cf3ece 100644 --- a/api/config_entry_discoverychain.go +++ b/api/config_entry_discoverychain.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import ( diff --git a/api/config_entry_discoverychain_test.go b/api/config_entry_discoverychain_test.go index 521494f176..e1f35e1bc3 100644 --- a/api/config_entry_discoverychain_test.go +++ b/api/config_entry_discoverychain_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import ( diff --git a/api/config_entry_exports.go b/api/config_entry_exports.go index 52b0491f7c..284b98b7a2 100644 --- a/api/config_entry_exports.go +++ b/api/config_entry_exports.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import "encoding/json" diff --git a/api/config_entry_exports_test.go b/api/config_entry_exports_test.go index fb0c620a02..1616dc9c58 100644 --- a/api/config_entry_exports_test.go +++ b/api/config_entry_exports_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import ( diff --git a/api/config_entry_gateways.go b/api/config_entry_gateways.go index 05e43832c1..b59f1c0621 100644 --- a/api/config_entry_gateways.go +++ b/api/config_entry_gateways.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api // IngressGatewayConfigEntry manages the configuration for an ingress service diff --git a/api/config_entry_gateways_test.go b/api/config_entry_gateways_test.go index 7780b4f835..421a6283a2 100644 --- a/api/config_entry_gateways_test.go +++ b/api/config_entry_gateways_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import ( diff --git a/api/config_entry_inline_certificate.go b/api/config_entry_inline_certificate.go index bbf12ccaaf..47a1ead056 100644 --- a/api/config_entry_inline_certificate.go +++ b/api/config_entry_inline_certificate.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api // InlineCertificateConfigEntry -- TODO stub diff --git a/api/config_entry_inline_certificate_test.go b/api/config_entry_inline_certificate_test.go index 78771fcc78..a8e5fa63b1 100644 --- a/api/config_entry_inline_certificate_test.go +++ b/api/config_entry_inline_certificate_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import ( diff --git a/api/config_entry_intentions.go b/api/config_entry_intentions.go index 0bff5e8e39..83639f0522 100644 --- a/api/config_entry_intentions.go +++ b/api/config_entry_intentions.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import "time" diff --git a/api/config_entry_intentions_test.go b/api/config_entry_intentions_test.go index 349bdc895b..36bd5a2b6b 100644 --- a/api/config_entry_intentions_test.go +++ b/api/config_entry_intentions_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import ( diff --git a/api/config_entry_mesh.go b/api/config_entry_mesh.go index 98b882247d..17fa079b6e 100644 --- a/api/config_entry_mesh.go +++ b/api/config_entry_mesh.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import ( diff --git a/api/config_entry_rate_limit_ip.go b/api/config_entry_rate_limit_ip.go index b6df6c3c5f..8983b57e8a 100644 --- a/api/config_entry_rate_limit_ip.go +++ b/api/config_entry_rate_limit_ip.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api type readWriteRatesConfig struct { diff --git a/api/config_entry_routes.go b/api/config_entry_routes.go index 2edf9b23a4..cfea394535 100644 --- a/api/config_entry_routes.go +++ b/api/config_entry_routes.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api // TCPRouteConfigEntry -- TODO stub diff --git a/api/config_entry_samness_group.go b/api/config_entry_samness_group.go index d910a36686..3afc05684e 100644 --- a/api/config_entry_samness_group.go +++ b/api/config_entry_samness_group.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api type SamenessGroupConfigEntry struct { diff --git a/api/config_entry_status.go b/api/config_entry_status.go index 83523643b8..45197dcc6a 100644 --- a/api/config_entry_status.go +++ b/api/config_entry_status.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import ( diff --git a/api/config_entry_test.go b/api/config_entry_test.go index a4fe2505f4..65c7b063de 100644 --- a/api/config_entry_test.go +++ b/api/config_entry_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import ( diff --git a/api/connect.go b/api/connect.go index a5298d8136..ce23b1c038 100644 --- a/api/connect.go +++ b/api/connect.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api // HCPMetricsCollectorName is the service name for the HCP Metrics Collector diff --git a/api/connect_ca.go b/api/connect_ca.go index 69c652dacb..8a5c9f870e 100644 --- a/api/connect_ca.go +++ b/api/connect_ca.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import ( diff --git a/api/connect_ca_test.go b/api/connect_ca_test.go index 8195a74564..e0d134e654 100644 --- a/api/connect_ca_test.go +++ b/api/connect_ca_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import ( diff --git a/api/connect_intention.go b/api/connect_intention.go index 0c2500fd06..274d9725d5 100644 --- a/api/connect_intention.go +++ b/api/connect_intention.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import ( diff --git a/api/connect_intention_test.go b/api/connect_intention_test.go index 232ce344c1..66a79e2fe0 100644 --- a/api/connect_intention_test.go +++ b/api/connect_intention_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import ( diff --git a/api/coordinate.go b/api/coordinate.go index 7ef6ce2744..b0269adaef 100644 --- a/api/coordinate.go +++ b/api/coordinate.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import ( diff --git a/api/coordinate_test.go b/api/coordinate_test.go index 071b1f99e4..0eb05268e0 100644 --- a/api/coordinate_test.go +++ b/api/coordinate_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import ( diff --git a/api/debug.go b/api/debug.go index b7e80b88d0..e6b5dc52da 100644 --- a/api/debug.go +++ b/api/debug.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import ( diff --git a/api/debug_test.go b/api/debug_test.go index 86a10e71bb..93f5f41f11 100644 --- a/api/debug_test.go +++ b/api/debug_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import ( diff --git a/api/discovery_chain.go b/api/discovery_chain.go index c7853d70e6..4b6260cf34 100644 --- a/api/discovery_chain.go +++ b/api/discovery_chain.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import ( diff --git a/api/discovery_chain_test.go b/api/discovery_chain_test.go index dd4fc0181c..2bd6308f02 100644 --- a/api/discovery_chain_test.go +++ b/api/discovery_chain_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import ( diff --git a/api/event.go b/api/event.go index ceded65981..efba89d3b5 100644 --- a/api/event.go +++ b/api/event.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import ( diff --git a/api/event_test.go b/api/event_test.go index 84e40a04a7..912f71e64e 100644 --- a/api/event_test.go +++ b/api/event_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import ( diff --git a/api/health.go b/api/health.go index a89b4b7273..932317fdb0 100644 --- a/api/health.go +++ b/api/health.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import ( diff --git a/api/health_test.go b/api/health_test.go index 796afa7f56..3f21ab0189 100644 --- a/api/health_test.go +++ b/api/health_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import ( diff --git a/api/kv.go b/api/kv.go index 85a9d7750c..b9d330a6fd 100644 --- a/api/kv.go +++ b/api/kv.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import ( diff --git a/api/kv_test.go b/api/kv_test.go index cc0a507ba0..1395446a3e 100644 --- a/api/kv_test.go +++ b/api/kv_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import ( diff --git a/api/lock.go b/api/lock.go index 221a7add3c..e9529f7bde 100644 --- a/api/lock.go +++ b/api/lock.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import ( diff --git a/api/lock_test.go b/api/lock_test.go index 761a97dc3d..4003a94632 100644 --- a/api/lock_test.go +++ b/api/lock_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import ( diff --git a/api/mock_api_test.go b/api/mock_api_test.go index fa18faa7ae..127011f4e9 100644 --- a/api/mock_api_test.go +++ b/api/mock_api_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import ( diff --git a/api/namespace.go b/api/namespace.go index 65cc6f3f3b..98afd22998 100644 --- a/api/namespace.go +++ b/api/namespace.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import ( diff --git a/api/namespace_test.go b/api/namespace_test.go index 68bbde5a8c..3a956ffbd4 100644 --- a/api/namespace_test.go +++ b/api/namespace_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build consulent // +build consulent diff --git a/api/operator.go b/api/operator.go index 079e224866..667dcd8723 100644 --- a/api/operator.go +++ b/api/operator.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api // Operator can be used to perform low-level operator tasks for Consul. diff --git a/api/operator_area.go b/api/operator_area.go index f9fa1339e2..9228d89b47 100644 --- a/api/operator_area.go +++ b/api/operator_area.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api // The /v1/operator/area endpoints are available only in Consul Enterprise and diff --git a/api/operator_autopilot.go b/api/operator_autopilot.go index 6ab5769709..7628bf6f2f 100644 --- a/api/operator_autopilot.go +++ b/api/operator_autopilot.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import ( diff --git a/api/operator_autopilot_test.go b/api/operator_autopilot_test.go index a0850110ff..0000863b66 100644 --- a/api/operator_autopilot_test.go +++ b/api/operator_autopilot_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import ( diff --git a/api/operator_keyring.go b/api/operator_keyring.go index 6db31a252b..aefec9e270 100644 --- a/api/operator_keyring.go +++ b/api/operator_keyring.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api // keyringRequest is used for performing Keyring operations diff --git a/api/operator_keyring_test.go b/api/operator_keyring_test.go index 85f0d19aa3..10df235c39 100644 --- a/api/operator_keyring_test.go +++ b/api/operator_keyring_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import ( diff --git a/api/operator_license.go b/api/operator_license.go index 74eed3baa4..1e3496da0e 100644 --- a/api/operator_license.go +++ b/api/operator_license.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import ( diff --git a/api/operator_raft.go b/api/operator_raft.go index 1da20e899f..393d6fb3c5 100644 --- a/api/operator_raft.go +++ b/api/operator_raft.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api // RaftServer has information about a server in the Raft configuration. diff --git a/api/operator_raft_test.go b/api/operator_raft_test.go index ecefaa9719..6e3b7fc0e3 100644 --- a/api/operator_raft_test.go +++ b/api/operator_raft_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import ( diff --git a/api/operator_segment.go b/api/operator_segment.go index 92b05d3c03..6115a7ab4b 100644 --- a/api/operator_segment.go +++ b/api/operator_segment.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api // SegmentList returns all the available LAN segments. diff --git a/api/operator_usage.go b/api/operator_usage.go index d07e774d81..e47d4b53e0 100644 --- a/api/operator_usage.go +++ b/api/operator_usage.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api type Usage struct { diff --git a/api/operator_usage_test.go b/api/operator_usage_test.go index 9b2be5aa06..a276682e07 100644 --- a/api/operator_usage_test.go +++ b/api/operator_usage_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import ( diff --git a/api/oss_test.go b/api/oss_test.go index e4e266a389..613a2c4de2 100644 --- a/api/oss_test.go +++ b/api/oss_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/api/partition.go b/api/partition.go index 88edfb7b0b..8467c31189 100644 --- a/api/partition.go +++ b/api/partition.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import ( diff --git a/api/peering.go b/api/peering.go index 9143b6ccb9..352d224fe6 100644 --- a/api/peering.go +++ b/api/peering.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import ( diff --git a/api/peering_test.go b/api/peering_test.go index 9636367a39..3ad8818ff0 100644 --- a/api/peering_test.go +++ b/api/peering_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import ( diff --git a/api/prepared_query.go b/api/prepared_query.go index 3dfd571c76..b79c9ae412 100644 --- a/api/prepared_query.go +++ b/api/prepared_query.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api // QueryFailoverOptions sets options about how we fail over if there are no diff --git a/api/prepared_query_test.go b/api/prepared_query_test.go index f684b26d3f..d53ea2751d 100644 --- a/api/prepared_query_test.go +++ b/api/prepared_query_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import ( diff --git a/api/raw.go b/api/raw.go index 745a208c99..639513d29f 100644 --- a/api/raw.go +++ b/api/raw.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api // Raw can be used to do raw queries against custom endpoints diff --git a/api/semaphore.go b/api/semaphore.go index 066ce33a9d..9d98ff5c29 100644 --- a/api/semaphore.go +++ b/api/semaphore.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import ( diff --git a/api/semaphore_test.go b/api/semaphore_test.go index 37294c411b..bb0057ca5e 100644 --- a/api/semaphore_test.go +++ b/api/semaphore_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import ( diff --git a/api/session.go b/api/session.go index 3f61acfbb4..69fd77d279 100644 --- a/api/session.go +++ b/api/session.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import ( diff --git a/api/session_test.go b/api/session_test.go index 687feb58cf..9b968cd621 100644 --- a/api/session_test.go +++ b/api/session_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import ( diff --git a/api/snapshot.go b/api/snapshot.go index b526b79c3b..bcc80e5b3d 100644 --- a/api/snapshot.go +++ b/api/snapshot.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import ( diff --git a/api/snapshot_test.go b/api/snapshot_test.go index 938360d494..c87b01c1e5 100644 --- a/api/snapshot_test.go +++ b/api/snapshot_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import ( diff --git a/api/status.go b/api/status.go index 86f943bc76..8c52eb222b 100644 --- a/api/status.go +++ b/api/status.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api // Status can be used to query the Status endpoints diff --git a/api/status_test.go b/api/status_test.go index 91bcfaafdb..c5c3393622 100644 --- a/api/status_test.go +++ b/api/status_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import ( diff --git a/api/txn.go b/api/txn.go index 4aa06d9f54..59adafdac3 100644 --- a/api/txn.go +++ b/api/txn.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import ( diff --git a/api/txn_test.go b/api/txn_test.go index 81348a8c27..975f3e3816 100644 --- a/api/txn_test.go +++ b/api/txn_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import ( diff --git a/api/watch/funcs.go b/api/watch/funcs.go index cc4f333277..3c057aa664 100644 --- a/api/watch/funcs.go +++ b/api/watch/funcs.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package watch import ( diff --git a/api/watch/funcs_test.go b/api/watch/funcs_test.go index 1c23654f04..d972def6ac 100644 --- a/api/watch/funcs_test.go +++ b/api/watch/funcs_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package watch_test import ( diff --git a/api/watch/plan.go b/api/watch/plan.go index 33557808ee..a3588ff184 100644 --- a/api/watch/plan.go +++ b/api/watch/plan.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package watch import ( diff --git a/api/watch/plan_test.go b/api/watch/plan_test.go index d0209fc550..5a77260473 100644 --- a/api/watch/plan_test.go +++ b/api/watch/plan_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package watch import ( diff --git a/api/watch/watch.go b/api/watch/watch.go index 1dce252911..ea00f8ef0c 100644 --- a/api/watch/watch.go +++ b/api/watch/watch.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package watch import ( diff --git a/api/watch/watch_test.go b/api/watch/watch_test.go index e3dc32ef1d..f8af19a35e 100644 --- a/api/watch/watch_test.go +++ b/api/watch/watch_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package watch import (