Skip to content

Commit

Permalink
Add copyright headers for Cortex
Browse files Browse the repository at this point in the history
Signed-off-by: Kemal Akkoyun <kakkoyun@gmail.com>
  • Loading branch information
kakkoyun committed Jul 15, 2022
1 parent 5d62685 commit 3373eda
Show file tree
Hide file tree
Showing 477 changed files with 1,430 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,8 @@ internal/cortex: ## Ensures the latest packages from 'cortex' are synced.
find internal/cortex -type f -exec sed -i 's/github.com\/cortexproject\/cortex\/pkg/github.com\/thanos-io\/thanos\/internal\/cortex/g' {} +
find internal/cortex -type f -exec sed -i 's/github.com\/cortexproject\/cortex\/integration/github.com\/thanos-io\/thanos\/internal\/cortex\/integration/g' {} +
rm -rf tmp/cortex
@echo ">> ensuring Copyright headers"
@go run ./scripts/copyright

.PHONY: docker
docker: ## Builds 'thanos' docker with no tag.
Expand Down
3 changes: 3 additions & 0 deletions internal/cortex/chunk/bucket_client.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) The Cortex Authors.
// Licensed under the Apache License 2.0.

package chunk

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/cortex/chunk/cache/background.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) The Cortex Authors.
// Licensed under the Apache License 2.0.

package cache

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/cortex/chunk/cache/background_extra_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) The Cortex Authors.
// Licensed under the Apache License 2.0.

package cache

func Flush(c Cache) {
Expand Down
3 changes: 3 additions & 0 deletions internal/cortex/chunk/cache/background_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) The Cortex Authors.
// Licensed under the Apache License 2.0.

package cache_test

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/cortex/chunk/cache/cache.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) The Cortex Authors.
// Licensed under the Apache License 2.0.

package cache

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/cortex/chunk/cache/cache_gen.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) The Cortex Authors.
// Licensed under the Apache License 2.0.

package cache

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/cortex/chunk/cache/cache_gen_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) The Cortex Authors.
// Licensed under the Apache License 2.0.

package cache

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/cortex/chunk/cache/cache_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) The Cortex Authors.
// Licensed under the Apache License 2.0.

package cache_test

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/cortex/chunk/cache/fifo_cache.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) The Cortex Authors.
// Licensed under the Apache License 2.0.

package cache

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/cortex/chunk/cache/fifo_cache_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) The Cortex Authors.
// Licensed under the Apache License 2.0.

package cache

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/cortex/chunk/cache/instrumented.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) The Cortex Authors.
// Licensed under the Apache License 2.0.

package cache

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/cortex/chunk/cache/memcached.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) The Cortex Authors.
// Licensed under the Apache License 2.0.

package cache

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/cortex/chunk/cache/memcached_client.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) The Cortex Authors.
// Licensed under the Apache License 2.0.

package cache

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/cortex/chunk/cache/memcached_client_selector.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) The Cortex Authors.
// Licensed under the Apache License 2.0.

package cache

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/cortex/chunk/cache/memcached_client_selector_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) The Cortex Authors.
// Licensed under the Apache License 2.0.

package cache_test

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/cortex/chunk/cache/memcached_client_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) The Cortex Authors.
// Licensed under the Apache License 2.0.

package cache_test

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/cortex/chunk/cache/memcached_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) The Cortex Authors.
// Licensed under the Apache License 2.0.

package cache_test

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/cortex/chunk/cache/mock.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) The Cortex Authors.
// Licensed under the Apache License 2.0.

package cache

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/cortex/chunk/cache/redis_cache.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) The Cortex Authors.
// Licensed under the Apache License 2.0.

package cache

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/cortex/chunk/cache/redis_cache_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) The Cortex Authors.
// Licensed under the Apache License 2.0.

package cache

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/cortex/chunk/cache/redis_client.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) The Cortex Authors.
// Licensed under the Apache License 2.0.

package cache

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/cortex/chunk/cache/redis_client_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) The Cortex Authors.
// Licensed under the Apache License 2.0.

package cache

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/cortex/chunk/cache/snappy.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) The Cortex Authors.
// Licensed under the Apache License 2.0.

package cache

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/cortex/chunk/cache/stop_once.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) The Cortex Authors.
// Licensed under the Apache License 2.0.

package cache

import "sync"
Expand Down
3 changes: 3 additions & 0 deletions internal/cortex/chunk/cache/tiered.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) The Cortex Authors.
// Licensed under the Apache License 2.0.

package cache

import "context"
Expand Down
3 changes: 3 additions & 0 deletions internal/cortex/chunk/cache/tiered_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) The Cortex Authors.
// Licensed under the Apache License 2.0.

package cache_test

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/cortex/chunk/chunk.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) The Cortex Authors.
// Licensed under the Apache License 2.0.

package chunk

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/cortex/chunk/chunk_store.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) The Cortex Authors.
// Licensed under the Apache License 2.0.

