From 3d8873cea886d4f382d35feb31cc4ff038e37a6a Mon Sep 17 00:00:00 2001 From: Angus Lees <gus@inodes.org> Date: Fri, 30 Jun 2017 12:16:37 +1000 Subject: [PATCH] Add per-file license headers Fixes #35 --- Makefile | 15 +++++++++++++++ cmd/delete.go | 15 +++++++++++++++ cmd/diff.go | 15 +++++++++++++++ cmd/root.go | 15 +++++++++++++++ cmd/show.go | 15 +++++++++++++++ cmd/show_test.go | 15 +++++++++++++++ cmd/update.go | 15 +++++++++++++++ cmd/version.go | 15 +++++++++++++++ cmd/version_test.go | 15 +++++++++++++++ examples/example.libsonnet | 15 +++++++++++++++ examples/guestbook.jsonnet | 15 +++++++++++++++ lib/kubecfg.libsonnet | 15 +++++++++++++++ lib/kubecfg_test.jsonnet | 15 +++++++++++++++ main.go | 15 +++++++++++++++ utils/acquire.go | 15 +++++++++++++++ utils/client.go | 15 +++++++++++++++ utils/nativefuncs.go | 15 +++++++++++++++ utils/nativefuncs_test.go | 15 +++++++++++++++ utils/registry.go | 15 +++++++++++++++ utils/registry_test.go | 15 +++++++++++++++ utils/resolver.go | 15 +++++++++++++++ utils/resolver_test.go | 15 +++++++++++++++ utils/sort.go | 15 +++++++++++++++ utils/sort_test.go | 15 +++++++++++++++ 24 files changed, 360 insertions(+) diff --git a/Makefile b/Makefile index 2e33b0a1..13111b9e 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,18 @@ +# Copyright 2017 The kubecfg 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. + VERSION = dev-$(shell date +%FT%T%z) GO = go diff --git a/cmd/delete.go b/cmd/delete.go index 4cf497a9..1839c0f7 100644 --- a/cmd/delete.go +++ b/cmd/delete.go @@ -1,3 +1,18 @@ +// Copyright 2017 The kubecfg 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 cmd import ( diff --git a/cmd/diff.go b/cmd/diff.go index 61128aca..9d037236 100644 --- a/cmd/diff.go +++ b/cmd/diff.go @@ -1,3 +1,18 @@ +// Copyright 2017 The kubecfg 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 cmd import ( diff --git a/cmd/root.go b/cmd/root.go index 073805f0..86d128cc 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -1,3 +1,18 @@ +// Copyright 2017 The kubecfg 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 cmd import ( diff --git a/cmd/show.go b/cmd/show.go index b99fb106..6e98a35e 100644 --- a/cmd/show.go +++ b/cmd/show.go @@ -1,3 +1,18 @@ +// Copyright 2017 The kubecfg 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 cmd import ( diff --git a/cmd/show_test.go b/cmd/show_test.go index aa658223..c404abe8 100644 --- a/cmd/show_test.go +++ b/cmd/show_test.go @@ -1,3 +1,18 @@ +// Copyright 2017 The kubecfg 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 cmd import ( diff --git a/cmd/update.go b/cmd/update.go index a2ade46c..8cec153f 100644 --- a/cmd/update.go +++ b/cmd/update.go @@ -1,3 +1,18 @@ +// Copyright 2017 The kubecfg 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 cmd import ( diff --git a/cmd/version.go b/cmd/version.go index cd700e2e..fff4800f 100644 --- a/cmd/version.go +++ b/cmd/version.go @@ -1,3 +1,18 @@ +// Copyright 2017 The kubecfg 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 cmd import ( diff --git a/cmd/version_test.go b/cmd/version_test.go index 10ce2ed5..68f62086 100644 --- a/cmd/version_test.go +++ b/cmd/version_test.go @@ -1,3 +1,18 @@ +// Copyright 2017 The kubecfg 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 cmd import ( diff --git a/examples/example.libsonnet b/examples/example.libsonnet index 2a02f3bc..d0d2537e 100644 --- a/examples/example.libsonnet +++ b/examples/example.libsonnet @@ -1,3 +1,18 @@ +// Copyright 2017 The kubecfg 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. + // This library is intended to support kubecfg examples, and should // not necessarily be considered recommended jsonnet structure. diff --git a/examples/guestbook.jsonnet b/examples/guestbook.jsonnet index 94d7dad2..eef3f277 100644 --- a/examples/guestbook.jsonnet +++ b/examples/guestbook.jsonnet @@ -1,3 +1,18 @@ +// Copyright 2017 The kubecfg 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. + // Simple self-contained example to demonstrate kubecfg. // This should not necessarily be considered a model jsonnet example // to build upon. diff --git a/lib/kubecfg.libsonnet b/lib/kubecfg.libsonnet index 4744f53b..43448e45 100644 --- a/lib/kubecfg.libsonnet +++ b/lib/kubecfg.libsonnet @@ -1,3 +1,18 @@ +// Copyright 2017 The kubecfg 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. + { // parseJson(data): parses the `data` string as a json document, and // returns the resulting jsonnet object. diff --git a/lib/kubecfg_test.jsonnet b/lib/kubecfg_test.jsonnet index 27e66178..fafd8afe 100644 --- a/lib/kubecfg_test.jsonnet +++ b/lib/kubecfg_test.jsonnet @@ -1,3 +1,18 @@ +// Copyright 2017 The kubecfg 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. + // Run me with `../kubecfg show kubecfg_test.jsonnet` local kubecfg = import "kubecfg.libsonnet"; diff --git a/main.go b/main.go index 4a4fb81c..89300ed8 100644 --- a/main.go +++ b/main.go @@ -1,3 +1,18 @@ +// Copyright 2017 The kubecfg 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 main import ( diff --git a/utils/acquire.go b/utils/acquire.go index ed45d65f..4a871f15 100644 --- a/utils/acquire.go +++ b/utils/acquire.go @@ -1,3 +1,18 @@ +// Copyright 2017 The kubecfg 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 utils import ( diff --git a/utils/client.go b/utils/client.go index e718f13f..589e19dd 100644 --- a/utils/client.go +++ b/utils/client.go @@ -1,3 +1,18 @@ +// Copyright 2017 The kubecfg 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 utils import ( diff --git a/utils/nativefuncs.go b/utils/nativefuncs.go index 3a1129d2..5d381abb 100644 --- a/utils/nativefuncs.go +++ b/utils/nativefuncs.go @@ -1,3 +1,18 @@ +// Copyright 2017 The kubecfg 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 utils import ( diff --git a/utils/nativefuncs_test.go b/utils/nativefuncs_test.go index c807b4d0..8e6d7a97 100644 --- a/utils/nativefuncs_test.go +++ b/utils/nativefuncs_test.go @@ -1,3 +1,18 @@ +// Copyright 2017 The kubecfg 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 utils import ( diff --git a/utils/registry.go b/utils/registry.go index 23a163c0..e1017f53 100644 --- a/utils/registry.go +++ b/utils/registry.go @@ -1,3 +1,18 @@ +// Copyright 2017 The kubecfg 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 utils import ( diff --git a/utils/registry_test.go b/utils/registry_test.go index 183853de..93302b73 100644 --- a/utils/registry_test.go +++ b/utils/registry_test.go @@ -1,3 +1,18 @@ +// Copyright 2017 The kubecfg 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 utils import ( diff --git a/utils/resolver.go b/utils/resolver.go index 93531851..2823792a 100644 --- a/utils/resolver.go +++ b/utils/resolver.go @@ -1,3 +1,18 @@ +// Copyright 2017 The kubecfg 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 utils import ( diff --git a/utils/resolver_test.go b/utils/resolver_test.go index cde621d6..18352115 100644 --- a/utils/resolver_test.go +++ b/utils/resolver_test.go @@ -1,3 +1,18 @@ +// Copyright 2017 The kubecfg 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 utils import ( diff --git a/utils/sort.go b/utils/sort.go index 2fd88276..a60d36ec 100644 --- a/utils/sort.go +++ b/utils/sort.go @@ -1,3 +1,18 @@ +// Copyright 2017 The kubecfg 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 utils import ( diff --git a/utils/sort_test.go b/utils/sort_test.go index 0a8df52d..68ee7c3f 100644 --- a/utils/sort_test.go +++ b/utils/sort_test.go @@ -1,3 +1,18 @@ +// Copyright 2017 The kubecfg 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 utils import ( -- GitLab