Skip to content

Commit

Permalink
Added Copyright header to all Go and Proto source files.
Browse files Browse the repository at this point in the history
  • Loading branch information
bwplotka committed Jan 28, 2020
1 parent 1f48466 commit b06b5ee
Show file tree
Hide file tree
Showing 191 changed files with 695 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,9 @@ lint: check-git $(GOLANGCILINT) $(MISSPELL)
@echo ">> detecting white noise"
@find . -type f \( -name "*.md" -o -name "*.go" \) | SED_BIN="$(SED)" xargs scripts/cleanup-white-noise.sh
$(call require_clean_work_tree,"detected white noise")
@echo ">> ensuring Copyright headers"
@go run ./scripts/copyright
$(call require_clean_work_tree,"detected files without copyright")

.PHONY: web-serve
web-serve: web-pre-process $(HUGO)
Expand Down
3 changes: 3 additions & 0 deletions cmd/thanos/bucket.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) The Thanos Authors.
// Licensed under the Apache License 2.0.

package main

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

package main

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

package main

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

package main

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

package main

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

package main

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

package main

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

package main

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

package main

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

package main

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

package main

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

package main

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

package main

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

package main

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

// Package thanos is a set of components that
// can provide highly available Prometheus
// setup with long term storage capabilities.
Expand Down
3 changes: 3 additions & 0 deletions pkg/alert/alert.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) The Thanos Authors.
// Licensed under the Apache License 2.0.

// Package alert contains logic to send alert notifications to Alertmanager clusters.
package alert

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

package alert

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

package alert

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

package alert

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

// Package block contains common functionality for interacting with TSDB blocks
// in the context of Thanos.
package block
Expand Down
3 changes: 3 additions & 0 deletions pkg/block/block_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) The Thanos Authors.
// Licensed under the Apache License 2.0.

package block

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

package block

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

package block

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

package block

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

package block

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

package indexheader

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

package indexheader

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

package indexheader

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

package indexheader

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

package metadata

// metadata package implements writing and reading wrapped meta.json where Thanos puts its metadata.
Expand Down
3 changes: 3 additions & 0 deletions pkg/cacheutil/jump_hash.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) The Thanos Authors.
// Licensed under the Apache License 2.0.

package cacheutil

// jumpHash consistently chooses a hash bucket number in the range
Expand Down
3 changes: 3 additions & 0 deletions pkg/cacheutil/memcached_client.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) The Thanos Authors.
// Licensed under the Apache License 2.0.

package cacheutil

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

package cacheutil

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

package cacheutil

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

package cacheutil

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

package compact

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

package compact

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

package compact

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

package compact

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

package compact

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

package downsample

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

package downsample

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

package downsample

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

package downsample

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

package downsample

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

package downsample

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

package compact

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

package compact_test

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

package component

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

package cache

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

package cache

import (
Expand Down
3 changes: 3 additions & 0 deletions pkg/discovery/dns/miekgdns/lookup.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) The Thanos Authors.
// Licensed under the Apache License 2.0.

package miekgdns

import (
Expand Down
3 changes: 3 additions & 0 deletions pkg/discovery/dns/miekgdns/resolver.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) The Thanos Authors.
// Licensed under the Apache License 2.0.

package miekgdns

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

package dns

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

package dns

import (
Expand Down
Loading

0 comments on commit b06b5ee

Please sign in to comment.