diff --git a/.golangci.yml b/.golangci.yml index 60cfc5059..21f5d8228 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 22be8c9b7..01afb5fea 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 c18ba0b07..fd6515d23 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 48f671ac7..8c8b24eaa 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 78f932072..3734eb157 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 1ecf9f2af..f4515f11c 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 e448c8458..ed77d5e81 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 27a7aef4b..20774841b 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 cf81cc4b1..9a681187b 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 284a1bd0e..c17cbc907 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 97d01c10a..8b93fd680 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 9938957c1..7302e0392 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 ef8dc993c..8c2e84ac5 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 963b2cbb1..4988f6959 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 51e53be95..e26c88713 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 7de30d029..e87635a03 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 4829048a8..89708a5be 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 0f5f9ca8b..1c6959527 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 3a617aa1e..df065a9cb 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 cff74c732..b221f2587 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 a5d6828b6..b33c32433 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 7095df286..ac23e3c0d 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 abf850568..190d15eca 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 07cc84511..a66789256 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 b9ed59093..e94ac44e5 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 283446d00..1c67458b1 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 816ec0cae..400465efa 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 3e13ccc88..93087cd31 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 35ea38049..2a7bcbd23 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 f049afa51..baa6de03a 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 72196a1fe..4fdc31bb9 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 772f8693b..e7109141b 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 7a9a722c4..49670b41e 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 27407de90..8f9c6567a 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 c49b0a717..622669135 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 24254ec70..340ad771f 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 4fd7471d0..62c5cf3ec 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 521494f17..e1f35e1bc 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 52b0491f7..284b98b7a 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 fb0c620a0..1616dc9c5 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 05e43832c..b59f1c062 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 7780b4f83..421a6283a 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 bbf12ccaa..47a1ead05 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 78771fcc7..a8e5fa63b 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 0bff5e8e3..83639f052 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 349bdc895..36bd5a2b6 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 98b882247..17fa079b6 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 b6df6c3c5..8983b57e8 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 2edf9b23a..cfea39453 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 d910a3668..3afc05684 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 83523643b..45197dcc6 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 a4fe2505f..65c7b063d 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 a5298d813..ce23b1c03 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 69c652dac..8a5c9f870 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 8195a7456..e0d134e65 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 0c2500fd0..274d9725d 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 232ce344c..66a79e2fe 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 7ef6ce274..b0269adae 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 071b1f99e..0eb05268e 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 b7e80b88d..e6b5dc52d 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 86a10e71b..93f5f41f1 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 c7853d70e..4b6260cf3 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 dd4fc0181..2bd6308f0 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 ceded6598..efba89d3b 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 84e40a04a..912f71e64 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 a89b4b727..932317fdb 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 796afa7f5..3f21ab018 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 85a9d7750..b9d330a6f 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 cc0a507ba..1395446a3 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 221a7add3..e9529f7bd 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 761a97dc3..4003a9463 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 fa18faa7a..127011f4e 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 65cc6f3f3..98afd2299 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 68bbde5a8..3a956ffbd 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 079e22486..667dcd872 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 f9fa1339e..9228d89b4 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 6ab576970..7628bf6f2 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 a0850110f..0000863b6 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 6db31a252..aefec9e27 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 85f0d19aa..10df235c3 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 74eed3baa..1e3496da0 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 1da20e899..393d6fb3c 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 ecefaa971..6e3b7fc0e 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 92b05d3c0..6115a7ab4 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 d07e774d8..e47d4b53e 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 9b2be5aa0..a276682e0 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 e4e266a38..613a2c4de 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 88edfb7b0..8467c3118 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 9143b6ccb..352d224fe 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 9636367a3..3ad8818ff 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 3dfd571c7..b79c9ae41 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 f684b26d3..d53ea2751 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 745a208c9..639513d29 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 066ce33a9..9d98ff5c2 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 37294c411..bb0057ca5 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 3f61acfbb..69fd77d27 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 687feb58c..9b968cd62 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 b526b79c3..bcc80e5b3 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 938360d49..c87b01c1e 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 86f943bc7..8c52eb222 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 91bcfaafd..c5c339362 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 4aa06d9f5..59adafdac 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 81348a8c2..975f3e381 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 cc4f33327..3c057aa66 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 1c23654f0..d972def6a 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 33557808e..a3588ff18 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 d0209fc55..5a7726047 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 1dce25291..ea00f8ef0 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 e3dc32ef1..f8af19a35 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 (