diff --git a/.golangci.yml b/.golangci.yml index 60cfc50595045..21f5d8228d509 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 22be8c9b762c3..01afb5fea6654 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 c18ba0b0781ea..fd6515d2389e6 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 48f671ac7ae24..8c8b24eaa3aad 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 78f93207290c8..3734eb1572fd3 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 1ecf9f2afe353..f4515f11c92ac 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 e448c84589e0c..ed77d5e81d3f7 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 27a7aef4b9b29..20774841ba8dc 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 cf81cc4b18af7..9a681187bc1ed 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 284a1bd0e7ea0..c17cbc907bf50 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 97d01c10a65d6..8b93fd6807968 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 9938957c19716..7302e0392f178 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 ef8dc993cddf4..8c2e84ac5c415 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 963b2cbb1627c..4988f695994f6 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 51e53be95fc8e..e26c8871314c3 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 7de30d029a9fb..e87635a036df1 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 4829048a86636..89708a5be9c31 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 0f5f9ca8b6a6c..1c6959527899d 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 3a617aa1e1793..df065a9cb1b95 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 cff74c7325276..b221f25875399 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 a5d6828b63d6f..b33c3243364ba 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 7095df286b3a6..ac23e3c0df3b0 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 abf85056887f9..190d15eca5b8a 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 07cc8451141dd..a6678925695c9 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 b9ed590933ed8..e94ac44e500f0 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 283446d00c7f3..1c67458b174f8 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 816ec0cae1fba..400465efafbf5 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 3e13ccc88f841..93087cd31c95f 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 35ea38049045e..2a7bcbd23f78c 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 f049afa51dd91..baa6de03a24e0 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 72196a1fec0d3..4fdc31bb90eb0 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 772f8693b0285..e7109141b5068 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 7a9a722c41c5f..49670b41eb86a 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 27407de90fa9a..8f9c6567ac333 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 c49b0a7172fbf..6226691353f26 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 24254ec7090e2..340ad771fab76 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 4fd7471d06215..62c5cf3ece8e3 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 521494f17698c..e1f35e1bc395d 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 52b0491f7cbcc..284b98b7a2eba 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 fb0c620a0271d..1616dc9c58954 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 05e43832c1fdb..b59f1c0621ff6 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 7780b4f835bd3..421a6283a216c 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 bbf12ccaaf69f..47a1ead05666a 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 78771fcc78cff..a8e5fa63b1ec7 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 0bff5e8e39769..83639f0522c99 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 349bdc895be2c..36bd5a2b6b8dc 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 98b882247d6ac..17fa079b6ec76 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 b6df6c3c5f464..8983b57e8a29b 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 2edf9b23a4c02..cfea394535dbb 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 d910a36686572..3afc05684e6e0 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 83523643b89de..45197dcc6a5e5 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 a4fe2505f4e86..65c7b063de174 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 a5298d81369b7..ce23b1c038a49 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 69c652dacbfd6..8a5c9f870e954 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 8195a7456499e..e0d134e654e5d 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 0c2500fd0618e..274d9725d5002 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 232ce344c186c..66a79e2fe0174 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 7ef6ce2744b7f..b0269adaef684 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 071b1f99e4c51..0eb05268e05a0 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 b7e80b88d01fb..e6b5dc52dac2c 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 86a10e71bbbb8..93f5f41f11e9c 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 c7853d70e621d..4b6260cf34aaa 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 dd4fc0181c8de..2bd6308f02b76 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 ceded65981ee1..efba89d3b5673 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 84e40a04a781e..912f71e64e88d 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 a89b4b7273f56..932317fdb01e3 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 796afa7f5641f..3f21ab018991c 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 85a9d7750c9b8..b9d330a6fd3b5 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 cc0a507ba0954..1395446a3e413 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 221a7add3ca46..e9529f7bde64f 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 761a97dc3d021..4003a94632f8d 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 fa18faa7aef2c..127011f4e9334 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 65cc6f3f3ba96..98afd229989d9 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 68bbde5a8c484..3a956ffbd4bd0 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 079e224866395..667dcd872337d 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 f9fa1339e2f5e..9228d89b47c08 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 6ab576970924a..7628bf6f2fff7 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 a0850110ffaae..0000863b66756 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 6db31a252be96..aefec9e2704e4 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 85f0d19aa3be2..10df235c397e6 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 74eed3baa4d67..1e3496da0e1ae 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 1da20e899ff5b..393d6fb3c5f77 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 ecefaa9719204..6e3b7fc0e3102 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 92b05d3c03bdb..6115a7ab4b58e 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 d07e774d8100d..e47d4b53e037a 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 9b2be5aa06a31..a276682e07de9 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 e4e266a389248..613a2c4de2311 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 88edfb7b0bca2..8467c31189666 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 9143b6ccb9aec..352d224fe60bc 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 9636367a3910f..3ad8818ff0034 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 3dfd571c761d6..b79c9ae412817 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 f684b26d3f053..d53ea2751da1e 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 745a208c99d54..639513d29fa80 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 066ce33a9d623..9d98ff5c29b72 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 37294c411bebf..bb0057ca5ed85 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 3f61acfbb4749..69fd77d2790c9 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 687feb58cfe51..9b968cd621adb 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 b526b79c3be71..bcc80e5b3dea1 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 938360d49432c..c87b01c1e5395 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 86f943bc76218..8c52eb222bf75 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 91bcfaafdb56a..c5c3393622d98 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 4aa06d9f5488b..59adafdac3de6 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 81348a8c27d09..975f3e38163b2 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 cc4f33327711e..3c057aa66421d 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 1c23654f0426d..d972def6ac7d4 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 33557808ee208..a3588ff184a78 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 d0209fc5502ec..5a772604736f9 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 1dce252911d5d..ea00f8ef0cba8 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 e3dc32ef1db59..f8af19a35ec8a 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 (