From 6dece1122d64e0bfbc8c61e19eae065111d19676 Mon Sep 17 00:00:00 2001 From: Jonathan Boulle Date: Mon, 29 Dec 2014 17:34:05 -0800 Subject: [PATCH] *: add license header to all source files h/t @johndeng for raising this in #305 --- cas/cas.go | 14 ++++++++++++++ cas/cas_test.go | 14 ++++++++++++++ cas/remote.go | 14 ++++++++++++++ cas/utils.go | 14 ++++++++++++++ metadatasvc/main.go | 14 ++++++++++++++ path/path.go | 14 ++++++++++++++ pkg/io/writer.go | 14 ++++++++++++++ pkg/keystore/keystore.go | 14 ++++++++++++++ pkg/keystore/keystore_test.go | 14 ++++++++++++++ pkg/keystore/keystoretest/keygen.go | 14 ++++++++++++++ pkg/keystore/keystoretest/keymap.go | 14 ++++++++++++++ pkg/keystore/keystoretest/opengpg.go | 14 ++++++++++++++ pkg/lock/dir.go | 14 ++++++++++++++ pkg/lock/dir_test.go | 14 ++++++++++++++ pkg/proc/proc.go | 14 ++++++++++++++ pkg/tar/tar.go | 14 ++++++++++++++ pkg/tar/tar_test.go | 14 ++++++++++++++ rkt/fetch.go | 14 ++++++++++++++ rkt/gc.go | 14 ++++++++++++++ rkt/help.go | 14 ++++++++++++++ rkt/rkt.go | 14 ++++++++++++++ rkt/run.go | 14 ++++++++++++++ rkt/status.go | 14 ++++++++++++++ rkt/version.go | 14 ++++++++++++++ stage0/run.go | 14 ++++++++++++++ stage1/init/container.go | 14 ++++++++++++++ stage1/init/init.go | 14 ++++++++++++++ stage1/init/path.go | 14 ++++++++++++++ version/version.go | 14 ++++++++++++++ 29 files changed, 406 insertions(+) diff --git a/cas/cas.go b/cas/cas.go index 1bb6d9e..8357243 100644 --- a/cas/cas.go +++ b/cas/cas.go @@ -1,3 +1,17 @@ +// Copyright 2014 CoreOS, Inc. +// +// 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 cas import ( diff --git a/cas/cas_test.go b/cas/cas_test.go index 287097a..c22af1b 100644 --- a/cas/cas_test.go +++ b/cas/cas_test.go @@ -1,3 +1,17 @@ +// Copyright 2014 CoreOS, Inc. +// +// 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 cas import ( diff --git a/cas/remote.go b/cas/remote.go index 56cd60f..ef3c570 100644 --- a/cas/remote.go +++ b/cas/remote.go @@ -1,3 +1,17 @@ +// Copyright 2014 CoreOS, Inc. +// +// 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 cas import ( diff --git a/cas/utils.go b/cas/utils.go index 2db346b..0e7d8f4 100644 --- a/cas/utils.go +++ b/cas/utils.go @@ -1,3 +1,17 @@ +// Copyright 2014 CoreOS, Inc. +// +// 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 cas import ( diff --git a/metadatasvc/main.go b/metadatasvc/main.go index 17bc305..426c644 100644 --- a/metadatasvc/main.go +++ b/metadatasvc/main.go @@ -1,3 +1,17 @@ +// Copyright 2014 CoreOS, Inc. +// +// 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 main import ( diff --git a/path/path.go b/path/path.go index 46f92c1..427314c 100644 --- a/path/path.go +++ b/path/path.go @@ -1,3 +1,17 @@ +// Copyright 2014 CoreOS, Inc. +// +// 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 path // diff --git a/pkg/io/writer.go b/pkg/io/writer.go index cb6bc39..187a7f1 100644 --- a/pkg/io/writer.go +++ b/pkg/io/writer.go @@ -1,3 +1,17 @@ +// Copyright 2014 CoreOS, Inc. +// +// 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 io import "io" diff --git a/pkg/keystore/keystore.go b/pkg/keystore/keystore.go index e5ab7fb..03485fc 100644 --- a/pkg/keystore/keystore.go +++ b/pkg/keystore/keystore.go @@ -1,3 +1,17 @@ +// Copyright 2014 CoreOS, Inc. +// +// 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 keystore implements the ACI keystore. package keystore diff --git a/pkg/keystore/keystore_test.go b/pkg/keystore/keystore_test.go index 579d70d..94c1162 100644 --- a/pkg/keystore/keystore_test.go +++ b/pkg/keystore/keystore_test.go @@ -1,3 +1,17 @@ +// Copyright 2014 CoreOS, Inc. +// +// 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. + // The keystore tests require opengpg keys from the keystoretest package (keystoretest.KeyMap). // The opengpg keys are auto generated by running the keygen.go command. // keygen.go should not be run by an automated process. keygen.go is a helper to generate diff --git a/pkg/keystore/keystoretest/keygen.go b/pkg/keystore/keystoretest/keygen.go index 8d201f6..9144401 100644 --- a/pkg/keystore/keystoretest/keygen.go +++ b/pkg/keystore/keystoretest/keygen.go @@ -1,3 +1,17 @@ +// Copyright 2014 CoreOS, Inc. +// +// 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. + // +build ignore // Generate opengpg keys for Application Container Keystore. Outputs to keymap.go diff --git a/pkg/keystore/keystoretest/keymap.go b/pkg/keystore/keystoretest/keymap.go index af67ca6..11631d8 100644 --- a/pkg/keystore/keystoretest/keymap.go +++ b/pkg/keystore/keystoretest/keymap.go @@ -1,3 +1,17 @@ +// Copyright 2014 CoreOS, Inc. +// +// 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. + // Code generated by go generate. // Source file: keygen.go // DO NOT EDIT! diff --git a/pkg/keystore/keystoretest/opengpg.go b/pkg/keystore/keystoretest/opengpg.go index 8f120e0..1ab1340 100644 --- a/pkg/keystore/keystoretest/opengpg.go +++ b/pkg/keystore/keystoretest/opengpg.go @@ -1,3 +1,17 @@ +// Copyright 2014 CoreOS, Inc. +// +// 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 keystoretest provides utilities for ACI keystore testing. //go:generate go run keygen.go package keystoretest diff --git a/pkg/lock/dir.go b/pkg/lock/dir.go index b394c10..7e23204 100644 --- a/pkg/lock/dir.go +++ b/pkg/lock/dir.go @@ -1,3 +1,17 @@ +// Copyright 2014 CoreOS, Inc. +// +// 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 lock // Package lock implements simple locking primitives on a directory using flock diff --git a/pkg/lock/dir_test.go b/pkg/lock/dir_test.go index ae68e68..0ad208a 100644 --- a/pkg/lock/dir_test.go +++ b/pkg/lock/dir_test.go @@ -1,3 +1,17 @@ +// Copyright 2014 CoreOS, Inc. +// +// 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 lock import ( diff --git a/pkg/proc/proc.go b/pkg/proc/proc.go index c9fd594..0dfbd3f 100644 --- a/pkg/proc/proc.go +++ b/pkg/proc/proc.go @@ -1,3 +1,17 @@ +// Copyright 2014 CoreOS, Inc. +// +// 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 proc import ( diff --git a/pkg/tar/tar.go b/pkg/tar/tar.go index ab2752c..0bec73d 100644 --- a/pkg/tar/tar.go +++ b/pkg/tar/tar.go @@ -1,3 +1,17 @@ +// Copyright 2014 CoreOS, Inc. +// +// 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 tar import ( diff --git a/pkg/tar/tar_test.go b/pkg/tar/tar_test.go index 3a168bb..8fff6a9 100644 --- a/pkg/tar/tar_test.go +++ b/pkg/tar/tar_test.go @@ -1,3 +1,17 @@ +// Copyright 2014 CoreOS, Inc. +// +// 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 tar import ( diff --git a/rkt/fetch.go b/rkt/fetch.go index ace13b2..a26a996 100644 --- a/rkt/fetch.go +++ b/rkt/fetch.go @@ -1,3 +1,17 @@ +// Copyright 2014 CoreOS, Inc. +// +// 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 main import ( diff --git a/rkt/gc.go b/rkt/gc.go index 5e98639..7d04659 100644 --- a/rkt/gc.go +++ b/rkt/gc.go @@ -1,3 +1,17 @@ +// Copyright 2014 CoreOS, Inc. +// +// 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 main import ( diff --git a/rkt/help.go b/rkt/help.go index 8b636ac..b8bf283 100644 --- a/rkt/help.go +++ b/rkt/help.go @@ -1,3 +1,17 @@ +// Copyright 2014 CoreOS, Inc. +// +// 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 main import ( diff --git a/rkt/rkt.go b/rkt/rkt.go index 33bf161..ae7070a 100644 --- a/rkt/rkt.go +++ b/rkt/rkt.go @@ -1,3 +1,17 @@ +// Copyright 2014 CoreOS, Inc. +// +// 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 main import ( diff --git a/rkt/run.go b/rkt/run.go index 9b08a89..1d58898 100644 --- a/rkt/run.go +++ b/rkt/run.go @@ -1,3 +1,17 @@ +// Copyright 2014 CoreOS, Inc. +// +// 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. + //+build linux package main diff --git a/rkt/status.go b/rkt/status.go index 70c6756..21d63f4 100644 --- a/rkt/status.go +++ b/rkt/status.go @@ -1,3 +1,17 @@ +// Copyright 2014 CoreOS, Inc. +// +// 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. + //+build linux package main diff --git a/rkt/version.go b/rkt/version.go index cacf655..293c37d 100644 --- a/rkt/version.go +++ b/rkt/version.go @@ -1,3 +1,17 @@ +// Copyright 2014 CoreOS, Inc. +// +// 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 main import ( diff --git a/stage0/run.go b/stage0/run.go index 26e042a..ea7a9b5 100644 --- a/stage0/run.go +++ b/stage0/run.go @@ -1,3 +1,17 @@ +// Copyright 2014 CoreOS, Inc. +// +// 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. + //+build linux package stage0 diff --git a/stage1/init/container.go b/stage1/init/container.go index 7be1ee9..3d3969e 100644 --- a/stage1/init/container.go +++ b/stage1/init/container.go @@ -1,3 +1,17 @@ +// Copyright 2014 CoreOS, Inc. +// +// 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. + //+build linux package main diff --git a/stage1/init/init.go b/stage1/init/init.go index ec981b6..0655724 100644 --- a/stage1/init/init.go +++ b/stage1/init/init.go @@ -1,3 +1,17 @@ +// Copyright 2014 CoreOS, Inc. +// +// 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. + //+build linux package main diff --git a/stage1/init/path.go b/stage1/init/path.go index a26b729..db6db01 100644 --- a/stage1/init/path.go +++ b/stage1/init/path.go @@ -1,3 +1,17 @@ +// Copyright 2014 CoreOS, Inc. +// +// 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. + //+build linux package main diff --git a/version/version.go b/version/version.go index 31646b0..1de9003 100644 --- a/version/version.go +++ b/version/version.go @@ -1,3 +1,17 @@ +// Copyright 2014 CoreOS, Inc. +// +// 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 version const Version = "0.1.0"