diff --git a/AUTHORS b/AUTHORS new file mode 100644 index 000000000..a742720e6 --- /dev/null +++ b/AUTHORS @@ -0,0 +1,9 @@ +# This is the list of CloudEvents authors for copyright purposes. +# +# This does not necessarily list everyone who has contributed code, since in +# some cases, their employer may be the copyright holder. To see the full list +# of contributors, see the revision history in source control. +Google LLC +IBM Corp +Red Hat, Inc. +VMware, Inc. diff --git a/hack/boilerplate/add-boilerplate.sh b/hack/boilerplate/add-boilerplate.sh new file mode 100755 index 000000000..92bb81a20 --- /dev/null +++ b/hack/boilerplate/add-boilerplate.sh @@ -0,0 +1,27 @@ +#!/usr/bin/env bash + +# Copyright 2021 The CloudEvents Authors +# SPDX-License-Identifier: Apache-2.0 + +USAGE=$(cat <.txt to all . files missing it in a directory. + +Usage: (from repository root) + ./hack/boilerplate/add-boilerplate.sh + +Example: (from repository root) + ./hack/boilerplate/add-boilerplate.sh go cmd +EOF +) + +set -e + +if [[ -z $1 || -z $2 ]]; then + echo "${USAGE}" + exit 1 +fi + +grep --recursive --files-without-match --extended-regexp --regexp="Copyright \d+ The CloudEvents Authors" $2 \ + | grep --regexp="\.$1\$" \ + | xargs -I {} sh -c \ + "cat hack/boilerplate/boilerplate.$1.txt {} > /tmp/boilerplate && mv /tmp/boilerplate {}" diff --git a/hack/boilerplate/boilerplate.go.txt b/hack/boilerplate/boilerplate.go.txt new file mode 100644 index 000000000..f104ef695 --- /dev/null +++ b/hack/boilerplate/boilerplate.go.txt @@ -0,0 +1,5 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + diff --git a/hack/boilerplate/boilerplate.sh.txt b/hack/boilerplate/boilerplate.sh.txt new file mode 100644 index 000000000..1b82f915a --- /dev/null +++ b/hack/boilerplate/boilerplate.sh.txt @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +# Copyright 2021 The CloudEvents Authors +# SPDX-License-Identifier: Apache-2.0 diff --git a/hack/build-test.sh b/hack/build-test.sh index 9b8d1f509..8ba2a115a 100755 --- a/hack/build-test.sh +++ b/hack/build-test.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash +# Copyright 2021 The CloudEvents Authors +# SPDX-License-Identifier: Apache-2.0 + set -o errexit set -o nounset diff --git a/hack/conformance-test.sh b/hack/conformance-test.sh index 7ceea7d3d..72eaec4a1 100755 --- a/hack/conformance-test.sh +++ b/hack/conformance-test.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash +# Copyright 2021 The CloudEvents Authors +# SPDX-License-Identifier: Apache-2.0 + set -o errexit set -o nounset set -o pipefail diff --git a/hack/integration-test.sh b/hack/integration-test.sh index 72a14f32c..cb2b7c7c8 100755 --- a/hack/integration-test.sh +++ b/hack/integration-test.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash +# Copyright 2021 The CloudEvents Authors +# SPDX-License-Identifier: Apache-2.0 + set -o errexit set -o nounset set -o pipefail diff --git a/hack/tag-release.sh b/hack/tag-release.sh index 7dc71bac0..2f4b18632 100755 --- a/hack/tag-release.sh +++ b/hack/tag-release.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash +# Copyright 2021 The CloudEvents Authors +# SPDX-License-Identifier: Apache-2.0 + set -o errexit set -o nounset set -o pipefail diff --git a/hack/unit-test.sh b/hack/unit-test.sh index 2bb3291ee..9c0068c52 100755 --- a/hack/unit-test.sh +++ b/hack/unit-test.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash +# Copyright 2021 The CloudEvents Authors +# SPDX-License-Identifier: Apache-2.0 + set -o errexit set -o nounset set -o pipefail diff --git a/observability/opencensus/v2/client/client.go b/observability/opencensus/v2/client/client.go index d3cf6c05d..6367a45d2 100644 --- a/observability/opencensus/v2/client/client.go +++ b/observability/opencensus/v2/client/client.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package client import ( diff --git a/observability/opencensus/v2/client/client_test.go b/observability/opencensus/v2/client/client_test.go index 213a96c7e..6f238475b 100644 --- a/observability/opencensus/v2/client/client_test.go +++ b/observability/opencensus/v2/client/client_test.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package client import ( diff --git a/observability/opencensus/v2/client/observability_service.go b/observability/opencensus/v2/client/observability_service.go index 888345222..c9d123f67 100644 --- a/observability/opencensus/v2/client/observability_service.go +++ b/observability/opencensus/v2/client/observability_service.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package client import ( diff --git a/observability/opencensus/v2/client/observable.go b/observability/opencensus/v2/client/observable.go index 3d56115a0..a71e8d67c 100644 --- a/observability/opencensus/v2/client/observable.go +++ b/observability/opencensus/v2/client/observable.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package client import ( diff --git a/observability/opencensus/v2/client/reporter.go b/observability/opencensus/v2/client/reporter.go index 38888defc..a1d6a6c20 100644 --- a/observability/opencensus/v2/client/reporter.go +++ b/observability/opencensus/v2/client/reporter.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package client import ( diff --git a/observability/opencensus/v2/client/trace_attributes.go b/observability/opencensus/v2/client/trace_attributes.go index 9cc451943..262fe1a97 100644 --- a/observability/opencensus/v2/client/trace_attributes.go +++ b/observability/opencensus/v2/client/trace_attributes.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package client import ( diff --git a/observability/opencensus/v2/http/http.go b/observability/opencensus/v2/http/http.go index f2797ee81..6b1273696 100644 --- a/observability/opencensus/v2/http/http.go +++ b/observability/opencensus/v2/http/http.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package http import ( diff --git a/protocol/amqp/v2/doc.go b/protocol/amqp/v2/doc.go index fc098b335..bf1283e18 100644 --- a/protocol/amqp/v2/doc.go +++ b/protocol/amqp/v2/doc.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + /* Package amqp implements an AMQP binding using pack.ag/amqp module */ diff --git a/protocol/amqp/v2/message.go b/protocol/amqp/v2/message.go index 74e4b2085..1ae02db73 100644 --- a/protocol/amqp/v2/message.go +++ b/protocol/amqp/v2/message.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package amqp import ( diff --git a/protocol/amqp/v2/message_test.go b/protocol/amqp/v2/message_test.go index 2b18d1102..f977e2b20 100644 --- a/protocol/amqp/v2/message_test.go +++ b/protocol/amqp/v2/message_test.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package amqp import ( diff --git a/protocol/amqp/v2/options.go b/protocol/amqp/v2/options.go index 6b594d784..0a465e00e 100644 --- a/protocol/amqp/v2/options.go +++ b/protocol/amqp/v2/options.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package amqp import ( diff --git a/protocol/amqp/v2/protocol.go b/protocol/amqp/v2/protocol.go index 9a4a3c552..ec3ff1256 100644 --- a/protocol/amqp/v2/protocol.go +++ b/protocol/amqp/v2/protocol.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package amqp import ( diff --git a/protocol/amqp/v2/receiver.go b/protocol/amqp/v2/receiver.go index cc46677f7..fd14b835d 100644 --- a/protocol/amqp/v2/receiver.go +++ b/protocol/amqp/v2/receiver.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package amqp import ( diff --git a/protocol/amqp/v2/sender.go b/protocol/amqp/v2/sender.go index 2ea269d9f..7ac4c0a0a 100644 --- a/protocol/amqp/v2/sender.go +++ b/protocol/amqp/v2/sender.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package amqp import ( diff --git a/protocol/amqp/v2/types.go b/protocol/amqp/v2/types.go index f5c827404..4a3e68ec3 100644 --- a/protocol/amqp/v2/types.go +++ b/protocol/amqp/v2/types.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package amqp import "github.com/cloudevents/sdk-go/v2/types" diff --git a/protocol/amqp/v2/write_message.go b/protocol/amqp/v2/write_message.go index 3a0865cf6..680f98dea 100644 --- a/protocol/amqp/v2/write_message.go +++ b/protocol/amqp/v2/write_message.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package amqp import ( diff --git a/protocol/kafka_sarama/v2/doc.go b/protocol/kafka_sarama/v2/doc.go index 12dfff9fe..e42c22d7a 100644 --- a/protocol/kafka_sarama/v2/doc.go +++ b/protocol/kafka_sarama/v2/doc.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + /* Package kafka_sarama implements a Kafka binding using github.com/Shopify/sarama module */ diff --git a/protocol/kafka_sarama/v2/message.go b/protocol/kafka_sarama/v2/message.go index 4dbff83f4..b9ff657d5 100644 --- a/protocol/kafka_sarama/v2/message.go +++ b/protocol/kafka_sarama/v2/message.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package kafka_sarama import ( diff --git a/protocol/kafka_sarama/v2/message_benchmark_test.go b/protocol/kafka_sarama/v2/message_benchmark_test.go index 41e48c4ba..fd50db8e8 100644 --- a/protocol/kafka_sarama/v2/message_benchmark_test.go +++ b/protocol/kafka_sarama/v2/message_benchmark_test.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package kafka_sarama_test import ( diff --git a/protocol/kafka_sarama/v2/message_test.go b/protocol/kafka_sarama/v2/message_test.go index 0395b4fff..89d316e6a 100644 --- a/protocol/kafka_sarama/v2/message_test.go +++ b/protocol/kafka_sarama/v2/message_test.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package kafka_sarama_test import ( diff --git a/protocol/kafka_sarama/v2/option.go b/protocol/kafka_sarama/v2/option.go index f14b35223..7f506a874 100644 --- a/protocol/kafka_sarama/v2/option.go +++ b/protocol/kafka_sarama/v2/option.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package kafka_sarama import ( diff --git a/protocol/kafka_sarama/v2/protocol.go b/protocol/kafka_sarama/v2/protocol.go index b8db98fd2..1c70c0852 100644 --- a/protocol/kafka_sarama/v2/protocol.go +++ b/protocol/kafka_sarama/v2/protocol.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package kafka_sarama import ( diff --git a/protocol/kafka_sarama/v2/receiver.go b/protocol/kafka_sarama/v2/receiver.go index bf987d96e..13d6b810f 100644 --- a/protocol/kafka_sarama/v2/receiver.go +++ b/protocol/kafka_sarama/v2/receiver.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package kafka_sarama import ( diff --git a/protocol/kafka_sarama/v2/sender.go b/protocol/kafka_sarama/v2/sender.go index 068f33202..ffd04609d 100644 --- a/protocol/kafka_sarama/v2/sender.go +++ b/protocol/kafka_sarama/v2/sender.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package kafka_sarama import ( diff --git a/protocol/kafka_sarama/v2/sender_test.go b/protocol/kafka_sarama/v2/sender_test.go index 9dc36cd5c..32f4658b5 100644 --- a/protocol/kafka_sarama/v2/sender_test.go +++ b/protocol/kafka_sarama/v2/sender_test.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package kafka_sarama import ( diff --git a/protocol/kafka_sarama/v2/write_producer_message.go b/protocol/kafka_sarama/v2/write_producer_message.go index 3c7863471..180f2386c 100644 --- a/protocol/kafka_sarama/v2/write_producer_message.go +++ b/protocol/kafka_sarama/v2/write_producer_message.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package kafka_sarama import ( diff --git a/protocol/kafka_sarama/v2/write_producer_message_benchmark_test.go b/protocol/kafka_sarama/v2/write_producer_message_benchmark_test.go index 270555740..6f2ea93f1 100644 --- a/protocol/kafka_sarama/v2/write_producer_message_benchmark_test.go +++ b/protocol/kafka_sarama/v2/write_producer_message_benchmark_test.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package kafka_sarama_test import ( diff --git a/protocol/kafka_sarama/v2/write_producer_message_test.go b/protocol/kafka_sarama/v2/write_producer_message_test.go index 69bdcc14a..7751aac79 100644 --- a/protocol/kafka_sarama/v2/write_producer_message_test.go +++ b/protocol/kafka_sarama/v2/write_producer_message_test.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package kafka_sarama import ( diff --git a/protocol/nats/v2/doc.go b/protocol/nats/v2/doc.go index a621ae0c1..f0d9887b0 100644 --- a/protocol/nats/v2/doc.go +++ b/protocol/nats/v2/doc.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + /* Package nats implements the CloudEvent transport implementation using NATS. */ diff --git a/protocol/nats/v2/message.go b/protocol/nats/v2/message.go index 82ffdfafa..63e4b8613 100644 --- a/protocol/nats/v2/message.go +++ b/protocol/nats/v2/message.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package nats import ( diff --git a/protocol/nats/v2/options.go b/protocol/nats/v2/options.go index c2135f56b..a842177ae 100644 --- a/protocol/nats/v2/options.go +++ b/protocol/nats/v2/options.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package nats import ( diff --git a/protocol/nats/v2/options_test.go b/protocol/nats/v2/options_test.go index ef71ebb7d..47ec02bea 100644 --- a/protocol/nats/v2/options_test.go +++ b/protocol/nats/v2/options_test.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package nats import ( diff --git a/protocol/nats/v2/protocol.go b/protocol/nats/v2/protocol.go index 61a180b9a..d8de1bba6 100644 --- a/protocol/nats/v2/protocol.go +++ b/protocol/nats/v2/protocol.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package nats import ( diff --git a/protocol/nats/v2/receiver.go b/protocol/nats/v2/receiver.go index 2a6809a8a..b7c738876 100644 --- a/protocol/nats/v2/receiver.go +++ b/protocol/nats/v2/receiver.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package nats import ( diff --git a/protocol/nats/v2/sender.go b/protocol/nats/v2/sender.go index 7d0b23c43..adf8fc9c8 100644 --- a/protocol/nats/v2/sender.go +++ b/protocol/nats/v2/sender.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package nats import ( diff --git a/protocol/nats/v2/subscriber.go b/protocol/nats/v2/subscriber.go index edda83d56..a644173cb 100644 --- a/protocol/nats/v2/subscriber.go +++ b/protocol/nats/v2/subscriber.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package nats import ( diff --git a/protocol/nats/v2/write_message.go b/protocol/nats/v2/write_message.go index f52729036..13c57f38f 100644 --- a/protocol/nats/v2/write_message.go +++ b/protocol/nats/v2/write_message.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package nats import ( diff --git a/protocol/pubsub/v2/context/context.go b/protocol/pubsub/v2/context/context.go index 9dc50bc7d..0432c5412 100644 --- a/protocol/pubsub/v2/context/context.go +++ b/protocol/pubsub/v2/context/context.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + // Package context provides the pubsub ProtocolContext. package context diff --git a/protocol/pubsub/v2/doc.go b/protocol/pubsub/v2/doc.go index 258b33393..4ef4e6fd0 100644 --- a/protocol/pubsub/v2/doc.go +++ b/protocol/pubsub/v2/doc.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + /* Package pubsub implements a Pub/Sub binding using google.cloud.com/go/pubsub module */ diff --git a/protocol/pubsub/v2/internal/connection.go b/protocol/pubsub/v2/internal/connection.go index 1429d00db..fca55e454 100644 --- a/protocol/pubsub/v2/internal/connection.go +++ b/protocol/pubsub/v2/internal/connection.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + // Package internal provides the internal pubsub Connection type. package internal diff --git a/protocol/pubsub/v2/internal/connection_test.go b/protocol/pubsub/v2/internal/connection_test.go index b524a6890..08a77bb5f 100644 --- a/protocol/pubsub/v2/internal/connection_test.go +++ b/protocol/pubsub/v2/internal/connection_test.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package internal import ( diff --git a/protocol/pubsub/v2/message.go b/protocol/pubsub/v2/message.go index d10b7280c..14a84dca0 100644 --- a/protocol/pubsub/v2/message.go +++ b/protocol/pubsub/v2/message.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package pubsub import ( diff --git a/protocol/pubsub/v2/message_test.go b/protocol/pubsub/v2/message_test.go index 0d5af441b..3d8ab31c5 100644 --- a/protocol/pubsub/v2/message_test.go +++ b/protocol/pubsub/v2/message_test.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package pubsub import ( diff --git a/protocol/pubsub/v2/options.go b/protocol/pubsub/v2/options.go index 251acaf96..b8ca4ec10 100644 --- a/protocol/pubsub/v2/options.go +++ b/protocol/pubsub/v2/options.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package pubsub import ( diff --git a/protocol/pubsub/v2/protocol.go b/protocol/pubsub/v2/protocol.go index e932c6b95..50141a316 100644 --- a/protocol/pubsub/v2/protocol.go +++ b/protocol/pubsub/v2/protocol.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package pubsub import ( diff --git a/protocol/pubsub/v2/write_pubsub_message.go b/protocol/pubsub/v2/write_pubsub_message.go index a12621bac..4cdb1e310 100644 --- a/protocol/pubsub/v2/write_pubsub_message.go +++ b/protocol/pubsub/v2/write_pubsub_message.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package pubsub import ( diff --git a/protocol/stan/v2/context.go b/protocol/stan/v2/context.go index 5a0d1dbc2..7b6d52f13 100644 --- a/protocol/stan/v2/context.go +++ b/protocol/stan/v2/context.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package stan import ( diff --git a/protocol/stan/v2/context_test.go b/protocol/stan/v2/context_test.go index 146140489..24732075b 100644 --- a/protocol/stan/v2/context_test.go +++ b/protocol/stan/v2/context_test.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package stan import ( diff --git a/protocol/stan/v2/doc.go b/protocol/stan/v2/doc.go index ecf173dae..42a4abf1c 100644 --- a/protocol/stan/v2/doc.go +++ b/protocol/stan/v2/doc.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + /* Package stan implements the CloudEvent transport implementation using NATS Streaming. */ diff --git a/protocol/stan/v2/message.go b/protocol/stan/v2/message.go index aad923b46..1e6e69aaf 100644 --- a/protocol/stan/v2/message.go +++ b/protocol/stan/v2/message.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package stan import ( diff --git a/protocol/stan/v2/options.go b/protocol/stan/v2/options.go index 1f26b3045..168f7d602 100644 --- a/protocol/stan/v2/options.go +++ b/protocol/stan/v2/options.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package stan import ( diff --git a/protocol/stan/v2/options_test.go b/protocol/stan/v2/options_test.go index 6b0a57662..19671366d 100644 --- a/protocol/stan/v2/options_test.go +++ b/protocol/stan/v2/options_test.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package stan import ( diff --git a/protocol/stan/v2/protocol.go b/protocol/stan/v2/protocol.go index e18b8b108..fa4d6a2c4 100644 --- a/protocol/stan/v2/protocol.go +++ b/protocol/stan/v2/protocol.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package stan import ( diff --git a/protocol/stan/v2/receiver.go b/protocol/stan/v2/receiver.go index 7e2bdffa5..0e9c8160e 100644 --- a/protocol/stan/v2/receiver.go +++ b/protocol/stan/v2/receiver.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package stan import ( diff --git a/protocol/stan/v2/sender.go b/protocol/stan/v2/sender.go index 5044c7fa4..0cfbdbafc 100644 --- a/protocol/stan/v2/sender.go +++ b/protocol/stan/v2/sender.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package stan import ( diff --git a/protocol/stan/v2/subscriber.go b/protocol/stan/v2/subscriber.go index 270501485..ce6c21374 100644 --- a/protocol/stan/v2/subscriber.go +++ b/protocol/stan/v2/subscriber.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package stan import "github.com/nats-io/stan.go" diff --git a/protocol/stan/v2/write_message.go b/protocol/stan/v2/write_message.go index 333be3ea8..b63bb5044 100644 --- a/protocol/stan/v2/write_message.go +++ b/protocol/stan/v2/write_message.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package stan import ( diff --git a/protocol/ws/v2/client_protocol.go b/protocol/ws/v2/client_protocol.go index cd1b6683b..3fb47307e 100644 --- a/protocol/ws/v2/client_protocol.go +++ b/protocol/ws/v2/client_protocol.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package v2 import ( diff --git a/protocol/ws/v2/client_protocol_test.go b/protocol/ws/v2/client_protocol_test.go index 7c45b3f20..aef112d08 100644 --- a/protocol/ws/v2/client_protocol_test.go +++ b/protocol/ws/v2/client_protocol_test.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package v2 import ( diff --git a/protocol/ws/v2/context.go b/protocol/ws/v2/context.go index f47ab3b8c..c86b54131 100644 --- a/protocol/ws/v2/context.go +++ b/protocol/ws/v2/context.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package v2 import ( diff --git a/protocol/ws/v2/doc.go b/protocol/ws/v2/doc.go index 5a81024a6..e7ae51ac6 100644 --- a/protocol/ws/v2/doc.go +++ b/protocol/ws/v2/doc.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + /* Package ws implements the Websocket protocol binding */ diff --git a/protocol/ws/v2/subprotocols.go b/protocol/ws/v2/subprotocols.go index cb7d7af3f..4f36cadaa 100644 --- a/protocol/ws/v2/subprotocols.go +++ b/protocol/ws/v2/subprotocols.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package v2 import ( diff --git a/protocol/ws/v2/subprotocols_test.go b/protocol/ws/v2/subprotocols_test.go index 27040f0e4..158887ee7 100644 --- a/protocol/ws/v2/subprotocols_test.go +++ b/protocol/ws/v2/subprotocols_test.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package v2 import ( diff --git a/samples/amqp/receiver/main.go b/samples/amqp/receiver/main.go index 5e714c8f1..f446b3c97 100644 --- a/samples/amqp/receiver/main.go +++ b/samples/amqp/receiver/main.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package main import ( diff --git a/samples/amqp/sender/main.go b/samples/amqp/sender/main.go index 791b8cc1e..97925d5ab 100644 --- a/samples/amqp/sender/main.go +++ b/samples/amqp/sender/main.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package main import ( diff --git a/samples/gochan/main.go b/samples/gochan/main.go index 3189b15b5..3786c6b3a 100644 --- a/samples/gochan/main.go +++ b/samples/gochan/main.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package main import ( diff --git a/samples/http/metrics/main.go b/samples/http/metrics/main.go index a534b8d75..f21d8f9a5 100644 --- a/samples/http/metrics/main.go +++ b/samples/http/metrics/main.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package main import ( diff --git a/samples/http/receiver-direct/main.go b/samples/http/receiver-direct/main.go index 13d99fe0b..d30813f62 100644 --- a/samples/http/receiver-direct/main.go +++ b/samples/http/receiver-direct/main.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package main import ( diff --git a/samples/http/receiver-gorilla/main.go b/samples/http/receiver-gorilla/main.go index aca981bc7..6ac4c69e9 100644 --- a/samples/http/receiver-gorilla/main.go +++ b/samples/http/receiver-gorilla/main.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package main import ( diff --git a/samples/http/receiver-protected/main.go b/samples/http/receiver-protected/main.go index f6c8d0133..226aaae40 100644 --- a/samples/http/receiver-protected/main.go +++ b/samples/http/receiver-protected/main.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package main import ( diff --git a/samples/http/receiver-sleepy/main.go b/samples/http/receiver-sleepy/main.go index ba82914ed..17a12c6c1 100644 --- a/samples/http/receiver-sleepy/main.go +++ b/samples/http/receiver-sleepy/main.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package main import ( diff --git a/samples/http/receiver-traced/main.go b/samples/http/receiver-traced/main.go index 0906c9dd4..7457bf964 100644 --- a/samples/http/receiver-traced/main.go +++ b/samples/http/receiver-traced/main.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package main import ( diff --git a/samples/http/receiver/main.go b/samples/http/receiver/main.go index 38a1798ae..e810bc825 100644 --- a/samples/http/receiver/main.go +++ b/samples/http/receiver/main.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package main import ( diff --git a/samples/http/requester-with-custom-client/main.go b/samples/http/requester-with-custom-client/main.go index dbf61d748..27bc23f0a 100644 --- a/samples/http/requester-with-custom-client/main.go +++ b/samples/http/requester-with-custom-client/main.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package main import ( diff --git a/samples/http/requester/main.go b/samples/http/requester/main.go index 56f3851e8..9a752a7a3 100644 --- a/samples/http/requester/main.go +++ b/samples/http/requester/main.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package main import ( diff --git a/samples/http/responder/main.go b/samples/http/responder/main.go index 253619f8b..ec5501a8e 100644 --- a/samples/http/responder/main.go +++ b/samples/http/responder/main.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package main import ( diff --git a/samples/http/sender-retry/main.go b/samples/http/sender-retry/main.go index 8d9319ea1..6e7209da7 100644 --- a/samples/http/sender-retry/main.go +++ b/samples/http/sender-retry/main.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package main import ( diff --git a/samples/http/sender/main.go b/samples/http/sender/main.go index 888e379ca..fb7104840 100644 --- a/samples/http/sender/main.go +++ b/samples/http/sender/main.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package main import ( diff --git a/samples/kafka/message-handle-non-cloudevents/main.go b/samples/kafka/message-handle-non-cloudevents/main.go index 417ee64c5..7f2e52129 100644 --- a/samples/kafka/message-handle-non-cloudevents/main.go +++ b/samples/kafka/message-handle-non-cloudevents/main.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package main import ( diff --git a/samples/kafka/receiver/main.go b/samples/kafka/receiver/main.go index b8e297cec..c542a3cc8 100644 --- a/samples/kafka/receiver/main.go +++ b/samples/kafka/receiver/main.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package main import ( diff --git a/samples/kafka/sender-receiver/main.go b/samples/kafka/sender-receiver/main.go index 780f27860..e1df84042 100644 --- a/samples/kafka/sender-receiver/main.go +++ b/samples/kafka/sender-receiver/main.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package main import ( diff --git a/samples/kafka/sender/main.go b/samples/kafka/sender/main.go index 04e07642e..54ad4db1a 100644 --- a/samples/kafka/sender/main.go +++ b/samples/kafka/sender/main.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package main import ( diff --git a/samples/nats/message-interoperability/main.go b/samples/nats/message-interoperability/main.go index dd298ac8b..5ba0de5c0 100644 --- a/samples/nats/message-interoperability/main.go +++ b/samples/nats/message-interoperability/main.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package main import ( diff --git a/samples/nats/receiver/main.go b/samples/nats/receiver/main.go index 679886973..5dd61fbd2 100644 --- a/samples/nats/receiver/main.go +++ b/samples/nats/receiver/main.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package main import ( diff --git a/samples/nats/sender/main.go b/samples/nats/sender/main.go index 025bb86a6..8a86327df 100644 --- a/samples/nats/sender/main.go +++ b/samples/nats/sender/main.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package main import ( diff --git a/samples/pubsub/multireceiver/main.go b/samples/pubsub/multireceiver/main.go index 46c78478a..abfb86ddc 100644 --- a/samples/pubsub/multireceiver/main.go +++ b/samples/pubsub/multireceiver/main.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package main import ( diff --git a/samples/pubsub/multisender/main.go b/samples/pubsub/multisender/main.go index 81b744a66..af82b8054 100644 --- a/samples/pubsub/multisender/main.go +++ b/samples/pubsub/multisender/main.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package main import ( diff --git a/samples/pubsub/receiver/main.go b/samples/pubsub/receiver/main.go index 92a0fc937..1de164bb7 100644 --- a/samples/pubsub/receiver/main.go +++ b/samples/pubsub/receiver/main.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package main import ( diff --git a/samples/pubsub/sender/main.go b/samples/pubsub/sender/main.go index 137c6d90d..6853d3fd4 100644 --- a/samples/pubsub/sender/main.go +++ b/samples/pubsub/sender/main.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package main import ( diff --git a/samples/stan/receiver/main.go b/samples/stan/receiver/main.go index 7148a4eed..b8b9263a6 100644 --- a/samples/stan/receiver/main.go +++ b/samples/stan/receiver/main.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package main import ( diff --git a/samples/stan/sender-receiver/main.go b/samples/stan/sender-receiver/main.go index edc9d91d6..32281f2f6 100644 --- a/samples/stan/sender-receiver/main.go +++ b/samples/stan/sender-receiver/main.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package main import ( diff --git a/samples/stan/sender/main.go b/samples/stan/sender/main.go index ad5dd5665..1f711f937 100644 --- a/samples/stan/sender/main.go +++ b/samples/stan/sender/main.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package main import ( diff --git a/samples/ws/client/main.go b/samples/ws/client/main.go index 575aa6169..53ca28b35 100644 --- a/samples/ws/client/main.go +++ b/samples/ws/client/main.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package main import ( diff --git a/test/benchmark/buffering_vs_to_event/http_transformers_benchmark_test.go b/test/benchmark/buffering_vs_to_event/http_transformers_benchmark_test.go index 473b7351b..5f545592e 100644 --- a/test/benchmark/buffering_vs_to_event/http_transformers_benchmark_test.go +++ b/test/benchmark/buffering_vs_to_event/http_transformers_benchmark_test.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package buffering_vs_to_event_test import ( diff --git a/test/benchmark/buffering_vs_to_event/transformers_benchmark_test.go b/test/benchmark/buffering_vs_to_event/transformers_benchmark_test.go index 9a5c8aee0..46f8c96c0 100644 --- a/test/benchmark/buffering_vs_to_event/transformers_benchmark_test.go +++ b/test/benchmark/buffering_vs_to_event/transformers_benchmark_test.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package buffering_vs_to_event_test import ( diff --git a/test/benchmark/e2e/benchmark_case.go b/test/benchmark/e2e/benchmark_case.go index 72034935e..c355c22dd 100644 --- a/test/benchmark/e2e/benchmark_case.go +++ b/test/benchmark/e2e/benchmark_case.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package e2e type BenchmarkCase struct { diff --git a/test/benchmark/e2e/benchmark_result.go b/test/benchmark/e2e/benchmark_result.go index a50eff44f..08bffc8ed 100644 --- a/test/benchmark/e2e/benchmark_result.go +++ b/test/benchmark/e2e/benchmark_result.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package e2e import ( diff --git a/test/benchmark/e2e/doc.go b/test/benchmark/e2e/doc.go index 1cc267261..199ae17d8 100644 --- a/test/benchmark/e2e/doc.go +++ b/test/benchmark/e2e/doc.go @@ -1,2 +1,7 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + // Package e2e holds end-to-end eventing benchmarks. package e2e diff --git a/test/benchmark/e2e/http/http_mock.go b/test/benchmark/e2e/http/http_mock.go index 278013aec..17e3e2ede 100644 --- a/test/benchmark/e2e/http/http_mock.go +++ b/test/benchmark/e2e/http/http_mock.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package main import ( diff --git a/test/benchmark/e2e/http/main.go b/test/benchmark/e2e/http/main.go index 07bc63cfe..2cadf3b10 100644 --- a/test/benchmark/e2e/http/main.go +++ b/test/benchmark/e2e/http/main.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package main import ( diff --git a/test/benchmark/http_request_to_kafka_sarama_encode/benchmark_test.go b/test/benchmark/http_request_to_kafka_sarama_encode/benchmark_test.go index d02a83ec1..171be298c 100644 --- a/test/benchmark/http_request_to_kafka_sarama_encode/benchmark_test.go +++ b/test/benchmark/http_request_to_kafka_sarama_encode/benchmark_test.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package http_request_to_kafka_sarama_encode import ( diff --git a/test/benchmark/kafka_sarama_to_http_request_encode/benchmark_test.go b/test/benchmark/kafka_sarama_to_http_request_encode/benchmark_test.go index e0a5e1cd8..a4b86f72d 100644 --- a/test/benchmark/kafka_sarama_to_http_request_encode/benchmark_test.go +++ b/test/benchmark/kafka_sarama_to_http_request_encode/benchmark_test.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package kafka_sarama_to_http_request_encode import ( diff --git a/test/conformance/cloudevents_steps_test.go b/test/conformance/cloudevents_steps_test.go index 95a5d6475..597f9c91e 100644 --- a/test/conformance/cloudevents_steps_test.go +++ b/test/conformance/cloudevents_steps_test.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package conformance import ( diff --git a/test/conformance/http_steps_test.go b/test/conformance/http_steps_test.go index 832d89ab8..cbc111436 100644 --- a/test/conformance/http_steps_test.go +++ b/test/conformance/http_steps_test.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package conformance import ( diff --git a/test/conformance/kafka_steps_test.go b/test/conformance/kafka_steps_test.go index c0107b5f3..292b6f87d 100644 --- a/test/conformance/kafka_steps_test.go +++ b/test/conformance/kafka_steps_test.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package conformance import ( diff --git a/test/conformance/run_test.go b/test/conformance/run_test.go index 29f210d4d..5787d68f9 100644 --- a/test/conformance/run_test.go +++ b/test/conformance/run_test.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + // +build conformance package conformance diff --git a/test/integration/amqp/amqp_test.go b/test/integration/amqp/amqp_test.go index 37f3daf00..b700e1182 100644 --- a/test/integration/amqp/amqp_test.go +++ b/test/integration/amqp/amqp_test.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package amqp import ( diff --git a/test/integration/amqp_binding/amqp_test.go b/test/integration/amqp_binding/amqp_test.go index b2dce6399..28a3e03a3 100644 --- a/test/integration/amqp_binding/amqp_test.go +++ b/test/integration/amqp_binding/amqp_test.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package amqp_binding import ( diff --git a/test/integration/http/blocking_test.go b/test/integration/http/blocking_test.go index 8c3aaa949..ed63caae2 100644 --- a/test/integration/http/blocking_test.go +++ b/test/integration/http/blocking_test.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package http import ( diff --git a/test/integration/http/direct.go b/test/integration/http/direct.go index 8983f3a88..48a35adab 100644 --- a/test/integration/http/direct.go +++ b/test/integration/http/direct.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package http import ( diff --git a/test/integration/http/direct_v1_test.go b/test/integration/http/direct_v1_test.go index 138f3c32d..47a3a637b 100644 --- a/test/integration/http/direct_v1_test.go +++ b/test/integration/http/direct_v1_test.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package http import ( diff --git a/test/integration/http/doc.go b/test/integration/http/doc.go index 1adeef4e5..8312bd6f9 100644 --- a/test/integration/http/doc.go +++ b/test/integration/http/doc.go @@ -1,2 +1,7 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + // Package http contains HTTP integration test helpers. package http diff --git a/test/integration/http/loopback.go b/test/integration/http/loopback.go index 324073d28..1505ef4c7 100644 --- a/test/integration/http/loopback.go +++ b/test/integration/http/loopback.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package http import ( diff --git a/test/integration/http/loopback_setters_test.go b/test/integration/http/loopback_setters_test.go index 4757dcff7..c716a14dc 100644 --- a/test/integration/http/loopback_setters_test.go +++ b/test/integration/http/loopback_setters_test.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package http import ( diff --git a/test/integration/http/loopback_v03_test.go b/test/integration/http/loopback_v03_test.go index 95cc2eda3..44c54e818 100644 --- a/test/integration/http/loopback_v03_test.go +++ b/test/integration/http/loopback_v03_test.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package http import ( diff --git a/test/integration/http/loopback_v1_test.go b/test/integration/http/loopback_v1_test.go index f4db4dc86..7ad999e9c 100644 --- a/test/integration/http/loopback_v1_test.go +++ b/test/integration/http/loopback_v1_test.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package http import ( diff --git a/test/integration/http/middleware.go b/test/integration/http/middleware.go index 4d9c2fac4..6b7664835 100644 --- a/test/integration/http/middleware.go +++ b/test/integration/http/middleware.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package http import ( diff --git a/test/integration/http/middleware_v1_test.go b/test/integration/http/middleware_v1_test.go index 01b37a067..8bfb6630a 100644 --- a/test/integration/http/middleware_v1_test.go +++ b/test/integration/http/middleware_v1_test.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package http import ( diff --git a/test/integration/http/receiver.go b/test/integration/http/receiver.go index 22d5f53fd..67ef81ed5 100644 --- a/test/integration/http/receiver.go +++ b/test/integration/http/receiver.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package http import ( diff --git a/test/integration/http/receiver_v1_test.go b/test/integration/http/receiver_v1_test.go index 6be518773..a8976e2f4 100644 --- a/test/integration/http/receiver_v1_test.go +++ b/test/integration/http/receiver_v1_test.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package http import ( diff --git a/test/integration/http/responder_v1_test.go b/test/integration/http/responder_v1_test.go index 698b02ad7..cfd72f861 100644 --- a/test/integration/http/responder_v1_test.go +++ b/test/integration/http/responder_v1_test.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package http import ( diff --git a/test/integration/http/tap_handler.go b/test/integration/http/tap_handler.go index 6957e112b..9d14ab0c1 100644 --- a/test/integration/http/tap_handler.go +++ b/test/integration/http/tap_handler.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package http import ( diff --git a/test/integration/http/validation.go b/test/integration/http/validation.go index 23ba9f04f..2ed1028b8 100644 --- a/test/integration/http/validation.go +++ b/test/integration/http/validation.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package http import ( diff --git a/test/integration/http_binding/http_test.go b/test/integration/http_binding/http_test.go index a8922784a..52ae099fb 100644 --- a/test/integration/http_binding/http_test.go +++ b/test/integration/http_binding/http_test.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package http_binding_test import ( diff --git a/test/integration/kafka_sarama/kafka_test.go b/test/integration/kafka_sarama/kafka_test.go index 7cd83e61c..404e0367e 100644 --- a/test/integration/kafka_sarama/kafka_test.go +++ b/test/integration/kafka_sarama/kafka_test.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package kafka_sarama_binding import ( diff --git a/test/integration/kafka_sarama_binding/kafka_test.go b/test/integration/kafka_sarama_binding/kafka_test.go index e7595c9aa..70bd611ce 100644 --- a/test/integration/kafka_sarama_binding/kafka_test.go +++ b/test/integration/kafka_sarama_binding/kafka_test.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package kafka_sarama_binding import ( diff --git a/test/integration/nats/nats_test.go b/test/integration/nats/nats_test.go index 26218e1fd..5db6e29be 100644 --- a/test/integration/nats/nats_test.go +++ b/test/integration/nats/nats_test.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package nats import ( diff --git a/test/integration/stan/stan_test.go b/test/integration/stan/stan_test.go index f7f90688c..41e8c22d4 100644 --- a/test/integration/stan/stan_test.go +++ b/test/integration/stan/stan_test.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package stan import ( diff --git a/tools/http/raw/main.go b/tools/http/raw/main.go index 457f9a9eb..653eac8cc 100644 --- a/tools/http/raw/main.go +++ b/tools/http/raw/main.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package main import ( diff --git a/v2/alias.go b/v2/alias.go index 332cb67c1..e7ed3a357 100644 --- a/v2/alias.go +++ b/v2/alias.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + // Package v2 reexports a subset of the SDK v2 API. package v2 diff --git a/v2/binding/binary_writer.go b/v2/binding/binary_writer.go index a99cd0b70..97f2c4dd7 100644 --- a/v2/binding/binary_writer.go +++ b/v2/binding/binary_writer.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package binding import ( diff --git a/v2/binding/buffering/acks_before_finish_message.go b/v2/binding/buffering/acks_before_finish_message.go index 4e7a33f0b..366443e11 100644 --- a/v2/binding/buffering/acks_before_finish_message.go +++ b/v2/binding/buffering/acks_before_finish_message.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package buffering import ( diff --git a/v2/binding/buffering/acks_before_finish_message_test.go b/v2/binding/buffering/acks_before_finish_message_test.go index 2b21ffcd7..2a0cb9d2c 100644 --- a/v2/binding/buffering/acks_before_finish_message_test.go +++ b/v2/binding/buffering/acks_before_finish_message_test.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package buffering import ( diff --git a/v2/binding/buffering/binary_buffer_message.go b/v2/binding/buffering/binary_buffer_message.go index 356b0975e..f02522eeb 100644 --- a/v2/binding/buffering/binary_buffer_message.go +++ b/v2/binding/buffering/binary_buffer_message.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package buffering import ( diff --git a/v2/binding/buffering/copy_message.go b/v2/binding/buffering/copy_message.go index 6740839ac..c704bb2aa 100644 --- a/v2/binding/buffering/copy_message.go +++ b/v2/binding/buffering/copy_message.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package buffering import ( diff --git a/v2/binding/buffering/copy_message_benchmark_test.go b/v2/binding/buffering/copy_message_benchmark_test.go index 3c36818c2..248d1f152 100644 --- a/v2/binding/buffering/copy_message_benchmark_test.go +++ b/v2/binding/buffering/copy_message_benchmark_test.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package buffering import ( diff --git a/v2/binding/buffering/copy_message_test.go b/v2/binding/buffering/copy_message_test.go index 84a5facc7..70cb6f8ff 100644 --- a/v2/binding/buffering/copy_message_test.go +++ b/v2/binding/buffering/copy_message_test.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package buffering import ( diff --git a/v2/binding/buffering/doc.go b/v2/binding/buffering/doc.go index fefa83c3b..0bb6a2a44 100644 --- a/v2/binding/buffering/doc.go +++ b/v2/binding/buffering/doc.go @@ -1,2 +1,7 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + // Package buffering provides APIs for buffered messages. package buffering diff --git a/v2/binding/buffering/struct_buffer_message.go b/v2/binding/buffering/struct_buffer_message.go index 90adb7570..d2ffe49c5 100644 --- a/v2/binding/buffering/struct_buffer_message.go +++ b/v2/binding/buffering/struct_buffer_message.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package buffering import ( diff --git a/v2/binding/doc.go b/v2/binding/doc.go index 1176fad80..8fa999789 100644 --- a/v2/binding/doc.go +++ b/v2/binding/doc.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + /* Package binding defines interfaces for protocol bindings. diff --git a/v2/binding/encoding.go b/v2/binding/encoding.go index 0b6efe636..16611a3d7 100644 --- a/v2/binding/encoding.go +++ b/v2/binding/encoding.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package binding import "errors" diff --git a/v2/binding/event_message.go b/v2/binding/event_message.go index 130327d45..f82c729c4 100644 --- a/v2/binding/event_message.go +++ b/v2/binding/event_message.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package binding import ( diff --git a/v2/binding/event_message_test.go b/v2/binding/event_message_test.go index 810133c78..5be98e9b5 100644 --- a/v2/binding/event_message_test.go +++ b/v2/binding/event_message_test.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package binding_test import ( diff --git a/v2/binding/finish_message.go b/v2/binding/finish_message.go index 17445bfe5..8b51c4c61 100644 --- a/v2/binding/finish_message.go +++ b/v2/binding/finish_message.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package binding import "github.com/cloudevents/sdk-go/v2/binding/spec" diff --git a/v2/binding/finish_message_test.go b/v2/binding/finish_message_test.go index 43b6c5f92..ace887a78 100644 --- a/v2/binding/finish_message_test.go +++ b/v2/binding/finish_message_test.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package binding_test import ( diff --git a/v2/binding/format/doc.go b/v2/binding/format/doc.go index ab153afbb..54c3f1a8c 100644 --- a/v2/binding/format/doc.go +++ b/v2/binding/format/doc.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + /* Package format formats structured events. diff --git a/v2/binding/format/format.go b/v2/binding/format/format.go index 9e2b1ec67..2d840025e 100644 --- a/v2/binding/format/format.go +++ b/v2/binding/format/format.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package format import ( diff --git a/v2/binding/format/format_test.go b/v2/binding/format/format_test.go index 282787eec..00397b6a5 100644 --- a/v2/binding/format/format_test.go +++ b/v2/binding/format/format_test.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package format_test import ( diff --git a/v2/binding/message.go b/v2/binding/message.go index ce239556c..e30e150c0 100644 --- a/v2/binding/message.go +++ b/v2/binding/message.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package binding import ( diff --git a/v2/binding/spec/attributes.go b/v2/binding/spec/attributes.go index 20ec1ce92..3c3021d46 100644 --- a/v2/binding/spec/attributes.go +++ b/v2/binding/spec/attributes.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package spec import ( diff --git a/v2/binding/spec/attributes_test.go b/v2/binding/spec/attributes_test.go index 72f5e7ed9..b7d2aff1e 100644 --- a/v2/binding/spec/attributes_test.go +++ b/v2/binding/spec/attributes_test.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package spec_test import ( diff --git a/v2/binding/spec/doc.go b/v2/binding/spec/doc.go index 38d6fddf9..44c0b3145 100644 --- a/v2/binding/spec/doc.go +++ b/v2/binding/spec/doc.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + /* Package spec provides spec-version metadata. diff --git a/v2/binding/spec/match_exact_version.go b/v2/binding/spec/match_exact_version.go index 5976faf12..110787ddc 100644 --- a/v2/binding/spec/match_exact_version.go +++ b/v2/binding/spec/match_exact_version.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package spec import ( diff --git a/v2/binding/spec/match_exact_version_test.go b/v2/binding/spec/match_exact_version_test.go index 1314dec7a..24ca62715 100644 --- a/v2/binding/spec/match_exact_version_test.go +++ b/v2/binding/spec/match_exact_version_test.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package spec_test import ( diff --git a/v2/binding/spec/spec.go b/v2/binding/spec/spec.go index 4de589185..7fa0f5840 100644 --- a/v2/binding/spec/spec.go +++ b/v2/binding/spec/spec.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package spec import ( diff --git a/v2/binding/spec/spec_test.go b/v2/binding/spec/spec_test.go index f56e509a7..d3ea5f474 100644 --- a/v2/binding/spec/spec_test.go +++ b/v2/binding/spec/spec_test.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package spec_test import ( diff --git a/v2/binding/structured_writer.go b/v2/binding/structured_writer.go index 8cf2bbe3e..60256f2b3 100644 --- a/v2/binding/structured_writer.go +++ b/v2/binding/structured_writer.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package binding import ( diff --git a/v2/binding/test/doc.go b/v2/binding/test/doc.go index 2de93f709..0c5b3d525 100644 --- a/v2/binding/test/doc.go +++ b/v2/binding/test/doc.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + /* Package test provides utilities to test binding implementations and transformers. */ diff --git a/v2/binding/test/mock_binary_message.go b/v2/binding/test/mock_binary_message.go index 4d2c8164b..23456e61f 100644 --- a/v2/binding/test/mock_binary_message.go +++ b/v2/binding/test/mock_binary_message.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package test import ( diff --git a/v2/binding/test/mock_structured_message.go b/v2/binding/test/mock_structured_message.go index 405fa0e18..cb9e54b46 100644 --- a/v2/binding/test/mock_structured_message.go +++ b/v2/binding/test/mock_structured_message.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package test import ( diff --git a/v2/binding/test/mock_transformer.go b/v2/binding/test/mock_transformer.go index 854f5fee4..9fe1eaa80 100644 --- a/v2/binding/test/mock_transformer.go +++ b/v2/binding/test/mock_transformer.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package test import ( diff --git a/v2/binding/test/mock_unknown_message.go b/v2/binding/test/mock_unknown_message.go index 33f96a6b4..59f7e55ba 100644 --- a/v2/binding/test/mock_unknown_message.go +++ b/v2/binding/test/mock_unknown_message.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package test import ( diff --git a/v2/binding/test/transformer.go b/v2/binding/test/transformer.go index e3ec71a6d..325b114a4 100644 --- a/v2/binding/test/transformer.go +++ b/v2/binding/test/transformer.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package test import ( diff --git a/v2/binding/to_event.go b/v2/binding/to_event.go index 5f76e3ef2..339a7833c 100644 --- a/v2/binding/to_event.go +++ b/v2/binding/to_event.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package binding import ( diff --git a/v2/binding/to_event_test.go b/v2/binding/to_event_test.go index 9541cff28..0a0e00c00 100644 --- a/v2/binding/to_event_test.go +++ b/v2/binding/to_event_test.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package binding_test import ( diff --git a/v2/binding/transformer.go b/v2/binding/transformer.go index 6ab4f1e5d..de3bec44f 100644 --- a/v2/binding/transformer.go +++ b/v2/binding/transformer.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package binding // Transformer is an interface that implements a transformation diff --git a/v2/binding/transformer/add_metadata.go b/v2/binding/transformer/add_metadata.go index bb50793a3..cbdaa124e 100644 --- a/v2/binding/transformer/add_metadata.go +++ b/v2/binding/transformer/add_metadata.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package transformer import ( diff --git a/v2/binding/transformer/add_metadata_test.go b/v2/binding/transformer/add_metadata_test.go index e367b38bb..25eee27fa 100644 --- a/v2/binding/transformer/add_metadata_test.go +++ b/v2/binding/transformer/add_metadata_test.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package transformer import ( diff --git a/v2/binding/transformer/default_metadata.go b/v2/binding/transformer/default_metadata.go index b9c9265d5..16fdf908a 100644 --- a/v2/binding/transformer/default_metadata.go +++ b/v2/binding/transformer/default_metadata.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package transformer import ( diff --git a/v2/binding/transformer/default_metadata_test.go b/v2/binding/transformer/default_metadata_test.go index e1375b75c..5323431b0 100644 --- a/v2/binding/transformer/default_metadata_test.go +++ b/v2/binding/transformer/default_metadata_test.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package transformer import ( diff --git a/v2/binding/transformer/delete_metadata.go b/v2/binding/transformer/delete_metadata.go index 2ef025fe5..86b42ab2c 100644 --- a/v2/binding/transformer/delete_metadata.go +++ b/v2/binding/transformer/delete_metadata.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package transformer import ( diff --git a/v2/binding/transformer/delete_metadata_test.go b/v2/binding/transformer/delete_metadata_test.go index 67839d8c5..c2412065a 100644 --- a/v2/binding/transformer/delete_metadata_test.go +++ b/v2/binding/transformer/delete_metadata_test.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package transformer import ( diff --git a/v2/binding/transformer/doc.go b/v2/binding/transformer/doc.go index 35fa19adb..f86057157 100644 --- a/v2/binding/transformer/doc.go +++ b/v2/binding/transformer/doc.go @@ -1,2 +1,7 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + // Package transformer provides methods for creating event message transformers. package transformer diff --git a/v2/binding/transformer/set_metadata.go b/v2/binding/transformer/set_metadata.go index 4b1ad0074..06617423c 100644 --- a/v2/binding/transformer/set_metadata.go +++ b/v2/binding/transformer/set_metadata.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package transformer import ( diff --git a/v2/binding/transformer/set_metadata_test.go b/v2/binding/transformer/set_metadata_test.go index a6cada3f2..b8248835d 100644 --- a/v2/binding/transformer/set_metadata_test.go +++ b/v2/binding/transformer/set_metadata_test.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package transformer import ( diff --git a/v2/binding/transformer/version.go b/v2/binding/transformer/version.go index cdb98cf5d..ab2e37a0e 100644 --- a/v2/binding/transformer/version.go +++ b/v2/binding/transformer/version.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package transformer import ( diff --git a/v2/binding/transformer/version_test.go b/v2/binding/transformer/version_test.go index 3f71393c3..39d1f3ee2 100644 --- a/v2/binding/transformer/version_test.go +++ b/v2/binding/transformer/version_test.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package transformer import ( diff --git a/v2/binding/utils/structured_message.go b/v2/binding/utils/structured_message.go index e62c8ed93..6a56c9dc9 100644 --- a/v2/binding/utils/structured_message.go +++ b/v2/binding/utils/structured_message.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package utils import ( diff --git a/v2/binding/utils/structured_message_test.go b/v2/binding/utils/structured_message_test.go index f2cba2b91..d4ff7a99b 100644 --- a/v2/binding/utils/structured_message_test.go +++ b/v2/binding/utils/structured_message_test.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package utils_test import ( diff --git a/v2/binding/utils/write_structured_message.go b/v2/binding/utils/write_structured_message.go index c3d5f2b26..05efe9adf 100644 --- a/v2/binding/utils/write_structured_message.go +++ b/v2/binding/utils/write_structured_message.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package utils import ( diff --git a/v2/binding/utils/write_structured_message_test.go b/v2/binding/utils/write_structured_message_test.go index 57df5677f..d51a5c190 100644 --- a/v2/binding/utils/write_structured_message_test.go +++ b/v2/binding/utils/write_structured_message_test.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package utils_test import ( diff --git a/v2/binding/write.go b/v2/binding/write.go index ff7cf5fb7..cb498e62d 100644 --- a/v2/binding/write.go +++ b/v2/binding/write.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package binding import ( diff --git a/v2/client/client.go b/v2/client/client.go index 088d88f78..0be62d7fc 100644 --- a/v2/client/client.go +++ b/v2/client/client.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package client import ( diff --git a/v2/client/client_http.go b/v2/client/client_http.go index 13e0d6430..d48cc2042 100644 --- a/v2/client/client_http.go +++ b/v2/client/client_http.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package client import ( diff --git a/v2/client/client_observed.go b/v2/client/client_observed.go index 83edc953b..82985b8a7 100644 --- a/v2/client/client_observed.go +++ b/v2/client/client_observed.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package client // NewObserved produces a new client with the provided transport object and applied diff --git a/v2/client/client_test.go b/v2/client/client_test.go index 8d82c02a2..e9fd21ea5 100644 --- a/v2/client/client_test.go +++ b/v2/client/client_test.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package client_test import ( diff --git a/v2/client/defaulters.go b/v2/client/defaulters.go index 5d0d7bc94..7bfebf35c 100644 --- a/v2/client/defaulters.go +++ b/v2/client/defaulters.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package client import ( diff --git a/v2/client/defaulters_test.go b/v2/client/defaulters_test.go index ceec23af8..16349e94e 100644 --- a/v2/client/defaulters_test.go +++ b/v2/client/defaulters_test.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package client import ( diff --git a/v2/client/doc.go b/v2/client/doc.go index a6a602bb4..e09962ce6 100644 --- a/v2/client/doc.go +++ b/v2/client/doc.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + /* Package client holds the recommended entry points for interacting with the CloudEvents Golang SDK. The client wraps a selected transport. The client adds validation and defaulting for sending events, and flexible receiver method diff --git a/v2/client/http_receiver.go b/v2/client/http_receiver.go index d926bd309..94a4b4e65 100644 --- a/v2/client/http_receiver.go +++ b/v2/client/http_receiver.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package client import ( diff --git a/v2/client/http_receiver_test.go b/v2/client/http_receiver_test.go index 54b698e73..0b64202bc 100644 --- a/v2/client/http_receiver_test.go +++ b/v2/client/http_receiver_test.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package client_test import ( diff --git a/v2/client/invoker.go b/v2/client/invoker.go index 1d812a78d..e6d11f55f 100644 --- a/v2/client/invoker.go +++ b/v2/client/invoker.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package client import ( diff --git a/v2/client/observability.go b/v2/client/observability.go index 4ffb83433..75005d3bb 100644 --- a/v2/client/observability.go +++ b/v2/client/observability.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package client import ( diff --git a/v2/client/options.go b/v2/client/options.go index a1facfc23..d0fe9dbaa 100644 --- a/v2/client/options.go +++ b/v2/client/options.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package client import ( diff --git a/v2/client/options_test.go b/v2/client/options_test.go index a11b02d25..d712496e3 100644 --- a/v2/client/options_test.go +++ b/v2/client/options_test.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package client import ( diff --git a/v2/client/receiver.go b/v2/client/receiver.go index 0d2dbf474..b1ab532d7 100644 --- a/v2/client/receiver.go +++ b/v2/client/receiver.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package client import ( diff --git a/v2/client/receiver_test.go b/v2/client/receiver_test.go index 88bd21678..f373ba5e2 100644 --- a/v2/client/receiver_test.go +++ b/v2/client/receiver_test.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package client import ( diff --git a/v2/client/test/mock_client.go b/v2/client/test/mock_client.go index dec90c8bb..0fab26f17 100644 --- a/v2/client/test/mock_client.go +++ b/v2/client/test/mock_client.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package test import ( diff --git a/v2/client/test/mock_client_test.go b/v2/client/test/mock_client_test.go index 4760da190..e9a146258 100644 --- a/v2/client/test/mock_client_test.go +++ b/v2/client/test/mock_client_test.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package test import ( diff --git a/v2/client/test/test.go b/v2/client/test/test.go index 3a7ffbc9c..5124cfd6c 100644 --- a/v2/client/test/test.go +++ b/v2/client/test/test.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + // Package test provides Client test helpers. package test diff --git a/v2/context/context.go b/v2/context/context.go index f9843dd61..fc9ef0315 100644 --- a/v2/context/context.go +++ b/v2/context/context.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package context import ( diff --git a/v2/context/context_test.go b/v2/context/context_test.go index 7b6d8e43b..a82f7836d 100644 --- a/v2/context/context_test.go +++ b/v2/context/context_test.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package context_test import ( diff --git a/v2/context/doc.go b/v2/context/doc.go index 377cab850..0b2dcaf70 100644 --- a/v2/context/doc.go +++ b/v2/context/doc.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + /* Package context holds the last resort overrides and fyi objects that can be passed to clients and transports added to context.Context objects. diff --git a/v2/context/logger.go b/v2/context/logger.go index 996f72057..b3087a79f 100644 --- a/v2/context/logger.go +++ b/v2/context/logger.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package context import ( diff --git a/v2/context/logger_test.go b/v2/context/logger_test.go index b1aa1f1e8..7103ba5bc 100644 --- a/v2/context/logger_test.go +++ b/v2/context/logger_test.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package context import ( diff --git a/v2/context/retry.go b/v2/context/retry.go index f590d4662..ec17df72e 100644 --- a/v2/context/retry.go +++ b/v2/context/retry.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package context import ( diff --git a/v2/context/retry_test.go b/v2/context/retry_test.go index 8da46ac15..639b276d8 100644 --- a/v2/context/retry_test.go +++ b/v2/context/retry_test.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package context import ( diff --git a/v2/event/content_type.go b/v2/event/content_type.go index 591878e5d..a49522f82 100644 --- a/v2/event/content_type.go +++ b/v2/event/content_type.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package event const ( diff --git a/v2/event/content_type_test.go b/v2/event/content_type_test.go index caf802673..cb12680d4 100644 --- a/v2/event/content_type_test.go +++ b/v2/event/content_type_test.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package event_test import ( diff --git a/v2/event/data_content_encoding.go b/v2/event/data_content_encoding.go index 24c4094fc..cf2152693 100644 --- a/v2/event/data_content_encoding.go +++ b/v2/event/data_content_encoding.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package event const ( diff --git a/v2/event/data_content_encoding_test.go b/v2/event/data_content_encoding_test.go index b96ba9956..200718703 100644 --- a/v2/event/data_content_encoding_test.go +++ b/v2/event/data_content_encoding_test.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package event_test import ( diff --git a/v2/event/datacodec/codec.go b/v2/event/datacodec/codec.go index fd68ca559..3e077740b 100644 --- a/v2/event/datacodec/codec.go +++ b/v2/event/datacodec/codec.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package datacodec import ( diff --git a/v2/event/datacodec/codec_test.go b/v2/event/datacodec/codec_test.go index 983f5e925..0fd96ef5d 100644 --- a/v2/event/datacodec/codec_test.go +++ b/v2/event/datacodec/codec_test.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package datacodec_test import ( diff --git a/v2/event/datacodec/doc.go b/v2/event/datacodec/doc.go index 9e401534e..b681af887 100644 --- a/v2/event/datacodec/doc.go +++ b/v2/event/datacodec/doc.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + /* Package datacodec holds the data codec registry and adds known encoders and decoders supporting media types such as `application/json` and `application/xml`. diff --git a/v2/event/datacodec/json/data.go b/v2/event/datacodec/json/data.go index f40869b34..734ade59f 100644 --- a/v2/event/datacodec/json/data.go +++ b/v2/event/datacodec/json/data.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package json import ( diff --git a/v2/event/datacodec/json/data_test.go b/v2/event/datacodec/json/data_test.go index c5f740a84..c8a568c43 100644 --- a/v2/event/datacodec/json/data_test.go +++ b/v2/event/datacodec/json/data_test.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package json_test import ( diff --git a/v2/event/datacodec/json/doc.go b/v2/event/datacodec/json/doc.go index 86772c2e3..33e1323c7 100644 --- a/v2/event/datacodec/json/doc.go +++ b/v2/event/datacodec/json/doc.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + /* Package json holds the encoder/decoder implementation for `application/json`. */ diff --git a/v2/event/datacodec/text/data.go b/v2/event/datacodec/text/data.go index 5e6ddc080..761a10113 100644 --- a/v2/event/datacodec/text/data.go +++ b/v2/event/datacodec/text/data.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package text import ( diff --git a/v2/event/datacodec/text/data_test.go b/v2/event/datacodec/text/data_test.go index 6a90deb3b..b0b79521f 100644 --- a/v2/event/datacodec/text/data_test.go +++ b/v2/event/datacodec/text/data_test.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package text_test import ( diff --git a/v2/event/datacodec/text/doc.go b/v2/event/datacodec/text/doc.go index 13316702e..af10577aa 100644 --- a/v2/event/datacodec/text/doc.go +++ b/v2/event/datacodec/text/doc.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + /* Package text holds the encoder/decoder implementation for `text/plain`. */ diff --git a/v2/event/datacodec/xml/data.go b/v2/event/datacodec/xml/data.go index 13045e03d..de68ec3dc 100644 --- a/v2/event/datacodec/xml/data.go +++ b/v2/event/datacodec/xml/data.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package xml import ( diff --git a/v2/event/datacodec/xml/data_test.go b/v2/event/datacodec/xml/data_test.go index cdfb01dc0..54e0b4625 100644 --- a/v2/event/datacodec/xml/data_test.go +++ b/v2/event/datacodec/xml/data_test.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package xml_test import ( diff --git a/v2/event/datacodec/xml/doc.go b/v2/event/datacodec/xml/doc.go index d90b7c444..c8d73213f 100644 --- a/v2/event/datacodec/xml/doc.go +++ b/v2/event/datacodec/xml/doc.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + /* Package xml holds the encoder/decoder implementation for `application/xml`. */ diff --git a/v2/event/doc.go b/v2/event/doc.go index eebbeb4ef..31c22ce67 100644 --- a/v2/event/doc.go +++ b/v2/event/doc.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + /* Package event provides primitives to work with CloudEvents specification: https://github.com/cloudevents/spec. */ diff --git a/v2/event/event.go b/v2/event/event.go index 3860f8873..94b5aa0ad 100644 --- a/v2/event/event.go +++ b/v2/event/event.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package event import ( diff --git a/v2/event/event_data.go b/v2/event/event_data.go index c85fe7e52..0f1831482 100644 --- a/v2/event/event_data.go +++ b/v2/event/event_data.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package event import ( diff --git a/v2/event/event_data_test.go b/v2/event/event_data_test.go index 1d707f097..78b658976 100644 --- a/v2/event/event_data_test.go +++ b/v2/event/event_data_test.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package event_test import ( diff --git a/v2/event/event_interface.go b/v2/event/event_interface.go index af87454d8..2809fed57 100644 --- a/v2/event/event_interface.go +++ b/v2/event/event_interface.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package event import ( diff --git a/v2/event/event_marshal.go b/v2/event/event_marshal.go index 8ec489bb1..c5f2dc03c 100644 --- a/v2/event/event_marshal.go +++ b/v2/event/event_marshal.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package event import ( diff --git a/v2/event/event_marshal_benchmark_test.go b/v2/event/event_marshal_benchmark_test.go index 35c6a4e8c..111a619ae 100644 --- a/v2/event/event_marshal_benchmark_test.go +++ b/v2/event/event_marshal_benchmark_test.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package event_test import ( diff --git a/v2/event/event_marshal_roundtrip_test.go b/v2/event/event_marshal_roundtrip_test.go index 99795e291..8b7aba1bc 100644 --- a/v2/event/event_marshal_roundtrip_test.go +++ b/v2/event/event_marshal_roundtrip_test.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package event_test import ( diff --git a/v2/event/event_marshal_test.go b/v2/event/event_marshal_test.go index a33a8ca82..34f12ba56 100644 --- a/v2/event/event_marshal_test.go +++ b/v2/event/event_marshal_test.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package event_test import ( diff --git a/v2/event/event_reader.go b/v2/event/event_reader.go index 86ca609b4..9d1aeeb65 100644 --- a/v2/event/event_reader.go +++ b/v2/event/event_reader.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package event import ( diff --git a/v2/event/event_reader_writer_test.go b/v2/event/event_reader_writer_test.go index f5d1981a9..1ca8a50c4 100644 --- a/v2/event/event_reader_writer_test.go +++ b/v2/event/event_reader_writer_test.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package event_test import ( diff --git a/v2/event/event_test.go b/v2/event/event_test.go index d68206a91..7c7064a32 100644 --- a/v2/event/event_test.go +++ b/v2/event/event_test.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package event_test import ( diff --git a/v2/event/event_unmarshal.go b/v2/event/event_unmarshal.go index 60473e60e..138c398ab 100644 --- a/v2/event/event_unmarshal.go +++ b/v2/event/event_unmarshal.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package event import ( diff --git a/v2/event/event_unmarshal_benchmark_test.go b/v2/event/event_unmarshal_benchmark_test.go index 4b8a8d3c9..e6efc1e2f 100644 --- a/v2/event/event_unmarshal_benchmark_test.go +++ b/v2/event/event_unmarshal_benchmark_test.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package event_test import ( diff --git a/v2/event/event_unmarshal_test.go b/v2/event/event_unmarshal_test.go index 61acf8087..b4376e6fb 100644 --- a/v2/event/event_unmarshal_test.go +++ b/v2/event/event_unmarshal_test.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package event_test import ( diff --git a/v2/event/event_validation.go b/v2/event/event_validation.go index b5759fa4e..958ecc47d 100644 --- a/v2/event/event_validation.go +++ b/v2/event/event_validation.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package event import ( diff --git a/v2/event/event_writer.go b/v2/event/event_writer.go index 00018cbdb..ddfb1be38 100644 --- a/v2/event/event_writer.go +++ b/v2/event/event_writer.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package event import ( diff --git a/v2/event/eventcontext.go b/v2/event/eventcontext.go index 2d0611215..a39565afa 100644 --- a/v2/event/eventcontext.go +++ b/v2/event/eventcontext.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package event import "time" diff --git a/v2/event/eventcontext_test.go b/v2/event/eventcontext_test.go index a02e2bffd..5938f4ce9 100644 --- a/v2/event/eventcontext_test.go +++ b/v2/event/eventcontext_test.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package event_test import ( diff --git a/v2/event/eventcontext_v03.go b/v2/event/eventcontext_v03.go index c626311df..561f4c5df 100644 --- a/v2/event/eventcontext_v03.go +++ b/v2/event/eventcontext_v03.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package event import ( diff --git a/v2/event/eventcontext_v03_reader.go b/v2/event/eventcontext_v03_reader.go index 5e6dbd831..2cd27a705 100644 --- a/v2/event/eventcontext_v03_reader.go +++ b/v2/event/eventcontext_v03_reader.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package event import ( diff --git a/v2/event/eventcontext_v03_test.go b/v2/event/eventcontext_v03_test.go index 32610e9da..3909eb960 100644 --- a/v2/event/eventcontext_v03_test.go +++ b/v2/event/eventcontext_v03_test.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package event_test import ( diff --git a/v2/event/eventcontext_v03_writer.go b/v2/event/eventcontext_v03_writer.go index 94748c67c..5d664635e 100644 --- a/v2/event/eventcontext_v03_writer.go +++ b/v2/event/eventcontext_v03_writer.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package event import ( diff --git a/v2/event/eventcontext_v1.go b/v2/event/eventcontext_v1.go index 6695e1509..01f97586f 100644 --- a/v2/event/eventcontext_v1.go +++ b/v2/event/eventcontext_v1.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package event import ( diff --git a/v2/event/eventcontext_v1_reader.go b/v2/event/eventcontext_v1_reader.go index eef6f4ef5..74f73b029 100644 --- a/v2/event/eventcontext_v1_reader.go +++ b/v2/event/eventcontext_v1_reader.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package event import ( diff --git a/v2/event/eventcontext_v1_test.go b/v2/event/eventcontext_v1_test.go index 5d4cbe263..77a03ee10 100644 --- a/v2/event/eventcontext_v1_test.go +++ b/v2/event/eventcontext_v1_test.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package event_test import ( diff --git a/v2/event/eventcontext_v1_writer.go b/v2/event/eventcontext_v1_writer.go index 1ec29e65e..5f2aca763 100644 --- a/v2/event/eventcontext_v1_writer.go +++ b/v2/event/eventcontext_v1_writer.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package event import ( diff --git a/v2/event/extensions.go b/v2/event/extensions.go index 3d0210fb0..6c4193f34 100644 --- a/v2/event/extensions.go +++ b/v2/event/extensions.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package event import ( diff --git a/v2/extensions/distributed_tracing_extension.go b/v2/extensions/distributed_tracing_extension.go index 1b30aa9ff..12c2e06fc 100644 --- a/v2/extensions/distributed_tracing_extension.go +++ b/v2/extensions/distributed_tracing_extension.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package extensions import ( diff --git a/v2/extensions/distributed_tracing_extension_test.go b/v2/extensions/distributed_tracing_extension_test.go index 5dc093605..5b3be63f1 100644 --- a/v2/extensions/distributed_tracing_extension_test.go +++ b/v2/extensions/distributed_tracing_extension_test.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package extensions_test import ( diff --git a/v2/extensions/doc.go b/v2/extensions/doc.go index d71269042..fbf5d0ebe 100644 --- a/v2/extensions/doc.go +++ b/v2/extensions/doc.go @@ -1,2 +1,7 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + // Package extensions provides implementations of common event extensions. package extensions diff --git a/v2/observability/doc.go b/v2/observability/doc.go index 0619c36c4..023e81cb0 100644 --- a/v2/observability/doc.go +++ b/v2/observability/doc.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + /* Package observability holds metrics and tracing common keys. */ diff --git a/v2/observability/keys.go b/v2/observability/keys.go index 6e72fba2d..87e970114 100644 --- a/v2/observability/keys.go +++ b/v2/observability/keys.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package observability const ( diff --git a/v2/protocol/doc.go b/v2/protocol/doc.go index d14bf7f98..f826a1841 100644 --- a/v2/protocol/doc.go +++ b/v2/protocol/doc.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + /* Package protocol defines interfaces to decouple the client package from protocol implementations. diff --git a/v2/protocol/error.go b/v2/protocol/error.go index 0c9530d19..a3f335261 100644 --- a/v2/protocol/error.go +++ b/v2/protocol/error.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package protocol import "fmt" diff --git a/v2/protocol/gochan/doc.go b/v2/protocol/gochan/doc.go index 938418fa6..e4021b3b9 100644 --- a/v2/protocol/gochan/doc.go +++ b/v2/protocol/gochan/doc.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + /* Package gochan implements the CloudEvent transport implementation using go chan. */ diff --git a/v2/protocol/gochan/protocol.go b/v2/protocol/gochan/protocol.go index ca4ae86a1..3d2926f71 100644 --- a/v2/protocol/gochan/protocol.go +++ b/v2/protocol/gochan/protocol.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package gochan import ( diff --git a/v2/protocol/gochan/protocol_test.go b/v2/protocol/gochan/protocol_test.go index fa8aaefa7..ec7092565 100644 --- a/v2/protocol/gochan/protocol_test.go +++ b/v2/protocol/gochan/protocol_test.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package gochan import ( diff --git a/v2/protocol/gochan/receiver.go b/v2/protocol/gochan/receiver.go index d606f99d9..6547b17d7 100644 --- a/v2/protocol/gochan/receiver.go +++ b/v2/protocol/gochan/receiver.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package gochan import ( diff --git a/v2/protocol/gochan/requester.go b/v2/protocol/gochan/requester.go index 1d62cc3aa..5c17f8c7d 100644 --- a/v2/protocol/gochan/requester.go +++ b/v2/protocol/gochan/requester.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package gochan import ( diff --git a/v2/protocol/gochan/responder.go b/v2/protocol/gochan/responder.go index ca9fca22e..b5a1e0a07 100644 --- a/v2/protocol/gochan/responder.go +++ b/v2/protocol/gochan/responder.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package gochan import ( diff --git a/v2/protocol/gochan/sender.go b/v2/protocol/gochan/sender.go index d65801594..512dcdf77 100644 --- a/v2/protocol/gochan/sender.go +++ b/v2/protocol/gochan/sender.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package gochan import ( diff --git a/v2/protocol/http/abuse_protection.go b/v2/protocol/http/abuse_protection.go index eb004101f..89222a20c 100644 --- a/v2/protocol/http/abuse_protection.go +++ b/v2/protocol/http/abuse_protection.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package http import ( diff --git a/v2/protocol/http/doc.go b/v2/protocol/http/doc.go index 5c04b88af..3428ea387 100644 --- a/v2/protocol/http/doc.go +++ b/v2/protocol/http/doc.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + /* Package http implements an HTTP binding using net/http module */ diff --git a/v2/protocol/http/headers.go b/v2/protocol/http/headers.go index 527395ab7..055a5c4dd 100644 --- a/v2/protocol/http/headers.go +++ b/v2/protocol/http/headers.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package http import ( diff --git a/v2/protocol/http/headers_test.go b/v2/protocol/http/headers_test.go index 6af0d84c2..a801942c7 100644 --- a/v2/protocol/http/headers_test.go +++ b/v2/protocol/http/headers_test.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package http import ( diff --git a/v2/protocol/http/message.go b/v2/protocol/http/message.go index 44ef42948..e7e51d034 100644 --- a/v2/protocol/http/message.go +++ b/v2/protocol/http/message.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package http import ( diff --git a/v2/protocol/http/message_test.go b/v2/protocol/http/message_test.go index b017aa293..be46a4e97 100644 --- a/v2/protocol/http/message_test.go +++ b/v2/protocol/http/message_test.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package http import ( diff --git a/v2/protocol/http/options.go b/v2/protocol/http/options.go index 2ec0a5812..55031939c 100644 --- a/v2/protocol/http/options.go +++ b/v2/protocol/http/options.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package http import ( diff --git a/v2/protocol/http/options_test.go b/v2/protocol/http/options_test.go index 01730a0f3..ba7e3eba8 100644 --- a/v2/protocol/http/options_test.go +++ b/v2/protocol/http/options_test.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package http import ( diff --git a/v2/protocol/http/protocol.go b/v2/protocol/http/protocol.go index 6a4a8dd38..de0ca7741 100644 --- a/v2/protocol/http/protocol.go +++ b/v2/protocol/http/protocol.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package http import ( diff --git a/v2/protocol/http/protocol_lifecycle.go b/v2/protocol/http/protocol_lifecycle.go index 70c15b07c..dacfd30f6 100644 --- a/v2/protocol/http/protocol_lifecycle.go +++ b/v2/protocol/http/protocol_lifecycle.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package http import ( diff --git a/v2/protocol/http/protocol_retry.go b/v2/protocol/http/protocol_retry.go index bfb1f5af2..fb7bcd27e 100644 --- a/v2/protocol/http/protocol_retry.go +++ b/v2/protocol/http/protocol_retry.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package http import ( diff --git a/v2/protocol/http/protocol_retry_test.go b/v2/protocol/http/protocol_retry_test.go index cfb069b28..06a7bd504 100644 --- a/v2/protocol/http/protocol_retry_test.go +++ b/v2/protocol/http/protocol_retry_test.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package http import ( diff --git a/v2/protocol/http/protocol_test.go b/v2/protocol/http/protocol_test.go index 5a0dfdcff..a5047a7a1 100644 --- a/v2/protocol/http/protocol_test.go +++ b/v2/protocol/http/protocol_test.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package http import ( diff --git a/v2/protocol/http/result.go b/v2/protocol/http/result.go index 149e6872c..7a0b2626c 100644 --- a/v2/protocol/http/result.go +++ b/v2/protocol/http/result.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package http import ( diff --git a/v2/protocol/http/result_test.go b/v2/protocol/http/result_test.go index 7f314754c..7c77c957e 100644 --- a/v2/protocol/http/result_test.go +++ b/v2/protocol/http/result_test.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package http import ( diff --git a/v2/protocol/http/retries_result.go b/v2/protocol/http/retries_result.go index 0f25f7059..f4046d522 100644 --- a/v2/protocol/http/retries_result.go +++ b/v2/protocol/http/retries_result.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package http import ( diff --git a/v2/protocol/http/retries_result_test.go b/v2/protocol/http/retries_result_test.go index 79d23e1a7..bf844eded 100644 --- a/v2/protocol/http/retries_result_test.go +++ b/v2/protocol/http/retries_result_test.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package http import ( diff --git a/v2/protocol/http/write_request.go b/v2/protocol/http/write_request.go index e0c0d3072..43ad36180 100644 --- a/v2/protocol/http/write_request.go +++ b/v2/protocol/http/write_request.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package http import ( diff --git a/v2/protocol/http/write_responsewriter.go b/v2/protocol/http/write_responsewriter.go index 9646ca49f..41385dab1 100644 --- a/v2/protocol/http/write_responsewriter.go +++ b/v2/protocol/http/write_responsewriter.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package http import ( diff --git a/v2/protocol/http/write_responsewriter_test.go b/v2/protocol/http/write_responsewriter_test.go index e7afad3d6..9b58ec320 100644 --- a/v2/protocol/http/write_responsewriter_test.go +++ b/v2/protocol/http/write_responsewriter_test.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package http import ( diff --git a/v2/protocol/inbound.go b/v2/protocol/inbound.go index 39181771f..e7a74294d 100644 --- a/v2/protocol/inbound.go +++ b/v2/protocol/inbound.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package protocol import ( diff --git a/v2/protocol/lifecycle.go b/v2/protocol/lifecycle.go index 22ae08e09..4a058c962 100644 --- a/v2/protocol/lifecycle.go +++ b/v2/protocol/lifecycle.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package protocol import ( diff --git a/v2/protocol/outbound.go b/v2/protocol/outbound.go index b0a87761e..e44fa432a 100644 --- a/v2/protocol/outbound.go +++ b/v2/protocol/outbound.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package protocol import ( diff --git a/v2/protocol/result.go b/v2/protocol/result.go index 25f4d5654..eae64e018 100644 --- a/v2/protocol/result.go +++ b/v2/protocol/result.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package protocol import ( diff --git a/v2/protocol/result_test.go b/v2/protocol/result_test.go index 104c6c7fa..892d1aab5 100644 --- a/v2/protocol/result_test.go +++ b/v2/protocol/result_test.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package protocol import ( diff --git a/v2/protocol/test/benchmark.go b/v2/protocol/test/benchmark.go index d7b4626d6..0dd09ace8 100644 --- a/v2/protocol/test/benchmark.go +++ b/v2/protocol/test/benchmark.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package test import ( diff --git a/v2/protocol/test/doc.go b/v2/protocol/test/doc.go index c71a7934d..eba6e5bce 100644 --- a/v2/protocol/test/doc.go +++ b/v2/protocol/test/doc.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package test /* diff --git a/v2/protocol/test/test.go b/v2/protocol/test/test.go index 150fe98fe..3a250e360 100644 --- a/v2/protocol/test/test.go +++ b/v2/protocol/test/test.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + // Package test provides re-usable functions for binding tests. package test diff --git a/v2/protocol/test/test_test.go b/v2/protocol/test/test_test.go index 6746ab8a5..c75a860c0 100644 --- a/v2/protocol/test/test_test.go +++ b/v2/protocol/test/test_test.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package test_test import ( diff --git a/v2/test/doc.go b/v2/test/doc.go index 111e6f491..7ae8ea290 100644 --- a/v2/test/doc.go +++ b/v2/test/doc.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + /* Package test has utilities (asserts, mocks, ...) to use cloudevents in your tests */ diff --git a/v2/test/event_asserts.go b/v2/test/event_asserts.go index 746977136..8f5ba9884 100644 --- a/v2/test/event_asserts.go +++ b/v2/test/event_asserts.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package test import ( diff --git a/v2/test/event_asserts_test.go b/v2/test/event_asserts_test.go index 7704bd402..f85089c4d 100644 --- a/v2/test/event_asserts_test.go +++ b/v2/test/event_asserts_test.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package test import ( diff --git a/v2/test/event_matchers.go b/v2/test/event_matchers.go index 7df4a7256..712fc7b0b 100644 --- a/v2/test/event_matchers.go +++ b/v2/test/event_matchers.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package test import ( diff --git a/v2/test/event_matchers_test.go b/v2/test/event_matchers_test.go index 6312649d5..a50079a9a 100644 --- a/v2/test/event_matchers_test.go +++ b/v2/test/event_matchers_test.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package test import ( diff --git a/v2/test/event_mocks.go b/v2/test/event_mocks.go index 05e5675b1..bc32daa12 100644 --- a/v2/test/event_mocks.go +++ b/v2/test/event_mocks.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + // Package test contains test data and generic tests for testing bindings. package test diff --git a/v2/test/helpers.go b/v2/test/helpers.go index ddb9c321a..f4e93a6a6 100644 --- a/v2/test/helpers.go +++ b/v2/test/helpers.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package test import ( diff --git a/v2/types/allocate.go b/v2/types/allocate.go index c38f71177..814626874 100644 --- a/v2/types/allocate.go +++ b/v2/types/allocate.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package types import "reflect" diff --git a/v2/types/allocate_test.go b/v2/types/allocate_test.go index 888e86558..bced17ffc 100644 --- a/v2/types/allocate_test.go +++ b/v2/types/allocate_test.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package types_test import ( diff --git a/v2/types/doc.go b/v2/types/doc.go index b1d9c29da..cf7a94f35 100644 --- a/v2/types/doc.go +++ b/v2/types/doc.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + /* Package types implements the CloudEvents type system. diff --git a/v2/types/timestamp.go b/v2/types/timestamp.go index 3ae1c7def..ff049727d 100644 --- a/v2/types/timestamp.go +++ b/v2/types/timestamp.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package types import ( diff --git a/v2/types/timestamp_test.go b/v2/types/timestamp_test.go index f95020d37..9e51a0c4b 100644 --- a/v2/types/timestamp_test.go +++ b/v2/types/timestamp_test.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package types_test import ( diff --git a/v2/types/uri.go b/v2/types/uri.go index 4ada9178d..bed608094 100644 --- a/v2/types/uri.go +++ b/v2/types/uri.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package types import ( diff --git a/v2/types/uri_test.go b/v2/types/uri_test.go index 2b7fdfdf4..8e2da5603 100644 --- a/v2/types/uri_test.go +++ b/v2/types/uri_test.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package types_test import ( diff --git a/v2/types/uriref.go b/v2/types/uriref.go index e19a1dbb7..22fa12314 100644 --- a/v2/types/uriref.go +++ b/v2/types/uriref.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package types import ( diff --git a/v2/types/uriref_test.go b/v2/types/uriref_test.go index 4638e4653..a01c9f67e 100644 --- a/v2/types/uriref_test.go +++ b/v2/types/uriref_test.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package types_test import ( diff --git a/v2/types/value.go b/v2/types/value.go index adfbdd687..f643d0aa5 100644 --- a/v2/types/value.go +++ b/v2/types/value.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package types import ( diff --git a/v2/types/value_test.go b/v2/types/value_test.go index 5aafe8a67..bdbe840db 100644 --- a/v2/types/value_test.go +++ b/v2/types/value_test.go @@ -1,3 +1,8 @@ +/* + Copyright 2021 The CloudEvents Authors + SPDX-License-Identifier: Apache-2.0 +*/ + package types_test import (