From 82175dcfe9e36766c5e88199d8045e2f0733f483 Mon Sep 17 00:00:00 2001 From: Quentin Machu Date: Tue, 19 Jan 2016 15:16:45 -0500 Subject: [PATCH] *: add missing copyright headers --- database/database.go | 15 +++++++++++++ database/models.go | 14 ++++++++++++ database/pgsql/complex_test.go | 14 ++++++++++++ database/pgsql/feature.go | 14 ++++++++++++ database/pgsql/feature_test.go | 14 ++++++++++++ database/pgsql/keyvalue.go | 14 ++++++++++++ database/pgsql/keyvalue_test.go | 14 ++++++++++++ database/pgsql/layer.go | 14 ++++++++++++ database/pgsql/layer_test.go | 14 ++++++++++++ database/pgsql/lock.go | 14 ++++++++++++ database/pgsql/lock_test.go | 14 ++++++++++++ .../migrations/20151222113213_Initial.sql | 14 ++++++++++++ database/pgsql/namespace.go | 14 ++++++++++++ database/pgsql/namespace_test.go | 14 ++++++++++++ database/pgsql/pgsql.go | 15 +++++++++++++ database/pgsql/queries.go | 14 ++++++++++++ database/pgsql/testdata/data.sql | 14 ++++++++++++ database/pgsql/vulnerability.go | 14 ++++++++++++ database/pgsql/vulnerability_test.go | 14 ++++++++++++ updater/.DS_Store | Bin 6148 -> 0 bytes utils/types/cvss.go | 14 ++++++++++++ worker/worker_test.go | 20 ++++++++++++++---- 22 files changed, 298 insertions(+), 4 deletions(-) delete mode 100644 updater/.DS_Store diff --git a/database/database.go b/database/database.go index be508aa2f5..fc6541682a 100644 --- a/database/database.go +++ b/database/database.go @@ -1,3 +1,18 @@ +// Copyright 2015 clair 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 database defines the Clair's models and a common interface for database implementations. package database import ( diff --git a/database/models.go b/database/models.go index 31c5904b51..37dcc6d8a7 100644 --- a/database/models.go +++ b/database/models.go @@ -1,3 +1,17 @@ +// Copyright 2015 clair 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 database import "github.com/coreos/clair/utils/types" diff --git a/database/pgsql/complex_test.go b/database/pgsql/complex_test.go index 487d8b738d..3f3223415a 100644 --- a/database/pgsql/complex_test.go +++ b/database/pgsql/complex_test.go @@ -1,3 +1,17 @@ +// Copyright 2015 clair 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 pgsql import ( diff --git a/database/pgsql/feature.go b/database/pgsql/feature.go index d094e41f87..569e63a26f 100644 --- a/database/pgsql/feature.go +++ b/database/pgsql/feature.go @@ -1,3 +1,17 @@ +// Copyright 2015 clair 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 pgsql import ( diff --git a/database/pgsql/feature_test.go b/database/pgsql/feature_test.go index 5758b9153e..73b6478fbf 100644 --- a/database/pgsql/feature_test.go +++ b/database/pgsql/feature_test.go @@ -1,3 +1,17 @@ +// Copyright 2015 clair 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 pgsql import ( diff --git a/database/pgsql/keyvalue.go b/database/pgsql/keyvalue.go index e0a3881f5e..ce16e89477 100644 --- a/database/pgsql/keyvalue.go +++ b/database/pgsql/keyvalue.go @@ -1,3 +1,17 @@ +// Copyright 2015 clair 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 pgsql import ( diff --git a/database/pgsql/keyvalue_test.go b/database/pgsql/keyvalue_test.go index e9e008f775..3897f4037f 100644 --- a/database/pgsql/keyvalue_test.go +++ b/database/pgsql/keyvalue_test.go @@ -1,3 +1,17 @@ +// Copyright 2015 clair 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 pgsql import ( diff --git a/database/pgsql/layer.go b/database/pgsql/layer.go index 3909fe42f1..62b5968c94 100644 --- a/database/pgsql/layer.go +++ b/database/pgsql/layer.go @@ -1,3 +1,17 @@ +// Copyright 2015 clair 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 pgsql import ( diff --git a/database/pgsql/layer_test.go b/database/pgsql/layer_test.go index 75fbef298f..816386e535 100644 --- a/database/pgsql/layer_test.go +++ b/database/pgsql/layer_test.go @@ -1,3 +1,17 @@ +// Copyright 2015 clair 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 pgsql import ( diff --git a/database/pgsql/lock.go b/database/pgsql/lock.go index 7a796cf3be..1fa42fca48 100644 --- a/database/pgsql/lock.go +++ b/database/pgsql/lock.go @@ -1,3 +1,17 @@ +// Copyright 2015 clair 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 pgsql import ( diff --git a/database/pgsql/lock_test.go b/database/pgsql/lock_test.go index 39b05b66e6..e401e30a17 100644 --- a/database/pgsql/lock_test.go +++ b/database/pgsql/lock_test.go @@ -1,3 +1,17 @@ +// Copyright 2015 clair 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 pgsql import ( diff --git a/database/pgsql/migrations/20151222113213_Initial.sql b/database/pgsql/migrations/20151222113213_Initial.sql index bdf8e9f8a1..b3db74edf0 100644 --- a/database/pgsql/migrations/20151222113213_Initial.sql +++ b/database/pgsql/migrations/20151222113213_Initial.sql @@ -1,3 +1,17 @@ +-- Copyright 2015 clair 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. + -- +goose Up -- ----------------------------------------------------- diff --git a/database/pgsql/namespace.go b/database/pgsql/namespace.go index fe97b98061..f807efba55 100644 --- a/database/pgsql/namespace.go +++ b/database/pgsql/namespace.go @@ -1,3 +1,17 @@ +// Copyright 2015 clair 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 pgsql import ( diff --git a/database/pgsql/namespace_test.go b/database/pgsql/namespace_test.go index bb0a1d9f6f..e689ca93f1 100644 --- a/database/pgsql/namespace_test.go +++ b/database/pgsql/namespace_test.go @@ -1,3 +1,17 @@ +// Copyright 2015 clair 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 pgsql import ( diff --git a/database/pgsql/pgsql.go b/database/pgsql/pgsql.go index bfea2a8e35..7e343fe2fb 100644 --- a/database/pgsql/pgsql.go +++ b/database/pgsql/pgsql.go @@ -1,3 +1,18 @@ +// Copyright 2015 clair 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 pgsql implements database.Datastore with PostgreSQL. package pgsql import ( diff --git a/database/pgsql/queries.go b/database/pgsql/queries.go index c65a5aa97c..0da1e32ccc 100644 --- a/database/pgsql/queries.go +++ b/database/pgsql/queries.go @@ -1,3 +1,17 @@ +// Copyright 2015 clair 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 pgsql import ( diff --git a/database/pgsql/testdata/data.sql b/database/pgsql/testdata/data.sql index ab0a5a9881..7a48ef6400 100644 --- a/database/pgsql/testdata/data.sql +++ b/database/pgsql/testdata/data.sql @@ -1,3 +1,17 @@ +-- Copyright 2015 clair 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. + INSERT INTO namespace (id, name) VALUES (1, 'debian:7'), (2, 'debian:8'); diff --git a/database/pgsql/vulnerability.go b/database/pgsql/vulnerability.go index 5556872d36..c76e839b99 100644 --- a/database/pgsql/vulnerability.go +++ b/database/pgsql/vulnerability.go @@ -1,3 +1,17 @@ +// Copyright 2015 clair 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 pgsql import ( diff --git a/database/pgsql/vulnerability_test.go b/database/pgsql/vulnerability_test.go index d118a5154a..7ed28b9fe9 100644 --- a/database/pgsql/vulnerability_test.go +++ b/database/pgsql/vulnerability_test.go @@ -1,3 +1,17 @@ +// Copyright 2015 clair 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 pgsql import ( diff --git a/updater/.DS_Store b/updater/.DS_Store deleted file mode 100644 index 5008ddfcf53c02e82d7eee2e57c38e5672ef89f6..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6148 zcmeH~Jr2S!425mzP>H1@V-^m;4Wg<&0T*E43hX&L&p$$qDprKhvt+--jT7}7np#A3 zem<@ulZcFPQ@L2!n>{z**++&mCkOWA81W14cNZlEfg7;MkzE(HCqgga^y>{tEnwC%0;vJ&^%eQ zLs35+`xjp>T0