From 5c9a6ce747fc4211ebcf17445a15d967886436ad Mon Sep 17 00:00:00 2001 From: Brian Brazil Date: Wed, 19 Apr 2017 13:43:09 +0100 Subject: [PATCH] Add license to files. This should fix CI for dev-2.0. --- pkg/labels/labels.go | 13 +++++++++++++ pkg/labels/matcher.go | 13 +++++++++++++ pkg/textparse/lex.l | 15 ++++++++++++++- pkg/textparse/lex.l.go | 13 +++++++++++++ pkg/textparse/parse.go | 13 +++++++++++++ pkg/textparse/parse_test.go | 13 +++++++++++++ pkg/timestamp/timestamp.go | 13 +++++++++++++ promql/value.go | 13 +++++++++++++ storage/buffer.go | 13 +++++++++++++ storage/buffer_test.go | 13 +++++++++++++ storage/tsdb/tsdb.go | 13 +++++++++++++ util/testutil/storage.go | 13 +++++++++++++ 12 files changed, 157 insertions(+), 1 deletion(-) diff --git a/pkg/labels/labels.go b/pkg/labels/labels.go index 1e10d5cb3..7b5d5b931 100644 --- a/pkg/labels/labels.go +++ b/pkg/labels/labels.go @@ -1,3 +1,16 @@ +// Copyright 2017 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. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package labels import ( diff --git a/pkg/labels/matcher.go b/pkg/labels/matcher.go index 7a81d7cf0..40ae5f76e 100644 --- a/pkg/labels/matcher.go +++ b/pkg/labels/matcher.go @@ -1,3 +1,16 @@ +// Copyright 2017 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. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package labels import ( diff --git a/pkg/textparse/lex.l b/pkg/textparse/lex.l index c38051933..f875355b7 100644 --- a/pkg/textparse/lex.l +++ b/pkg/textparse/lex.l @@ -1,4 +1,17 @@ %{ +// Copyright 2017 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. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package textparse import ( @@ -80,4 +93,4 @@ M [a-zA-Z_:] %% return -1 -} \ No newline at end of file +} diff --git a/pkg/textparse/lex.l.go b/pkg/textparse/lex.l.go index 6a4315682..c1b3e7d25 100644 --- a/pkg/textparse/lex.l.go +++ b/pkg/textparse/lex.l.go @@ -1,5 +1,18 @@ // CAUTION: Generated file - DO NOT EDIT. +// Copyright 2017 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. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package textparse import ( diff --git a/pkg/textparse/parse.go b/pkg/textparse/parse.go index d04ec2942..dc6ef4ba5 100644 --- a/pkg/textparse/parse.go +++ b/pkg/textparse/parse.go @@ -1,3 +1,16 @@ +// Copyright 2017 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. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT 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 get github.com/cznic/golex //go:generate golex -o=lex.l.go lex.l diff --git a/pkg/textparse/parse_test.go b/pkg/textparse/parse_test.go index fb37b15d1..06d5f9c69 100644 --- a/pkg/textparse/parse_test.go +++ b/pkg/textparse/parse_test.go @@ -1,3 +1,16 @@ +// Copyright 2017 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. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package textparse import ( diff --git a/pkg/timestamp/timestamp.go b/pkg/timestamp/timestamp.go index 6bc2b64ee..4a1534fcb 100644 --- a/pkg/timestamp/timestamp.go +++ b/pkg/timestamp/timestamp.go @@ -1,3 +1,16 @@ +// Copyright 2017 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. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package timestamp import "time" diff --git a/promql/value.go b/promql/value.go index 317a673c1..fe902cd23 100644 --- a/promql/value.go +++ b/promql/value.go @@ -1,3 +1,16 @@ +// Copyright 2017 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. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package promql import ( diff --git a/storage/buffer.go b/storage/buffer.go index cb989764f..01b4f2941 100644 --- a/storage/buffer.go +++ b/storage/buffer.go @@ -1,3 +1,16 @@ +// Copyright 2017 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. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package storage import "math" diff --git a/storage/buffer_test.go b/storage/buffer_test.go index c1f34cb91..40fadbaff 100644 --- a/storage/buffer_test.go +++ b/storage/buffer_test.go @@ -1,3 +1,16 @@ +// Copyright 2017 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. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package storage import ( diff --git a/storage/tsdb/tsdb.go b/storage/tsdb/tsdb.go index 86acd232c..f3736c444 100644 --- a/storage/tsdb/tsdb.go +++ b/storage/tsdb/tsdb.go @@ -1,3 +1,16 @@ +// Copyright 2017 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. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package tsdb import ( diff --git a/util/testutil/storage.go b/util/testutil/storage.go index 760a31546..a214d3b67 100644 --- a/util/testutil/storage.go +++ b/util/testutil/storage.go @@ -1,3 +1,16 @@ +// Copyright 2017 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. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package testutil import (