package chunk

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/cortex/chunk/chunk_store_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) The Cortex Authors.
// Licensed under the Apache License 2.0.

package chunk

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/cortex/chunk/chunk_store_utils.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) The Cortex Authors.
// Licensed under the Apache License 2.0.

package chunk

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/cortex/chunk/chunk_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) The Cortex Authors.
// Licensed under the Apache License 2.0.

package chunk

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/cortex/chunk/composite_store.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) The Cortex Authors.
// Licensed under the Apache License 2.0.

package chunk

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/cortex/chunk/composite_store_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) The Cortex Authors.
// Licensed under the Apache License 2.0.

package chunk

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/cortex/chunk/encoding/bigchunk.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) The Cortex Authors.
// Licensed under the Apache License 2.0.

package encoding

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/cortex/chunk/encoding/bigchunk_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) The Cortex Authors.
// Licensed under the Apache License 2.0.

package encoding

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/cortex/chunk/encoding/chunk.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) The Cortex Authors.
// Licensed under the Apache License 2.0.

// This file was taken from Prometheus (https://github.com/prometheus/prometheus).
// The original license header is included below:
//
Expand Down
3 changes: 3 additions & 0 deletions internal/cortex/chunk/encoding/chunk_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) The Cortex Authors.
// Licensed under the Apache License 2.0.

// Copyright 2016 The Prometheus Authors
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
3 changes: 3 additions & 0 deletions internal/cortex/chunk/encoding/delta_helpers.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) The Cortex Authors.
// Licensed under the Apache License 2.0.

// This file was taken from Prometheus (https://github.com/prometheus/prometheus).
// The original license header is included below:
//
Expand Down
3 changes: 3 additions & 0 deletions internal/cortex/chunk/encoding/doubledelta.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) The Cortex Authors.
// Licensed under the Apache License 2.0.

// This file was taken from Prometheus (https://github.com/prometheus/prometheus).
// The original license header is included below:
//
Expand Down
3 changes: 3 additions & 0 deletions internal/cortex/chunk/encoding/factory.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) The Cortex Authors.
// Licensed under the Apache License 2.0.

package encoding

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/cortex/chunk/encoding/instrumentation.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) The Cortex Authors.
// Licensed under the Apache License 2.0.

// This file was taken from Prometheus (https://github.com/prometheus/prometheus).
// The original license header is included below:
//
Expand Down
3 changes: 3 additions & 0 deletions internal/cortex/chunk/encoding/prometheus_chunk.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) The Cortex Authors.
// Licensed under the Apache License 2.0.

package encoding

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/cortex/chunk/encoding/varbit.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) The Cortex Authors.
// Licensed under the Apache License 2.0.

// This file was taken from Prometheus (https://github.com/prometheus/prometheus).
// The original license header is included below:
//
Expand Down
3 changes: 3 additions & 0 deletions internal/cortex/chunk/encoding/varbit_helpers.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) The Cortex Authors.
// Licensed under the Apache License 2.0.

// This file was taken from Prometheus (https://github.com/prometheus/prometheus).
// The original license header is included below:
//
Expand Down
3 changes: 3 additions & 0 deletions internal/cortex/chunk/encoding/varbit_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) The Cortex Authors.
// Licensed under the Apache License 2.0.

// This file was taken from Prometheus (https://github.com/prometheus/prometheus).
// The original license header is included below:
//
Expand Down
3 changes: 3 additions & 0 deletions internal/cortex/chunk/fixtures.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) The Cortex Authors.
// Licensed under the Apache License 2.0.

package chunk

// Chunk functions used only in tests
Expand Down
3 changes: 3 additions & 0 deletions internal/cortex/chunk/index_reader.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) The Cortex Authors.
// Licensed under the Apache License 2.0.

package chunk

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/cortex/chunk/inmemory_storage_client.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) The Cortex Authors.
// Licensed under the Apache License 2.0.

package chunk

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/cortex/chunk/json_helpers.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) The Cortex Authors.
// Licensed under the Apache License 2.0.

package chunk

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/cortex/chunk/opts.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) The Cortex Authors.
// Licensed under the Apache License 2.0.

package chunk

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/cortex/chunk/opts_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) The Cortex Authors.
// Licensed under the Apache License 2.0.

package chunk

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/cortex/chunk/purger/delete_plan.proto
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) The Cortex Authors.
// Licensed under the Apache License 2.0.

syntax = "proto3";

package purgeplan;
Expand Down
3 changes: 3 additions & 0 deletions internal/cortex/chunk/purger/delete_requests_store.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) The Cortex Authors.
// Licensed under the Apache License 2.0.

package purger

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/cortex/chunk/purger/purger.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) The Cortex Authors.
// Licensed under the Apache License 2.0.

package purger

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/cortex/chunk/purger/purger_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) The Cortex Authors.
// Licensed under the Apache License 2.0.

package purger

import (
Expand Down
Loading

0 comments on commit 3373eda

Please sign in to comment.