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 be508aa2..fc654168 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 31c5904b..37dcc6d8 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 487d8b73..3f322341 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 d094e41f..569e63a2 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 5758b915..73b6478f 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 e0a3881f..ce16e894 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 e9e008f7..3897f403 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 3909fe42..62b5968c 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 75fbef29..816386e5 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 7a796cf3..1fa42fca 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 39b05b66..e401e30a 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 bdf8e9f8..b3db74ed 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 fe97b980..f807efba 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 bb0a1d9f..e689ca93 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 bfea2a8e..7e343fe2 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 c65a5aa9..0da1e32c 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 ab0a5a98..7a48ef64 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 5556872d..c76e839b 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 d118a515..7ed28b9f 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