From 6e18505dcd8306db4f92a230c3e44b74f0aa75c5 Mon Sep 17 00:00:00 2001 From: Bence Csati Date: Fri, 15 Mar 2024 11:21:28 +0100 Subject: [PATCH] feat: add license headers Signed-off-by: Bence Csati feat: add more license headers Signed-off-by: Bence Csati --- .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 ++++++++++++++ ci/build.go | 14 ++++++++++++++ ci/dev.go | 14 ++++++++++++++ ci/e2e.go | 14 ++++++++++++++ ci/generate.go | 14 ++++++++++++++ ci/lint.go | 14 ++++++++++++++ ci/main.go | 14 ++++++++++++++ ci/release.go | 14 ++++++++++++++ ci/snapshot.go | 14 ++++++++++++++ ci/utils.go | 14 ++++++++++++++ ci/versions.go | 14 ++++++++++++++ ci/versions_pinned.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/ingest.go | 14 ++++++++++++++ config/ingest_test.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 ++++++++++++++ internal/credit/adapter/balance_snapshot.go | 14 ++++++++++++++ internal/credit/adapter/grant.go | 14 ++++++++++++++ internal/credit/adapter/transaction.go | 14 ++++++++++++++ internal/credit/balance.go | 14 ++++++++++++++ internal/credit/balance/balance.go | 14 ++++++++++++++ internal/credit/balance/balance_test.go | 14 ++++++++++++++ internal/credit/balance/repository.go | 14 ++++++++++++++ internal/credit/connector.go | 14 ++++++++++++++ internal/credit/driver/grant.go | 14 ++++++++++++++ internal/credit/engine/engine.go | 14 ++++++++++++++ internal/credit/engine/engine_test.go | 14 ++++++++++++++ internal/credit/engine/history.go | 14 ++++++++++++++ internal/credit/grant.go | 14 ++++++++++++++ internal/credit/grant/events.go | 14 ++++++++++++++ internal/credit/grant/expiration.go | 14 ++++++++++++++ internal/credit/grant/grant.go | 14 ++++++++++++++ internal/credit/grant/owner_connector.go | 14 ++++++++++++++ internal/credit/grant/repo.go | 14 ++++++++++++++ internal/debug/debug.go | 14 ++++++++++++++ internal/debug/httpdriver/metrics.go | 14 ++++++++++++++ internal/dedupe/dedupe.go | 14 ++++++++++++++ internal/dedupe/memorydedupe/memorydedupe.go | 14 ++++++++++++++ internal/dedupe/memorydedupe/memorydedupe_test.go | 14 ++++++++++++++ internal/dedupe/redisdedupe/redisdedupe.go | 14 ++++++++++++++ internal/ent/client.go | 14 ++++++++++++++ internal/ent/generate.go | 14 ++++++++++++++ internal/ent/schema/balance_snapshot.go | 14 ++++++++++++++ internal/ent/schema/entitlement.go | 14 ++++++++++++++ internal/ent/schema/feature.go | 14 ++++++++++++++ internal/ent/schema/grant.go | 14 ++++++++++++++ internal/ent/schema/notification.go | 14 ++++++++++++++ internal/ent/schema/usage_reset.go | 14 ++++++++++++++ internal/entitlement/adapter/entitlement.go | 14 ++++++++++++++ internal/entitlement/adapter/transaction.go | 14 ++++++++++++++ internal/entitlement/adapter/usage_reset.go | 14 ++++++++++++++ .../balanceworker/entitlementhandler.go | 14 ++++++++++++++ .../entitlement/balanceworker/ingesthandler.go | 14 ++++++++++++++ internal/entitlement/balanceworker/recalculate.go | 14 ++++++++++++++ internal/entitlement/balanceworker/repository.go | 14 ++++++++++++++ internal/entitlement/balanceworker/worker.go | 14 ++++++++++++++ internal/entitlement/boolean/connector.go | 14 ++++++++++++++ internal/entitlement/boolean/entitlement.go | 14 ++++++++++++++ internal/entitlement/connector.go | 14 ++++++++++++++ internal/entitlement/driver/entitlement.go | 14 ++++++++++++++ internal/entitlement/driver/errors.go | 14 ++++++++++++++ internal/entitlement/driver/metered.go | 14 ++++++++++++++ internal/entitlement/driver/parser.go | 14 ++++++++++++++ internal/entitlement/entitlement.go | 14 ++++++++++++++ internal/entitlement/entitlement_test.go | 14 ++++++++++++++ internal/entitlement/entitlement_types.go | 14 ++++++++++++++ internal/entitlement/errors.go | 14 ++++++++++++++ internal/entitlement/events.go | 14 ++++++++++++++ internal/entitlement/metered/balance.go | 14 ++++++++++++++ internal/entitlement/metered/balance_test.go | 14 ++++++++++++++ internal/entitlement/metered/connector.go | 14 ++++++++++++++ internal/entitlement/metered/entitlement.go | 14 ++++++++++++++ internal/entitlement/metered/entitlement_grant.go | 14 ++++++++++++++ internal/entitlement/metered/events.go | 14 ++++++++++++++ .../entitlement/metered/grant_owner_adapter.go | 14 ++++++++++++++ internal/entitlement/metered/repository.go | 14 ++++++++++++++ internal/entitlement/metered/reset.go | 14 ++++++++++++++ internal/entitlement/metered/reset_test.go | 14 ++++++++++++++ internal/entitlement/metered/utils_test.go | 14 ++++++++++++++ internal/entitlement/repository.go | 14 ++++++++++++++ internal/entitlement/snapshot/event.go | 14 ++++++++++++++ internal/entitlement/static/connector.go | 14 ++++++++++++++ internal/entitlement/static/entitlement.go | 14 ++++++++++++++ internal/event/metadata/event_type.go | 14 ++++++++++++++ internal/event/metadata/resourcepath.go | 14 ++++++++++++++ internal/event/models/models.go | 14 ++++++++++++++ internal/event/models/subject.go | 14 ++++++++++++++ internal/ingest/dedupe.go | 14 ++++++++++++++ internal/ingest/dedupe_test.go | 14 ++++++++++++++ internal/ingest/httpingest/httpingest.go | 14 ++++++++++++++ internal/ingest/httpingest/httpingest_test.go | 14 ++++++++++++++ internal/ingest/ingest.go | 14 ++++++++++++++ internal/ingest/ingestdriver/http_transport.go | 14 ++++++++++++++ .../ingest/ingestdriver/http_transport_test.go | 14 ++++++++++++++ internal/ingest/inmemory.go | 14 ++++++++++++++ internal/ingest/inmemory_test.go | 14 ++++++++++++++ internal/ingest/kafkaingest/collector.go | 14 ++++++++++++++ internal/ingest/kafkaingest/namespace.go | 14 ++++++++++++++ internal/ingest/kafkaingest/serializer/json.go | 14 ++++++++++++++ .../ingest/kafkaingest/serializer/serializer.go | 14 ++++++++++++++ internal/ingest/service.go | 14 ++++++++++++++ internal/meter/inmemory.go | 14 ++++++++++++++ internal/meter/meter.go | 14 ++++++++++++++ internal/namespace/namespace.go | 14 ++++++++++++++ internal/namespace/namespace_test.go | 14 ++++++++++++++ internal/namespace/namespacedriver/decoder.go | 14 ++++++++++++++ internal/notification/annotations.go | 14 ++++++++++++++ internal/notification/channel.go | 14 ++++++++++++++ internal/notification/consumer/consumer.go | 14 ++++++++++++++ internal/notification/defaults.go | 14 ++++++++++++++ internal/notification/errors.go | 14 ++++++++++++++ internal/notification/event.go | 14 ++++++++++++++ internal/notification/eventhandler.go | 14 ++++++++++++++ internal/notification/httpdriver/channel.go | 14 ++++++++++++++ internal/notification/httpdriver/errors.go | 14 ++++++++++++++ internal/notification/httpdriver/event.go | 14 ++++++++++++++ internal/notification/httpdriver/handler.go | 14 ++++++++++++++ internal/notification/httpdriver/rule.go | 14 ++++++++++++++ internal/notification/internal/rule.go | 14 ++++++++++++++ internal/notification/repository.go | 14 ++++++++++++++ internal/notification/repository/entitymapping.go | 14 ++++++++++++++ internal/notification/repository/repository.go | 14 ++++++++++++++ internal/notification/rule.go | 14 ++++++++++++++ internal/notification/service.go | 14 ++++++++++++++ internal/notification/validator.go | 14 ++++++++++++++ internal/notification/webhook/events.go | 14 ++++++++++++++ internal/notification/webhook/secret.go | 14 ++++++++++++++ internal/notification/webhook/svix.go | 14 ++++++++++++++ internal/notification/webhook/webhook.go | 14 ++++++++++++++ internal/productcatalog/adapter/feature.go | 14 ++++++++++++++ internal/productcatalog/adapter/feature_test.go | 14 ++++++++++++++ internal/productcatalog/adapter/transaction.go | 14 ++++++++++++++ internal/productcatalog/connector.go | 14 ++++++++++++++ internal/productcatalog/driver/errors.go | 14 ++++++++++++++ internal/productcatalog/driver/feature.go | 14 ++++++++++++++ internal/productcatalog/driver/parser.go | 14 ++++++++++++++ internal/productcatalog/feature.go | 14 ++++++++++++++ internal/registry/builder/entitlement.go | 14 ++++++++++++++ internal/registry/entitlement.go | 14 ++++++++++++++ internal/server/authenticator/authenticator.go | 14 ++++++++++++++ internal/server/authenticator/portal.go | 14 ++++++++++++++ internal/server/cors.go | 14 ++++++++++++++ internal/server/logger.go | 14 ++++++++++++++ internal/server/router/credit.go | 14 ++++++++++++++ internal/server/router/debug.go | 14 ++++++++++++++ internal/server/router/entitlement.go | 14 ++++++++++++++ internal/server/router/event.go | 14 ++++++++++++++ internal/server/router/meter.go | 14 ++++++++++++++ internal/server/router/meter_query.go | 14 ++++++++++++++ internal/server/router/meter_subject.go | 14 ++++++++++++++ internal/server/router/noop.go | 14 ++++++++++++++ internal/server/router/notification.go | 14 ++++++++++++++ internal/server/router/portal.go | 14 ++++++++++++++ internal/server/router/product_catalog.go | 14 ++++++++++++++ internal/server/router/router.go | 14 ++++++++++++++ internal/server/router/subject.go | 14 ++++++++++++++ internal/server/server.go | 14 ++++++++++++++ internal/server/server_test.go | 14 ++++++++++++++ internal/sink/buffer.go | 14 ++++++++++++++ internal/sink/buffer_test.go | 14 ++++++++++++++ internal/sink/flushhandler/handler.go | 14 ++++++++++++++ .../ingestnotification/events/events.go | 14 ++++++++++++++ .../flushhandler/ingestnotification/handler.go | 14 ++++++++++++++ internal/sink/flushhandler/meters.go | 14 ++++++++++++++ internal/sink/flushhandler/mux.go | 14 ++++++++++++++ internal/sink/flushhandler/types.go | 14 ++++++++++++++ internal/sink/models/models.go | 14 ++++++++++++++ internal/sink/namespaces.go | 14 ++++++++++++++ internal/sink/namespaces_test.go | 14 ++++++++++++++ internal/sink/partition.go | 14 ++++++++++++++ internal/sink/sink.go | 14 ++++++++++++++ internal/sink/storage.go | 14 ++++++++++++++ internal/sink/storage_test.go | 14 ++++++++++++++ .../streaming/clickhouse_connector/connector.go | 14 ++++++++++++++ internal/streaming/clickhouse_connector/model.go | 14 ++++++++++++++ internal/streaming/clickhouse_connector/query.go | 14 ++++++++++++++ .../streaming/clickhouse_connector/query_test.go | 14 ++++++++++++++ internal/streaming/connector.go | 14 ++++++++++++++ internal/streaming/query_params.go | 14 ++++++++++++++ internal/streaming/query_params_test.go | 14 ++++++++++++++ internal/streaming/testutils/streaming.go | 14 ++++++++++++++ internal/streaming/testutils/streaming_test.go | 14 ++++++++++++++ internal/testutils/async.go | 14 ++++++++++++++ internal/testutils/logger.go | 14 ++++++++++++++ internal/testutils/pg_driver.go | 14 ++++++++++++++ internal/testutils/time.go | 14 ++++++++++++++ internal/watermill/driver/kafka/broker.go | 14 ++++++++++++++ internal/watermill/driver/kafka/logger.go | 14 ++++++++++++++ internal/watermill/driver/kafka/marshaler.go | 14 ++++++++++++++ internal/watermill/driver/kafka/metrics/adapter.go | 14 ++++++++++++++ internal/watermill/driver/kafka/publisher.go | 14 ++++++++++++++ internal/watermill/driver/kafka/subscriber.go | 14 ++++++++++++++ internal/watermill/driver/kafka/topic_provision.go | 14 ++++++++++++++ internal/watermill/driver/noop/publisher.go | 14 ++++++++++++++ internal/watermill/eventbus/eventbus.go | 14 ++++++++++++++ internal/watermill/grouphandler/grouphandler.go | 14 ++++++++++++++ internal/watermill/nopublisher/nopublisher.go | 14 ++++++++++++++ internal/watermill/router/context.go | 14 ++++++++++++++ internal/watermill/router/router.go | 14 ++++++++++++++ internal/watermill/router/router_test.go | 14 ++++++++++++++ openmeter/credit/adapter/repo.go | 14 ++++++++++++++ openmeter/credit/adapters.go | 14 ++++++++++++++ openmeter/credit/driver/handlers.go | 14 ++++++++++++++ openmeter/credit/driver/types.go | 14 ++++++++++++++ openmeter/credit/events.go | 14 ++++++++++++++ openmeter/credit/types.go | 14 ++++++++++++++ openmeter/debug/adapters.go | 14 ++++++++++++++ openmeter/debug/httpdriver/handlers.go | 14 ++++++++++++++ openmeter/debug/httpdriver/types.go | 14 ++++++++++++++ openmeter/debug/types.go | 14 ++++++++++++++ openmeter/dedupe/memorydedupe/memorydedupe.go | 14 ++++++++++++++ openmeter/dedupe/redisdedupe/redisdedupe.go | 14 ++++++++++++++ openmeter/entdb/client.go | 14 ++++++++++++++ openmeter/entitlement/adapter/adapters.go | 14 ++++++++++++++ openmeter/entitlement/adapters.go | 14 ++++++++++++++ openmeter/entitlement/balanceworker/worker.go | 14 ++++++++++++++ openmeter/entitlement/boolean/adapters.go | 14 ++++++++++++++ openmeter/entitlement/boolean/types.go | 14 ++++++++++++++ openmeter/entitlement/driver/handlers.go | 14 ++++++++++++++ openmeter/entitlement/driver/types.go | 14 ++++++++++++++ openmeter/entitlement/events.go | 14 ++++++++++++++ openmeter/entitlement/metered/adapters.go | 14 ++++++++++++++ openmeter/entitlement/metered/events.go | 14 ++++++++++++++ openmeter/entitlement/metered/types.go | 14 ++++++++++++++ openmeter/entitlement/snapshot/events.go | 14 ++++++++++++++ openmeter/entitlement/static/adapters.go | 14 ++++++++++++++ openmeter/entitlement/static/types.go | 14 ++++++++++++++ openmeter/entitlement/types.go | 14 ++++++++++++++ openmeter/event/models/models.go | 14 ++++++++++++++ openmeter/ingest/dedupe.go | 14 ++++++++++++++ openmeter/ingest/httpingest/httpingest.go | 14 ++++++++++++++ openmeter/ingest/ingest.go | 14 ++++++++++++++ openmeter/ingest/ingestdriver/http_transport.go | 14 ++++++++++++++ openmeter/ingest/inmemory.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/namespace/namespace.go | 14 ++++++++++++++ openmeter/namespace/namespacedriver/types.go | 14 ++++++++++++++ openmeter/notification/alias.go | 14 ++++++++++++++ openmeter/notification/consumer/consumer.go | 14 ++++++++++++++ openmeter/notification/httpdriver/alias.go | 14 ++++++++++++++ openmeter/notification/repository/alias.go | 14 ++++++++++++++ openmeter/notification/webhook/alias.go | 14 ++++++++++++++ openmeter/openmeter.go | 14 ++++++++++++++ openmeter/productcatalog/adapter/adapters.go | 14 ++++++++++++++ openmeter/productcatalog/adapters.go | 14 ++++++++++++++ openmeter/productcatalog/driver/handlers.go | 14 ++++++++++++++ openmeter/productcatalog/driver/types.go | 14 ++++++++++++++ openmeter/productcatalog/types.go | 14 ++++++++++++++ openmeter/registry/entitlement.go | 14 ++++++++++++++ openmeter/server/router/router.go | 14 ++++++++++++++ openmeter/server/server.go | 14 ++++++++++++++ openmeter/sink/flushhandler/flushhandler.go | 14 ++++++++++++++ .../ingestnotification/events/events.go | 14 ++++++++++++++ .../ingestnotification/ingestnotification.go | 14 ++++++++++++++ openmeter/sink/models/models.go | 14 ++++++++++++++ openmeter/sink/sink.go | 14 ++++++++++++++ .../streaming/clickhouse_connector/connector.go | 14 ++++++++++++++ openmeter/streaming/clickhouse_connector/model.go | 14 ++++++++++++++ openmeter/streaming/connector.go | 14 ++++++++++++++ openmeter/watermill/driver/kafka/driver.go | 14 ++++++++++++++ openmeter/watermill/driver/noop/driver.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/router.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/database.go | 14 ++++++++++++++ pkg/framework/entutils/mixins.go | 14 ++++++++++++++ pkg/framework/entutils/paginate_test.go | 14 ++++++++++++++ pkg/framework/entutils/pgulid.go | 14 ++++++++++++++ pkg/framework/entutils/sort.go | 14 ++++++++++++++ pkg/framework/entutils/testutils/ent1/generate.go | 14 ++++++++++++++ .../entutils/testutils/ent1/schema/example1.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 ++++++++++++++ .../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/numberx/number.go | 14 ++++++++++++++ pkg/pagination/pagination.go | 14 ++++++++++++++ pkg/pagination/pagination_test.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/chunk.go | 14 ++++++++++++++ pkg/slicesx/chunk_test.go | 14 ++++++++++++++ pkg/slicesx/dedupe.go | 14 ++++++++++++++ pkg/slicesx/filter.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 ++++++++++++++ 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/event.go | 14 ++++++++++++++ test/notification/helpers.go | 14 ++++++++++++++ test/notification/notification_test.go | 14 ++++++++++++++ test/notification/rule.go | 14 ++++++++++++++ test/notification/testenv.go | 14 ++++++++++++++ test/notification/webhook.go | 14 ++++++++++++++ tools.go | 14 ++++++++++++++ 404 files changed, 5646 insertions(+), 10 deletions(-) diff --git a/.licensei.toml b/.licensei.toml index 4c143592f..89e72ada9 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", "internal/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/ci/build.go b/ci/build.go index 321c1f1aa..4cc703e1f 100644 --- a/ci/build.go +++ b/ci/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/ci/dev.go b/ci/dev.go index 566ada77b..76bd5508d 100644 --- a/ci/dev.go +++ b/ci/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/ci/e2e.go b/ci/e2e.go index cac033d7a..3ad201af7 100644 --- a/ci/e2e.go +++ b/ci/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/ci/generate.go b/ci/generate.go index 0929dfeee..af0c87e36 100644 --- a/ci/generate.go +++ b/ci/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 "github.com/openmeterio/openmeter/ci/internal/dagger" diff --git a/ci/lint.go b/ci/lint.go index 990d54b1f..399f4cedf 100644 --- a/ci/lint.go +++ b/ci/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/ci/main.go b/ci/main.go index f672b2aae..222a51fbb 100644 --- a/ci/main.go +++ b/ci/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/ci/release.go b/ci/release.go index 13f9ed584..dec88a93e 100644 --- a/ci/release.go +++ b/ci/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/ci/snapshot.go b/ci/snapshot.go index 729ffee28..abbd24f91 100644 --- a/ci/snapshot.go +++ b/ci/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/ci/utils.go b/ci/utils.go index d0739ed87..86a085ab0 100644 --- a/ci/utils.go +++ b/ci/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/ci/versions.go b/ci/versions.go index d831ef576..90c407677 100644 --- a/ci/versions.go +++ b/ci/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/ci/versions_pinned.go b/ci/versions_pinned.go index 8181c5b13..d2975b02b 100644 --- a/ci/versions_pinned.go +++ b/ci/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/cmd/balance-worker/main.go b/cmd/balance-worker/main.go index 515df5c14..519d66a10 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 c7d084294..f5a8c6ddc 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 e0581e0b3..9b3f01b15 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 5b30544f3..5df29cc61 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 87452c34a..f1ed00ef8 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 230308281..ef4b46c27 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 2829e2aa7..d1f987aa5 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 3e3a5b749..160d52589 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 d55e023ee..2d3fe3a69 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 e5a90aa17..ac866bd37 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/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/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 83534e0d1..e1810e618 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 "errors" diff --git a/config/sink.go b/config/sink.go index aec90da21..67598b20f 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 885db7239..4a965578d 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/internal/credit/adapter/balance_snapshot.go b/internal/credit/adapter/balance_snapshot.go index f7134d79f..ffda9eb64 100644 --- a/internal/credit/adapter/balance_snapshot.go +++ b/internal/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/internal/credit/adapter/grant.go b/internal/credit/adapter/grant.go index 0d0c3cb38..f361295e3 100644 --- a/internal/credit/adapter/grant.go +++ b/internal/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/internal/credit/adapter/transaction.go b/internal/credit/adapter/transaction.go index 26e2f5b7a..a68a23dd2 100644 --- a/internal/credit/adapter/transaction.go +++ b/internal/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/internal/credit/balance.go b/internal/credit/balance.go index ef54e17f2..76b769492 100644 --- a/internal/credit/balance.go +++ b/internal/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/internal/credit/balance/balance.go b/internal/credit/balance/balance.go index 863b1e33b..3841be608 100644 --- a/internal/credit/balance/balance.go +++ b/internal/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/internal/credit/balance/balance_test.go b/internal/credit/balance/balance_test.go index e54cf4be5..1df63c9f8 100644 --- a/internal/credit/balance/balance_test.go +++ b/internal/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/internal/credit/balance/repository.go b/internal/credit/balance/repository.go index dfcd48e30..236d87c95 100644 --- a/internal/credit/balance/repository.go +++ b/internal/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/internal/credit/connector.go b/internal/credit/connector.go index c1cee162d..5ba02ace0 100644 --- a/internal/credit/connector.go +++ b/internal/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/internal/credit/driver/grant.go b/internal/credit/driver/grant.go index 233da4dca..63fd84eea 100644 --- a/internal/credit/driver/grant.go +++ b/internal/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/internal/credit/engine/engine.go b/internal/credit/engine/engine.go index a7db82545..d5d974166 100644 --- a/internal/credit/engine/engine.go +++ b/internal/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/internal/credit/engine/engine_test.go b/internal/credit/engine/engine_test.go index 4acd8633c..9a1358a1f 100644 --- a/internal/credit/engine/engine_test.go +++ b/internal/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/internal/credit/engine/history.go b/internal/credit/engine/history.go index 65b64212e..1f927cef8 100644 --- a/internal/credit/engine/history.go +++ b/internal/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/internal/credit/grant.go b/internal/credit/grant.go index b0ebc5987..352a312ec 100644 --- a/internal/credit/grant.go +++ b/internal/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/internal/credit/grant/events.go b/internal/credit/grant/events.go index 390a5aa0f..93417a2b2 100644 --- a/internal/credit/grant/events.go +++ b/internal/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/internal/credit/grant/expiration.go b/internal/credit/grant/expiration.go index d6b1e284e..bd5484eab 100644 --- a/internal/credit/grant/expiration.go +++ b/internal/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/internal/credit/grant/grant.go b/internal/credit/grant/grant.go index 9859433da..88f11b6c0 100644 --- a/internal/credit/grant/grant.go +++ b/internal/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/internal/credit/grant/owner_connector.go b/internal/credit/grant/owner_connector.go index c83a95bb8..b6faa4d33 100644 --- a/internal/credit/grant/owner_connector.go +++ b/internal/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/internal/credit/grant/repo.go b/internal/credit/grant/repo.go index b059355b2..4b8ef42b7 100644 --- a/internal/credit/grant/repo.go +++ b/internal/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/internal/debug/debug.go b/internal/debug/debug.go index b6b3a208c..1fbb8a738 100644 --- a/internal/debug/debug.go +++ b/internal/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/internal/debug/httpdriver/metrics.go b/internal/debug/httpdriver/metrics.go index 8f920b08e..5a320fbe3 100644 --- a/internal/debug/httpdriver/metrics.go +++ b/internal/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/internal/dedupe/dedupe.go b/internal/dedupe/dedupe.go index 8cc7cdc21..ec05f2609 100644 --- a/internal/dedupe/dedupe.go +++ b/internal/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/internal/dedupe/memorydedupe/memorydedupe.go b/internal/dedupe/memorydedupe/memorydedupe.go index f3b41ac98..f331efafd 100644 --- a/internal/dedupe/memorydedupe/memorydedupe.go +++ b/internal/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/internal/dedupe/memorydedupe/memorydedupe_test.go b/internal/dedupe/memorydedupe/memorydedupe_test.go index ecfc1a9d8..0424caf15 100644 --- a/internal/dedupe/memorydedupe/memorydedupe_test.go +++ b/internal/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/internal/dedupe/redisdedupe/redisdedupe.go b/internal/dedupe/redisdedupe/redisdedupe.go index 0e65343f5..07900c5b2 100644 --- a/internal/dedupe/redisdedupe/redisdedupe.go +++ b/internal/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/internal/ent/client.go b/internal/ent/client.go index 15b3edb18..f55a59403 100644 --- a/internal/ent/client.go +++ b/internal/ent/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 entdb import ( diff --git a/internal/ent/generate.go b/internal/ent/generate.go index 79480da1a..5f69dd87b 100644 --- a/internal/ent/generate.go +++ b/internal/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=mod entgo.io/ent/cmd/ent generate --target ./db --feature sql/upsert --feature sql/lock --feature sql/versioned-migration --template ../../pkg/framework/entutils/expose.tpl --template ../../pkg/framework/entutils/paginate.tpl ./schema diff --git a/internal/ent/schema/balance_snapshot.go b/internal/ent/schema/balance_snapshot.go index 663dd56c3..815efebd8 100644 --- a/internal/ent/schema/balance_snapshot.go +++ b/internal/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/internal/ent/schema/entitlement.go b/internal/ent/schema/entitlement.go index fcb7a1836..d3cf425c2 100644 --- a/internal/ent/schema/entitlement.go +++ b/internal/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/internal/ent/schema/feature.go b/internal/ent/schema/feature.go index aa1af92a3..c8c57e7bb 100644 --- a/internal/ent/schema/feature.go +++ b/internal/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/internal/ent/schema/grant.go b/internal/ent/schema/grant.go index ccbaddbec..36e5deebe 100644 --- a/internal/ent/schema/grant.go +++ b/internal/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/internal/ent/schema/notification.go b/internal/ent/schema/notification.go index 7930dc239..4e9ed8c2f 100644 --- a/internal/ent/schema/notification.go +++ b/internal/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/internal/ent/schema/usage_reset.go b/internal/ent/schema/usage_reset.go index 6d0f2ccd6..8817d7953 100644 --- a/internal/ent/schema/usage_reset.go +++ b/internal/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/internal/entitlement/adapter/entitlement.go b/internal/entitlement/adapter/entitlement.go index 9263ce4ef..712594378 100644 --- a/internal/entitlement/adapter/entitlement.go +++ b/internal/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/internal/entitlement/adapter/transaction.go b/internal/entitlement/adapter/transaction.go index 566e449b2..7d6c52ab8 100644 --- a/internal/entitlement/adapter/transaction.go +++ b/internal/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/internal/entitlement/adapter/usage_reset.go b/internal/entitlement/adapter/usage_reset.go index 26e78ac4f..ed7f63360 100644 --- a/internal/entitlement/adapter/usage_reset.go +++ b/internal/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/internal/entitlement/balanceworker/entitlementhandler.go b/internal/entitlement/balanceworker/entitlementhandler.go index e19ba8932..cde9f0ff8 100644 --- a/internal/entitlement/balanceworker/entitlementhandler.go +++ b/internal/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/internal/entitlement/balanceworker/ingesthandler.go b/internal/entitlement/balanceworker/ingesthandler.go index b8fa58687..f2cf47c74 100644 --- a/internal/entitlement/balanceworker/ingesthandler.go +++ b/internal/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/internal/entitlement/balanceworker/recalculate.go b/internal/entitlement/balanceworker/recalculate.go index d11e6c767..36b5402ad 100644 --- a/internal/entitlement/balanceworker/recalculate.go +++ b/internal/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/internal/entitlement/balanceworker/repository.go b/internal/entitlement/balanceworker/repository.go index fa3cf5510..a06a82ba8 100644 --- a/internal/entitlement/balanceworker/repository.go +++ b/internal/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/internal/entitlement/balanceworker/worker.go b/internal/entitlement/balanceworker/worker.go index 19a0801d5..5852d1e9d 100644 --- a/internal/entitlement/balanceworker/worker.go +++ b/internal/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/internal/entitlement/boolean/connector.go b/internal/entitlement/boolean/connector.go index bfb1a9d84..219bc3dcd 100644 --- a/internal/entitlement/boolean/connector.go +++ b/internal/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/internal/entitlement/boolean/entitlement.go b/internal/entitlement/boolean/entitlement.go index 68f1d892b..6248a51e2 100644 --- a/internal/entitlement/boolean/entitlement.go +++ b/internal/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/internal/entitlement" diff --git a/internal/entitlement/connector.go b/internal/entitlement/connector.go index 81bfef1d3..8da4a8e89 100644 --- a/internal/entitlement/connector.go +++ b/internal/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/internal/entitlement/driver/entitlement.go b/internal/entitlement/driver/entitlement.go index 6dc67988c..1cac00942 100644 --- a/internal/entitlement/driver/entitlement.go +++ b/internal/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/internal/entitlement/driver/errors.go b/internal/entitlement/driver/errors.go index 57db695c2..8ed979626 100644 --- a/internal/entitlement/driver/errors.go +++ b/internal/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/internal/entitlement/driver/metered.go b/internal/entitlement/driver/metered.go index 756e78829..c7102b36e 100644 --- a/internal/entitlement/driver/metered.go +++ b/internal/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/internal/entitlement/driver/parser.go b/internal/entitlement/driver/parser.go index 5ae360015..aaf17a113 100644 --- a/internal/entitlement/driver/parser.go +++ b/internal/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/internal/entitlement/entitlement.go b/internal/entitlement/entitlement.go index 8c4fed330..3bbf54d06 100644 --- a/internal/entitlement/entitlement.go +++ b/internal/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/internal/entitlement/entitlement_test.go b/internal/entitlement/entitlement_test.go index ba5e7bec7..200aeaa4e 100644 --- a/internal/entitlement/entitlement_test.go +++ b/internal/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/internal/entitlement/entitlement_types.go b/internal/entitlement/entitlement_types.go index add123ade..f6d292309 100644 --- a/internal/entitlement/entitlement_types.go +++ b/internal/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/internal/entitlement/errors.go b/internal/entitlement/errors.go index e7a3107a4..d48c1572a 100644 --- a/internal/entitlement/errors.go +++ b/internal/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/internal/entitlement/events.go b/internal/entitlement/events.go index 0b2593ae6..3ef4648a5 100644 --- a/internal/entitlement/events.go +++ b/internal/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/internal/entitlement/metered/balance.go b/internal/entitlement/metered/balance.go index 2284aae84..f33178acd 100644 --- a/internal/entitlement/metered/balance.go +++ b/internal/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/internal/entitlement/metered/balance_test.go b/internal/entitlement/metered/balance_test.go index c56015e38..fcd7d4ce9 100644 --- a/internal/entitlement/metered/balance_test.go +++ b/internal/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/internal/entitlement/metered/connector.go b/internal/entitlement/metered/connector.go index 762671653..cc4e2abe1 100644 --- a/internal/entitlement/metered/connector.go +++ b/internal/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/internal/entitlement/metered/entitlement.go b/internal/entitlement/metered/entitlement.go index ef00a0c13..43935ff6f 100644 --- a/internal/entitlement/metered/entitlement.go +++ b/internal/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/internal/entitlement/metered/entitlement_grant.go b/internal/entitlement/metered/entitlement_grant.go index 479bac214..e66e49a56 100644 --- a/internal/entitlement/metered/entitlement_grant.go +++ b/internal/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/internal/entitlement/metered/events.go b/internal/entitlement/metered/events.go index 042c9dee7..347e049a4 100644 --- a/internal/entitlement/metered/events.go +++ b/internal/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/internal/entitlement/metered/grant_owner_adapter.go b/internal/entitlement/metered/grant_owner_adapter.go index 4fc20514e..d129d086e 100644 --- a/internal/entitlement/metered/grant_owner_adapter.go +++ b/internal/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/internal/entitlement/metered/repository.go b/internal/entitlement/metered/repository.go index 5a41e54c7..70bfafcd4 100644 --- a/internal/entitlement/metered/repository.go +++ b/internal/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/internal/entitlement/metered/reset.go b/internal/entitlement/metered/reset.go index d026bc667..18c6a2d68 100644 --- a/internal/entitlement/metered/reset.go +++ b/internal/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/internal/entitlement/metered/reset_test.go b/internal/entitlement/metered/reset_test.go index 102140526..612afc79b 100644 --- a/internal/entitlement/metered/reset_test.go +++ b/internal/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/internal/entitlement/metered/utils_test.go b/internal/entitlement/metered/utils_test.go index ae50e7ac4..084be17ee 100644 --- a/internal/entitlement/metered/utils_test.go +++ b/internal/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/internal/entitlement/repository.go b/internal/entitlement/repository.go index 6954e7f83..9e2c4de0c 100644 --- a/internal/entitlement/repository.go +++ b/internal/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/internal/entitlement/snapshot/event.go b/internal/entitlement/snapshot/event.go index 84c178ac1..a7ad1278f 100644 --- a/internal/entitlement/snapshot/event.go +++ b/internal/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/internal/entitlement/static/connector.go b/internal/entitlement/static/connector.go index ffa14322f..b550ba782 100644 --- a/internal/entitlement/static/connector.go +++ b/internal/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/internal/entitlement/static/entitlement.go b/internal/entitlement/static/entitlement.go index a232f12f7..16ab0a606 100644 --- a/internal/entitlement/static/entitlement.go +++ b/internal/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/internal/event/metadata/event_type.go b/internal/event/metadata/event_type.go index 6af3297cc..ee43f5697 100644 --- a/internal/event/metadata/event_type.go +++ b/internal/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/internal/event/metadata/resourcepath.go b/internal/event/metadata/resourcepath.go index 8bb0947ad..2790e8746 100644 --- a/internal/event/metadata/resourcepath.go +++ b/internal/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/internal/event/models/models.go b/internal/event/models/models.go index 1828bbb42..bdb46e7cb 100644 --- a/internal/event/models/models.go +++ b/internal/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/internal/event/models/subject.go b/internal/event/models/subject.go index 32c50daf0..ec47ec633 100644 --- a/internal/event/models/subject.go +++ b/internal/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/internal/ingest/dedupe.go b/internal/ingest/dedupe.go index 5072d7697..ca11136c0 100644 --- a/internal/ingest/dedupe.go +++ b/internal/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/internal/ingest/dedupe_test.go b/internal/ingest/dedupe_test.go index 659fd13f3..bb72514d8 100644 --- a/internal/ingest/dedupe_test.go +++ b/internal/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/internal/ingest/httpingest/httpingest.go b/internal/ingest/httpingest/httpingest.go index d4b7ff8e8..1863279e5 100644 --- a/internal/ingest/httpingest/httpingest.go +++ b/internal/ingest/httpingest/httpingest.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package httpingest import ( diff --git a/internal/ingest/httpingest/httpingest_test.go b/internal/ingest/httpingest/httpingest_test.go index 378c21fe6..7dcecd4ec 100644 --- a/internal/ingest/httpingest/httpingest_test.go +++ b/internal/ingest/httpingest/httpingest_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 httpingest import ( diff --git a/internal/ingest/ingest.go b/internal/ingest/ingest.go index 3f8946d1c..62af465c8 100644 --- a/internal/ingest/ingest.go +++ b/internal/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/internal/ingest/ingestdriver/http_transport.go b/internal/ingest/ingestdriver/http_transport.go index 62b1f7fb2..5024bf427 100644 --- a/internal/ingest/ingestdriver/http_transport.go +++ b/internal/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/internal/ingest/ingestdriver/http_transport_test.go b/internal/ingest/ingestdriver/http_transport_test.go index 8690b88c4..37fb66e75 100644 --- a/internal/ingest/ingestdriver/http_transport_test.go +++ b/internal/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/internal/ingest/inmemory.go b/internal/ingest/inmemory.go index 346e44a15..c1363da38 100644 --- a/internal/ingest/inmemory.go +++ b/internal/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/internal/ingest/inmemory_test.go b/internal/ingest/inmemory_test.go index d5f20b238..aa8b06a8a 100644 --- a/internal/ingest/inmemory_test.go +++ b/internal/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/internal/ingest/kafkaingest/collector.go b/internal/ingest/kafkaingest/collector.go index 788b8eece..c708b7229 100644 --- a/internal/ingest/kafkaingest/collector.go +++ b/internal/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/internal/ingest/kafkaingest/namespace.go b/internal/ingest/kafkaingest/namespace.go index 701b02bc0..6d8a51416 100644 --- a/internal/ingest/kafkaingest/namespace.go +++ b/internal/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/internal/ingest/kafkaingest/serializer/json.go b/internal/ingest/kafkaingest/serializer/json.go index b659b855c..52b70ed21 100644 --- a/internal/ingest/kafkaingest/serializer/json.go +++ b/internal/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/internal/ingest/kafkaingest/serializer/serializer.go b/internal/ingest/kafkaingest/serializer/serializer.go index e486ca31f..ea2de6b54 100644 --- a/internal/ingest/kafkaingest/serializer/serializer.go +++ b/internal/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/internal/ingest/service.go b/internal/ingest/service.go index c525d1f19..4561dd2f3 100644 --- a/internal/ingest/service.go +++ b/internal/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/internal/meter/inmemory.go b/internal/meter/inmemory.go index d6f0ac1ee..95e3e5880 100644 --- a/internal/meter/inmemory.go +++ b/internal/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/internal/meter/meter.go b/internal/meter/meter.go index f25e91e09..fccf0305e 100644 --- a/internal/meter/meter.go +++ b/internal/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/internal/namespace/namespace.go b/internal/namespace/namespace.go index 913f6a362..7ea820118 100644 --- a/internal/namespace/namespace.go +++ b/internal/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/internal/namespace/namespace_test.go b/internal/namespace/namespace_test.go index 0fdfd3918..056f32977 100644 --- a/internal/namespace/namespace_test.go +++ b/internal/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/internal/namespace/namespacedriver/decoder.go b/internal/namespace/namespacedriver/decoder.go index 28353979d..5067d0227 100644 --- a/internal/namespace/namespacedriver/decoder.go +++ b/internal/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/internal/notification/annotations.go b/internal/notification/annotations.go index 21f5e9349..fcac5d6f5 100644 --- a/internal/notification/annotations.go +++ b/internal/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/internal/notification/channel.go b/internal/notification/channel.go index 6d8e4a7ee..75b9d5bbf 100644 --- a/internal/notification/channel.go +++ b/internal/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/internal/notification/consumer/consumer.go b/internal/notification/consumer/consumer.go index b18da4062..59056013c 100644 --- a/internal/notification/consumer/consumer.go +++ b/internal/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/internal/notification/defaults.go b/internal/notification/defaults.go index 2ae2254e2..859999956 100644 --- a/internal/notification/defaults.go +++ b/internal/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/internal/notification/errors.go b/internal/notification/errors.go index 4284cda24..cc346b6b9 100644 --- a/internal/notification/errors.go +++ b/internal/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/internal/notification/event.go b/internal/notification/event.go index 1c2c20e97..ff8daf668 100644 --- a/internal/notification/event.go +++ b/internal/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/internal/notification/eventhandler.go b/internal/notification/eventhandler.go index 40cfd96e7..499e8ce9f 100644 --- a/internal/notification/eventhandler.go +++ b/internal/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/internal/notification/httpdriver/channel.go b/internal/notification/httpdriver/channel.go index edd9f17c3..0df69d92e 100644 --- a/internal/notification/httpdriver/channel.go +++ b/internal/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/internal/notification/httpdriver/errors.go b/internal/notification/httpdriver/errors.go index 852f98de4..fbfab5876 100644 --- a/internal/notification/httpdriver/errors.go +++ b/internal/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/internal/notification/httpdriver/event.go b/internal/notification/httpdriver/event.go index fc7273a9c..f6d8f3816 100644 --- a/internal/notification/httpdriver/event.go +++ b/internal/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/internal/notification/httpdriver/handler.go b/internal/notification/httpdriver/handler.go index 45b78fa03..468ba252a 100644 --- a/internal/notification/httpdriver/handler.go +++ b/internal/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/internal/notification/httpdriver/rule.go b/internal/notification/httpdriver/rule.go index b54c234a8..e0e813004 100644 --- a/internal/notification/httpdriver/rule.go +++ b/internal/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/internal/notification/internal/rule.go b/internal/notification/internal/rule.go index 3461333b3..f4d20a275 100644 --- a/internal/notification/internal/rule.go +++ b/internal/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/internal/notification/repository.go b/internal/notification/repository.go index bfecbccbd..91e75d9bc 100644 --- a/internal/notification/repository.go +++ b/internal/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/internal/notification/repository/entitymapping.go b/internal/notification/repository/entitymapping.go index 29fb7c844..526744c7f 100644 --- a/internal/notification/repository/entitymapping.go +++ b/internal/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/internal/notification/repository/repository.go b/internal/notification/repository/repository.go index 343fa7c9b..9648ba246 100644 --- a/internal/notification/repository/repository.go +++ b/internal/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/internal/notification/rule.go b/internal/notification/rule.go index 4917bc413..708559e0a 100644 --- a/internal/notification/rule.go +++ b/internal/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/internal/notification/service.go b/internal/notification/service.go index c08324a3f..1980ba64d 100644 --- a/internal/notification/service.go +++ b/internal/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/internal/notification/validator.go b/internal/notification/validator.go index f734c1d9e..3c67c01cb 100644 --- a/internal/notification/validator.go +++ b/internal/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/internal/notification/webhook/events.go b/internal/notification/webhook/events.go index 96cb8f5f6..bcbdb0aea 100644 --- a/internal/notification/webhook/events.go +++ b/internal/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/internal/notification/webhook/secret.go b/internal/notification/webhook/secret.go index 67d9ad775..76000cfa4 100644 --- a/internal/notification/webhook/secret.go +++ b/internal/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/internal/notification/webhook/svix.go b/internal/notification/webhook/svix.go index de73f2c95..8f774725f 100644 --- a/internal/notification/webhook/svix.go +++ b/internal/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/internal/notification/webhook/webhook.go b/internal/notification/webhook/webhook.go index 210e2f703..d229f7202 100644 --- a/internal/notification/webhook/webhook.go +++ b/internal/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/internal/productcatalog/adapter/feature.go b/internal/productcatalog/adapter/feature.go index 54d369880..b05f115bc 100644 --- a/internal/productcatalog/adapter/feature.go +++ b/internal/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/internal/productcatalog/adapter/feature_test.go b/internal/productcatalog/adapter/feature_test.go index 287f98d1d..fed405227 100644 --- a/internal/productcatalog/adapter/feature_test.go +++ b/internal/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/internal/productcatalog/adapter/transaction.go b/internal/productcatalog/adapter/transaction.go index 4cfea70d2..488241817 100644 --- a/internal/productcatalog/adapter/transaction.go +++ b/internal/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/internal/productcatalog/connector.go b/internal/productcatalog/connector.go index 02d7b1cb5..88f71bc82 100644 --- a/internal/productcatalog/connector.go +++ b/internal/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/internal/productcatalog/driver/errors.go b/internal/productcatalog/driver/errors.go index 3cca7c2f9..d5d9a213c 100644 --- a/internal/productcatalog/driver/errors.go +++ b/internal/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/internal/productcatalog/driver/feature.go b/internal/productcatalog/driver/feature.go index 2aa5e15f2..503f0b456 100644 --- a/internal/productcatalog/driver/feature.go +++ b/internal/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/internal/productcatalog/driver/parser.go b/internal/productcatalog/driver/parser.go index 827cfe151..2585527bb 100644 --- a/internal/productcatalog/driver/parser.go +++ b/internal/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/internal/productcatalog/feature.go b/internal/productcatalog/feature.go index 9def70d90..8be11b916 100644 --- a/internal/productcatalog/feature.go +++ b/internal/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/internal/registry/builder/entitlement.go b/internal/registry/builder/entitlement.go index 121862fef..7fc22af08 100644 --- a/internal/registry/builder/entitlement.go +++ b/internal/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/internal/registry/entitlement.go b/internal/registry/entitlement.go index 800b98141..9a3c1eba3 100644 --- a/internal/registry/entitlement.go +++ b/internal/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/internal/server/authenticator/authenticator.go b/internal/server/authenticator/authenticator.go index 808760a0e..e96767af2 100644 --- a/internal/server/authenticator/authenticator.go +++ b/internal/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/internal/server/authenticator/portal.go b/internal/server/authenticator/portal.go index 08b9f865f..220c45253 100644 --- a/internal/server/authenticator/portal.go +++ b/internal/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/internal/server/cors.go b/internal/server/cors.go index 738eab724..87cde25b8 100644 --- a/internal/server/cors.go +++ b/internal/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/internal/server/logger.go b/internal/server/logger.go index 4a6fb8c62..97583ad05 100644 --- a/internal/server/logger.go +++ b/internal/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/internal/server/router/credit.go b/internal/server/router/credit.go index 1b97788d6..772b3e48f 100644 --- a/internal/server/router/credit.go +++ b/internal/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/internal/server/router/debug.go b/internal/server/router/debug.go index 73caa87f3..da1bd0fb5 100644 --- a/internal/server/router/debug.go +++ b/internal/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/internal/server/router/entitlement.go b/internal/server/router/entitlement.go index 2be68abfc..317d328d7 100644 --- a/internal/server/router/entitlement.go +++ b/internal/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/internal/server/router/event.go b/internal/server/router/event.go index 102f14b16..b07bf752d 100644 --- a/internal/server/router/event.go +++ b/internal/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/internal/server/router/meter.go b/internal/server/router/meter.go index 9925f5ac6..b7cd45239 100644 --- a/internal/server/router/meter.go +++ b/internal/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/internal/server/router/meter_query.go b/internal/server/router/meter_query.go index 0432d045d..1a16a093c 100644 --- a/internal/server/router/meter_query.go +++ b/internal/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/internal/server/router/meter_subject.go b/internal/server/router/meter_subject.go index 14a2c1949..39616006f 100644 --- a/internal/server/router/meter_subject.go +++ b/internal/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/internal/server/router/noop.go b/internal/server/router/noop.go index 92fbdefb5..9ac9226d2 100644 --- a/internal/server/router/noop.go +++ b/internal/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/internal/server/router/notification.go b/internal/server/router/notification.go index 86ea0fd2e..8683dfacd 100644 --- a/internal/server/router/notification.go +++ b/internal/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/internal/server/router/portal.go b/internal/server/router/portal.go index ae39eeed8..ed31c6fec 100644 --- a/internal/server/router/portal.go +++ b/internal/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/internal/server/router/product_catalog.go b/internal/server/router/product_catalog.go index a82c2738d..8433eea78 100644 --- a/internal/server/router/product_catalog.go +++ b/internal/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/internal/server/router/router.go b/internal/server/router/router.go index 924be6272..653a0c94b 100644 --- a/internal/server/router/router.go +++ b/internal/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/internal/server/router/subject.go b/internal/server/router/subject.go index e01cba1a2..537317eaf 100644 --- a/internal/server/router/subject.go +++ b/internal/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/internal/server/server.go b/internal/server/server.go index c5ec869b8..6160bc8c8 100644 --- a/internal/server/server.go +++ b/internal/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/internal/server/server_test.go b/internal/server/server_test.go index b92fa273c..5139bd191 100644 --- a/internal/server/server_test.go +++ b/internal/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/internal/sink/buffer.go b/internal/sink/buffer.go index dc3fc6052..dbfca43be 100644 --- a/internal/sink/buffer.go +++ b/internal/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/internal/sink/buffer_test.go b/internal/sink/buffer_test.go index 581b7029d..8235ecc63 100644 --- a/internal/sink/buffer_test.go +++ b/internal/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/internal/sink/flushhandler/handler.go b/internal/sink/flushhandler/handler.go index 3b0333dde..0f8a04211 100644 --- a/internal/sink/flushhandler/handler.go +++ b/internal/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/internal/sink/flushhandler/ingestnotification/events/events.go b/internal/sink/flushhandler/ingestnotification/events/events.go index cfd512dcf..d22000717 100644 --- a/internal/sink/flushhandler/ingestnotification/events/events.go +++ b/internal/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/internal/sink/flushhandler/ingestnotification/handler.go b/internal/sink/flushhandler/ingestnotification/handler.go index 7e2af7626..831964ea5 100644 --- a/internal/sink/flushhandler/ingestnotification/handler.go +++ b/internal/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/internal/sink/flushhandler/meters.go b/internal/sink/flushhandler/meters.go index d79d873c4..06448b10e 100644 --- a/internal/sink/flushhandler/meters.go +++ b/internal/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/internal/sink/flushhandler/mux.go b/internal/sink/flushhandler/mux.go index da4c8b138..121e098ca 100644 --- a/internal/sink/flushhandler/mux.go +++ b/internal/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/internal/sink/flushhandler/types.go b/internal/sink/flushhandler/types.go index af47c5a78..e3b93c78f 100644 --- a/internal/sink/flushhandler/types.go +++ b/internal/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/internal/sink/models/models.go b/internal/sink/models/models.go index f0318d665..8a996a5fa 100644 --- a/internal/sink/models/models.go +++ b/internal/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/internal/sink/namespaces.go b/internal/sink/namespaces.go index 2e1feba2d..14a627aea 100644 --- a/internal/sink/namespaces.go +++ b/internal/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/internal/sink/namespaces_test.go b/internal/sink/namespaces_test.go index 33aed1c15..a4cb5f5dd 100644 --- a/internal/sink/namespaces_test.go +++ b/internal/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/internal/sink/partition.go b/internal/sink/partition.go index 0711befbb..ee1d9dca8 100644 --- a/internal/sink/partition.go +++ b/internal/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/internal/sink/sink.go b/internal/sink/sink.go index 1edc72be3..82d5c5250 100644 --- a/internal/sink/sink.go +++ b/internal/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/internal/sink/storage.go b/internal/sink/storage.go index 9f8139acf..87a0d7370 100644 --- a/internal/sink/storage.go +++ b/internal/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/internal/sink/storage_test.go b/internal/sink/storage_test.go index 488de5b08..a6642283e 100644 --- a/internal/sink/storage_test.go +++ b/internal/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/internal/streaming/clickhouse_connector/connector.go b/internal/streaming/clickhouse_connector/connector.go index 7eb6fc8ac..a0ce8e839 100644 --- a/internal/streaming/clickhouse_connector/connector.go +++ b/internal/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/internal/streaming/clickhouse_connector/model.go b/internal/streaming/clickhouse_connector/model.go index 915b5def3..3ce9bfce2 100644 --- a/internal/streaming/clickhouse_connector/model.go +++ b/internal/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/internal/streaming/clickhouse_connector/query.go b/internal/streaming/clickhouse_connector/query.go index b1a732599..3b799c7d6 100644 --- a/internal/streaming/clickhouse_connector/query.go +++ b/internal/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/internal/streaming/clickhouse_connector/query_test.go b/internal/streaming/clickhouse_connector/query_test.go index 22f2f05f6..2a6683ea9 100644 --- a/internal/streaming/clickhouse_connector/query_test.go +++ b/internal/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/internal/streaming/connector.go b/internal/streaming/connector.go index 6ec5ae724..d77d3e69b 100644 --- a/internal/streaming/connector.go +++ b/internal/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/internal/streaming/query_params.go b/internal/streaming/query_params.go index 27bdccbb8..3ee1aa50a 100644 --- a/internal/streaming/query_params.go +++ b/internal/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/internal/streaming/query_params_test.go b/internal/streaming/query_params_test.go index eac4866bf..a0ee47547 100644 --- a/internal/streaming/query_params_test.go +++ b/internal/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/internal/streaming/testutils/streaming.go b/internal/streaming/testutils/streaming.go index b79c464e9..a88458bc3 100644 --- a/internal/streaming/testutils/streaming.go +++ b/internal/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/internal/streaming/testutils/streaming_test.go b/internal/streaming/testutils/streaming_test.go index 7772bfed1..9aa980113 100644 --- a/internal/streaming/testutils/streaming_test.go +++ b/internal/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/internal/testutils/async.go b/internal/testutils/async.go index 9a6a34453..fff7141ba 100644 --- a/internal/testutils/async.go +++ b/internal/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/internal/testutils/logger.go b/internal/testutils/logger.go index d3d7d4297..6f9cfbf92 100644 --- a/internal/testutils/logger.go +++ b/internal/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/internal/testutils/pg_driver.go b/internal/testutils/pg_driver.go index 3e99c6222..ad9df7620 100644 --- a/internal/testutils/pg_driver.go +++ b/internal/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/internal/testutils/time.go b/internal/testutils/time.go index a72ba608a..9ae8a77a6 100644 --- a/internal/testutils/time.go +++ b/internal/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/internal/watermill/driver/kafka/broker.go b/internal/watermill/driver/kafka/broker.go index 1f0436123..1fb846669 100644 --- a/internal/watermill/driver/kafka/broker.go +++ b/internal/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/internal/watermill/driver/kafka/logger.go b/internal/watermill/driver/kafka/logger.go index e0aca9e0d..0edd0bf67 100644 --- a/internal/watermill/driver/kafka/logger.go +++ b/internal/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/internal/watermill/driver/kafka/marshaler.go b/internal/watermill/driver/kafka/marshaler.go index ab089b810..d8885b4ea 100644 --- a/internal/watermill/driver/kafka/marshaler.go +++ b/internal/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/internal/watermill/driver/kafka/metrics/adapter.go b/internal/watermill/driver/kafka/metrics/adapter.go index b335752a6..fd642d3a0 100644 --- a/internal/watermill/driver/kafka/metrics/adapter.go +++ b/internal/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/internal/watermill/driver/kafka/publisher.go b/internal/watermill/driver/kafka/publisher.go index 7744fffd4..e7e5d98d5 100644 --- a/internal/watermill/driver/kafka/publisher.go +++ b/internal/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/internal/watermill/driver/kafka/subscriber.go b/internal/watermill/driver/kafka/subscriber.go index 6d68323a8..4547bc3fe 100644 --- a/internal/watermill/driver/kafka/subscriber.go +++ b/internal/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/internal/watermill/driver/kafka/topic_provision.go b/internal/watermill/driver/kafka/topic_provision.go index 9e75a0434..2d7fda140 100644 --- a/internal/watermill/driver/kafka/topic_provision.go +++ b/internal/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/internal/watermill/driver/noop/publisher.go b/internal/watermill/driver/noop/publisher.go index 2c82c51de..9eb33ab1e 100644 --- a/internal/watermill/driver/noop/publisher.go +++ b/internal/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/internal/watermill/eventbus/eventbus.go b/internal/watermill/eventbus/eventbus.go index 08fbb97b1..8e477f29e 100644 --- a/internal/watermill/eventbus/eventbus.go +++ b/internal/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/internal/watermill/grouphandler/grouphandler.go b/internal/watermill/grouphandler/grouphandler.go index 3f484220e..2cce0d4c6 100644 --- a/internal/watermill/grouphandler/grouphandler.go +++ b/internal/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/internal/watermill/nopublisher/nopublisher.go b/internal/watermill/nopublisher/nopublisher.go index 2114c7c16..4e7f8b872 100644 --- a/internal/watermill/nopublisher/nopublisher.go +++ b/internal/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/internal/watermill/router/context.go b/internal/watermill/router/context.go index 23a4869f4..ba2620839 100644 --- a/internal/watermill/router/context.go +++ b/internal/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/internal/watermill/router/router.go b/internal/watermill/router/router.go index d238e674c..5220bf3a5 100644 --- a/internal/watermill/router/router.go +++ b/internal/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/internal/watermill/router/router_test.go b/internal/watermill/router/router_test.go index 07d2ad084..e55caf530 100644 --- a/internal/watermill/router/router_test.go +++ b/internal/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/openmeter/credit/adapter/repo.go b/openmeter/credit/adapter/repo.go index 92c6547ee..4a90ca9db 100644 --- a/openmeter/credit/adapter/repo.go +++ b/openmeter/credit/adapter/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 adapter import ( diff --git a/openmeter/credit/adapters.go b/openmeter/credit/adapters.go index 69f645f68..e0bb48e24 100644 --- a/openmeter/credit/adapters.go +++ b/openmeter/credit/adapters.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES 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/handlers.go b/openmeter/credit/driver/handlers.go index e4b90aa11..8e5ab8695 100644 --- a/openmeter/credit/driver/handlers.go +++ b/openmeter/credit/driver/handlers.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES 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/driver/types.go b/openmeter/credit/driver/types.go index 9dbf02579..00cc55fcb 100644 --- a/openmeter/credit/driver/types.go +++ b/openmeter/credit/driver/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 creditdriver import creditdriver "github.com/openmeterio/openmeter/internal/credit/driver" diff --git a/openmeter/credit/events.go b/openmeter/credit/events.go index ea737c33e..a9835299c 100644 --- a/openmeter/credit/events.go +++ b/openmeter/credit/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 credit import ( diff --git a/openmeter/credit/types.go b/openmeter/credit/types.go index 176b66ba6..03c515f7c 100644 --- a/openmeter/credit/types.go +++ b/openmeter/credit/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 credit import ( diff --git a/openmeter/debug/adapters.go b/openmeter/debug/adapters.go index 8c0d314a0..2e06a956c 100644 --- a/openmeter/debug/adapters.go +++ b/openmeter/debug/adapters.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES 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/handlers.go b/openmeter/debug/httpdriver/handlers.go index 23e93a10e..96cbb6e6e 100644 --- a/openmeter/debug/httpdriver/handlers.go +++ b/openmeter/debug/httpdriver/handlers.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES 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/debug/httpdriver/types.go b/openmeter/debug/httpdriver/types.go index fd291d1fa..e6ad5f09b 100644 --- a/openmeter/debug/httpdriver/types.go +++ b/openmeter/debug/httpdriver/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 httpdriver import "github.com/openmeterio/openmeter/internal/debug/httpdriver" diff --git a/openmeter/debug/types.go b/openmeter/debug/types.go index 7c81832eb..acab1cba2 100644 --- a/openmeter/debug/types.go +++ b/openmeter/debug/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 debug import ( diff --git a/openmeter/dedupe/memorydedupe/memorydedupe.go b/openmeter/dedupe/memorydedupe/memorydedupe.go index 4afd642c8..d95055b21 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/redisdedupe/redisdedupe.go b/openmeter/dedupe/redisdedupe/redisdedupe.go index e45fd331e..df9411d5b 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/entdb/client.go b/openmeter/entdb/client.go index 1e8941a6c..940de807d 100644 --- a/openmeter/entdb/client.go +++ b/openmeter/entdb/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 entdb import ( diff --git a/openmeter/entitlement/adapter/adapters.go b/openmeter/entitlement/adapter/adapters.go index f9ee41eed..3005404c4 100644 --- a/openmeter/entitlement/adapter/adapters.go +++ b/openmeter/entitlement/adapter/adapters.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES 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/adapters.go b/openmeter/entitlement/adapters.go index 61528d84a..667ce4c09 100644 --- a/openmeter/entitlement/adapters.go +++ b/openmeter/entitlement/adapters.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES 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/balanceworker/worker.go b/openmeter/entitlement/balanceworker/worker.go index 5b2343115..90ecf4d70 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 "github.com/openmeterio/openmeter/internal/entitlement/balanceworker" diff --git a/openmeter/entitlement/boolean/adapters.go b/openmeter/entitlement/boolean/adapters.go index edcc64709..96a15b6dc 100644 --- a/openmeter/entitlement/boolean/adapters.go +++ b/openmeter/entitlement/boolean/adapters.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES 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 booleanentitlement "github.com/openmeterio/openmeter/internal/entitlement/boolean" diff --git a/openmeter/entitlement/boolean/types.go b/openmeter/entitlement/boolean/types.go index cd50cf756..13754f54b 100644 --- a/openmeter/entitlement/boolean/types.go +++ b/openmeter/entitlement/boolean/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 booleanentitlement import booleanentitlement "github.com/openmeterio/openmeter/internal/entitlement/boolean" diff --git a/openmeter/entitlement/driver/handlers.go b/openmeter/entitlement/driver/handlers.go index deb2cd394..9da13ec4e 100644 --- a/openmeter/entitlement/driver/handlers.go +++ b/openmeter/entitlement/driver/handlers.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES 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/types.go b/openmeter/entitlement/driver/types.go index 04a461943..bc48609bf 100644 --- a/openmeter/entitlement/driver/types.go +++ b/openmeter/entitlement/driver/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 entitlementdriver import httpdriver "github.com/openmeterio/openmeter/internal/entitlement/driver" diff --git a/openmeter/entitlement/events.go b/openmeter/entitlement/events.go index d866879a4..eb57e24e2 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 "github.com/openmeterio/openmeter/internal/entitlement" diff --git a/openmeter/entitlement/metered/adapters.go b/openmeter/entitlement/metered/adapters.go index d9e3353ac..06a3b4da7 100644 --- a/openmeter/entitlement/metered/adapters.go +++ b/openmeter/entitlement/metered/adapters.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES 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 5395c8f3b..5e400dde2 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 meteredentitlement "github.com/openmeterio/openmeter/internal/entitlement/metered" diff --git a/openmeter/entitlement/metered/types.go b/openmeter/entitlement/metered/types.go index c8d2505d8..9373daf27 100644 --- a/openmeter/entitlement/metered/types.go +++ b/openmeter/entitlement/metered/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 meteredentitlement import meteredentitlement "github.com/openmeterio/openmeter/internal/entitlement/metered" diff --git a/openmeter/entitlement/snapshot/events.go b/openmeter/entitlement/snapshot/events.go index a33e050f5..441de32ab 100644 --- a/openmeter/entitlement/snapshot/events.go +++ b/openmeter/entitlement/snapshot/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 snapshot import "github.com/openmeterio/openmeter/internal/entitlement/snapshot" diff --git a/openmeter/entitlement/static/adapters.go b/openmeter/entitlement/static/adapters.go index 9969f7f9f..69bbabdd7 100644 --- a/openmeter/entitlement/static/adapters.go +++ b/openmeter/entitlement/static/adapters.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES 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 staticentitlement "github.com/openmeterio/openmeter/internal/entitlement/static" diff --git a/openmeter/entitlement/static/types.go b/openmeter/entitlement/static/types.go index a75d8009a..98d999c5d 100644 --- a/openmeter/entitlement/static/types.go +++ b/openmeter/entitlement/static/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 staticentitlement import staticentitlement "github.com/openmeterio/openmeter/internal/entitlement/static" diff --git a/openmeter/entitlement/types.go b/openmeter/entitlement/types.go index cb97c623d..5a0ce072d 100644 --- a/openmeter/entitlement/types.go +++ b/openmeter/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 "github.com/openmeterio/openmeter/internal/entitlement" diff --git a/openmeter/event/models/models.go b/openmeter/event/models/models.go index 2a861bc5f..d96fe0aec 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 ( diff --git a/openmeter/ingest/dedupe.go b/openmeter/ingest/dedupe.go index 65e087099..24c9f7883 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/httpingest/httpingest.go b/openmeter/ingest/httpingest/httpingest.go index d1cfaafb6..87d582316 100644 --- a/openmeter/ingest/httpingest/httpingest.go +++ b/openmeter/ingest/httpingest/httpingest.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package httpingest import ( diff --git a/openmeter/ingest/ingest.go b/openmeter/ingest/ingest.go index 506f43d3e..0262bcb5b 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/ingestdriver/http_transport.go b/openmeter/ingest/ingestdriver/http_transport.go index abb0dd129..2be828b82 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/inmemory.go b/openmeter/ingest/inmemory.go index 534dfe709..e13ac48ba 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/kafkaingest/collector.go b/openmeter/ingest/kafkaingest/collector.go index 347d1f74d..3f7a30737 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 c887c0970..947eca5ad 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 8ef9d51d3..e9356aec5 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 32bde47bf..13991f3d9 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 946c96535..937bd2744 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 "github.com/openmeterio/openmeter/internal/ingest" diff --git a/openmeter/meter/inmemory.go b/openmeter/meter/inmemory.go index 850d666a3..6dfc19041 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 3f7b866ce..a7a0555e8 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/namespace/namespace.go b/openmeter/namespace/namespace.go index 12bc9ac2e..5121d11dd 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/namespacedriver/types.go b/openmeter/namespace/namespacedriver/types.go index 5d53ea007..4313db7c4 100644 --- a/openmeter/namespace/namespacedriver/types.go +++ b/openmeter/namespace/namespacedriver/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 namespacedriver import "github.com/openmeterio/openmeter/internal/namespace/namespacedriver" diff --git a/openmeter/notification/alias.go b/openmeter/notification/alias.go index ba8bec8d5..4fab0e647 100644 --- a/openmeter/notification/alias.go +++ b/openmeter/notification/alias.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES 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 "github.com/openmeterio/openmeter/internal/notification" diff --git a/openmeter/notification/consumer/consumer.go b/openmeter/notification/consumer/consumer.go index 20e802593..6661520c7 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 "github.com/openmeterio/openmeter/internal/notification/consumer" diff --git a/openmeter/notification/httpdriver/alias.go b/openmeter/notification/httpdriver/alias.go index d821cc51d..674ada76a 100644 --- a/openmeter/notification/httpdriver/alias.go +++ b/openmeter/notification/httpdriver/alias.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES 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 "github.com/openmeterio/openmeter/internal/notification/httpdriver" diff --git a/openmeter/notification/repository/alias.go b/openmeter/notification/repository/alias.go index d6f20433d..8e7452615 100644 --- a/openmeter/notification/repository/alias.go +++ b/openmeter/notification/repository/alias.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES 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/webhook/alias.go b/openmeter/notification/webhook/alias.go index d8d435f82..07c6975bb 100644 --- a/openmeter/notification/webhook/alias.go +++ b/openmeter/notification/webhook/alias.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES 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 "github.com/openmeterio/openmeter/internal/notification/webhook" diff --git a/openmeter/openmeter.go b/openmeter/openmeter.go index 3c495d2b9..556985b1c 100644 --- a/openmeter/openmeter.go +++ b/openmeter/openmeter.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 openmeter is an experimental package to expose the core of OpenMeter as a library. package openmeter diff --git a/openmeter/productcatalog/adapter/adapters.go b/openmeter/productcatalog/adapter/adapters.go index a3708c768..913f8d45f 100644 --- a/openmeter/productcatalog/adapter/adapters.go +++ b/openmeter/productcatalog/adapter/adapters.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES 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/adapters.go b/openmeter/productcatalog/adapters.go index d3f8268b4..169cf4ccf 100644 --- a/openmeter/productcatalog/adapters.go +++ b/openmeter/productcatalog/adapters.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES 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/handlers.go b/openmeter/productcatalog/driver/handlers.go index 977bf8c68..0588ef308 100644 --- a/openmeter/productcatalog/driver/handlers.go +++ b/openmeter/productcatalog/driver/handlers.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES 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/types.go b/openmeter/productcatalog/driver/types.go index 156fe3d97..34ea456a7 100644 --- a/openmeter/productcatalog/driver/types.go +++ b/openmeter/productcatalog/driver/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 productcatalogdriver import productcatalogdriver "github.com/openmeterio/openmeter/internal/productcatalog/driver" diff --git a/openmeter/productcatalog/types.go b/openmeter/productcatalog/types.go index 060781785..d6a583347 100644 --- a/openmeter/productcatalog/types.go +++ b/openmeter/productcatalog/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 productcatalog import "github.com/openmeterio/openmeter/internal/productcatalog" diff --git a/openmeter/registry/entitlement.go b/openmeter/registry/entitlement.go index 20ef70353..c8a668118 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/server/router/router.go b/openmeter/server/router/router.go index fc9fc0dfc..636b9c792 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/server.go b/openmeter/server/server.go index 2e08c25be..e7dcaef8e 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/sink/flushhandler/flushhandler.go b/openmeter/sink/flushhandler/flushhandler.go index ec4f1caf5..dbd55fd42 100644 --- a/openmeter/sink/flushhandler/flushhandler.go +++ b/openmeter/sink/flushhandler/flushhandler.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES 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 "github.com/openmeterio/openmeter/internal/sink/flushhandler" diff --git a/openmeter/sink/flushhandler/ingestnotification/events/events.go b/openmeter/sink/flushhandler/ingestnotification/events/events.go index c83e35523..e0babdcf0 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 "github.com/openmeterio/openmeter/internal/sink/flushhandler/ingestnotification/events" diff --git a/openmeter/sink/flushhandler/ingestnotification/ingestnotification.go b/openmeter/sink/flushhandler/ingestnotification/ingestnotification.go index 51da240d2..57e311242 100644 --- a/openmeter/sink/flushhandler/ingestnotification/ingestnotification.go +++ b/openmeter/sink/flushhandler/ingestnotification/ingestnotification.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES 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/models/models.go b/openmeter/sink/models/models.go index 37616580d..e6044cc63 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 "github.com/openmeterio/openmeter/internal/sink/models" diff --git a/openmeter/sink/sink.go b/openmeter/sink/sink.go index fd28c7f9e..f3a70aed2 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 that implements event sink logic. package sink diff --git a/openmeter/streaming/clickhouse_connector/connector.go b/openmeter/streaming/clickhouse_connector/connector.go index 00ef963dd..9587ea607 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 b09d6045e..9418cfd67 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 ( diff --git a/openmeter/streaming/connector.go b/openmeter/streaming/connector.go index aecd593bf..52ea2e5cb 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/watermill/driver/kafka/driver.go b/openmeter/watermill/driver/kafka/driver.go index a9815904c..4044f7c10 100644 --- a/openmeter/watermill/driver/kafka/driver.go +++ b/openmeter/watermill/driver/kafka/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 kafka import ( diff --git a/openmeter/watermill/driver/noop/driver.go b/openmeter/watermill/driver/noop/driver.go index dad5a47ee..a23d87999 100644 --- a/openmeter/watermill/driver/noop/driver.go +++ b/openmeter/watermill/driver/noop/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 noop import "github.com/openmeterio/openmeter/internal/watermill/driver/noop" diff --git a/openmeter/watermill/eventbus/eventbus.go b/openmeter/watermill/eventbus/eventbus.go index 33a9f421b..16cb36c83 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 451046030..6e8249c1e 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 6209b875a..cbb94ebc2 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 160b647ea..209ce043e 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 c5cb04d82..2821d1a43 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 b7fa25d58..23a7f9368 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/router.go b/openmeter/watermill/router/router.go index 5b72ad257..91e2b7d58 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/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 7728ae949..9da283bc2 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/database.go b/pkg/framework/entutils/database.go index 3701537f4..d074d0975 100644 --- a/pkg/framework/entutils/database.go +++ b/pkg/framework/entutils/database.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES 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/mixins.go b/pkg/framework/entutils/mixins.go index eb243b43a..9312cbec8 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/paginate_test.go b/pkg/framework/entutils/paginate_test.go index cadb84d17..f687b168d 100644 --- a/pkg/framework/entutils/paginate_test.go +++ b/pkg/framework/entutils/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 entutils_test 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/generate.go b/pkg/framework/entutils/testutils/ent1/generate.go index 47726fadc..19165de27 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 entgo.io/ent/cmd/ent generate --target ./db --feature sql/upsert --feature sql/lock --feature sql/versioned-migration ./schema --template ../../expose.tpl --template ../../paginate.tpl 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/generate.go b/pkg/framework/entutils/testutils/ent2/generate.go index 5ac7215a7..b7e501e9d 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 entgo.io/ent/cmd/ent generate --target ./db --feature sql/upsert --feature sql/lock --feature sql/versioned-migration ./schema --template ../../expose.tpl 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 d93f6b65f..778808872 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/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 7f5036b2b..4574a8f20 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 734d9c2a5..bf330e503 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 17a60cb49..7a0fb241e 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 67d7dd5d2..e5b11d4d4 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 d31878cab..750d06724 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/numberx/number.go b/pkg/numberx/number.go index ee5dbd83d..40681769d 100644 --- a/pkg/numberx/number.go +++ b/pkg/numberx/number.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package numberx type Number interface{} diff --git a/pkg/pagination/pagination.go b/pkg/pagination/pagination.go index ea65d45b0..40657cada 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/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/chunk.go b/pkg/slicesx/chunk.go index 0a6c3e04c..051ef81a3 100644 --- a/pkg/slicesx/chunk.go +++ b/pkg/slicesx/chunk.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES 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 // Chunk splits a slice into chunks of the given size. The last chunk may be smaller than the given size. diff --git a/pkg/slicesx/chunk_test.go b/pkg/slicesx/chunk_test.go index 4047b53a0..5c49da5b5 100644 --- a/pkg/slicesx/chunk_test.go +++ b/pkg/slicesx/chunk_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 "testing" diff --git a/pkg/slicesx/dedupe.go b/pkg/slicesx/dedupe.go index 7e6499345..621d3ccad 100644 --- a/pkg/slicesx/dedupe.go +++ b/pkg/slicesx/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 slicesx func Dedupe[T comparable](s []T) []T { diff --git a/pkg/slicesx/filter.go b/pkg/slicesx/filter.go index 30bcffddf..ddd042baa 100644 --- a/pkg/slicesx/filter.go +++ b/pkg/slicesx/filter.go @@ -1,3 +1,17 @@ +// Copyright © 2024 Tailfin Cloud Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES 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 func Filter[T any](s []T, f func(T) bool) []T { 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/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 3680cca7d..bef2771df 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 9ba21da30..0cb5bfc5a 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 1622e18b5..e8eee4c6d 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/event.go b/test/notification/event.go index 4586544e7..59c312548 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 676b055d4..19f353128 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/rule.go b/test/notification/rule.go index dc71d9192..d9613c06a 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 4832ed027..c0dd2ff8c 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 271614083..3c9f6b418 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