From 8d18c3263e454898d8f3bda995e1ad6f8ee8e9c1 Mon Sep 17 00:00:00 2001 From: Bence Csati Date: Thu, 14 Mar 2024 19:36:48 +0100 Subject: [PATCH 1/2] configs and readme Signed-off-by: Bence Csati --- .github/workflows/ci.yaml | 40 ++++++++++++++++++++++++++++ .licensei.toml | 55 +++++++++++++++++++++++++++++++++++++++ Makefile | 8 +++++- README.md | 25 +++++++++++++----- 4 files changed, 121 insertions(+), 7 deletions(-) create mode 100644 .licensei.toml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 9bdcf6e1c..91427285f 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -167,6 +167,46 @@ jobs: - name: Check commit messages run: nix develop --impure .#ci -c pre-commit run --hook-stage manual + license-check: + name: License check + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2 + + - name: Set up Nix + uses: cachix/install-nix-action@8887e596b4ee1134dae06b98d573bd674693f47c # v26 + with: + extra_nix_config: | + access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} + + - name: Set up magic Nix cache + uses: DeterminateSystems/magic-nix-cache-action@eeabdb06718ac63a7021c6132129679a8e22d0c7 # v3 + + - name: Cache license information + uses: actions/cache@ab5e6d0c87105b4c9c2047343972218f562e4319 # v4.0.1 + with: + path: .licensei.cache + key: licensei-v1-${{ github.ref_name }}-${{ hashFiles('go.sum') }} + restore-keys: | + licensei-v1-${{ github.ref_name }} + licensei-v1-main + licensei-v1 + + - name: Prepare Nix shell + run: nix develop --impure .#ci + + - name: Populate license cache + run: nix develop --impure .#ci -c licensei cache + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - name: Check licenses + run: nix develop --impure .#ci -c make license-check + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + dev: name: Developer environment runs-on: ubuntu-latest diff --git a/.licensei.toml b/.licensei.toml new file mode 100644 index 000000000..4c143592f --- /dev/null +++ b/.licensei.toml @@ -0,0 +1,55 @@ +approved = [ + "apache-2.0", + "mit", + "mit-0", + "bsd-2-clause", + "bsd-3-clause", + "mpl-2.0", + "isc", + "epl-2.0", + "richard-crowley", +] + +ignored = [ + "github.com/xeipuuv/gojsonpointer", # Apache 2.0 + "github.com/xeipuuv/gojsonreference", # Apache 2.0 + "github.com/xeipuuv/gojsonschema", # Apache 2.0 + "github.com/couchbase/gocbcoreps", # Apache 2.0 + "github.com/confluentinc/confluent-kafka-go/v2", # Apache 2.0 + "github.com/JohnCGriffin/overflow", # MIT + "github.com/invopop/yaml", # MIT + "github.com/form3tech-oss/jwt-go", #MIT + "github.com/russross/blackfriday/v2", # 2-Clause BSD + "github.com/gogo/protobuf", # 3-Clause BSD + "github.com/rcrowley/go-metrics", # Richard Crowley + + "cuelang.org/go", # Apache 2.0 + "go.mongodb.org/mongo-driver", # Apache 2.0 + + # Unsupported VCS + "google.golang.org/protobuf", # 3-Clause BSD + "modernc.org/libc", # 3-Clause BSD + "modernc.org/mathutil", # 3-Clause BSD + "modernc.org/memory", # 3-Clause BSD + "modernc.org/sqlite", # 3-Clause BSD + + # No license + "github.com/couchbase/goprotostellar", +] + +[header] +ignorePaths = [".devenv", ".direnv", "vendor", "client", ".gen"] +ignoreFiles = ["*.gen.go"] +template = """// Copyright © :YEAR: Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License.""" diff --git a/Makefile b/Makefile index d4ebfe2e1..148d85cd6 100644 --- a/Makefile +++ b/Makefile @@ -57,7 +57,7 @@ config.yaml: cp config.example.yaml config.yaml .PHONY: server -server: ## Run sink-worker +server: ## Run server @ if [ config.yaml -ot config.example.yaml ]; then diff -u config.yaml config.example.yaml || (echo "!!! The configuration example changed. Please update your config.yaml file accordingly (or at least touch it). !!!" && false); fi $(call print-target) air -c ./cmd/server/.air.toml @@ -95,6 +95,12 @@ lint: ## Run linters $(call print-target) dagger call lint all +.PHONY: license-check +license-check: ## Run license check + $(call print-target) + licensei check + licensei header + .PHONY: fmt fmt: ## Format code $(call print-target) diff --git a/README.md b/README.md index 319e25220..65640e1cd 100644 --- a/README.md +++ b/README.md @@ -134,16 +134,11 @@ Run the dependencies: make up ``` -Run OpenMeter: - -```sh -make run -``` - Run tests: ```sh make test +make etoe ``` Run linters: @@ -152,6 +147,24 @@ Run linters: make lint ``` +Some linter violations can automatically be fixed: + +```shell +make fmt +``` + +Generate go code: + +```shell +make generate +``` + +Once you are done, you can tear down project dependencies: + +```shell +make down +``` + ## Roadmap Visit our website at [https://openmeter.io](https://openmeter.io#roadmap) for our public roadmap. From f890ab4fe2a64a19bc508e0cd8e387120e210654 Mon Sep 17 00:00:00 2001 From: Bence Csati Date: Fri, 15 Mar 2024 11:21:28 +0100 Subject: [PATCH 2/2] feat: add license headers Signed-off-by: Bence Csati --- .dagger/build.go | 14 ++++++++++++++ .dagger/ci.go | 14 ++++++++++++++ .dagger/dev.go | 14 ++++++++++++++ .dagger/generate.go | 14 ++++++++++++++ .dagger/lint.go | 14 ++++++++++++++ .dagger/main.go | 14 ++++++++++++++ .dagger/migrate.go | 14 ++++++++++++++ .dagger/release.go | 14 ++++++++++++++ .dagger/snapshot.go | 14 ++++++++++++++ .dagger/test.go | 14 ++++++++++++++ .dagger/test_e2e.go | 14 ++++++++++++++ .dagger/utils.go | 14 ++++++++++++++ .dagger/versions.go | 14 ++++++++++++++ .dagger/versions_pinned.go | 14 ++++++++++++++ .licensei.toml | 14 ++++---------- api/api.go | 14 ++++++++++++++ api/client/go/client.go | 14 ++++++++++++++ api/client/go/error.go | 14 ++++++++++++++ api/types/doc.go | 14 ++++++++++++++ api/types/entitlement.go | 14 ++++++++++++++ cmd/balance-worker/main.go | 14 ++++++++++++++ cmd/balance-worker/version.go | 14 ++++++++++++++ cmd/benthos-collector/main.go | 14 ++++++++++++++ cmd/jobs/config/loader.go | 14 ++++++++++++++ cmd/jobs/entitlement/init.go | 14 ++++++++++++++ cmd/jobs/entitlement/recalculatesnapshots.go | 14 ++++++++++++++ cmd/jobs/entitlement/root.go | 14 ++++++++++++++ cmd/jobs/main.go | 14 ++++++++++++++ cmd/jobs/service/otel.go | 14 ++++++++++++++ cmd/jobs/version.go | 14 ++++++++++++++ cmd/notification-service/main.go | 14 ++++++++++++++ cmd/notification-service/version.go | 14 ++++++++++++++ cmd/server/main.go | 14 ++++++++++++++ cmd/server/version.go | 14 ++++++++++++++ cmd/sink-worker/main.go | 14 ++++++++++++++ cmd/sink-worker/version.go | 14 ++++++++++++++ collector/benthos/input/kubernetes.go | 14 ++++++++++++++ collector/benthos/input/otel_log.go | 14 ++++++++++++++ collector/benthos/input/schedule.go | 14 ++++++++++++++ collector/benthos/internal/message/batch.go | 14 ++++++++++++++ collector/benthos/internal/message/transaction.go | 14 ++++++++++++++ collector/benthos/internal/shutdown/signaler.go | 14 ++++++++++++++ collector/benthos/output/openmeter.go | 14 ++++++++++++++ collector/benthos/output/otel_log.go | 14 ++++++++++++++ config/aggregation.go | 14 ++++++++++++++ config/balanceworker.go | 14 ++++++++++++++ config/config.go | 14 ++++++++++++++ config/config_test.go | 14 ++++++++++++++ config/dedupe.go | 14 ++++++++++++++ config/entitlements.go | 14 ++++++++++++++ config/events.go | 14 ++++++++++++++ config/helpers.go | 14 ++++++++++++++ config/ingest.go | 14 ++++++++++++++ config/ingest_test.go | 14 ++++++++++++++ config/kafka.go | 14 ++++++++++++++ config/namespace.go | 14 ++++++++++++++ config/notification.go | 14 ++++++++++++++ config/portal.go | 14 ++++++++++++++ config/postgres.go | 14 ++++++++++++++ config/sink.go | 14 ++++++++++++++ config/svix.go | 14 ++++++++++++++ config/telemetry.go | 14 ++++++++++++++ config/viper.go | 14 ++++++++++++++ e2e/e2e_test.go | 14 ++++++++++++++ openmeter/billing/config.go | 14 ++++++++++++++ openmeter/billing/invoice/status.go | 14 ++++++++++++++ openmeter/billing/invoice/tax.go | 14 ++++++++++++++ openmeter/billing/provider/config.go | 14 ++++++++++++++ openmeter/billing/provider/reference.go | 14 ++++++++++++++ openmeter/credit/adapter/balance_snapshot.go | 14 ++++++++++++++ openmeter/credit/adapter/grant.go | 14 ++++++++++++++ openmeter/credit/adapter/transaction.go | 14 ++++++++++++++ openmeter/credit/balance.go | 14 ++++++++++++++ openmeter/credit/balance/balance.go | 14 ++++++++++++++ openmeter/credit/balance/balance_test.go | 14 ++++++++++++++ openmeter/credit/balance/repository.go | 14 ++++++++++++++ openmeter/credit/connector.go | 14 ++++++++++++++ openmeter/credit/driver/grant.go | 14 ++++++++++++++ openmeter/credit/engine/engine.go | 14 ++++++++++++++ openmeter/credit/engine/engine_test.go | 14 ++++++++++++++ openmeter/credit/engine/history.go | 14 ++++++++++++++ openmeter/credit/grant.go | 14 ++++++++++++++ openmeter/credit/grant/events.go | 14 ++++++++++++++ openmeter/credit/grant/expiration.go | 14 ++++++++++++++ openmeter/credit/grant/grant.go | 14 ++++++++++++++ openmeter/credit/grant/owner_connector.go | 14 ++++++++++++++ openmeter/credit/grant/repo.go | 14 ++++++++++++++ openmeter/customer/customer.go | 14 ++++++++++++++ openmeter/customer/errors.go | 14 ++++++++++++++ openmeter/customer/repository.go | 14 ++++++++++++++ openmeter/customer/repository/customer.go | 14 ++++++++++++++ openmeter/customer/repository/entitymapping.go | 14 ++++++++++++++ openmeter/customer/repository/repository.go | 14 ++++++++++++++ openmeter/customer/service.go | 14 ++++++++++++++ openmeter/debug/debug.go | 14 ++++++++++++++ openmeter/debug/httpdriver/metrics.go | 14 ++++++++++++++ openmeter/dedupe/dedupe.go | 14 ++++++++++++++ openmeter/dedupe/memorydedupe/memorydedupe.go | 14 ++++++++++++++ openmeter/dedupe/memorydedupe/memorydedupe_test.go | 14 ++++++++++++++ openmeter/dedupe/redisdedupe/redisdedupe.go | 14 ++++++++++++++ openmeter/ent/entc.go | 14 ++++++++++++++ openmeter/ent/generate.go | 14 ++++++++++++++ openmeter/ent/schema/balance_snapshot.go | 14 ++++++++++++++ openmeter/ent/schema/billing.go | 14 ++++++++++++++ openmeter/ent/schema/customer.go | 14 ++++++++++++++ openmeter/ent/schema/entitlement.go | 14 ++++++++++++++ openmeter/ent/schema/feature.go | 14 ++++++++++++++ openmeter/ent/schema/grant.go | 14 ++++++++++++++ openmeter/ent/schema/notification.go | 14 ++++++++++++++ openmeter/ent/schema/usage_reset.go | 14 ++++++++++++++ openmeter/entitlement/adapter/entitlement.go | 14 ++++++++++++++ openmeter/entitlement/adapter/transaction.go | 14 ++++++++++++++ openmeter/entitlement/adapter/usage_reset.go | 14 ++++++++++++++ .../balanceworker/entitlementhandler.go | 14 ++++++++++++++ .../entitlement/balanceworker/ingesthandler.go | 14 ++++++++++++++ openmeter/entitlement/balanceworker/recalculate.go | 14 ++++++++++++++ openmeter/entitlement/balanceworker/repository.go | 14 ++++++++++++++ openmeter/entitlement/balanceworker/worker.go | 14 ++++++++++++++ openmeter/entitlement/boolean/connector.go | 14 ++++++++++++++ openmeter/entitlement/boolean/entitlement.go | 14 ++++++++++++++ openmeter/entitlement/connector.go | 14 ++++++++++++++ openmeter/entitlement/driver/entitlement.go | 14 ++++++++++++++ openmeter/entitlement/driver/errors.go | 14 ++++++++++++++ openmeter/entitlement/driver/metered.go | 14 ++++++++++++++ openmeter/entitlement/driver/parser.go | 14 ++++++++++++++ openmeter/entitlement/entitlement.go | 14 ++++++++++++++ openmeter/entitlement/entitlement_test.go | 14 ++++++++++++++ openmeter/entitlement/entitlement_types.go | 14 ++++++++++++++ openmeter/entitlement/errors.go | 14 ++++++++++++++ openmeter/entitlement/events.go | 14 ++++++++++++++ openmeter/entitlement/metered/balance.go | 14 ++++++++++++++ openmeter/entitlement/metered/balance_test.go | 14 ++++++++++++++ openmeter/entitlement/metered/connector.go | 14 ++++++++++++++ openmeter/entitlement/metered/entitlement.go | 14 ++++++++++++++ openmeter/entitlement/metered/entitlement_grant.go | 14 ++++++++++++++ openmeter/entitlement/metered/events.go | 14 ++++++++++++++ .../entitlement/metered/grant_owner_adapter.go | 14 ++++++++++++++ openmeter/entitlement/metered/repository.go | 14 ++++++++++++++ openmeter/entitlement/metered/reset.go | 14 ++++++++++++++ openmeter/entitlement/metered/reset_test.go | 14 ++++++++++++++ openmeter/entitlement/metered/utils_test.go | 14 ++++++++++++++ openmeter/entitlement/repository.go | 14 ++++++++++++++ openmeter/entitlement/snapshot/event.go | 14 ++++++++++++++ openmeter/entitlement/static/connector.go | 14 ++++++++++++++ openmeter/entitlement/static/entitlement.go | 14 ++++++++++++++ openmeter/event/metadata/event_type.go | 14 ++++++++++++++ openmeter/event/metadata/resourcepath.go | 14 ++++++++++++++ openmeter/event/models/models.go | 14 ++++++++++++++ openmeter/event/models/subject.go | 14 ++++++++++++++ openmeter/ingest/dedupe.go | 14 ++++++++++++++ openmeter/ingest/dedupe_test.go | 14 ++++++++++++++ openmeter/ingest/ingest.go | 14 ++++++++++++++ openmeter/ingest/ingestadapter/metrics.go | 14 ++++++++++++++ openmeter/ingest/ingestdriver/http_transport.go | 14 ++++++++++++++ .../ingest/ingestdriver/http_transport_test.go | 14 ++++++++++++++ openmeter/ingest/inmemory.go | 14 ++++++++++++++ openmeter/ingest/inmemory_test.go | 14 ++++++++++++++ openmeter/ingest/kafkaingest/collector.go | 14 ++++++++++++++ openmeter/ingest/kafkaingest/namespace.go | 14 ++++++++++++++ openmeter/ingest/kafkaingest/serializer/json.go | 14 ++++++++++++++ .../ingest/kafkaingest/serializer/serializer.go | 14 ++++++++++++++ openmeter/ingest/service.go | 14 ++++++++++++++ openmeter/meter/inmemory.go | 14 ++++++++++++++ openmeter/meter/meter.go | 14 ++++++++++++++ openmeter/meter/validate.go | 14 ++++++++++++++ openmeter/meter/validate_test.go | 14 ++++++++++++++ openmeter/namespace/namespace.go | 14 ++++++++++++++ openmeter/namespace/namespace_test.go | 14 ++++++++++++++ openmeter/namespace/namespacedriver/decoder.go | 14 ++++++++++++++ openmeter/notification/annotations.go | 14 ++++++++++++++ openmeter/notification/channel.go | 14 ++++++++++++++ .../notification/consumer/balancethreshold_test.go | 14 ++++++++++++++ openmeter/notification/consumer/balancetreshold.go | 14 ++++++++++++++ openmeter/notification/consumer/consumer.go | 14 ++++++++++++++ openmeter/notification/defaults.go | 14 ++++++++++++++ openmeter/notification/errors.go | 14 ++++++++++++++ openmeter/notification/event.go | 14 ++++++++++++++ openmeter/notification/eventhandler.go | 14 ++++++++++++++ openmeter/notification/eventhandler/handler.go | 14 ++++++++++++++ openmeter/notification/httpdriver/channel.go | 14 ++++++++++++++ openmeter/notification/httpdriver/errors.go | 14 ++++++++++++++ openmeter/notification/httpdriver/event.go | 14 ++++++++++++++ openmeter/notification/httpdriver/handler.go | 14 ++++++++++++++ openmeter/notification/httpdriver/rule.go | 14 ++++++++++++++ openmeter/notification/internal/rule.go | 14 ++++++++++++++ openmeter/notification/repository.go | 14 ++++++++++++++ openmeter/notification/repository/channel.go | 14 ++++++++++++++ openmeter/notification/repository/entitymapping.go | 14 ++++++++++++++ openmeter/notification/repository/event.go | 14 ++++++++++++++ openmeter/notification/repository/repository.go | 14 ++++++++++++++ openmeter/notification/repository/rule.go | 14 ++++++++++++++ openmeter/notification/rule.go | 14 ++++++++++++++ openmeter/notification/service.go | 14 ++++++++++++++ openmeter/notification/service/channel.go | 14 ++++++++++++++ openmeter/notification/service/event.go | 14 ++++++++++++++ openmeter/notification/service/rule.go | 14 ++++++++++++++ openmeter/notification/service/service.go | 14 ++++++++++++++ openmeter/notification/utils.go | 14 ++++++++++++++ openmeter/notification/utils_test.go | 14 ++++++++++++++ openmeter/notification/validator.go | 14 ++++++++++++++ openmeter/notification/webhook/errors.go | 14 ++++++++++++++ openmeter/notification/webhook/events.go | 14 ++++++++++++++ openmeter/notification/webhook/secret.go | 14 ++++++++++++++ openmeter/notification/webhook/svix.go | 14 ++++++++++++++ openmeter/notification/webhook/webhook.go | 14 ++++++++++++++ openmeter/productcatalog/adapter/feature.go | 14 ++++++++++++++ openmeter/productcatalog/adapter/feature_test.go | 14 ++++++++++++++ openmeter/productcatalog/adapter/transaction.go | 14 ++++++++++++++ openmeter/productcatalog/connector.go | 14 ++++++++++++++ openmeter/productcatalog/driver/errors.go | 14 ++++++++++++++ openmeter/productcatalog/driver/feature.go | 14 ++++++++++++++ openmeter/productcatalog/driver/parser.go | 14 ++++++++++++++ openmeter/productcatalog/feature.go | 14 ++++++++++++++ openmeter/registry/builder/entitlement.go | 14 ++++++++++++++ openmeter/registry/entitlement.go | 14 ++++++++++++++ openmeter/registry/startup/db.go | 14 ++++++++++++++ openmeter/server/authenticator/authenticator.go | 14 ++++++++++++++ openmeter/server/authenticator/portal.go | 14 ++++++++++++++ openmeter/server/cors.go | 14 ++++++++++++++ openmeter/server/logger.go | 14 ++++++++++++++ openmeter/server/router/credit.go | 14 ++++++++++++++ openmeter/server/router/debug.go | 14 ++++++++++++++ openmeter/server/router/entitlement.go | 14 ++++++++++++++ openmeter/server/router/event.go | 14 ++++++++++++++ openmeter/server/router/meter.go | 14 ++++++++++++++ openmeter/server/router/meter_query.go | 14 ++++++++++++++ openmeter/server/router/meter_subject.go | 14 ++++++++++++++ openmeter/server/router/noop.go | 14 ++++++++++++++ openmeter/server/router/notification.go | 14 ++++++++++++++ openmeter/server/router/portal.go | 14 ++++++++++++++ openmeter/server/router/product_catalog.go | 14 ++++++++++++++ openmeter/server/router/router.go | 14 ++++++++++++++ openmeter/server/router/subject.go | 14 ++++++++++++++ openmeter/server/server.go | 14 ++++++++++++++ openmeter/server/server_test.go | 14 ++++++++++++++ openmeter/sink/buffer.go | 14 ++++++++++++++ openmeter/sink/buffer_test.go | 14 ++++++++++++++ openmeter/sink/flushhandler/handler.go | 14 ++++++++++++++ .../ingestnotification/events/events.go | 14 ++++++++++++++ .../flushhandler/ingestnotification/handler.go | 14 ++++++++++++++ openmeter/sink/flushhandler/meters.go | 14 ++++++++++++++ openmeter/sink/flushhandler/mux.go | 14 ++++++++++++++ openmeter/sink/flushhandler/types.go | 14 ++++++++++++++ openmeter/sink/models/models.go | 14 ++++++++++++++ openmeter/sink/namespaces.go | 14 ++++++++++++++ openmeter/sink/namespaces_test.go | 14 ++++++++++++++ openmeter/sink/partition.go | 14 ++++++++++++++ openmeter/sink/sink.go | 14 ++++++++++++++ openmeter/sink/storage.go | 14 ++++++++++++++ openmeter/sink/storage_test.go | 14 ++++++++++++++ .../streaming/clickhouse_connector/connector.go | 14 ++++++++++++++ openmeter/streaming/clickhouse_connector/model.go | 14 ++++++++++++++ openmeter/streaming/clickhouse_connector/query.go | 14 ++++++++++++++ .../streaming/clickhouse_connector/query_test.go | 14 ++++++++++++++ openmeter/streaming/connector.go | 14 ++++++++++++++ openmeter/streaming/query_params.go | 14 ++++++++++++++ openmeter/streaming/query_params_test.go | 14 ++++++++++++++ openmeter/streaming/testutils/streaming.go | 14 ++++++++++++++ openmeter/streaming/testutils/streaming_test.go | 14 ++++++++++++++ openmeter/testutils/async.go | 14 ++++++++++++++ openmeter/testutils/logger.go | 14 ++++++++++++++ openmeter/testutils/pg_driver.go | 14 ++++++++++++++ openmeter/testutils/time.go | 14 ++++++++++++++ openmeter/watermill/driver/kafka/broker.go | 14 ++++++++++++++ openmeter/watermill/driver/kafka/logger.go | 14 ++++++++++++++ openmeter/watermill/driver/kafka/marshaler.go | 14 ++++++++++++++ openmeter/watermill/driver/kafka/metrics.go | 14 ++++++++++++++ .../watermill/driver/kafka/metrics/adapter.go | 14 ++++++++++++++ openmeter/watermill/driver/kafka/publisher.go | 14 ++++++++++++++ openmeter/watermill/driver/kafka/subscriber.go | 14 ++++++++++++++ .../watermill/driver/kafka/topic_provision.go | 14 ++++++++++++++ openmeter/watermill/driver/noop/publisher.go | 14 ++++++++++++++ openmeter/watermill/eventbus/eventbus.go | 14 ++++++++++++++ openmeter/watermill/grouphandler/grouphandler.go | 14 ++++++++++++++ openmeter/watermill/marshaler/marshaler.go | 14 ++++++++++++++ openmeter/watermill/marshaler/source.go | 14 ++++++++++++++ openmeter/watermill/marshaler/source_test.go | 14 ++++++++++++++ openmeter/watermill/nopublisher/nopublisher.go | 14 ++++++++++++++ openmeter/watermill/router/context.go | 14 ++++++++++++++ openmeter/watermill/router/metrics.go | 14 ++++++++++++++ openmeter/watermill/router/router.go | 14 ++++++++++++++ openmeter/watermill/router/router_test.go | 14 ++++++++++++++ pkg/clock/clock.go | 14 ++++++++++++++ pkg/clock/clock_test.go | 14 ++++++++++++++ pkg/contextx/attr.go | 14 ++++++++++++++ pkg/contextx/log.go | 14 ++++++++++++++ pkg/convert/ptr.go | 14 ++++++++++++++ pkg/defaultx/default.go | 14 ++++++++++++++ pkg/errorsx/convert.go | 14 ++++++++++++++ pkg/errorsx/handler.go | 14 ++++++++++++++ pkg/framework/commonhttp/decoder.go | 14 ++++++++++++++ pkg/framework/commonhttp/encoder.go | 14 ++++++++++++++ pkg/framework/commonhttp/errors.go | 14 ++++++++++++++ pkg/framework/commonhttp/pagination.go | 14 ++++++++++++++ pkg/framework/commonhttp/sort.go | 14 ++++++++++++++ pkg/framework/commonhttp/union.go | 14 ++++++++++++++ pkg/framework/entutils/entdriver/driver.go | 14 ++++++++++++++ pkg/framework/entutils/entexpose/entexpose.go | 14 ++++++++++++++ pkg/framework/entutils/entpaginate/paginate.go | 14 ++++++++++++++ .../entutils/entpaginate/paginate_test.go | 14 ++++++++++++++ pkg/framework/entutils/mixins.go | 14 ++++++++++++++ pkg/framework/entutils/pgjsonb.go | 14 ++++++++++++++ pkg/framework/entutils/pgulid.go | 14 ++++++++++++++ pkg/framework/entutils/sort.go | 14 ++++++++++++++ pkg/framework/entutils/testutils/ent1/entc.go | 14 ++++++++++++++ pkg/framework/entutils/testutils/ent1/generate.go | 14 ++++++++++++++ .../entutils/testutils/ent1/schema/example1.go | 14 ++++++++++++++ pkg/framework/entutils/testutils/ent2/entc.go | 14 ++++++++++++++ pkg/framework/entutils/testutils/ent2/generate.go | 14 ++++++++++++++ .../entutils/testutils/ent2/schema/example2.go | 14 ++++++++++++++ pkg/framework/entutils/transaction.go | 14 ++++++++++++++ pkg/framework/entutils/transaction_test.go | 14 ++++++++++++++ pkg/framework/internal/operation/name.go | 14 ++++++++++++++ pkg/framework/operation/log.go | 14 ++++++++++++++ pkg/framework/operation/middleware.go | 14 ++++++++++++++ pkg/framework/operation/middleware_test.go | 14 ++++++++++++++ pkg/framework/operation/name.go | 14 ++++++++++++++ pkg/framework/operation/name_test.go | 14 ++++++++++++++ pkg/framework/operation/operation.go | 14 ++++++++++++++ pkg/framework/operation/operation_test.go | 14 ++++++++++++++ pkg/framework/pgdriver/driver.go | 14 ++++++++++++++ .../transport/httptransport/argshandler.go | 14 ++++++++++++++ pkg/framework/transport/httptransport/handler.go | 14 ++++++++++++++ pkg/framework/transport/httptransport/options.go | 14 ++++++++++++++ pkg/gosundheit/logger.go | 14 ++++++++++++++ pkg/kafka/config.go | 14 ++++++++++++++ pkg/kafka/config_test.go | 14 ++++++++++++++ pkg/kafka/kafka.go | 14 ++++++++++++++ pkg/kafka/log.go | 14 ++++++++++++++ pkg/kafka/metrics/broker.go | 14 ++++++++++++++ pkg/kafka/metrics/consumergroup.go | 14 ++++++++++++++ pkg/kafka/metrics/metrics.go | 14 ++++++++++++++ pkg/kafka/metrics/stats/broker.go | 14 ++++++++++++++ pkg/kafka/metrics/stats/consumergroup.go | 14 ++++++++++++++ pkg/kafka/metrics/stats/stats.go | 14 ++++++++++++++ pkg/kafka/metrics/stats/stats_test.go | 14 ++++++++++++++ pkg/kafka/metrics/stats/topic.go | 14 ++++++++++++++ pkg/kafka/metrics/topic.go | 14 ++++++++++++++ pkg/kafka/provisiontopic.go | 14 ++++++++++++++ pkg/models/error.go | 14 ++++++++++++++ pkg/models/id.go | 14 ++++++++++++++ pkg/models/meter.go | 14 ++++++++++++++ pkg/models/meter_test.go | 14 ++++++++++++++ pkg/models/model.go | 14 ++++++++++++++ pkg/models/problem.go | 14 ++++++++++++++ pkg/models/subject.go | 14 ++++++++++++++ pkg/pagination/pagination.go | 14 ++++++++++++++ pkg/pagination/pagination_test.go | 14 ++++++++++++++ pkg/pgxpoolobserver/observer.go | 14 ++++++++++++++ pkg/recurrence/period.go | 14 ++++++++++++++ pkg/recurrence/recurrence.go | 14 ++++++++++++++ pkg/recurrence/recurrence_test.go | 14 ++++++++++++++ pkg/redis/client.go | 14 ++++++++++++++ pkg/redis/config.go | 14 ++++++++++++++ pkg/slicesx/diff.go | 14 ++++++++++++++ pkg/slicesx/diff_test.go | 14 ++++++++++++++ pkg/slicesx/first.go | 14 ++++++++++++++ pkg/slicesx/map.go | 14 ++++++++++++++ pkg/slicesx/map_test.go | 14 ++++++++++++++ pkg/sortx/order.go | 14 ++++++++++++++ pkg/strcase/strcase.go | 14 ++++++++++++++ pkg/strcase/strcase_test.go | 14 ++++++++++++++ pkg/timezone/tz.go | 14 ++++++++++++++ quickstart/quickstart_test.go | 14 ++++++++++++++ test/entitlement/regression/framework_test.go | 14 ++++++++++++++ test/entitlement/regression/scenario_test.go | 14 ++++++++++++++ test/notification/channel.go | 14 ++++++++++++++ test/notification/consumer_balance.go | 14 ++++++++++++++ test/notification/event.go | 14 ++++++++++++++ test/notification/helpers.go | 14 ++++++++++++++ test/notification/notification_test.go | 14 ++++++++++++++ test/notification/repository.go | 14 ++++++++++++++ test/notification/rule.go | 14 ++++++++++++++ test/notification/testenv.go | 14 ++++++++++++++ test/notification/webhook.go | 14 ++++++++++++++ tools.go | 14 ++++++++++++++ tools/migrate/migrate.go | 14 ++++++++++++++ tools/migrate/migrate_test.go | 14 ++++++++++++++ 378 files changed, 5282 insertions(+), 10 deletions(-) diff --git a/.dagger/build.go b/.dagger/build.go index 7a28ffe6f..c06bae203 100644 --- a/.dagger/build.go +++ b/.dagger/build.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package main import ( diff --git a/.dagger/ci.go b/.dagger/ci.go index 33dc9bfef..915c60f63 100644 --- a/.dagger/ci.go +++ b/.dagger/ci.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package main import ( diff --git a/.dagger/dev.go b/.dagger/dev.go index 3bbc3ccde..222f50fe3 100644 --- a/.dagger/dev.go +++ b/.dagger/dev.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package main import ( diff --git a/.dagger/generate.go b/.dagger/generate.go index a5f247167..e5c9d9940 100644 --- a/.dagger/generate.go +++ b/.dagger/generate.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package main import ( diff --git a/.dagger/lint.go b/.dagger/lint.go index 19dea4f34..297a2bf03 100644 --- a/.dagger/lint.go +++ b/.dagger/lint.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package main import ( diff --git a/.dagger/main.go b/.dagger/main.go index 7d416ff59..da98744ec 100644 --- a/.dagger/main.go +++ b/.dagger/main.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package main import ( diff --git a/.dagger/migrate.go b/.dagger/migrate.go index 5efad173e..904da417e 100644 --- a/.dagger/migrate.go +++ b/.dagger/migrate.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package main import ( diff --git a/.dagger/release.go b/.dagger/release.go index 17074bb70..5b1e255d1 100644 --- a/.dagger/release.go +++ b/.dagger/release.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package main import ( diff --git a/.dagger/snapshot.go b/.dagger/snapshot.go index 1c4097071..ee3428cdf 100644 --- a/.dagger/snapshot.go +++ b/.dagger/snapshot.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package main import ( diff --git a/.dagger/test.go b/.dagger/test.go index e1d3758f7..9b2b0369b 100644 --- a/.dagger/test.go +++ b/.dagger/test.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package main import ( diff --git a/.dagger/test_e2e.go b/.dagger/test_e2e.go index b6c0b573a..ba198c8a5 100644 --- a/.dagger/test_e2e.go +++ b/.dagger/test_e2e.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package main import ( diff --git a/.dagger/utils.go b/.dagger/utils.go index 1f81fe439..547b3bdab 100644 --- a/.dagger/utils.go +++ b/.dagger/utils.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package main import ( diff --git a/.dagger/versions.go b/.dagger/versions.go index d831ef576..90c407677 100644 --- a/.dagger/versions.go +++ b/.dagger/versions.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package main const ( diff --git a/.dagger/versions_pinned.go b/.dagger/versions_pinned.go index 1ba1166db..04c0db375 100644 --- a/.dagger/versions_pinned.go +++ b/.dagger/versions_pinned.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package main const ( diff --git a/.licensei.toml b/.licensei.toml index 4c143592f..fb5b2c0d7 100644 --- a/.licensei.toml +++ b/.licensei.toml @@ -7,38 +7,32 @@ approved = [ "mpl-2.0", "isc", "epl-2.0", - "richard-crowley", ] ignored = [ + "github.com/benthosdev/benthos/v4", # Apache 2.0 "github.com/xeipuuv/gojsonpointer", # Apache 2.0 "github.com/xeipuuv/gojsonreference", # Apache 2.0 "github.com/xeipuuv/gojsonschema", # Apache 2.0 - "github.com/couchbase/gocbcoreps", # Apache 2.0 "github.com/confluentinc/confluent-kafka-go/v2", # Apache 2.0 "github.com/JohnCGriffin/overflow", # MIT "github.com/invopop/yaml", # MIT - "github.com/form3tech-oss/jwt-go", #MIT + "github.com/form3tech-oss/jwt-go", #MIT "github.com/russross/blackfriday/v2", # 2-Clause BSD "github.com/gogo/protobuf", # 3-Clause BSD - "github.com/rcrowley/go-metrics", # Richard Crowley + "github.com/rcrowley/go-metrics", # Custom License - https://github.com/rcrowley/go-metrics/blob/master/LICENSE" "cuelang.org/go", # Apache 2.0 "go.mongodb.org/mongo-driver", # Apache 2.0 - - # Unsupported VCS "google.golang.org/protobuf", # 3-Clause BSD "modernc.org/libc", # 3-Clause BSD "modernc.org/mathutil", # 3-Clause BSD "modernc.org/memory", # 3-Clause BSD "modernc.org/sqlite", # 3-Clause BSD - - # No license - "github.com/couchbase/goprotostellar", ] [header] -ignorePaths = [".devenv", ".direnv", "vendor", "client", ".gen"] +ignorePaths = [".devenv", ".direnv", "vendor", "client", ".gen", "openmeter/ent/db", "pkg/framework/entutils/testutils/ent1/db", "pkg/framework/entutils/testutils/ent2/db"] ignoreFiles = ["*.gen.go"] template = """// Copyright © :YEAR: Tailfin Cloud Inc. // diff --git a/api/api.go b/api/api.go index 44ace2fab..67b751114 100644 --- a/api/api.go +++ b/api/api.go @@ -1,2 +1,16 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //go:generate go run github.com/deepmap/oapi-codegen/v2/cmd/oapi-codegen --config=codegen.yaml ./openapi.yaml package api diff --git a/api/client/go/client.go b/api/client/go/client.go index c8ff1d9ef..3fcc3ee70 100644 --- a/api/client/go/client.go +++ b/api/client/go/client.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //go:generate go run github.com/deepmap/oapi-codegen/v2/cmd/oapi-codegen --config=codegen.yaml ../../openapi.yaml package openmeter diff --git a/api/client/go/error.go b/api/client/go/error.go index 918fb4998..0dd407499 100644 --- a/api/client/go/error.go +++ b/api/client/go/error.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package openmeter // ErrResponse renderer type for handling all sorts of errors. diff --git a/api/types/doc.go b/api/types/doc.go index 06147f3c6..efdc52df3 100644 --- a/api/types/doc.go +++ b/api/types/doc.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Some parts of the OpenAPI spec are not supported by oapi-codegen, such as the "oneOf" and "anyOf" keywords. // In these cases, you can define the types manually in the types package and reference them via `x-go-type` so the go client works properly. package types diff --git a/api/types/entitlement.go b/api/types/entitlement.go index ae38a7abc..f807bf736 100644 --- a/api/types/entitlement.go +++ b/api/types/entitlement.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package types // CreateEntitlementJSONBodyType defines parameters for CreateEntitlement. diff --git a/cmd/balance-worker/main.go b/cmd/balance-worker/main.go index 2d9425a84..4edb85c9f 100644 --- a/cmd/balance-worker/main.go +++ b/cmd/balance-worker/main.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package main import ( diff --git a/cmd/balance-worker/version.go b/cmd/balance-worker/version.go index 24582ea13..84700ef01 100644 --- a/cmd/balance-worker/version.go +++ b/cmd/balance-worker/version.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package main import "runtime/debug" diff --git a/cmd/benthos-collector/main.go b/cmd/benthos-collector/main.go index ba6b60b85..93a4308b7 100644 --- a/cmd/benthos-collector/main.go +++ b/cmd/benthos-collector/main.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package main import ( diff --git a/cmd/jobs/config/loader.go b/cmd/jobs/config/loader.go index 3a8930726..947ed9f37 100644 --- a/cmd/jobs/config/loader.go +++ b/cmd/jobs/config/loader.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package config import ( diff --git a/cmd/jobs/entitlement/init.go b/cmd/jobs/entitlement/init.go index 14aaac1ea..dbe4428cb 100644 --- a/cmd/jobs/entitlement/init.go +++ b/cmd/jobs/entitlement/init.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package entitlement import ( diff --git a/cmd/jobs/entitlement/recalculatesnapshots.go b/cmd/jobs/entitlement/recalculatesnapshots.go index 72dc7df8a..3d2349400 100644 --- a/cmd/jobs/entitlement/recalculatesnapshots.go +++ b/cmd/jobs/entitlement/recalculatesnapshots.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package entitlement import ( diff --git a/cmd/jobs/entitlement/root.go b/cmd/jobs/entitlement/root.go index c930e9fdd..b89462ab3 100644 --- a/cmd/jobs/entitlement/root.go +++ b/cmd/jobs/entitlement/root.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package entitlement import "github.com/spf13/cobra" diff --git a/cmd/jobs/main.go b/cmd/jobs/main.go index 59a1c40a0..ccea1f348 100644 --- a/cmd/jobs/main.go +++ b/cmd/jobs/main.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package main import ( diff --git a/cmd/jobs/service/otel.go b/cmd/jobs/service/otel.go index 9b4f9cd3e..4589398ae 100644 --- a/cmd/jobs/service/otel.go +++ b/cmd/jobs/service/otel.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package service import ( diff --git a/cmd/jobs/version.go b/cmd/jobs/version.go index 973b1f242..9d47a04a6 100644 --- a/cmd/jobs/version.go +++ b/cmd/jobs/version.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package main import ( diff --git a/cmd/notification-service/main.go b/cmd/notification-service/main.go index dfdaba314..f79a24ffc 100644 --- a/cmd/notification-service/main.go +++ b/cmd/notification-service/main.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package main import ( diff --git a/cmd/notification-service/version.go b/cmd/notification-service/version.go index 24582ea13..84700ef01 100644 --- a/cmd/notification-service/version.go +++ b/cmd/notification-service/version.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package main import "runtime/debug" diff --git a/cmd/server/main.go b/cmd/server/main.go index f9c28895e..a448d255c 100644 --- a/cmd/server/main.go +++ b/cmd/server/main.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package main import ( diff --git a/cmd/server/version.go b/cmd/server/version.go index 24582ea13..84700ef01 100644 --- a/cmd/server/version.go +++ b/cmd/server/version.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package main import "runtime/debug" diff --git a/cmd/sink-worker/main.go b/cmd/sink-worker/main.go index d22825774..874ed64f0 100644 --- a/cmd/sink-worker/main.go +++ b/cmd/sink-worker/main.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package main import ( diff --git a/cmd/sink-worker/version.go b/cmd/sink-worker/version.go index 24582ea13..84700ef01 100644 --- a/cmd/sink-worker/version.go +++ b/cmd/sink-worker/version.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package main import "runtime/debug" diff --git a/collector/benthos/input/kubernetes.go b/collector/benthos/input/kubernetes.go index 59b3c367a..a546d3994 100644 --- a/collector/benthos/input/kubernetes.go +++ b/collector/benthos/input/kubernetes.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package input import ( diff --git a/collector/benthos/input/otel_log.go b/collector/benthos/input/otel_log.go index 604cdee33..163ac44ef 100644 --- a/collector/benthos/input/otel_log.go +++ b/collector/benthos/input/otel_log.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package input import ( diff --git a/collector/benthos/input/schedule.go b/collector/benthos/input/schedule.go index c50499c2c..724244531 100644 --- a/collector/benthos/input/schedule.go +++ b/collector/benthos/input/schedule.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package input import ( diff --git a/collector/benthos/internal/message/batch.go b/collector/benthos/internal/message/batch.go index 8d7c294e2..fba8323fe 100644 --- a/collector/benthos/internal/message/batch.go +++ b/collector/benthos/internal/message/batch.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package message import "github.com/benthosdev/benthos/v4/public/service" diff --git a/collector/benthos/internal/message/transaction.go b/collector/benthos/internal/message/transaction.go index 8e69b96c3..bffd0f468 100644 --- a/collector/benthos/internal/message/transaction.go +++ b/collector/benthos/internal/message/transaction.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package message import "context" diff --git a/collector/benthos/internal/shutdown/signaler.go b/collector/benthos/internal/shutdown/signaler.go index c95510b38..2e4d6124e 100644 --- a/collector/benthos/internal/shutdown/signaler.go +++ b/collector/benthos/internal/shutdown/signaler.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package shutdown import ( diff --git a/collector/benthos/output/openmeter.go b/collector/benthos/output/openmeter.go index 107886b5d..07c8acb77 100644 --- a/collector/benthos/output/openmeter.go +++ b/collector/benthos/output/openmeter.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package output import ( diff --git a/collector/benthos/output/otel_log.go b/collector/benthos/output/otel_log.go index 415bde0d6..03be244c6 100644 --- a/collector/benthos/output/otel_log.go +++ b/collector/benthos/output/otel_log.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package output import ( diff --git a/config/aggregation.go b/config/aggregation.go index 5e80cb8db..c5a568bc3 100644 --- a/config/aggregation.go +++ b/config/aggregation.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package config import ( diff --git a/config/balanceworker.go b/config/balanceworker.go index c3508993d..201834272 100644 --- a/config/balanceworker.go +++ b/config/balanceworker.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package config import ( diff --git a/config/config.go b/config/config.go index ac321bf9f..36118d2b3 100644 --- a/config/config.go +++ b/config/config.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Package config loads application configuration. package config diff --git a/config/config_test.go b/config/config_test.go index 1f1f0a8c5..b9ee5fa38 100644 --- a/config/config_test.go +++ b/config/config_test.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package config import ( diff --git a/config/dedupe.go b/config/dedupe.go index d50518ada..ac563434c 100644 --- a/config/dedupe.go +++ b/config/dedupe.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package config import ( diff --git a/config/entitlements.go b/config/entitlements.go index 9f3a56b1a..a3b3ed8d5 100644 --- a/config/entitlements.go +++ b/config/entitlements.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package config type EntitlementsConfiguration struct { diff --git a/config/events.go b/config/events.go index 77d3be8a1..e68d70c30 100644 --- a/config/events.go +++ b/config/events.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package config import ( diff --git a/config/helpers.go b/config/helpers.go index 5fce99a1e..7db77263f 100644 --- a/config/helpers.go +++ b/config/helpers.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package config import "strings" diff --git a/config/ingest.go b/config/ingest.go index 740d1a930..8ffca578a 100644 --- a/config/ingest.go +++ b/config/ingest.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package config import ( diff --git a/config/ingest_test.go b/config/ingest_test.go index 9eba15059..d052ab974 100644 --- a/config/ingest_test.go +++ b/config/ingest_test.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package config import ( diff --git a/config/kafka.go b/config/kafka.go index 0386b5cd4..e02bdb674 100644 --- a/config/kafka.go +++ b/config/kafka.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package config import ( diff --git a/config/namespace.go b/config/namespace.go index 14cce904b..68345c879 100644 --- a/config/namespace.go +++ b/config/namespace.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package config import ( diff --git a/config/notification.go b/config/notification.go index b9e265a1c..16ff320f7 100644 --- a/config/notification.go +++ b/config/notification.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package config import ( diff --git a/config/portal.go b/config/portal.go index 129e51217..f97925638 100644 --- a/config/portal.go +++ b/config/portal.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package config import ( diff --git a/config/postgres.go b/config/postgres.go index 16a9bf76e..a6faf7588 100644 --- a/config/postgres.go +++ b/config/postgres.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package config import ( diff --git a/config/sink.go b/config/sink.go index c65a0d897..e37c094a4 100644 --- a/config/sink.go +++ b/config/sink.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package config import ( diff --git a/config/svix.go b/config/svix.go index 304bb00de..7e15550ab 100644 --- a/config/svix.go +++ b/config/svix.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package config import notificationwebhook "github.com/openmeterio/openmeter/openmeter/notification/webhook" diff --git a/config/telemetry.go b/config/telemetry.go index e0a52546e..2b776e28a 100644 --- a/config/telemetry.go +++ b/config/telemetry.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package config import ( diff --git a/config/viper.go b/config/viper.go index 179d965d0..e6218ca01 100644 --- a/config/viper.go +++ b/config/viper.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package config import ( diff --git a/e2e/e2e_test.go b/e2e/e2e_test.go index 6de11c7ec..0dc949baf 100644 --- a/e2e/e2e_test.go +++ b/e2e/e2e_test.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package e2e import ( diff --git a/openmeter/billing/config.go b/openmeter/billing/config.go index 214a694ce..36530e5f6 100644 --- a/openmeter/billing/config.go +++ b/openmeter/billing/config.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package billing import ( diff --git a/openmeter/billing/invoice/status.go b/openmeter/billing/invoice/status.go index 229c63f8b..2ad46221f 100644 --- a/openmeter/billing/invoice/status.go +++ b/openmeter/billing/invoice/status.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package invoice import "github.com/samber/lo" diff --git a/openmeter/billing/invoice/tax.go b/openmeter/billing/invoice/tax.go index b18673378..cb8d6fc5b 100644 --- a/openmeter/billing/invoice/tax.go +++ b/openmeter/billing/invoice/tax.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package invoice type StripeTaxCode string diff --git a/openmeter/billing/provider/config.go b/openmeter/billing/provider/config.go index bae7b893c..d03a6e13f 100644 --- a/openmeter/billing/provider/config.go +++ b/openmeter/billing/provider/config.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package provider import "fmt" diff --git a/openmeter/billing/provider/reference.go b/openmeter/billing/provider/reference.go index 475e915f5..bd64e0835 100644 --- a/openmeter/billing/provider/reference.go +++ b/openmeter/billing/provider/reference.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package provider type OpenMeterReference struct{} diff --git a/openmeter/credit/adapter/balance_snapshot.go b/openmeter/credit/adapter/balance_snapshot.go index 16edefd7d..928a9bf3a 100644 --- a/openmeter/credit/adapter/balance_snapshot.go +++ b/openmeter/credit/adapter/balance_snapshot.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package adapter import ( diff --git a/openmeter/credit/adapter/grant.go b/openmeter/credit/adapter/grant.go index a81f1ee20..aca4e79f2 100644 --- a/openmeter/credit/adapter/grant.go +++ b/openmeter/credit/adapter/grant.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package adapter import ( diff --git a/openmeter/credit/adapter/transaction.go b/openmeter/credit/adapter/transaction.go index b7593bbf8..212790e98 100644 --- a/openmeter/credit/adapter/transaction.go +++ b/openmeter/credit/adapter/transaction.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package adapter import ( diff --git a/openmeter/credit/balance.go b/openmeter/credit/balance.go index 2de821d30..ef3412e1d 100644 --- a/openmeter/credit/balance.go +++ b/openmeter/credit/balance.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package credit import ( diff --git a/openmeter/credit/balance/balance.go b/openmeter/credit/balance/balance.go index b3dffe4be..176a93d47 100644 --- a/openmeter/credit/balance/balance.go +++ b/openmeter/credit/balance/balance.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package balance import ( diff --git a/openmeter/credit/balance/balance_test.go b/openmeter/credit/balance/balance_test.go index f928961b2..381289290 100644 --- a/openmeter/credit/balance/balance_test.go +++ b/openmeter/credit/balance/balance_test.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package balance_test import ( diff --git a/openmeter/credit/balance/repository.go b/openmeter/credit/balance/repository.go index 1721a479a..4ce454fb1 100644 --- a/openmeter/credit/balance/repository.go +++ b/openmeter/credit/balance/repository.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package balance import ( diff --git a/openmeter/credit/connector.go b/openmeter/credit/connector.go index 515acf360..d84ea02c3 100644 --- a/openmeter/credit/connector.go +++ b/openmeter/credit/connector.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package credit import ( diff --git a/openmeter/credit/driver/grant.go b/openmeter/credit/driver/grant.go index aac36813c..98686bc78 100644 --- a/openmeter/credit/driver/grant.go +++ b/openmeter/credit/driver/grant.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package creditdriver import ( diff --git a/openmeter/credit/engine/engine.go b/openmeter/credit/engine/engine.go index dfd2a43a4..7ea7f3f30 100644 --- a/openmeter/credit/engine/engine.go +++ b/openmeter/credit/engine/engine.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package engine import ( diff --git a/openmeter/credit/engine/engine_test.go b/openmeter/credit/engine/engine_test.go index fb7a046e9..03cdc9a9c 100644 --- a/openmeter/credit/engine/engine_test.go +++ b/openmeter/credit/engine/engine_test.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package engine_test import ( diff --git a/openmeter/credit/engine/history.go b/openmeter/credit/engine/history.go index 5f3dc1b87..5e7b69ccc 100644 --- a/openmeter/credit/engine/history.go +++ b/openmeter/credit/engine/history.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package engine import ( diff --git a/openmeter/credit/grant.go b/openmeter/credit/grant.go index 106ceedbe..4456e57c4 100644 --- a/openmeter/credit/grant.go +++ b/openmeter/credit/grant.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package credit import ( diff --git a/openmeter/credit/grant/events.go b/openmeter/credit/grant/events.go index 051f0e792..16d41e159 100644 --- a/openmeter/credit/grant/events.go +++ b/openmeter/credit/grant/events.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package grant import ( diff --git a/openmeter/credit/grant/expiration.go b/openmeter/credit/grant/expiration.go index d6b1e284e..bd5484eab 100644 --- a/openmeter/credit/grant/expiration.go +++ b/openmeter/credit/grant/expiration.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package grant import "time" diff --git a/openmeter/credit/grant/grant.go b/openmeter/credit/grant/grant.go index 9859433da..88f11b6c0 100644 --- a/openmeter/credit/grant/grant.go +++ b/openmeter/credit/grant/grant.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package grant import ( diff --git a/openmeter/credit/grant/owner_connector.go b/openmeter/credit/grant/owner_connector.go index ce5852dc4..58a8ec2b6 100644 --- a/openmeter/credit/grant/owner_connector.go +++ b/openmeter/credit/grant/owner_connector.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package grant import ( diff --git a/openmeter/credit/grant/repo.go b/openmeter/credit/grant/repo.go index b059355b2..4b8ef42b7 100644 --- a/openmeter/credit/grant/repo.go +++ b/openmeter/credit/grant/repo.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package grant import ( diff --git a/openmeter/customer/customer.go b/openmeter/customer/customer.go index 1e7cbcf8a..12b4fd63c 100644 --- a/openmeter/customer/customer.go +++ b/openmeter/customer/customer.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package customer import ( diff --git a/openmeter/customer/errors.go b/openmeter/customer/errors.go index 62a954e81..f51487c2b 100644 --- a/openmeter/customer/errors.go +++ b/openmeter/customer/errors.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package customer import ( diff --git a/openmeter/customer/repository.go b/openmeter/customer/repository.go index 50df6d776..e7fd0f907 100644 --- a/openmeter/customer/repository.go +++ b/openmeter/customer/repository.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package customer import ( diff --git a/openmeter/customer/repository/customer.go b/openmeter/customer/repository/customer.go index 65a270539..33cf79eb2 100644 --- a/openmeter/customer/repository/customer.go +++ b/openmeter/customer/repository/customer.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package repository import ( diff --git a/openmeter/customer/repository/entitymapping.go b/openmeter/customer/repository/entitymapping.go index 9f1e3fd19..e8d2ba729 100644 --- a/openmeter/customer/repository/entitymapping.go +++ b/openmeter/customer/repository/entitymapping.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package repository import ( diff --git a/openmeter/customer/repository/repository.go b/openmeter/customer/repository/repository.go index 4c3c34610..b9cdefc8a 100644 --- a/openmeter/customer/repository/repository.go +++ b/openmeter/customer/repository/repository.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package repository import ( diff --git a/openmeter/customer/service.go b/openmeter/customer/service.go index fc4b62e89..36782461e 100644 --- a/openmeter/customer/service.go +++ b/openmeter/customer/service.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package customer import ( diff --git a/openmeter/debug/debug.go b/openmeter/debug/debug.go index 3c2b5ad99..2fbcae9d6 100644 --- a/openmeter/debug/debug.go +++ b/openmeter/debug/debug.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package debug import ( diff --git a/openmeter/debug/httpdriver/metrics.go b/openmeter/debug/httpdriver/metrics.go index 02c3a6704..e83ca3993 100644 --- a/openmeter/debug/httpdriver/metrics.go +++ b/openmeter/debug/httpdriver/metrics.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package httpdriver import ( diff --git a/openmeter/dedupe/dedupe.go b/openmeter/dedupe/dedupe.go index 8cc7cdc21..ec05f2609 100644 --- a/openmeter/dedupe/dedupe.go +++ b/openmeter/dedupe/dedupe.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Package dedupe implements in-process event deduplication. package dedupe diff --git a/openmeter/dedupe/memorydedupe/memorydedupe.go b/openmeter/dedupe/memorydedupe/memorydedupe.go index 68a46712f..c9a41fcb5 100644 --- a/openmeter/dedupe/memorydedupe/memorydedupe.go +++ b/openmeter/dedupe/memorydedupe/memorydedupe.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Package memorydedupe implements in-memory event deduplication. package memorydedupe diff --git a/openmeter/dedupe/memorydedupe/memorydedupe_test.go b/openmeter/dedupe/memorydedupe/memorydedupe_test.go index f8fa0776f..a6544f103 100644 --- a/openmeter/dedupe/memorydedupe/memorydedupe_test.go +++ b/openmeter/dedupe/memorydedupe/memorydedupe_test.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package memorydedupe_test import ( diff --git a/openmeter/dedupe/redisdedupe/redisdedupe.go b/openmeter/dedupe/redisdedupe/redisdedupe.go index ee8b24011..07b1776c0 100644 --- a/openmeter/dedupe/redisdedupe/redisdedupe.go +++ b/openmeter/dedupe/redisdedupe/redisdedupe.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Package redisdedupe implements event deduplication using Redis. package redisdedupe diff --git a/openmeter/ent/entc.go b/openmeter/ent/entc.go index 1b55551af..7a1161ccc 100644 --- a/openmeter/ent/entc.go +++ b/openmeter/ent/entc.go @@ -1,6 +1,20 @@ //go:build ignore // +build ignore +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package main import ( diff --git a/openmeter/ent/generate.go b/openmeter/ent/generate.go index 904d39c38..fc2f13363 100644 --- a/openmeter/ent/generate.go +++ b/openmeter/ent/generate.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package entdb //go:generate go run -mod=readonly entc.go diff --git a/openmeter/ent/schema/balance_snapshot.go b/openmeter/ent/schema/balance_snapshot.go index 46484ec11..59edb9d78 100644 --- a/openmeter/ent/schema/balance_snapshot.go +++ b/openmeter/ent/schema/balance_snapshot.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package schema import ( diff --git a/openmeter/ent/schema/billing.go b/openmeter/ent/schema/billing.go index e9ec0c0d0..2b771898d 100644 --- a/openmeter/ent/schema/billing.go +++ b/openmeter/ent/schema/billing.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package schema import ( diff --git a/openmeter/ent/schema/customer.go b/openmeter/ent/schema/customer.go index 2b6ac9456..bfddb0e8d 100644 --- a/openmeter/ent/schema/customer.go +++ b/openmeter/ent/schema/customer.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package schema import ( diff --git a/openmeter/ent/schema/entitlement.go b/openmeter/ent/schema/entitlement.go index 87b7d9dbe..187ad35ae 100644 --- a/openmeter/ent/schema/entitlement.go +++ b/openmeter/ent/schema/entitlement.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package schema import ( diff --git a/openmeter/ent/schema/feature.go b/openmeter/ent/schema/feature.go index aa1af92a3..c8c57e7bb 100644 --- a/openmeter/ent/schema/feature.go +++ b/openmeter/ent/schema/feature.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package schema import ( diff --git a/openmeter/ent/schema/grant.go b/openmeter/ent/schema/grant.go index a89fb323b..4d2b64f40 100644 --- a/openmeter/ent/schema/grant.go +++ b/openmeter/ent/schema/grant.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package schema import ( diff --git a/openmeter/ent/schema/notification.go b/openmeter/ent/schema/notification.go index 0dba5a4d3..36c130767 100644 --- a/openmeter/ent/schema/notification.go +++ b/openmeter/ent/schema/notification.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package schema import ( diff --git a/openmeter/ent/schema/usage_reset.go b/openmeter/ent/schema/usage_reset.go index 6d0f2ccd6..8817d7953 100644 --- a/openmeter/ent/schema/usage_reset.go +++ b/openmeter/ent/schema/usage_reset.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package schema import ( diff --git a/openmeter/entitlement/adapter/entitlement.go b/openmeter/entitlement/adapter/entitlement.go index f88ea852d..aa6f66549 100644 --- a/openmeter/entitlement/adapter/entitlement.go +++ b/openmeter/entitlement/adapter/entitlement.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package adapter import ( diff --git a/openmeter/entitlement/adapter/transaction.go b/openmeter/entitlement/adapter/transaction.go index 2d632a1a8..f8a73cf19 100644 --- a/openmeter/entitlement/adapter/transaction.go +++ b/openmeter/entitlement/adapter/transaction.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package adapter import ( diff --git a/openmeter/entitlement/adapter/usage_reset.go b/openmeter/entitlement/adapter/usage_reset.go index 63d8a637f..cde467247 100644 --- a/openmeter/entitlement/adapter/usage_reset.go +++ b/openmeter/entitlement/adapter/usage_reset.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package adapter import ( diff --git a/openmeter/entitlement/balanceworker/entitlementhandler.go b/openmeter/entitlement/balanceworker/entitlementhandler.go index 02c6dc0ec..bc24025a8 100644 --- a/openmeter/entitlement/balanceworker/entitlementhandler.go +++ b/openmeter/entitlement/balanceworker/entitlementhandler.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package balanceworker import ( diff --git a/openmeter/entitlement/balanceworker/ingesthandler.go b/openmeter/entitlement/balanceworker/ingesthandler.go index 4597462e5..9c6254644 100644 --- a/openmeter/entitlement/balanceworker/ingesthandler.go +++ b/openmeter/entitlement/balanceworker/ingesthandler.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package balanceworker import ( diff --git a/openmeter/entitlement/balanceworker/recalculate.go b/openmeter/entitlement/balanceworker/recalculate.go index c0add659b..5710b9301 100644 --- a/openmeter/entitlement/balanceworker/recalculate.go +++ b/openmeter/entitlement/balanceworker/recalculate.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package balanceworker import ( diff --git a/openmeter/entitlement/balanceworker/repository.go b/openmeter/entitlement/balanceworker/repository.go index fa3cf5510..a06a82ba8 100644 --- a/openmeter/entitlement/balanceworker/repository.go +++ b/openmeter/entitlement/balanceworker/repository.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package balanceworker import "context" diff --git a/openmeter/entitlement/balanceworker/worker.go b/openmeter/entitlement/balanceworker/worker.go index fd648c2fd..ce073cbd8 100644 --- a/openmeter/entitlement/balanceworker/worker.go +++ b/openmeter/entitlement/balanceworker/worker.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package balanceworker import ( diff --git a/openmeter/entitlement/boolean/connector.go b/openmeter/entitlement/boolean/connector.go index d83a6f0de..a885e8881 100644 --- a/openmeter/entitlement/boolean/connector.go +++ b/openmeter/entitlement/boolean/connector.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package booleanentitlement import ( diff --git a/openmeter/entitlement/boolean/entitlement.go b/openmeter/entitlement/boolean/entitlement.go index e2715c358..7d685bf61 100644 --- a/openmeter/entitlement/boolean/entitlement.go +++ b/openmeter/entitlement/boolean/entitlement.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package booleanentitlement import "github.com/openmeterio/openmeter/openmeter/entitlement" diff --git a/openmeter/entitlement/connector.go b/openmeter/entitlement/connector.go index 59b03f3a0..b7ea98f50 100644 --- a/openmeter/entitlement/connector.go +++ b/openmeter/entitlement/connector.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package entitlement import ( diff --git a/openmeter/entitlement/driver/entitlement.go b/openmeter/entitlement/driver/entitlement.go index 6e9b6802e..98b40e036 100644 --- a/openmeter/entitlement/driver/entitlement.go +++ b/openmeter/entitlement/driver/entitlement.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package entitlementdriver import ( diff --git a/openmeter/entitlement/driver/errors.go b/openmeter/entitlement/driver/errors.go index b10f2538d..5863966a0 100644 --- a/openmeter/entitlement/driver/errors.go +++ b/openmeter/entitlement/driver/errors.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package entitlementdriver import ( diff --git a/openmeter/entitlement/driver/metered.go b/openmeter/entitlement/driver/metered.go index fd69e1577..526858ae5 100644 --- a/openmeter/entitlement/driver/metered.go +++ b/openmeter/entitlement/driver/metered.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package entitlementdriver import ( diff --git a/openmeter/entitlement/driver/parser.go b/openmeter/entitlement/driver/parser.go index 47291c130..b9c1a7b78 100644 --- a/openmeter/entitlement/driver/parser.go +++ b/openmeter/entitlement/driver/parser.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package entitlementdriver import ( diff --git a/openmeter/entitlement/entitlement.go b/openmeter/entitlement/entitlement.go index 8c4fed330..3bbf54d06 100644 --- a/openmeter/entitlement/entitlement.go +++ b/openmeter/entitlement/entitlement.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package entitlement import ( diff --git a/openmeter/entitlement/entitlement_test.go b/openmeter/entitlement/entitlement_test.go index a3f6e4e03..938109ad0 100644 --- a/openmeter/entitlement/entitlement_test.go +++ b/openmeter/entitlement/entitlement_test.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package entitlement_test import ( diff --git a/openmeter/entitlement/entitlement_types.go b/openmeter/entitlement/entitlement_types.go index b61feba55..3991e21bd 100644 --- a/openmeter/entitlement/entitlement_types.go +++ b/openmeter/entitlement/entitlement_types.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package entitlement import ( diff --git a/openmeter/entitlement/errors.go b/openmeter/entitlement/errors.go index e7a3107a4..d48c1572a 100644 --- a/openmeter/entitlement/errors.go +++ b/openmeter/entitlement/errors.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package entitlement import ( diff --git a/openmeter/entitlement/events.go b/openmeter/entitlement/events.go index 0d1c6a185..2201660d7 100644 --- a/openmeter/entitlement/events.go +++ b/openmeter/entitlement/events.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package entitlement import ( diff --git a/openmeter/entitlement/metered/balance.go b/openmeter/entitlement/metered/balance.go index 29b4d5353..12318788b 100644 --- a/openmeter/entitlement/metered/balance.go +++ b/openmeter/entitlement/metered/balance.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package meteredentitlement import ( diff --git a/openmeter/entitlement/metered/balance_test.go b/openmeter/entitlement/metered/balance_test.go index 98c079acc..3e94314f5 100644 --- a/openmeter/entitlement/metered/balance_test.go +++ b/openmeter/entitlement/metered/balance_test.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package meteredentitlement_test import ( diff --git a/openmeter/entitlement/metered/connector.go b/openmeter/entitlement/metered/connector.go index 4a845ae49..76db7cc54 100644 --- a/openmeter/entitlement/metered/connector.go +++ b/openmeter/entitlement/metered/connector.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package meteredentitlement import ( diff --git a/openmeter/entitlement/metered/entitlement.go b/openmeter/entitlement/metered/entitlement.go index a69c5d3fe..6e01a1b22 100644 --- a/openmeter/entitlement/metered/entitlement.go +++ b/openmeter/entitlement/metered/entitlement.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package meteredentitlement import ( diff --git a/openmeter/entitlement/metered/entitlement_grant.go b/openmeter/entitlement/metered/entitlement_grant.go index d5dc73b8e..bad09d6f2 100644 --- a/openmeter/entitlement/metered/entitlement_grant.go +++ b/openmeter/entitlement/metered/entitlement_grant.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package meteredentitlement import ( diff --git a/openmeter/entitlement/metered/events.go b/openmeter/entitlement/metered/events.go index 58d121632..a53e5c5a9 100644 --- a/openmeter/entitlement/metered/events.go +++ b/openmeter/entitlement/metered/events.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package meteredentitlement import ( diff --git a/openmeter/entitlement/metered/grant_owner_adapter.go b/openmeter/entitlement/metered/grant_owner_adapter.go index e444f1f02..65964519b 100644 --- a/openmeter/entitlement/metered/grant_owner_adapter.go +++ b/openmeter/entitlement/metered/grant_owner_adapter.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package meteredentitlement import ( diff --git a/openmeter/entitlement/metered/repository.go b/openmeter/entitlement/metered/repository.go index 5a41e54c7..70bfafcd4 100644 --- a/openmeter/entitlement/metered/repository.go +++ b/openmeter/entitlement/metered/repository.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package meteredentitlement import ( diff --git a/openmeter/entitlement/metered/reset.go b/openmeter/entitlement/metered/reset.go index e77872125..f8898ed8c 100644 --- a/openmeter/entitlement/metered/reset.go +++ b/openmeter/entitlement/metered/reset.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package meteredentitlement import ( diff --git a/openmeter/entitlement/metered/reset_test.go b/openmeter/entitlement/metered/reset_test.go index b6a76415e..0e6db06e0 100644 --- a/openmeter/entitlement/metered/reset_test.go +++ b/openmeter/entitlement/metered/reset_test.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package meteredentitlement_test import ( diff --git a/openmeter/entitlement/metered/utils_test.go b/openmeter/entitlement/metered/utils_test.go index ef74b3fae..05b46a3fd 100644 --- a/openmeter/entitlement/metered/utils_test.go +++ b/openmeter/entitlement/metered/utils_test.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package meteredentitlement_test import ( diff --git a/openmeter/entitlement/repository.go b/openmeter/entitlement/repository.go index 6d13de519..6fd588d4d 100644 --- a/openmeter/entitlement/repository.go +++ b/openmeter/entitlement/repository.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package entitlement import ( diff --git a/openmeter/entitlement/snapshot/event.go b/openmeter/entitlement/snapshot/event.go index 713717794..3be63805f 100644 --- a/openmeter/entitlement/snapshot/event.go +++ b/openmeter/entitlement/snapshot/event.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package snapshot import ( diff --git a/openmeter/entitlement/static/connector.go b/openmeter/entitlement/static/connector.go index 13fc2c247..23b85812e 100644 --- a/openmeter/entitlement/static/connector.go +++ b/openmeter/entitlement/static/connector.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package staticentitlement import ( diff --git a/openmeter/entitlement/static/entitlement.go b/openmeter/entitlement/static/entitlement.go index 57537aef8..6e128b044 100644 --- a/openmeter/entitlement/static/entitlement.go +++ b/openmeter/entitlement/static/entitlement.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package staticentitlement import ( diff --git a/openmeter/event/metadata/event_type.go b/openmeter/event/metadata/event_type.go index 6af3297cc..ee43f5697 100644 --- a/openmeter/event/metadata/event_type.go +++ b/openmeter/event/metadata/event_type.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package metadata import ( diff --git a/openmeter/event/metadata/resourcepath.go b/openmeter/event/metadata/resourcepath.go index 8bb0947ad..2790e8746 100644 --- a/openmeter/event/metadata/resourcepath.go +++ b/openmeter/event/metadata/resourcepath.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package metadata import ( diff --git a/openmeter/event/models/models.go b/openmeter/event/models/models.go index 1828bbb42..bdb46e7cb 100644 --- a/openmeter/event/models/models.go +++ b/openmeter/event/models/models.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package models import "errors" diff --git a/openmeter/event/models/subject.go b/openmeter/event/models/subject.go index 32c50daf0..ec47ec633 100644 --- a/openmeter/event/models/subject.go +++ b/openmeter/event/models/subject.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package models import ( diff --git a/openmeter/ingest/dedupe.go b/openmeter/ingest/dedupe.go index 87c0bafae..2bd767bc3 100644 --- a/openmeter/ingest/dedupe.go +++ b/openmeter/ingest/dedupe.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package ingest import ( diff --git a/openmeter/ingest/dedupe_test.go b/openmeter/ingest/dedupe_test.go index 0bd3db5c8..6c2293bbc 100644 --- a/openmeter/ingest/dedupe_test.go +++ b/openmeter/ingest/dedupe_test.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package ingest_test import ( diff --git a/openmeter/ingest/ingest.go b/openmeter/ingest/ingest.go index 3f8946d1c..62af465c8 100644 --- a/openmeter/ingest/ingest.go +++ b/openmeter/ingest/ingest.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Package ingest implements event ingestion. package ingest diff --git a/openmeter/ingest/ingestadapter/metrics.go b/openmeter/ingest/ingestadapter/metrics.go index 650a73317..68604f5de 100644 --- a/openmeter/ingest/ingestadapter/metrics.go +++ b/openmeter/ingest/ingestadapter/metrics.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package ingestadapter import ( diff --git a/openmeter/ingest/ingestdriver/http_transport.go b/openmeter/ingest/ingestdriver/http_transport.go index 704dbae28..618752912 100644 --- a/openmeter/ingest/ingestdriver/http_transport.go +++ b/openmeter/ingest/ingestdriver/http_transport.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package ingestdriver import ( diff --git a/openmeter/ingest/ingestdriver/http_transport_test.go b/openmeter/ingest/ingestdriver/http_transport_test.go index 15d89fb87..6d21fc92c 100644 --- a/openmeter/ingest/ingestdriver/http_transport_test.go +++ b/openmeter/ingest/ingestdriver/http_transport_test.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package ingestdriver_test import ( diff --git a/openmeter/ingest/inmemory.go b/openmeter/ingest/inmemory.go index 346e44a15..c1363da38 100644 --- a/openmeter/ingest/inmemory.go +++ b/openmeter/ingest/inmemory.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package ingest import ( diff --git a/openmeter/ingest/inmemory_test.go b/openmeter/ingest/inmemory_test.go index b5c86e2ff..eff7abbd5 100644 --- a/openmeter/ingest/inmemory_test.go +++ b/openmeter/ingest/inmemory_test.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package ingest_test import ( diff --git a/openmeter/ingest/kafkaingest/collector.go b/openmeter/ingest/kafkaingest/collector.go index e8daa9884..686772363 100644 --- a/openmeter/ingest/kafkaingest/collector.go +++ b/openmeter/ingest/kafkaingest/collector.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package kafkaingest import ( diff --git a/openmeter/ingest/kafkaingest/namespace.go b/openmeter/ingest/kafkaingest/namespace.go index a34a14f1f..09d3b34c8 100644 --- a/openmeter/ingest/kafkaingest/namespace.go +++ b/openmeter/ingest/kafkaingest/namespace.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package kafkaingest import ( diff --git a/openmeter/ingest/kafkaingest/serializer/json.go b/openmeter/ingest/kafkaingest/serializer/json.go index b659b855c..52b70ed21 100644 --- a/openmeter/ingest/kafkaingest/serializer/json.go +++ b/openmeter/ingest/kafkaingest/serializer/json.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package serializer import ( diff --git a/openmeter/ingest/kafkaingest/serializer/serializer.go b/openmeter/ingest/kafkaingest/serializer/serializer.go index e486ca31f..ea2de6b54 100644 --- a/openmeter/ingest/kafkaingest/serializer/serializer.go +++ b/openmeter/ingest/kafkaingest/serializer/serializer.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package serializer import ( diff --git a/openmeter/ingest/service.go b/openmeter/ingest/service.go index c525d1f19..4561dd2f3 100644 --- a/openmeter/ingest/service.go +++ b/openmeter/ingest/service.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package ingest import ( diff --git a/openmeter/meter/inmemory.go b/openmeter/meter/inmemory.go index d6f0ac1ee..95e3e5880 100644 --- a/openmeter/meter/inmemory.go +++ b/openmeter/meter/inmemory.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package meter import ( diff --git a/openmeter/meter/meter.go b/openmeter/meter/meter.go index 8f528ac23..36962bb77 100644 --- a/openmeter/meter/meter.go +++ b/openmeter/meter/meter.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package meter import ( diff --git a/openmeter/meter/validate.go b/openmeter/meter/validate.go index dfe186503..5b6e7a8ae 100644 --- a/openmeter/meter/validate.go +++ b/openmeter/meter/validate.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package meter import ( diff --git a/openmeter/meter/validate_test.go b/openmeter/meter/validate_test.go index 0c485677a..24c9f7634 100644 --- a/openmeter/meter/validate_test.go +++ b/openmeter/meter/validate_test.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package meter_test import ( diff --git a/openmeter/namespace/namespace.go b/openmeter/namespace/namespace.go index 913f6a362..7ea820118 100644 --- a/openmeter/namespace/namespace.go +++ b/openmeter/namespace/namespace.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Package namespace adds a concept of tenancy to OpenMeter allowing to segment clients. package namespace diff --git a/openmeter/namespace/namespace_test.go b/openmeter/namespace/namespace_test.go index 0fdfd3918..056f32977 100644 --- a/openmeter/namespace/namespace_test.go +++ b/openmeter/namespace/namespace_test.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package namespace import ( diff --git a/openmeter/namespace/namespacedriver/decoder.go b/openmeter/namespace/namespacedriver/decoder.go index 28353979d..5067d0227 100644 --- a/openmeter/namespace/namespacedriver/decoder.go +++ b/openmeter/namespace/namespacedriver/decoder.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package namespacedriver import "context" diff --git a/openmeter/notification/annotations.go b/openmeter/notification/annotations.go index 21f5e9349..fcac5d6f5 100644 --- a/openmeter/notification/annotations.go +++ b/openmeter/notification/annotations.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package notification const ( diff --git a/openmeter/notification/channel.go b/openmeter/notification/channel.go index 97319a71d..00ac5dc31 100644 --- a/openmeter/notification/channel.go +++ b/openmeter/notification/channel.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package notification import ( diff --git a/openmeter/notification/consumer/balancethreshold_test.go b/openmeter/notification/consumer/balancethreshold_test.go index 936ace39d..1a91d070a 100644 --- a/openmeter/notification/consumer/balancethreshold_test.go +++ b/openmeter/notification/consumer/balancethreshold_test.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package consumer import ( diff --git a/openmeter/notification/consumer/balancetreshold.go b/openmeter/notification/consumer/balancetreshold.go index e4d7869d3..c1f9c6466 100644 --- a/openmeter/notification/consumer/balancetreshold.go +++ b/openmeter/notification/consumer/balancetreshold.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package consumer import ( diff --git a/openmeter/notification/consumer/consumer.go b/openmeter/notification/consumer/consumer.go index 0200651fa..deb7cd240 100644 --- a/openmeter/notification/consumer/consumer.go +++ b/openmeter/notification/consumer/consumer.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package consumer import ( diff --git a/openmeter/notification/defaults.go b/openmeter/notification/defaults.go index 2ae2254e2..859999956 100644 --- a/openmeter/notification/defaults.go +++ b/openmeter/notification/defaults.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package notification const ( diff --git a/openmeter/notification/errors.go b/openmeter/notification/errors.go index 4284cda24..cc346b6b9 100644 --- a/openmeter/notification/errors.go +++ b/openmeter/notification/errors.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package notification import ( diff --git a/openmeter/notification/event.go b/openmeter/notification/event.go index 1c2c20e97..ff8daf668 100644 --- a/openmeter/notification/event.go +++ b/openmeter/notification/event.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package notification import ( diff --git a/openmeter/notification/eventhandler.go b/openmeter/notification/eventhandler.go index 7dd34e6f9..9db46157c 100644 --- a/openmeter/notification/eventhandler.go +++ b/openmeter/notification/eventhandler.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package notification import ( diff --git a/openmeter/notification/eventhandler/handler.go b/openmeter/notification/eventhandler/handler.go index 3203659cf..dedaabd1f 100644 --- a/openmeter/notification/eventhandler/handler.go +++ b/openmeter/notification/eventhandler/handler.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package eventhandler import ( diff --git a/openmeter/notification/httpdriver/channel.go b/openmeter/notification/httpdriver/channel.go index f85f74bf9..98f924d7c 100644 --- a/openmeter/notification/httpdriver/channel.go +++ b/openmeter/notification/httpdriver/channel.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package httpdriver import ( diff --git a/openmeter/notification/httpdriver/errors.go b/openmeter/notification/httpdriver/errors.go index 5139f375e..b5837f33c 100644 --- a/openmeter/notification/httpdriver/errors.go +++ b/openmeter/notification/httpdriver/errors.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package httpdriver import ( diff --git a/openmeter/notification/httpdriver/event.go b/openmeter/notification/httpdriver/event.go index 911003146..16ad954e1 100644 --- a/openmeter/notification/httpdriver/event.go +++ b/openmeter/notification/httpdriver/event.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package httpdriver import ( diff --git a/openmeter/notification/httpdriver/handler.go b/openmeter/notification/httpdriver/handler.go index 6918830d0..d8afdc345 100644 --- a/openmeter/notification/httpdriver/handler.go +++ b/openmeter/notification/httpdriver/handler.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package httpdriver import ( diff --git a/openmeter/notification/httpdriver/rule.go b/openmeter/notification/httpdriver/rule.go index 12fcd553f..836c3fdc9 100644 --- a/openmeter/notification/httpdriver/rule.go +++ b/openmeter/notification/httpdriver/rule.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package httpdriver import ( diff --git a/openmeter/notification/internal/rule.go b/openmeter/notification/internal/rule.go index da3e6d34f..615066ab5 100644 --- a/openmeter/notification/internal/rule.go +++ b/openmeter/notification/internal/rule.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package internal import ( diff --git a/openmeter/notification/repository.go b/openmeter/notification/repository.go index bfecbccbd..91e75d9bc 100644 --- a/openmeter/notification/repository.go +++ b/openmeter/notification/repository.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package notification import ( diff --git a/openmeter/notification/repository/channel.go b/openmeter/notification/repository/channel.go index 08665a75c..29bcf6ca6 100644 --- a/openmeter/notification/repository/channel.go +++ b/openmeter/notification/repository/channel.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package repository import ( diff --git a/openmeter/notification/repository/entitymapping.go b/openmeter/notification/repository/entitymapping.go index 7016e3cb0..7b5b2cdad 100644 --- a/openmeter/notification/repository/entitymapping.go +++ b/openmeter/notification/repository/entitymapping.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package repository import ( diff --git a/openmeter/notification/repository/event.go b/openmeter/notification/repository/event.go index 6b53c8dd1..524995205 100644 --- a/openmeter/notification/repository/event.go +++ b/openmeter/notification/repository/event.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package repository import ( diff --git a/openmeter/notification/repository/repository.go b/openmeter/notification/repository/repository.go index f27a32d19..64f3b4ab6 100644 --- a/openmeter/notification/repository/repository.go +++ b/openmeter/notification/repository/repository.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package repository import ( diff --git a/openmeter/notification/repository/rule.go b/openmeter/notification/repository/rule.go index 16438c96a..bdbd6e624 100644 --- a/openmeter/notification/repository/rule.go +++ b/openmeter/notification/repository/rule.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package repository import ( diff --git a/openmeter/notification/rule.go b/openmeter/notification/rule.go index 4917bc413..708559e0a 100644 --- a/openmeter/notification/rule.go +++ b/openmeter/notification/rule.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package notification import ( diff --git a/openmeter/notification/service.go b/openmeter/notification/service.go index 83c8b938f..f3bf5ee47 100644 --- a/openmeter/notification/service.go +++ b/openmeter/notification/service.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package notification import ( diff --git a/openmeter/notification/service/channel.go b/openmeter/notification/service/channel.go index 723d7a86b..68ec73d1e 100644 --- a/openmeter/notification/service/channel.go +++ b/openmeter/notification/service/channel.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package service import ( diff --git a/openmeter/notification/service/event.go b/openmeter/notification/service/event.go index bf0098b14..9a94cdab5 100644 --- a/openmeter/notification/service/event.go +++ b/openmeter/notification/service/event.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package service import ( diff --git a/openmeter/notification/service/rule.go b/openmeter/notification/service/rule.go index a136274ec..6de53b2a2 100644 --- a/openmeter/notification/service/rule.go +++ b/openmeter/notification/service/rule.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package service import ( diff --git a/openmeter/notification/service/service.go b/openmeter/notification/service/service.go index f1a96faf5..825e1fc7e 100644 --- a/openmeter/notification/service/service.go +++ b/openmeter/notification/service/service.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package service import ( diff --git a/openmeter/notification/utils.go b/openmeter/notification/utils.go index 285875bfc..f6071fa7b 100644 --- a/openmeter/notification/utils.go +++ b/openmeter/notification/utils.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package notification import ( diff --git a/openmeter/notification/utils_test.go b/openmeter/notification/utils_test.go index 80fb7e8f8..b2dbb776b 100644 --- a/openmeter/notification/utils_test.go +++ b/openmeter/notification/utils_test.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package notification import ( diff --git a/openmeter/notification/validator.go b/openmeter/notification/validator.go index f734c1d9e..3c67c01cb 100644 --- a/openmeter/notification/validator.go +++ b/openmeter/notification/validator.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package notification import "context" diff --git a/openmeter/notification/webhook/errors.go b/openmeter/notification/webhook/errors.go index 4c501efbd..9b192d1eb 100644 --- a/openmeter/notification/webhook/errors.go +++ b/openmeter/notification/webhook/errors.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package webhook type genericError struct { diff --git a/openmeter/notification/webhook/events.go b/openmeter/notification/webhook/events.go index 96cb8f5f6..bcbdb0aea 100644 --- a/openmeter/notification/webhook/events.go +++ b/openmeter/notification/webhook/events.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package webhook import ( diff --git a/openmeter/notification/webhook/secret.go b/openmeter/notification/webhook/secret.go index 67d9ad775..76000cfa4 100644 --- a/openmeter/notification/webhook/secret.go +++ b/openmeter/notification/webhook/secret.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package webhook import ( diff --git a/openmeter/notification/webhook/svix.go b/openmeter/notification/webhook/svix.go index de73f2c95..8f774725f 100644 --- a/openmeter/notification/webhook/svix.go +++ b/openmeter/notification/webhook/svix.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package webhook import ( diff --git a/openmeter/notification/webhook/webhook.go b/openmeter/notification/webhook/webhook.go index 210e2f703..d229f7202 100644 --- a/openmeter/notification/webhook/webhook.go +++ b/openmeter/notification/webhook/webhook.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package webhook import ( diff --git a/openmeter/productcatalog/adapter/feature.go b/openmeter/productcatalog/adapter/feature.go index 03a70259c..fd8fb8dea 100644 --- a/openmeter/productcatalog/adapter/feature.go +++ b/openmeter/productcatalog/adapter/feature.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package adapter import ( diff --git a/openmeter/productcatalog/adapter/feature_test.go b/openmeter/productcatalog/adapter/feature_test.go index 12d3959cd..826249f8e 100644 --- a/openmeter/productcatalog/adapter/feature_test.go +++ b/openmeter/productcatalog/adapter/feature_test.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package adapter_test import ( diff --git a/openmeter/productcatalog/adapter/transaction.go b/openmeter/productcatalog/adapter/transaction.go index 5755d95cc..a723ba154 100644 --- a/openmeter/productcatalog/adapter/transaction.go +++ b/openmeter/productcatalog/adapter/transaction.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package adapter import ( diff --git a/openmeter/productcatalog/connector.go b/openmeter/productcatalog/connector.go index a74b9f939..04e088f36 100644 --- a/openmeter/productcatalog/connector.go +++ b/openmeter/productcatalog/connector.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package productcatalog import ( diff --git a/openmeter/productcatalog/driver/errors.go b/openmeter/productcatalog/driver/errors.go index 8b387e25b..d638c69bb 100644 --- a/openmeter/productcatalog/driver/errors.go +++ b/openmeter/productcatalog/driver/errors.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package productcatalogdriver import ( diff --git a/openmeter/productcatalog/driver/feature.go b/openmeter/productcatalog/driver/feature.go index f1c9bdfeb..17b5af231 100644 --- a/openmeter/productcatalog/driver/feature.go +++ b/openmeter/productcatalog/driver/feature.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package productcatalogdriver import ( diff --git a/openmeter/productcatalog/driver/parser.go b/openmeter/productcatalog/driver/parser.go index 2888a9070..908f03a02 100644 --- a/openmeter/productcatalog/driver/parser.go +++ b/openmeter/productcatalog/driver/parser.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package productcatalogdriver import ( diff --git a/openmeter/productcatalog/feature.go b/openmeter/productcatalog/feature.go index 9def70d90..8be11b916 100644 --- a/openmeter/productcatalog/feature.go +++ b/openmeter/productcatalog/feature.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package productcatalog import ( diff --git a/openmeter/registry/builder/entitlement.go b/openmeter/registry/builder/entitlement.go index d3d3e59bc..fa56100d8 100644 --- a/openmeter/registry/builder/entitlement.go +++ b/openmeter/registry/builder/entitlement.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package registrybuilder import ( diff --git a/openmeter/registry/entitlement.go b/openmeter/registry/entitlement.go index 45ffde14b..370e1a221 100644 --- a/openmeter/registry/entitlement.go +++ b/openmeter/registry/entitlement.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package registry import ( diff --git a/openmeter/registry/startup/db.go b/openmeter/registry/startup/db.go index 0d800333e..eca3671fc 100644 --- a/openmeter/registry/startup/db.go +++ b/openmeter/registry/startup/db.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package startup import ( diff --git a/openmeter/server/authenticator/authenticator.go b/openmeter/server/authenticator/authenticator.go index 808760a0e..e96767af2 100644 --- a/openmeter/server/authenticator/authenticator.go +++ b/openmeter/server/authenticator/authenticator.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package authenticator import ( diff --git a/openmeter/server/authenticator/portal.go b/openmeter/server/authenticator/portal.go index 08b9f865f..220c45253 100644 --- a/openmeter/server/authenticator/portal.go +++ b/openmeter/server/authenticator/portal.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package authenticator import ( diff --git a/openmeter/server/cors.go b/openmeter/server/cors.go index 738eab724..87cde25b8 100644 --- a/openmeter/server/cors.go +++ b/openmeter/server/cors.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package server import ( diff --git a/openmeter/server/logger.go b/openmeter/server/logger.go index 4a6fb8c62..97583ad05 100644 --- a/openmeter/server/logger.go +++ b/openmeter/server/logger.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package server import ( diff --git a/openmeter/server/router/credit.go b/openmeter/server/router/credit.go index f34f55338..ffbc8aa0d 100644 --- a/openmeter/server/router/credit.go +++ b/openmeter/server/router/credit.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package router import ( diff --git a/openmeter/server/router/debug.go b/openmeter/server/router/debug.go index d76c89d40..39060f792 100644 --- a/openmeter/server/router/debug.go +++ b/openmeter/server/router/debug.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package router import ( diff --git a/openmeter/server/router/entitlement.go b/openmeter/server/router/entitlement.go index 934a05c21..f66189bc4 100644 --- a/openmeter/server/router/entitlement.go +++ b/openmeter/server/router/entitlement.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package router import ( diff --git a/openmeter/server/router/event.go b/openmeter/server/router/event.go index 405c08e14..b30afb508 100644 --- a/openmeter/server/router/event.go +++ b/openmeter/server/router/event.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package router import ( diff --git a/openmeter/server/router/meter.go b/openmeter/server/router/meter.go index 9925f5ac6..b7cd45239 100644 --- a/openmeter/server/router/meter.go +++ b/openmeter/server/router/meter.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package router import ( diff --git a/openmeter/server/router/meter_query.go b/openmeter/server/router/meter_query.go index 3bc4cf7b1..f38ff4f83 100644 --- a/openmeter/server/router/meter_query.go +++ b/openmeter/server/router/meter_query.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package router import ( diff --git a/openmeter/server/router/meter_subject.go b/openmeter/server/router/meter_subject.go index 14a2c1949..39616006f 100644 --- a/openmeter/server/router/meter_subject.go +++ b/openmeter/server/router/meter_subject.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package router import ( diff --git a/openmeter/server/router/noop.go b/openmeter/server/router/noop.go index 92fbdefb5..9ac9226d2 100644 --- a/openmeter/server/router/noop.go +++ b/openmeter/server/router/noop.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package router // We explicitly define no-op implementations for future APIs instead of just using the codegen version. diff --git a/openmeter/server/router/notification.go b/openmeter/server/router/notification.go index 86ea0fd2e..8683dfacd 100644 --- a/openmeter/server/router/notification.go +++ b/openmeter/server/router/notification.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package router import ( diff --git a/openmeter/server/router/portal.go b/openmeter/server/router/portal.go index 0e994948f..45cfd0828 100644 --- a/openmeter/server/router/portal.go +++ b/openmeter/server/router/portal.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package router import ( diff --git a/openmeter/server/router/product_catalog.go b/openmeter/server/router/product_catalog.go index a82c2738d..8433eea78 100644 --- a/openmeter/server/router/product_catalog.go +++ b/openmeter/server/router/product_catalog.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package router import ( diff --git a/openmeter/server/router/router.go b/openmeter/server/router/router.go index 1e33f381f..a0b65ff59 100644 --- a/openmeter/server/router/router.go +++ b/openmeter/server/router/router.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package router import ( diff --git a/openmeter/server/router/subject.go b/openmeter/server/router/subject.go index e01cba1a2..537317eaf 100644 --- a/openmeter/server/router/subject.go +++ b/openmeter/server/router/subject.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package router import ( diff --git a/openmeter/server/server.go b/openmeter/server/server.go index 9f5caa814..5f9aac4e7 100644 --- a/openmeter/server/server.go +++ b/openmeter/server/server.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package server import ( diff --git a/openmeter/server/server_test.go b/openmeter/server/server_test.go index 3163310e7..7b29b1a34 100644 --- a/openmeter/server/server_test.go +++ b/openmeter/server/server_test.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package server import ( diff --git a/openmeter/sink/buffer.go b/openmeter/sink/buffer.go index ac5006a56..545157c43 100644 --- a/openmeter/sink/buffer.go +++ b/openmeter/sink/buffer.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package sink import ( diff --git a/openmeter/sink/buffer_test.go b/openmeter/sink/buffer_test.go index 008c8da5b..5a15881d4 100644 --- a/openmeter/sink/buffer_test.go +++ b/openmeter/sink/buffer_test.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package sink_test import ( diff --git a/openmeter/sink/flushhandler/handler.go b/openmeter/sink/flushhandler/handler.go index 35626ff16..f0b0629c6 100644 --- a/openmeter/sink/flushhandler/handler.go +++ b/openmeter/sink/flushhandler/handler.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package flushhandler import ( diff --git a/openmeter/sink/flushhandler/ingestnotification/events/events.go b/openmeter/sink/flushhandler/ingestnotification/events/events.go index 856ae9ce0..62787ce92 100644 --- a/openmeter/sink/flushhandler/ingestnotification/events/events.go +++ b/openmeter/sink/flushhandler/ingestnotification/events/events.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package events import ( diff --git a/openmeter/sink/flushhandler/ingestnotification/handler.go b/openmeter/sink/flushhandler/ingestnotification/handler.go index 91d0133d0..2025cda5b 100644 --- a/openmeter/sink/flushhandler/ingestnotification/handler.go +++ b/openmeter/sink/flushhandler/ingestnotification/handler.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package ingestnotification import ( diff --git a/openmeter/sink/flushhandler/meters.go b/openmeter/sink/flushhandler/meters.go index f16f8b13e..d30486867 100644 --- a/openmeter/sink/flushhandler/meters.go +++ b/openmeter/sink/flushhandler/meters.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package flushhandler import ( diff --git a/openmeter/sink/flushhandler/mux.go b/openmeter/sink/flushhandler/mux.go index 1b6ad4ba2..202f79c3a 100644 --- a/openmeter/sink/flushhandler/mux.go +++ b/openmeter/sink/flushhandler/mux.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package flushhandler import ( diff --git a/openmeter/sink/flushhandler/types.go b/openmeter/sink/flushhandler/types.go index b8f36c8f1..ae50a81bb 100644 --- a/openmeter/sink/flushhandler/types.go +++ b/openmeter/sink/flushhandler/types.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package flushhandler import ( diff --git a/openmeter/sink/models/models.go b/openmeter/sink/models/models.go index 3db49cd3b..37f9629a8 100644 --- a/openmeter/sink/models/models.go +++ b/openmeter/sink/models/models.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package models import ( diff --git a/openmeter/sink/namespaces.go b/openmeter/sink/namespaces.go index 16a81749c..562ffe363 100644 --- a/openmeter/sink/namespaces.go +++ b/openmeter/sink/namespaces.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package sink import ( diff --git a/openmeter/sink/namespaces_test.go b/openmeter/sink/namespaces_test.go index 879bc15d6..79f508400 100644 --- a/openmeter/sink/namespaces_test.go +++ b/openmeter/sink/namespaces_test.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package sink_test import ( diff --git a/openmeter/sink/partition.go b/openmeter/sink/partition.go index 0711befbb..ee1d9dca8 100644 --- a/openmeter/sink/partition.go +++ b/openmeter/sink/partition.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package sink import ( diff --git a/openmeter/sink/sink.go b/openmeter/sink/sink.go index 71241797b..662276103 100644 --- a/openmeter/sink/sink.go +++ b/openmeter/sink/sink.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package sink import ( diff --git a/openmeter/sink/storage.go b/openmeter/sink/storage.go index d1a4feeb9..8575bf597 100644 --- a/openmeter/sink/storage.go +++ b/openmeter/sink/storage.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package sink import ( diff --git a/openmeter/sink/storage_test.go b/openmeter/sink/storage_test.go index 16aacd5bf..05350a284 100644 --- a/openmeter/sink/storage_test.go +++ b/openmeter/sink/storage_test.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package sink_test import ( diff --git a/openmeter/streaming/clickhouse_connector/connector.go b/openmeter/streaming/clickhouse_connector/connector.go index d999b08a5..f9ea9881c 100644 --- a/openmeter/streaming/clickhouse_connector/connector.go +++ b/openmeter/streaming/clickhouse_connector/connector.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package clickhouse_connector import ( diff --git a/openmeter/streaming/clickhouse_connector/model.go b/openmeter/streaming/clickhouse_connector/model.go index 915b5def3..3ce9bfce2 100644 --- a/openmeter/streaming/clickhouse_connector/model.go +++ b/openmeter/streaming/clickhouse_connector/model.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package clickhouse_connector import "github.com/openmeterio/openmeter/pkg/models" diff --git a/openmeter/streaming/clickhouse_connector/query.go b/openmeter/streaming/clickhouse_connector/query.go index 823901923..6c9cf7421 100644 --- a/openmeter/streaming/clickhouse_connector/query.go +++ b/openmeter/streaming/clickhouse_connector/query.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package clickhouse_connector import ( diff --git a/openmeter/streaming/clickhouse_connector/query_test.go b/openmeter/streaming/clickhouse_connector/query_test.go index 92e0d7d68..02c4505d8 100644 --- a/openmeter/streaming/clickhouse_connector/query_test.go +++ b/openmeter/streaming/clickhouse_connector/query_test.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package clickhouse_connector import ( diff --git a/openmeter/streaming/connector.go b/openmeter/streaming/connector.go index 3d61b3cbd..f97e370ee 100644 --- a/openmeter/streaming/connector.go +++ b/openmeter/streaming/connector.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package streaming import ( diff --git a/openmeter/streaming/query_params.go b/openmeter/streaming/query_params.go index 27bdccbb8..3ee1aa50a 100644 --- a/openmeter/streaming/query_params.go +++ b/openmeter/streaming/query_params.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package streaming import ( diff --git a/openmeter/streaming/query_params_test.go b/openmeter/streaming/query_params_test.go index eac4866bf..a0ee47547 100644 --- a/openmeter/streaming/query_params_test.go +++ b/openmeter/streaming/query_params_test.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package streaming import ( diff --git a/openmeter/streaming/testutils/streaming.go b/openmeter/streaming/testutils/streaming.go index 071cb28ad..154a05e88 100644 --- a/openmeter/streaming/testutils/streaming.go +++ b/openmeter/streaming/testutils/streaming.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package testutils import ( diff --git a/openmeter/streaming/testutils/streaming_test.go b/openmeter/streaming/testutils/streaming_test.go index c02ba631c..8b0e42d54 100644 --- a/openmeter/streaming/testutils/streaming_test.go +++ b/openmeter/streaming/testutils/streaming_test.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package testutils import ( diff --git a/openmeter/testutils/async.go b/openmeter/testutils/async.go index 9a6a34453..fff7141ba 100644 --- a/openmeter/testutils/async.go +++ b/openmeter/testutils/async.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package testutils import ( diff --git a/openmeter/testutils/logger.go b/openmeter/testutils/logger.go index d3d7d4297..6f9cfbf92 100644 --- a/openmeter/testutils/logger.go +++ b/openmeter/testutils/logger.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package testutils import ( diff --git a/openmeter/testutils/pg_driver.go b/openmeter/testutils/pg_driver.go index a3d74855b..6ffe3e7da 100644 --- a/openmeter/testutils/pg_driver.go +++ b/openmeter/testutils/pg_driver.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package testutils import ( diff --git a/openmeter/testutils/time.go b/openmeter/testutils/time.go index a72ba608a..9ae8a77a6 100644 --- a/openmeter/testutils/time.go +++ b/openmeter/testutils/time.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package testutils import ( diff --git a/openmeter/watermill/driver/kafka/broker.go b/openmeter/watermill/driver/kafka/broker.go index d50a07888..7b522e526 100644 --- a/openmeter/watermill/driver/kafka/broker.go +++ b/openmeter/watermill/driver/kafka/broker.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package kafka import ( diff --git a/openmeter/watermill/driver/kafka/logger.go b/openmeter/watermill/driver/kafka/logger.go index e0aca9e0d..0edd0bf67 100644 --- a/openmeter/watermill/driver/kafka/logger.go +++ b/openmeter/watermill/driver/kafka/logger.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package kafka import ( diff --git a/openmeter/watermill/driver/kafka/marshaler.go b/openmeter/watermill/driver/kafka/marshaler.go index 41f3dd920..c9faa9f5c 100644 --- a/openmeter/watermill/driver/kafka/marshaler.go +++ b/openmeter/watermill/driver/kafka/marshaler.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package kafka import ( diff --git a/openmeter/watermill/driver/kafka/metrics.go b/openmeter/watermill/driver/kafka/metrics.go index d60927d68..94dfa7515 100644 --- a/openmeter/watermill/driver/kafka/metrics.go +++ b/openmeter/watermill/driver/kafka/metrics.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package kafka import ( diff --git a/openmeter/watermill/driver/kafka/metrics/adapter.go b/openmeter/watermill/driver/kafka/metrics/adapter.go index acfd57b30..e0e4627f7 100644 --- a/openmeter/watermill/driver/kafka/metrics/adapter.go +++ b/openmeter/watermill/driver/kafka/metrics/adapter.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package metrics import ( diff --git a/openmeter/watermill/driver/kafka/publisher.go b/openmeter/watermill/driver/kafka/publisher.go index 7744fffd4..e7e5d98d5 100644 --- a/openmeter/watermill/driver/kafka/publisher.go +++ b/openmeter/watermill/driver/kafka/publisher.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package kafka import ( diff --git a/openmeter/watermill/driver/kafka/subscriber.go b/openmeter/watermill/driver/kafka/subscriber.go index 6d68323a8..4547bc3fe 100644 --- a/openmeter/watermill/driver/kafka/subscriber.go +++ b/openmeter/watermill/driver/kafka/subscriber.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package kafka import ( diff --git a/openmeter/watermill/driver/kafka/topic_provision.go b/openmeter/watermill/driver/kafka/topic_provision.go index 7c98c66c8..503e8ac0d 100644 --- a/openmeter/watermill/driver/kafka/topic_provision.go +++ b/openmeter/watermill/driver/kafka/topic_provision.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package kafka import ( diff --git a/openmeter/watermill/driver/noop/publisher.go b/openmeter/watermill/driver/noop/publisher.go index 2c82c51de..9eb33ab1e 100644 --- a/openmeter/watermill/driver/noop/publisher.go +++ b/openmeter/watermill/driver/noop/publisher.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package noop import "github.com/ThreeDotsLabs/watermill/message" diff --git a/openmeter/watermill/eventbus/eventbus.go b/openmeter/watermill/eventbus/eventbus.go index 284458158..832c92ac2 100644 --- a/openmeter/watermill/eventbus/eventbus.go +++ b/openmeter/watermill/eventbus/eventbus.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package eventbus import ( diff --git a/openmeter/watermill/grouphandler/grouphandler.go b/openmeter/watermill/grouphandler/grouphandler.go index ea2bb538d..45a3c091c 100644 --- a/openmeter/watermill/grouphandler/grouphandler.go +++ b/openmeter/watermill/grouphandler/grouphandler.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package grouphandler import ( diff --git a/openmeter/watermill/marshaler/marshaler.go b/openmeter/watermill/marshaler/marshaler.go index 27d76c56e..30cf61698 100644 --- a/openmeter/watermill/marshaler/marshaler.go +++ b/openmeter/watermill/marshaler/marshaler.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package marshaler import ( diff --git a/openmeter/watermill/marshaler/source.go b/openmeter/watermill/marshaler/source.go index 946442b0c..65a995d6f 100644 --- a/openmeter/watermill/marshaler/source.go +++ b/openmeter/watermill/marshaler/source.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package marshaler import ( diff --git a/openmeter/watermill/marshaler/source_test.go b/openmeter/watermill/marshaler/source_test.go index a17fee4fc..2f6a90fbb 100644 --- a/openmeter/watermill/marshaler/source_test.go +++ b/openmeter/watermill/marshaler/source_test.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package marshaler import ( diff --git a/openmeter/watermill/nopublisher/nopublisher.go b/openmeter/watermill/nopublisher/nopublisher.go index 2114c7c16..4e7f8b872 100644 --- a/openmeter/watermill/nopublisher/nopublisher.go +++ b/openmeter/watermill/nopublisher/nopublisher.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package nopublisher import ( diff --git a/openmeter/watermill/router/context.go b/openmeter/watermill/router/context.go index 23a4869f4..ba2620839 100644 --- a/openmeter/watermill/router/context.go +++ b/openmeter/watermill/router/context.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package router import ( diff --git a/openmeter/watermill/router/metrics.go b/openmeter/watermill/router/metrics.go index a4b8ce830..bba62d129 100644 --- a/openmeter/watermill/router/metrics.go +++ b/openmeter/watermill/router/metrics.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package router import ( diff --git a/openmeter/watermill/router/router.go b/openmeter/watermill/router/router.go index d238e674c..5220bf3a5 100644 --- a/openmeter/watermill/router/router.go +++ b/openmeter/watermill/router/router.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package router import ( diff --git a/openmeter/watermill/router/router_test.go b/openmeter/watermill/router/router_test.go index 07d2ad084..e55caf530 100644 --- a/openmeter/watermill/router/router_test.go +++ b/openmeter/watermill/router/router_test.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package router import ( diff --git a/pkg/clock/clock.go b/pkg/clock/clock.go index df548f3f0..3fe85f3c2 100644 --- a/pkg/clock/clock.go +++ b/pkg/clock/clock.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package clock import "time" diff --git a/pkg/clock/clock_test.go b/pkg/clock/clock_test.go index 5d758d50f..501a47843 100644 --- a/pkg/clock/clock_test.go +++ b/pkg/clock/clock_test.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package clock_test import ( diff --git a/pkg/contextx/attr.go b/pkg/contextx/attr.go index c6c46c603..276c8f0c9 100644 --- a/pkg/contextx/attr.go +++ b/pkg/contextx/attr.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package contextx import ( diff --git a/pkg/contextx/log.go b/pkg/contextx/log.go index 5264d0e81..33d99db63 100644 --- a/pkg/contextx/log.go +++ b/pkg/contextx/log.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package contextx import ( diff --git a/pkg/convert/ptr.go b/pkg/convert/ptr.go index 30676822b..38871df2a 100644 --- a/pkg/convert/ptr.go +++ b/pkg/convert/ptr.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package convert import "time" diff --git a/pkg/defaultx/default.go b/pkg/defaultx/default.go index 1a93bcba0..cf75a3589 100644 --- a/pkg/defaultx/default.go +++ b/pkg/defaultx/default.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package defaultx func WithDefault[T any](value *T, def T) T { diff --git a/pkg/errorsx/convert.go b/pkg/errorsx/convert.go index 0c2481029..48b7bff7f 100644 --- a/pkg/errorsx/convert.go +++ b/pkg/errorsx/convert.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package errorsx import "errors" diff --git a/pkg/errorsx/handler.go b/pkg/errorsx/handler.go index 8fb973e30..7993b72ce 100644 --- a/pkg/errorsx/handler.go +++ b/pkg/errorsx/handler.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package errorsx import ( diff --git a/pkg/framework/commonhttp/decoder.go b/pkg/framework/commonhttp/decoder.go index 96401175f..5453acc54 100644 --- a/pkg/framework/commonhttp/decoder.go +++ b/pkg/framework/commonhttp/decoder.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package commonhttp import ( diff --git a/pkg/framework/commonhttp/encoder.go b/pkg/framework/commonhttp/encoder.go index 0eafe2ba2..8667c1093 100644 --- a/pkg/framework/commonhttp/encoder.go +++ b/pkg/framework/commonhttp/encoder.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package commonhttp import ( diff --git a/pkg/framework/commonhttp/errors.go b/pkg/framework/commonhttp/errors.go index 327f87b56..57fec8723 100644 --- a/pkg/framework/commonhttp/errors.go +++ b/pkg/framework/commonhttp/errors.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package commonhttp import ( diff --git a/pkg/framework/commonhttp/pagination.go b/pkg/framework/commonhttp/pagination.go index 933147c63..94e5e19b8 100644 --- a/pkg/framework/commonhttp/pagination.go +++ b/pkg/framework/commonhttp/pagination.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package commonhttp const ( diff --git a/pkg/framework/commonhttp/sort.go b/pkg/framework/commonhttp/sort.go index f1cccc1bb..234741423 100644 --- a/pkg/framework/commonhttp/sort.go +++ b/pkg/framework/commonhttp/sort.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package commonhttp import ( diff --git a/pkg/framework/commonhttp/union.go b/pkg/framework/commonhttp/union.go index f0d11c717..68735e2e1 100644 --- a/pkg/framework/commonhttp/union.go +++ b/pkg/framework/commonhttp/union.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package commonhttp import ( diff --git a/pkg/framework/entutils/entdriver/driver.go b/pkg/framework/entutils/entdriver/driver.go index 0730062d9..d70ef99a1 100644 --- a/pkg/framework/entutils/entdriver/driver.go +++ b/pkg/framework/entutils/entdriver/driver.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package entdriver import ( diff --git a/pkg/framework/entutils/entexpose/entexpose.go b/pkg/framework/entutils/entexpose/entexpose.go index 9f344d56b..238fc89b6 100644 --- a/pkg/framework/entutils/entexpose/entexpose.go +++ b/pkg/framework/entutils/entexpose/entexpose.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package entexpose import ( diff --git a/pkg/framework/entutils/entpaginate/paginate.go b/pkg/framework/entutils/entpaginate/paginate.go index cb857649a..036240024 100644 --- a/pkg/framework/entutils/entpaginate/paginate.go +++ b/pkg/framework/entutils/entpaginate/paginate.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package entpaginate import ( diff --git a/pkg/framework/entutils/entpaginate/paginate_test.go b/pkg/framework/entutils/entpaginate/paginate_test.go index 5bb9cb471..f36dddbee 100644 --- a/pkg/framework/entutils/entpaginate/paginate_test.go +++ b/pkg/framework/entutils/entpaginate/paginate_test.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package entpaginate_test import ( diff --git a/pkg/framework/entutils/mixins.go b/pkg/framework/entutils/mixins.go index e685f9d28..ca3098572 100644 --- a/pkg/framework/entutils/mixins.go +++ b/pkg/framework/entutils/mixins.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package entutils import ( diff --git a/pkg/framework/entutils/pgjsonb.go b/pkg/framework/entutils/pgjsonb.go index 0adbe7796..32164a9e4 100644 --- a/pkg/framework/entutils/pgjsonb.go +++ b/pkg/framework/entutils/pgjsonb.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package entutils import ( diff --git a/pkg/framework/entutils/pgulid.go b/pkg/framework/entutils/pgulid.go index 695336663..980154acd 100644 --- a/pkg/framework/entutils/pgulid.go +++ b/pkg/framework/entutils/pgulid.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package entutils import ( diff --git a/pkg/framework/entutils/sort.go b/pkg/framework/entutils/sort.go index 24246a41e..4532ea491 100644 --- a/pkg/framework/entutils/sort.go +++ b/pkg/framework/entutils/sort.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package entutils import ( diff --git a/pkg/framework/entutils/testutils/ent1/entc.go b/pkg/framework/entutils/testutils/ent1/entc.go index 88be9b535..a8e7bce06 100644 --- a/pkg/framework/entutils/testutils/ent1/entc.go +++ b/pkg/framework/entutils/testutils/ent1/entc.go @@ -1,6 +1,20 @@ //go:build ignore // +build ignore +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package main import ( diff --git a/pkg/framework/entutils/testutils/ent1/generate.go b/pkg/framework/entutils/testutils/ent1/generate.go index dfc69c4f4..a9933d158 100644 --- a/pkg/framework/entutils/testutils/ent1/generate.go +++ b/pkg/framework/entutils/testutils/ent1/generate.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package ent1 //go:generate go run -mod=mod entc.go diff --git a/pkg/framework/entutils/testutils/ent1/schema/example1.go b/pkg/framework/entutils/testutils/ent1/schema/example1.go index 32a4800f3..8c04b71c7 100644 --- a/pkg/framework/entutils/testutils/ent1/schema/example1.go +++ b/pkg/framework/entutils/testutils/ent1/schema/example1.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package schema import ( diff --git a/pkg/framework/entutils/testutils/ent2/entc.go b/pkg/framework/entutils/testutils/ent2/entc.go index e176c1fcf..14f7adac6 100644 --- a/pkg/framework/entutils/testutils/ent2/entc.go +++ b/pkg/framework/entutils/testutils/ent2/entc.go @@ -1,6 +1,20 @@ //go:build ignore // +build ignore +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package main import ( diff --git a/pkg/framework/entutils/testutils/ent2/generate.go b/pkg/framework/entutils/testutils/ent2/generate.go index ab96df2b1..870c36d51 100644 --- a/pkg/framework/entutils/testutils/ent2/generate.go +++ b/pkg/framework/entutils/testutils/ent2/generate.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package ent2 //go:generate go run -mod=mod entc.go diff --git a/pkg/framework/entutils/testutils/ent2/schema/example2.go b/pkg/framework/entutils/testutils/ent2/schema/example2.go index f3dbb6749..c140417ee 100644 --- a/pkg/framework/entutils/testutils/ent2/schema/example2.go +++ b/pkg/framework/entutils/testutils/ent2/schema/example2.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package schema import ( diff --git a/pkg/framework/entutils/transaction.go b/pkg/framework/entutils/transaction.go index 08dbb1e22..0738c855b 100644 --- a/pkg/framework/entutils/transaction.go +++ b/pkg/framework/entutils/transaction.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package entutils import ( diff --git a/pkg/framework/entutils/transaction_test.go b/pkg/framework/entutils/transaction_test.go index 3aaf4a766..d676a0e1c 100644 --- a/pkg/framework/entutils/transaction_test.go +++ b/pkg/framework/entutils/transaction_test.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package entutils_test import ( diff --git a/pkg/framework/internal/operation/name.go b/pkg/framework/internal/operation/name.go index da8d9d813..0723d5cf5 100644 --- a/pkg/framework/internal/operation/name.go +++ b/pkg/framework/internal/operation/name.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package operation import "context" diff --git a/pkg/framework/operation/log.go b/pkg/framework/operation/log.go index 335b2cb10..a03a210aa 100644 --- a/pkg/framework/operation/log.go +++ b/pkg/framework/operation/log.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package operation import ( diff --git a/pkg/framework/operation/middleware.go b/pkg/framework/operation/middleware.go index 8452c398c..2e85df7fe 100644 --- a/pkg/framework/operation/middleware.go +++ b/pkg/framework/operation/middleware.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package operation // Middleware is a chainable function that wraps an [Operation]. diff --git a/pkg/framework/operation/middleware_test.go b/pkg/framework/operation/middleware_test.go index a6e43827a..d1744ca1d 100644 --- a/pkg/framework/operation/middleware_test.go +++ b/pkg/framework/operation/middleware_test.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package operation_test import ( diff --git a/pkg/framework/operation/name.go b/pkg/framework/operation/name.go index edb97b72d..9ec0c988a 100644 --- a/pkg/framework/operation/name.go +++ b/pkg/framework/operation/name.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package operation // Name returns the name of the operation from the context (if any). diff --git a/pkg/framework/operation/name_test.go b/pkg/framework/operation/name_test.go index 96b9ef6ef..36a3699b1 100644 --- a/pkg/framework/operation/name_test.go +++ b/pkg/framework/operation/name_test.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package operation_test // import ( diff --git a/pkg/framework/operation/operation.go b/pkg/framework/operation/operation.go index bad7f19b7..55d5d42d5 100644 --- a/pkg/framework/operation/operation.go +++ b/pkg/framework/operation/operation.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Package operation provides an abstraction for RPC-style APIs. // // Implementations are generally business logic functions that take a request and return a response. diff --git a/pkg/framework/operation/operation_test.go b/pkg/framework/operation/operation_test.go index e91b57d0c..7a8f8fdce 100644 --- a/pkg/framework/operation/operation_test.go +++ b/pkg/framework/operation/operation_test.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package operation_test import ( diff --git a/pkg/framework/pgdriver/driver.go b/pkg/framework/pgdriver/driver.go index 6e212e2c6..9676277e3 100644 --- a/pkg/framework/pgdriver/driver.go +++ b/pkg/framework/pgdriver/driver.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package pgdriver import ( diff --git a/pkg/framework/transport/httptransport/argshandler.go b/pkg/framework/transport/httptransport/argshandler.go index 6a4e82094..d9b53d1cb 100644 --- a/pkg/framework/transport/httptransport/argshandler.go +++ b/pkg/framework/transport/httptransport/argshandler.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package httptransport import ( diff --git a/pkg/framework/transport/httptransport/handler.go b/pkg/framework/transport/httptransport/handler.go index 32075d165..da6f8371f 100644 --- a/pkg/framework/transport/httptransport/handler.go +++ b/pkg/framework/transport/httptransport/handler.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package httptransport import ( diff --git a/pkg/framework/transport/httptransport/options.go b/pkg/framework/transport/httptransport/options.go index e2f30a604..c53c90198 100644 --- a/pkg/framework/transport/httptransport/options.go +++ b/pkg/framework/transport/httptransport/options.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package httptransport import "context" diff --git a/pkg/gosundheit/logger.go b/pkg/gosundheit/logger.go index f72a2f2a7..e05a2816b 100644 --- a/pkg/gosundheit/logger.go +++ b/pkg/gosundheit/logger.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package gosundheit import ( diff --git a/pkg/kafka/config.go b/pkg/kafka/config.go index e8ca6ef76..59af6855f 100644 --- a/pkg/kafka/config.go +++ b/pkg/kafka/config.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package kafka import ( diff --git a/pkg/kafka/config_test.go b/pkg/kafka/config_test.go index 092c5c8c9..8a378e89b 100644 --- a/pkg/kafka/config_test.go +++ b/pkg/kafka/config_test.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package kafka import ( diff --git a/pkg/kafka/kafka.go b/pkg/kafka/kafka.go index c8dd71ebf..e8b0d4ba9 100644 --- a/pkg/kafka/kafka.go +++ b/pkg/kafka/kafka.go @@ -1,2 +1,16 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Package kafka implements tools to work with kafka Producers and Consumers. package kafka diff --git a/pkg/kafka/log.go b/pkg/kafka/log.go index 51683b023..9ec53526a 100644 --- a/pkg/kafka/log.go +++ b/pkg/kafka/log.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package kafka import ( diff --git a/pkg/kafka/metrics/broker.go b/pkg/kafka/metrics/broker.go index ebeab8e21..bd2c723ee 100644 --- a/pkg/kafka/metrics/broker.go +++ b/pkg/kafka/metrics/broker.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package metrics import ( diff --git a/pkg/kafka/metrics/consumergroup.go b/pkg/kafka/metrics/consumergroup.go index 834bdda7b..670daabd9 100644 --- a/pkg/kafka/metrics/consumergroup.go +++ b/pkg/kafka/metrics/consumergroup.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package metrics import ( diff --git a/pkg/kafka/metrics/metrics.go b/pkg/kafka/metrics/metrics.go index 7a4a17a95..feed5d409 100644 --- a/pkg/kafka/metrics/metrics.go +++ b/pkg/kafka/metrics/metrics.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package metrics import ( diff --git a/pkg/kafka/metrics/stats/broker.go b/pkg/kafka/metrics/stats/broker.go index 380a7863f..37a679ff1 100644 --- a/pkg/kafka/metrics/stats/broker.go +++ b/pkg/kafka/metrics/stats/broker.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package stats import ( diff --git a/pkg/kafka/metrics/stats/consumergroup.go b/pkg/kafka/metrics/stats/consumergroup.go index c1d7b4e98..11dddc704 100644 --- a/pkg/kafka/metrics/stats/consumergroup.go +++ b/pkg/kafka/metrics/stats/consumergroup.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package stats import ( diff --git a/pkg/kafka/metrics/stats/stats.go b/pkg/kafka/metrics/stats/stats.go index e4eb5d559..1f3606521 100644 --- a/pkg/kafka/metrics/stats/stats.go +++ b/pkg/kafka/metrics/stats/stats.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package stats // https://github.com/confluentinc/librdkafka/blob/v2.4.0/STATISTICS.md diff --git a/pkg/kafka/metrics/stats/stats_test.go b/pkg/kafka/metrics/stats/stats_test.go index ce28601b0..ba95bb41d 100644 --- a/pkg/kafka/metrics/stats/stats_test.go +++ b/pkg/kafka/metrics/stats/stats_test.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package stats import ( diff --git a/pkg/kafka/metrics/stats/topic.go b/pkg/kafka/metrics/stats/topic.go index 5a19f8320..0595b5592 100644 --- a/pkg/kafka/metrics/stats/topic.go +++ b/pkg/kafka/metrics/stats/topic.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package stats type TopicStats struct { diff --git a/pkg/kafka/metrics/topic.go b/pkg/kafka/metrics/topic.go index 454a8e3ff..97713e382 100644 --- a/pkg/kafka/metrics/topic.go +++ b/pkg/kafka/metrics/topic.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package metrics import ( diff --git a/pkg/kafka/provisiontopic.go b/pkg/kafka/provisiontopic.go index 1fbaa0a4a..dbbcce832 100644 --- a/pkg/kafka/provisiontopic.go +++ b/pkg/kafka/provisiontopic.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package kafka import ( diff --git a/pkg/models/error.go b/pkg/models/error.go index d119ca4e3..9083af94a 100644 --- a/pkg/models/error.go +++ b/pkg/models/error.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package models import "fmt" diff --git a/pkg/models/id.go b/pkg/models/id.go index 1ae240d5a..1aa505aa8 100644 --- a/pkg/models/id.go +++ b/pkg/models/id.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package models type NamespacedID struct { diff --git a/pkg/models/meter.go b/pkg/models/meter.go index 7f9e6356c..c5efed61d 100644 --- a/pkg/models/meter.go +++ b/pkg/models/meter.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package models import ( diff --git a/pkg/models/meter_test.go b/pkg/models/meter_test.go index 8d4231a5c..a1827f58d 100644 --- a/pkg/models/meter_test.go +++ b/pkg/models/meter_test.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package models import ( diff --git a/pkg/models/model.go b/pkg/models/model.go index 1f8cb66ae..23c4f249c 100644 --- a/pkg/models/model.go +++ b/pkg/models/model.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package models import "time" diff --git a/pkg/models/problem.go b/pkg/models/problem.go index a4f9628ea..d1e6c5a25 100644 --- a/pkg/models/problem.go +++ b/pkg/models/problem.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package models import ( diff --git a/pkg/models/subject.go b/pkg/models/subject.go index a38840ddc..2fd472e9a 100644 --- a/pkg/models/subject.go +++ b/pkg/models/subject.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package models type SubjectKey string diff --git a/pkg/pagination/pagination.go b/pkg/pagination/pagination.go index de02387ce..061d50efa 100644 --- a/pkg/pagination/pagination.go +++ b/pkg/pagination/pagination.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package pagination import ( diff --git a/pkg/pagination/pagination_test.go b/pkg/pagination/pagination_test.go index e986bd785..395a645b9 100644 --- a/pkg/pagination/pagination_test.go +++ b/pkg/pagination/pagination_test.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package pagination_test import ( diff --git a/pkg/pgxpoolobserver/observer.go b/pkg/pgxpoolobserver/observer.go index 562f7c719..2f141e8a2 100644 --- a/pkg/pgxpoolobserver/observer.go +++ b/pkg/pgxpoolobserver/observer.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package pgxpoolobserver import ( diff --git a/pkg/recurrence/period.go b/pkg/recurrence/period.go index 102a5e919..ac087fa64 100644 --- a/pkg/recurrence/period.go +++ b/pkg/recurrence/period.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package recurrence import ( diff --git a/pkg/recurrence/recurrence.go b/pkg/recurrence/recurrence.go index 88793d653..c215be365 100644 --- a/pkg/recurrence/recurrence.go +++ b/pkg/recurrence/recurrence.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package recurrence import ( diff --git a/pkg/recurrence/recurrence_test.go b/pkg/recurrence/recurrence_test.go index 1123f8d98..9efb4a5fe 100644 --- a/pkg/recurrence/recurrence_test.go +++ b/pkg/recurrence/recurrence_test.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package recurrence import ( diff --git a/pkg/redis/client.go b/pkg/redis/client.go index 07f075f9b..5961c55df 100644 --- a/pkg/redis/client.go +++ b/pkg/redis/client.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package redis import ( diff --git a/pkg/redis/config.go b/pkg/redis/config.go index c4378c4b5..a88180ade 100644 --- a/pkg/redis/config.go +++ b/pkg/redis/config.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package redis // Config stores the user provided configuration parameters diff --git a/pkg/slicesx/diff.go b/pkg/slicesx/diff.go index 4b44fb48e..380573e8d 100644 --- a/pkg/slicesx/diff.go +++ b/pkg/slicesx/diff.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package slicesx import "github.com/samber/lo" diff --git a/pkg/slicesx/diff_test.go b/pkg/slicesx/diff_test.go index 41601ee9c..45be86241 100644 --- a/pkg/slicesx/diff_test.go +++ b/pkg/slicesx/diff_test.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package slicesx import ( diff --git a/pkg/slicesx/first.go b/pkg/slicesx/first.go index c804a2ccd..19b1509d8 100644 --- a/pkg/slicesx/first.go +++ b/pkg/slicesx/first.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package slicesx // returns the first element in the slice where the predicate returns true diff --git a/pkg/slicesx/map.go b/pkg/slicesx/map.go index 409e79493..c01037a0e 100644 --- a/pkg/slicesx/map.go +++ b/pkg/slicesx/map.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package slicesx // Map maps elements of a slice from T to M, returning a new slice. diff --git a/pkg/slicesx/map_test.go b/pkg/slicesx/map_test.go index 696680845..6c6bf62b8 100644 --- a/pkg/slicesx/map_test.go +++ b/pkg/slicesx/map_test.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package slicesx import ( diff --git a/pkg/sortx/order.go b/pkg/sortx/order.go index bcc75adb6..130e925d2 100644 --- a/pkg/sortx/order.go +++ b/pkg/sortx/order.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package sortx type Order string diff --git a/pkg/strcase/strcase.go b/pkg/strcase/strcase.go index 4b198c7e9..478cd81b5 100644 --- a/pkg/strcase/strcase.go +++ b/pkg/strcase/strcase.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package strcase import ( diff --git a/pkg/strcase/strcase_test.go b/pkg/strcase/strcase_test.go index f01375f72..a44474384 100644 --- a/pkg/strcase/strcase_test.go +++ b/pkg/strcase/strcase_test.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package strcase_test import ( diff --git a/pkg/timezone/tz.go b/pkg/timezone/tz.go index 4df123073..c50ffac35 100644 --- a/pkg/timezone/tz.go +++ b/pkg/timezone/tz.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package timezone import "time" diff --git a/quickstart/quickstart_test.go b/quickstart/quickstart_test.go index 4cd0b2cd9..09ca8a897 100644 --- a/quickstart/quickstart_test.go +++ b/quickstart/quickstart_test.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package quickstart import ( diff --git a/test/entitlement/regression/framework_test.go b/test/entitlement/regression/framework_test.go index 7ddd65f3a..b8c8a0339 100644 --- a/test/entitlement/regression/framework_test.go +++ b/test/entitlement/regression/framework_test.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package framework_test import ( diff --git a/test/entitlement/regression/scenario_test.go b/test/entitlement/regression/scenario_test.go index 419abf658..fc770c052 100644 --- a/test/entitlement/regression/scenario_test.go +++ b/test/entitlement/regression/scenario_test.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package framework_test import ( diff --git a/test/notification/channel.go b/test/notification/channel.go index 156cc55a3..ef2f351eb 100644 --- a/test/notification/channel.go +++ b/test/notification/channel.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package notification import ( diff --git a/test/notification/consumer_balance.go b/test/notification/consumer_balance.go index 6ae936274..b7971afb0 100644 --- a/test/notification/consumer_balance.go +++ b/test/notification/consumer_balance.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package notification import ( diff --git a/test/notification/event.go b/test/notification/event.go index cf447bfa1..a2811a45f 100644 --- a/test/notification/event.go +++ b/test/notification/event.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package notification import ( diff --git a/test/notification/helpers.go b/test/notification/helpers.go index dfac5eb47..87b7a4403 100644 --- a/test/notification/helpers.go +++ b/test/notification/helpers.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package notification import ( diff --git a/test/notification/notification_test.go b/test/notification/notification_test.go index cc5a6a3be..a03a77436 100644 --- a/test/notification/notification_test.go +++ b/test/notification/notification_test.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package notification import ( diff --git a/test/notification/repository.go b/test/notification/repository.go index 83a1dda24..42d5fb1b8 100644 --- a/test/notification/repository.go +++ b/test/notification/repository.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package notification import ( diff --git a/test/notification/rule.go b/test/notification/rule.go index f14f4e3de..a7f51882c 100644 --- a/test/notification/rule.go +++ b/test/notification/rule.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package notification import ( diff --git a/test/notification/testenv.go b/test/notification/testenv.go index 698974399..19b28fdaa 100644 --- a/test/notification/testenv.go +++ b/test/notification/testenv.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package notification import ( diff --git a/test/notification/webhook.go b/test/notification/webhook.go index a82a64f7d..2b92866a7 100644 --- a/test/notification/webhook.go +++ b/test/notification/webhook.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package notification import ( diff --git a/tools.go b/tools.go index 4f26c012b..81bad3fea 100644 --- a/tools.go +++ b/tools.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //go:build tools // +build tools diff --git a/tools/migrate/migrate.go b/tools/migrate/migrate.go index 96f6ed7bd..816cc125f 100644 --- a/tools/migrate/migrate.go +++ b/tools/migrate/migrate.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // A very lightweigh migration tool to replace `ent.Schema.Create` calls. package migrate diff --git a/tools/migrate/migrate_test.go b/tools/migrate/migrate_test.go index 1a3775ef8..906f37034 100644 --- a/tools/migrate/migrate_test.go +++ b/tools/migrate/migrate_test.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package migrate_test import (