From a61c4dab789fe92d6f0ad14e30e91a522629e9d6 Mon Sep 17 00:00:00 2001 From: C Cirello Date: Sat, 5 Nov 2016 15:33:07 -0700 Subject: [PATCH] Assert License (#224) * license: assert license for Go code * license: add in shell scripts * license: assert license for Ruby code * license: assert license to individual cases * license: assert license to Dockerfile --- Dockerfile | 14 ++++++++++++++ THIRD_PARTY | 4 ++++ api/datastore/bolt/bolt.go | 14 ++++++++++++++ api/datastore/bolt_test.go | 14 ++++++++++++++ api/datastore/datastore.go | 14 ++++++++++++++ api/datastore/mock.go | 14 ++++++++++++++ api/datastore/postgres/postgres.go | 14 ++++++++++++++ api/ifaces/app.go | 14 ++++++++++++++ api/ifaces/handlers.go | 14 ++++++++++++++ api/ifaces/listeners.go | 14 ++++++++++++++ api/models/app.go | 14 ++++++++++++++ api/models/app_wrapper.go | 14 ++++++++++++++ api/models/complete.go | 14 ++++++++++++++ api/models/config.go | 14 ++++++++++++++ api/models/datastore.go | 14 ++++++++++++++ api/models/error.go | 14 ++++++++++++++ api/models/error_body.go | 14 ++++++++++++++ api/models/id_status.go | 14 ++++++++++++++ api/models/mq.go | 14 ++++++++++++++ api/models/new_task.go | 14 ++++++++++++++ api/models/reason.go | 14 ++++++++++++++ api/models/route.go | 14 ++++++++++++++ api/models/route_wrapper.go | 14 ++++++++++++++ api/models/runner.go | 14 ++++++++++++++ api/models/start.go | 14 ++++++++++++++ api/models/task.go | 14 ++++++++++++++ api/mqs/bolt.go | 14 ++++++++++++++ api/mqs/ironmq.go | 14 ++++++++++++++ api/mqs/memory.go | 14 ++++++++++++++ api/mqs/mock.go | 14 ++++++++++++++ api/mqs/new.go | 14 ++++++++++++++ api/mqs/redis.go | 14 ++++++++++++++ api/runner/async_runner.go | 14 ++++++++++++++ api/runner/async_runner_test.go | 14 ++++++++++++++ api/runner/logger.go | 14 ++++++++++++++ api/runner/metrics.go | 14 ++++++++++++++ api/runner/runner.go | 14 ++++++++++++++ api/runner/runner_test.go | 14 ++++++++++++++ api/runner/task.go | 14 ++++++++++++++ api/server/apps_create.go | 14 ++++++++++++++ api/server/apps_delete.go | 14 ++++++++++++++ api/server/apps_get.go | 14 ++++++++++++++ api/server/apps_list.go | 14 ++++++++++++++ api/server/apps_test.go | 14 ++++++++++++++ api/server/apps_update.go | 14 ++++++++++++++ api/server/ping.go | 14 ++++++++++++++ api/server/routes_create.go | 14 ++++++++++++++ api/server/routes_delete.go | 14 ++++++++++++++ api/server/routes_get.go | 14 ++++++++++++++ api/server/routes_list.go | 14 ++++++++++++++ api/server/routes_test.go | 14 ++++++++++++++ api/server/routes_update.go | 14 ++++++++++++++ api/server/runner.go | 14 ++++++++++++++ api/server/runner_async_test.go | 14 ++++++++++++++ api/server/runner_test.go | 14 ++++++++++++++ api/server/server.go | 14 ++++++++++++++ api/server/server_test.go | 14 ++++++++++++++ api/server/special_handler_context.go | 14 ++++++++++++++ api/server/tree.go | 16 +++++++++++++--- api/server/version.go | 14 ++++++++++++++ build.ps1 | 14 ++++++++++++++ clients/build.rb | 14 ++++++++++++++ docs/howto/go/Dockerfile | 14 ++++++++++++++ docs/howto/go/hello.go | 14 ++++++++++++++ docs/howto/node/Dockerfile | 14 ++++++++++++++ docs/howto/php/Dockerfile | 14 ++++++++++++++ docs/howto/python/Dockerfile | 14 ++++++++++++++ examples/Dockerfile.glide | 14 ++++++++++++++ examples/blog/Dockerfile | 14 ++++++++++++++ examples/blog/build.sh | 15 +++++++++++++++ examples/blog/database/database.go | 14 ++++++++++++++ examples/blog/database/post.go | 14 ++++++++++++++ examples/blog/database/user.go | 14 ++++++++++++++ examples/blog/function.go | 14 ++++++++++++++ examples/blog/models/post.go | 14 ++++++++++++++ examples/blog/models/user.go | 14 ++++++++++++++ examples/blog/routes/post_create.go | 14 ++++++++++++++ examples/blog/routes/post_list.go | 14 ++++++++++++++ examples/blog/routes/post_read.go | 14 ++++++++++++++ examples/blog/routes/server.go | 14 ++++++++++++++ examples/blog/test.sh | 15 +++++++++++++++ examples/build-glide.sh | 14 ++++++++++++++ examples/caddy-lb/build.sh | 15 +++++++++++++++ examples/caddy-lb/test.sh | 15 +++++++++++++++ examples/checker/Dockerfile | 14 ++++++++++++++ examples/checker/build.sh | 15 +++++++++++++++ examples/checker/function.rb | 14 ++++++++++++++ examples/checker/test.sh | 14 ++++++++++++++ examples/echo/Dockerfile | 14 ++++++++++++++ examples/echo/build.sh | 14 ++++++++++++++ examples/echo/function.rb | 14 ++++++++++++++ examples/echo/test.sh | 15 +++++++++++++++ examples/error/Dockerfile | 14 ++++++++++++++ examples/error/build.sh | 15 +++++++++++++++ examples/error/function.rb | 14 ++++++++++++++ examples/error/test.sh | 15 +++++++++++++++ examples/hello-go/Dockerfile | 14 ++++++++++++++ examples/hello-go/build.sh | 15 +++++++++++++++ examples/hello-go/function.go | 14 ++++++++++++++ examples/hello-go/hello-async.sh | 15 +++++++++++++++ examples/hello-go/hello-sync.sh | 15 +++++++++++++++ examples/hello-go/test.sh | 14 ++++++++++++++ examples/hello-ruby/Dockerfile | 14 ++++++++++++++ examples/hello-ruby/build.sh | 15 +++++++++++++++ examples/hello-ruby/function.rb | 14 ++++++++++++++ examples/hello-ruby/hello-async.sh | 15 +++++++++++++++ examples/hello-ruby/hello-sync.sh | 14 ++++++++++++++ examples/hello-ruby/test.sh | 15 +++++++++++++++ examples/redis/Dockerfile | 14 ++++++++++++++ examples/redis/build.sh | 15 +++++++++++++++ examples/redis/function.go | 14 ++++++++++++++ examples/redis/test.sh | 15 +++++++++++++++ examples/sleeper/Dockerfile | 14 ++++++++++++++ examples/sleeper/build.sh | 15 +++++++++++++++ examples/sleeper/function.rb | 14 ++++++++++++++ examples/sleeper/test.sh | 17 ++++++++++++++++- examples/tests.sh | 14 ++++++++++++++ .../triggers/openstack-ceilometer/devstack.sh | 15 +++++++++++++++ examples/twitter/Dockerfile | 14 ++++++++++++++ examples/twitter/build.sh | 14 ++++++++++++++ examples/twitter/function.go | 14 ++++++++++++++ examples/twitter/test.sh | 14 ++++++++++++++ fnctl/Dockerfile | 14 ++++++++++++++ fnctl/apps.go | 14 ++++++++++++++ fnctl/build.go | 14 ++++++++++++++ fnctl/bump.go | 14 ++++++++++++++ fnctl/common.go | 14 ++++++++++++++ fnctl/entrypoint.sh | 15 +++++++++++++++ fnctl/install | 15 +++++++++++++++ fnctl/lambda.go | 14 ++++++++++++++ fnctl/main.go | 14 ++++++++++++++ fnctl/publish.go | 14 ++++++++++++++ fnctl/routes.go | 14 ++++++++++++++ fnctl/run.go | 14 ++++++++++++++ main.go | 14 ++++++++++++++ release.sh | 15 +++++++++++++++ tests/Dockerfile | 14 ++++++++++++++ tests/build.sh | 14 ++++++++++++++ tests/run.sh | 14 ++++++++++++++ tests/test.rb | 14 ++++++++++++++ tests/utils.rb | 14 ++++++++++++++ 141 files changed, 1986 insertions(+), 4 deletions(-) create mode 100644 THIRD_PARTY diff --git a/Dockerfile b/Dockerfile index f5439d187..e6c90afb9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,3 +1,17 @@ +# Copyright 2016 Iron.io +# +# 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. + FROM iron/dind RUN mkdir /app diff --git a/THIRD_PARTY b/THIRD_PARTY new file mode 100644 index 000000000..af038e4a4 --- /dev/null +++ b/THIRD_PARTY @@ -0,0 +1,4 @@ +This software use third-party software. + +For: api/server/tree.go +Copyright 2013 Julien Schmidt. All rights reserved. BSD-license \ No newline at end of file diff --git a/api/datastore/bolt/bolt.go b/api/datastore/bolt/bolt.go index 0b6b32d80..24affa4e6 100644 --- a/api/datastore/bolt/bolt.go +++ b/api/datastore/bolt/bolt.go @@ -1,3 +1,17 @@ +// Copyright 2016 Iron.io +// +// 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 bolt import ( diff --git a/api/datastore/bolt_test.go b/api/datastore/bolt_test.go index 284e087ff..9fcb2570c 100644 --- a/api/datastore/bolt_test.go +++ b/api/datastore/bolt_test.go @@ -1,3 +1,17 @@ +// Copyright 2016 Iron.io +// +// 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 datastore import ( diff --git a/api/datastore/datastore.go b/api/datastore/datastore.go index 129c6f6e7..d122e0c50 100644 --- a/api/datastore/datastore.go +++ b/api/datastore/datastore.go @@ -1,3 +1,17 @@ +// Copyright 2016 Iron.io +// +// 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 datastore import ( diff --git a/api/datastore/mock.go b/api/datastore/mock.go index c8d9f03a7..d12cd05fa 100644 --- a/api/datastore/mock.go +++ b/api/datastore/mock.go @@ -1,3 +1,17 @@ +// Copyright 2016 Iron.io +// +// 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 datastore import "github.com/iron-io/functions/api/models" diff --git a/api/datastore/postgres/postgres.go b/api/datastore/postgres/postgres.go index e51da8d1b..079b9f703 100644 --- a/api/datastore/postgres/postgres.go +++ b/api/datastore/postgres/postgres.go @@ -1,3 +1,17 @@ +// Copyright 2016 Iron.io +// +// 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 postgres import ( diff --git a/api/ifaces/app.go b/api/ifaces/app.go index d70c2b3f0..55a00d684 100644 --- a/api/ifaces/app.go +++ b/api/ifaces/app.go @@ -1,3 +1,17 @@ +// Copyright 2016 Iron.io +// +// 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 ifaces import "net/http" diff --git a/api/ifaces/handlers.go b/api/ifaces/handlers.go index 36c94797c..bf97b8483 100644 --- a/api/ifaces/handlers.go +++ b/api/ifaces/handlers.go @@ -1,3 +1,17 @@ +// Copyright 2016 Iron.io +// +// 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 ifaces import ( diff --git a/api/ifaces/listeners.go b/api/ifaces/listeners.go index 7c2479852..c7dcc4374 100644 --- a/api/ifaces/listeners.go +++ b/api/ifaces/listeners.go @@ -1,3 +1,17 @@ +// Copyright 2016 Iron.io +// +// 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 ifaces import ( diff --git a/api/models/app.go b/api/models/app.go index 83780ce54..64eafb74e 100644 --- a/api/models/app.go +++ b/api/models/app.go @@ -1,3 +1,17 @@ +// Copyright 2016 Iron.io +// +// 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 models import ( diff --git a/api/models/app_wrapper.go b/api/models/app_wrapper.go index 815888261..6e2cdf720 100644 --- a/api/models/app_wrapper.go +++ b/api/models/app_wrapper.go @@ -1,3 +1,17 @@ +// Copyright 2016 Iron.io +// +// 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 models import "github.com/go-openapi/errors" diff --git a/api/models/complete.go b/api/models/complete.go index 2d3b92ac1..5ac3159d0 100644 --- a/api/models/complete.go +++ b/api/models/complete.go @@ -1,3 +1,17 @@ +// Copyright 2016 Iron.io +// +// 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 models import "github.com/go-openapi/strfmt" diff --git a/api/models/config.go b/api/models/config.go index 4a9dc6290..79ae483bc 100644 --- a/api/models/config.go +++ b/api/models/config.go @@ -1,3 +1,17 @@ +// Copyright 2016 Iron.io +// +// 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 models type Config map[string]string diff --git a/api/models/datastore.go b/api/models/datastore.go index e603109c6..05c4ad4fa 100644 --- a/api/models/datastore.go +++ b/api/models/datastore.go @@ -1,3 +1,17 @@ +// Copyright 2016 Iron.io +// +// 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 models import "errors" diff --git a/api/models/error.go b/api/models/error.go index ae7dc12ad..2cdd06440 100644 --- a/api/models/error.go +++ b/api/models/error.go @@ -1,3 +1,17 @@ +// Copyright 2016 Iron.io +// +// 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 models import "errors" diff --git a/api/models/error_body.go b/api/models/error_body.go index 96e78ae2d..6c7bd0b7c 100644 --- a/api/models/error_body.go +++ b/api/models/error_body.go @@ -1,3 +1,17 @@ +// Copyright 2016 Iron.io +// +// 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 models type ErrorBody struct { diff --git a/api/models/id_status.go b/api/models/id_status.go index 70a00bab6..335675089 100644 --- a/api/models/id_status.go +++ b/api/models/id_status.go @@ -1,3 +1,17 @@ +// Copyright 2016 Iron.io +// +// 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 models // This file was generated by the swagger tool. diff --git a/api/models/mq.go b/api/models/mq.go index 8528f3a98..d9cabf6b4 100644 --- a/api/models/mq.go +++ b/api/models/mq.go @@ -1,3 +1,17 @@ +// Copyright 2016 Iron.io +// +// 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 models import "context" diff --git a/api/models/new_task.go b/api/models/new_task.go index 414929161..3b71d687c 100644 --- a/api/models/new_task.go +++ b/api/models/new_task.go @@ -1,3 +1,17 @@ +// Copyright 2016 Iron.io +// +// 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 models // This file was generated by the swagger tool. diff --git a/api/models/reason.go b/api/models/reason.go index cc647ecb4..7bfb97508 100644 --- a/api/models/reason.go +++ b/api/models/reason.go @@ -1,3 +1,17 @@ +// Copyright 2016 Iron.io +// +// 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 models // This file was generated by the swagger tool. diff --git a/api/models/route.go b/api/models/route.go index 5ec7073ac..3a17312cb 100644 --- a/api/models/route.go +++ b/api/models/route.go @@ -1,3 +1,17 @@ +// Copyright 2016 Iron.io +// +// 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 models import ( diff --git a/api/models/route_wrapper.go b/api/models/route_wrapper.go index 0d7e21bdc..9ae7fac53 100644 --- a/api/models/route_wrapper.go +++ b/api/models/route_wrapper.go @@ -1,3 +1,17 @@ +// Copyright 2016 Iron.io +// +// 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 models import "github.com/go-openapi/errors" diff --git a/api/models/runner.go b/api/models/runner.go index 0d51734e6..701b81a9c 100644 --- a/api/models/runner.go +++ b/api/models/runner.go @@ -1,3 +1,17 @@ +// Copyright 2016 Iron.io +// +// 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 models import "errors" diff --git a/api/models/start.go b/api/models/start.go index ec5784090..6b7a94a0d 100644 --- a/api/models/start.go +++ b/api/models/start.go @@ -1,3 +1,17 @@ +// Copyright 2016 Iron.io +// +// 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 models import "github.com/go-openapi/strfmt" diff --git a/api/models/task.go b/api/models/task.go index 3ca5228be..f4ce2b95d 100644 --- a/api/models/task.go +++ b/api/models/task.go @@ -1,3 +1,17 @@ +// Copyright 2016 Iron.io +// +// 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 models // This file was generated by the swagger tool. diff --git a/api/mqs/bolt.go b/api/mqs/bolt.go index beb00db0c..532dec33f 100644 --- a/api/mqs/bolt.go +++ b/api/mqs/bolt.go @@ -1,3 +1,17 @@ +// Copyright 2016 Iron.io +// +// 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 mqs import ( diff --git a/api/mqs/ironmq.go b/api/mqs/ironmq.go index 93ef75dcc..846900ae9 100644 --- a/api/mqs/ironmq.go +++ b/api/mqs/ironmq.go @@ -1,3 +1,17 @@ +// Copyright 2016 Iron.io +// +// 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 mqs import ( diff --git a/api/mqs/memory.go b/api/mqs/memory.go index bcb8b4da1..29390d548 100644 --- a/api/mqs/memory.go +++ b/api/mqs/memory.go @@ -1,3 +1,17 @@ +// Copyright 2016 Iron.io +// +// 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 mqs import ( diff --git a/api/mqs/mock.go b/api/mqs/mock.go index 55d5c257c..de8bd473a 100644 --- a/api/mqs/mock.go +++ b/api/mqs/mock.go @@ -1,3 +1,17 @@ +// Copyright 2016 Iron.io +// +// 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 mqs import ( diff --git a/api/mqs/new.go b/api/mqs/new.go index 9b82fa210..abb2831d7 100644 --- a/api/mqs/new.go +++ b/api/mqs/new.go @@ -1,3 +1,17 @@ +// Copyright 2016 Iron.io +// +// 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 mqs import ( diff --git a/api/mqs/redis.go b/api/mqs/redis.go index 6a3b42712..4e79de76d 100644 --- a/api/mqs/redis.go +++ b/api/mqs/redis.go @@ -1,3 +1,17 @@ +// Copyright 2016 Iron.io +// +// 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 mqs import ( diff --git a/api/runner/async_runner.go b/api/runner/async_runner.go index 907cdea7b..eb77a4136 100644 --- a/api/runner/async_runner.go +++ b/api/runner/async_runner.go @@ -1,3 +1,17 @@ +// Copyright 2016 Iron.io +// +// 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 runner import ( diff --git a/api/runner/async_runner_test.go b/api/runner/async_runner_test.go index febe07ef8..518ba82d5 100644 --- a/api/runner/async_runner_test.go +++ b/api/runner/async_runner_test.go @@ -1,3 +1,17 @@ +// Copyright 2016 Iron.io +// +// 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 runner import ( diff --git a/api/runner/logger.go b/api/runner/logger.go index 52a39deee..f3fb5cf88 100644 --- a/api/runner/logger.go +++ b/api/runner/logger.go @@ -1,3 +1,17 @@ +// Copyright 2016 Iron.io +// +// 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 runner import ( diff --git a/api/runner/metrics.go b/api/runner/metrics.go index dd9b7949f..a25c79916 100644 --- a/api/runner/metrics.go +++ b/api/runner/metrics.go @@ -1,3 +1,17 @@ +// Copyright 2016 Iron.io +// +// 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 runner import ( diff --git a/api/runner/runner.go b/api/runner/runner.go index 6db9e4d0f..3f10830d0 100644 --- a/api/runner/runner.go +++ b/api/runner/runner.go @@ -1,3 +1,17 @@ +// Copyright 2016 Iron.io +// +// 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 runner import ( diff --git a/api/runner/runner_test.go b/api/runner/runner_test.go index dedc05bcb..ee116e794 100644 --- a/api/runner/runner_test.go +++ b/api/runner/runner_test.go @@ -1,3 +1,17 @@ +// Copyright 2016 Iron.io +// +// 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 runner import ( diff --git a/api/runner/task.go b/api/runner/task.go index 5147ad2db..c15871e03 100644 --- a/api/runner/task.go +++ b/api/runner/task.go @@ -1,3 +1,17 @@ +// Copyright 2016 Iron.io +// +// 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 runner import ( diff --git a/api/server/apps_create.go b/api/server/apps_create.go index 804aee564..6fc4d262f 100644 --- a/api/server/apps_create.go +++ b/api/server/apps_create.go @@ -1,3 +1,17 @@ +// Copyright 2016 Iron.io +// +// 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 server import ( diff --git a/api/server/apps_delete.go b/api/server/apps_delete.go index 302a38e0a..7385e68b8 100644 --- a/api/server/apps_delete.go +++ b/api/server/apps_delete.go @@ -1,3 +1,17 @@ +// Copyright 2016 Iron.io +// +// 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 server import ( diff --git a/api/server/apps_get.go b/api/server/apps_get.go index 95ff231ed..64b6d2197 100644 --- a/api/server/apps_get.go +++ b/api/server/apps_get.go @@ -1,3 +1,17 @@ +// Copyright 2016 Iron.io +// +// 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 server import ( diff --git a/api/server/apps_list.go b/api/server/apps_list.go index 881c25c49..4b6f64d84 100644 --- a/api/server/apps_list.go +++ b/api/server/apps_list.go @@ -1,3 +1,17 @@ +// Copyright 2016 Iron.io +// +// 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 server import ( diff --git a/api/server/apps_test.go b/api/server/apps_test.go index 790295b3d..6dbcfa690 100644 --- a/api/server/apps_test.go +++ b/api/server/apps_test.go @@ -1,3 +1,17 @@ +// Copyright 2016 Iron.io +// +// 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 server import ( diff --git a/api/server/apps_update.go b/api/server/apps_update.go index 4b58775f4..3ed896bbe 100644 --- a/api/server/apps_update.go +++ b/api/server/apps_update.go @@ -1,3 +1,17 @@ +// Copyright 2016 Iron.io +// +// 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 server import ( diff --git a/api/server/ping.go b/api/server/ping.go index a00ae0502..72e9304b5 100644 --- a/api/server/ping.go +++ b/api/server/ping.go @@ -1,3 +1,17 @@ +// Copyright 2016 Iron.io +// +// 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 server import ( diff --git a/api/server/routes_create.go b/api/server/routes_create.go index 01d1c3036..888bfca55 100644 --- a/api/server/routes_create.go +++ b/api/server/routes_create.go @@ -1,3 +1,17 @@ +// Copyright 2016 Iron.io +// +// 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 server import ( diff --git a/api/server/routes_delete.go b/api/server/routes_delete.go index c82fae7f2..ee86a4bea 100644 --- a/api/server/routes_delete.go +++ b/api/server/routes_delete.go @@ -1,3 +1,17 @@ +// Copyright 2016 Iron.io +// +// 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 server import ( diff --git a/api/server/routes_get.go b/api/server/routes_get.go index 4ab175dac..1df4ec6cc 100644 --- a/api/server/routes_get.go +++ b/api/server/routes_get.go @@ -1,3 +1,17 @@ +// Copyright 2016 Iron.io +// +// 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 server import ( diff --git a/api/server/routes_list.go b/api/server/routes_list.go index 72baee4f1..38c352710 100644 --- a/api/server/routes_list.go +++ b/api/server/routes_list.go @@ -1,3 +1,17 @@ +// Copyright 2016 Iron.io +// +// 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 server import ( diff --git a/api/server/routes_test.go b/api/server/routes_test.go index 52cd8ae50..dc1609630 100644 --- a/api/server/routes_test.go +++ b/api/server/routes_test.go @@ -1,3 +1,17 @@ +// Copyright 2016 Iron.io +// +// 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 server import ( diff --git a/api/server/routes_update.go b/api/server/routes_update.go index 93b0e23db..47a87baec 100644 --- a/api/server/routes_update.go +++ b/api/server/routes_update.go @@ -1,3 +1,17 @@ +// Copyright 2016 Iron.io +// +// 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 server import ( diff --git a/api/server/runner.go b/api/server/runner.go index 766a0b545..f7d5bc957 100644 --- a/api/server/runner.go +++ b/api/server/runner.go @@ -1,3 +1,17 @@ +// Copyright 2016 Iron.io +// +// 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 server import ( diff --git a/api/server/runner_async_test.go b/api/server/runner_async_test.go index 372f37fd8..3644532b9 100644 --- a/api/server/runner_async_test.go +++ b/api/server/runner_async_test.go @@ -1,3 +1,17 @@ +// Copyright 2016 Iron.io +// +// 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 server import ( diff --git a/api/server/runner_test.go b/api/server/runner_test.go index 16b90e438..7868bf9b2 100644 --- a/api/server/runner_test.go +++ b/api/server/runner_test.go @@ -1,3 +1,17 @@ +// Copyright 2016 Iron.io +// +// 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 server import ( diff --git a/api/server/server.go b/api/server/server.go index 19635367a..86b7eb8f4 100644 --- a/api/server/server.go +++ b/api/server/server.go @@ -1,3 +1,17 @@ +// Copyright 2016 Iron.io +// +// 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 server import ( diff --git a/api/server/server_test.go b/api/server/server_test.go index f7d17a30c..780227735 100644 --- a/api/server/server_test.go +++ b/api/server/server_test.go @@ -1,3 +1,17 @@ +// Copyright 2016 Iron.io +// +// 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 server import ( diff --git a/api/server/special_handler_context.go b/api/server/special_handler_context.go index 3ae42728e..e52fbf515 100644 --- a/api/server/special_handler_context.go +++ b/api/server/special_handler_context.go @@ -1,3 +1,17 @@ +// Copyright 2016 Iron.io +// +// 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 server import ( diff --git a/api/server/tree.go b/api/server/tree.go index 7c756a666..c7078cabe 100644 --- a/api/server/tree.go +++ b/api/server/tree.go @@ -1,6 +1,16 @@ -// Copyright 2013 Julien Schmidt. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be found -// in the LICENSE file. +// Copyright 2016 Iron.io +// +// 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 server diff --git a/api/server/version.go b/api/server/version.go index 6a0580d16..b5e106941 100644 --- a/api/server/version.go +++ b/api/server/version.go @@ -1,3 +1,17 @@ +// Copyright 2016 Iron.io +// +// 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 server import ( diff --git a/build.ps1 b/build.ps1 index 943f7cb60..6e8e0d58a 100644 --- a/build.ps1 +++ b/build.ps1 @@ -1,3 +1,17 @@ +# Copyright 2016 Iron.io +# +# 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 script for PowerShell $ErrorActionPreference = "Stop" diff --git a/clients/build.rb b/clients/build.rb index 3cc3491d6..d83650dd5 100644 --- a/clients/build.rb +++ b/clients/build.rb @@ -1,3 +1,17 @@ +# Copyright 2016 Iron.io +# +# 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. + require 'yaml' require 'open-uri' require 'http' diff --git a/docs/howto/go/Dockerfile b/docs/howto/go/Dockerfile index 063457ab3..26993f964 100644 --- a/docs/howto/go/Dockerfile +++ b/docs/howto/go/Dockerfile @@ -1,3 +1,17 @@ +# Copyright 2016 Iron.io +# +# 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. + FROM iron/go WORKDIR /app diff --git a/docs/howto/go/hello.go b/docs/howto/go/hello.go index fa1ef4b03..d10c0d306 100644 --- a/docs/howto/go/hello.go +++ b/docs/howto/go/hello.go @@ -1,3 +1,17 @@ +// Copyright 2016 Iron.io +// +// 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/docs/howto/node/Dockerfile b/docs/howto/node/Dockerfile index 01e9a2049..91bcbb688 100644 --- a/docs/howto/node/Dockerfile +++ b/docs/howto/node/Dockerfile @@ -1,3 +1,17 @@ +# Copyright 2016 Iron.io +# +# 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. + FROM iron/node WORKDIR /app diff --git a/docs/howto/php/Dockerfile b/docs/howto/php/Dockerfile index e92bd9d0a..5f9162fe3 100644 --- a/docs/howto/php/Dockerfile +++ b/docs/howto/php/Dockerfile @@ -1,3 +1,17 @@ +# Copyright 2016 Iron.io +# +# 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. + FROM iron/php WORKDIR /app diff --git a/docs/howto/python/Dockerfile b/docs/howto/python/Dockerfile index b70c9eb48..1e6ca0237 100644 --- a/docs/howto/python/Dockerfile +++ b/docs/howto/python/Dockerfile @@ -1,3 +1,17 @@ +# Copyright 2016 Iron.io +# +# 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. + FROM iron/python:2 WORKDIR /app diff --git a/examples/Dockerfile.glide b/examples/Dockerfile.glide index 996a8b7cf..200359098 100644 --- a/examples/Dockerfile.glide +++ b/examples/Dockerfile.glide @@ -1,3 +1,17 @@ +# Copyright 2016 Iron.io +# +# 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. + FROM iron/go:dev RUN mkdir -p /go/src/github.com/Masterminds diff --git a/examples/blog/Dockerfile b/examples/blog/Dockerfile index f5f8ab200..b54d3d304 100644 --- a/examples/blog/Dockerfile +++ b/examples/blog/Dockerfile @@ -1,3 +1,17 @@ +# Copyright 2016 Iron.io +# +# 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. + FROM iron/go ADD func . diff --git a/examples/blog/build.sh b/examples/blog/build.sh index 198caaf19..dd5cf1691 100755 --- a/examples/blog/build.sh +++ b/examples/blog/build.sh @@ -1,4 +1,19 @@ #!/bin/bash + +# Copyright 2016 Iron.io +# +# 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. + set -ex FUNCPKG=$(pwd | sed "s|$GOPATH/src/||") diff --git a/examples/blog/database/database.go b/examples/blog/database/database.go index 55c05f007..80deeff99 100644 --- a/examples/blog/database/database.go +++ b/examples/blog/database/database.go @@ -1,3 +1,17 @@ +// Copyright 2016 Iron.io +// +// 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 "gopkg.in/mgo.v2" diff --git a/examples/blog/database/post.go b/examples/blog/database/post.go index d6d63902f..6e585f13a 100644 --- a/examples/blog/database/post.go +++ b/examples/blog/database/post.go @@ -1,3 +1,17 @@ +// Copyright 2016 Iron.io +// +// 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 ( diff --git a/examples/blog/database/user.go b/examples/blog/database/user.go index c6bff9f0a..cba653e47 100644 --- a/examples/blog/database/user.go +++ b/examples/blog/database/user.go @@ -1,3 +1,17 @@ +// Copyright 2016 Iron.io +// +// 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 ( diff --git a/examples/blog/function.go b/examples/blog/function.go index 75ca27e67..cd3c1dd71 100644 --- a/examples/blog/function.go +++ b/examples/blog/function.go @@ -1,3 +1,17 @@ +// Copyright 2016 Iron.io +// +// 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/examples/blog/models/post.go b/examples/blog/models/post.go index ef964c458..07e17096e 100644 --- a/examples/blog/models/post.go +++ b/examples/blog/models/post.go @@ -1,3 +1,17 @@ +// Copyright 2016 Iron.io +// +// 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 models import "gopkg.in/mgo.v2/bson" diff --git a/examples/blog/models/user.go b/examples/blog/models/user.go index a4809e0a5..b85dff2a8 100644 --- a/examples/blog/models/user.go +++ b/examples/blog/models/user.go @@ -1,3 +1,17 @@ +// Copyright 2016 Iron.io +// +// 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 models import "golang.org/x/crypto/bcrypt" diff --git a/examples/blog/routes/post_create.go b/examples/blog/routes/post_create.go index dca60a148..df541fe09 100644 --- a/examples/blog/routes/post_create.go +++ b/examples/blog/routes/post_create.go @@ -1,3 +1,17 @@ +// Copyright 2016 Iron.io +// +// 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 route import ( diff --git a/examples/blog/routes/post_list.go b/examples/blog/routes/post_list.go index 1131b1360..39e0b0a70 100644 --- a/examples/blog/routes/post_list.go +++ b/examples/blog/routes/post_list.go @@ -1,3 +1,17 @@ +// Copyright 2016 Iron.io +// +// 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 route import ( diff --git a/examples/blog/routes/post_read.go b/examples/blog/routes/post_read.go index 70d9674f1..b30d86154 100644 --- a/examples/blog/routes/post_read.go +++ b/examples/blog/routes/post_read.go @@ -1,3 +1,17 @@ +// Copyright 2016 Iron.io +// +// 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 route import ( diff --git a/examples/blog/routes/server.go b/examples/blog/routes/server.go index c202eb287..1ff9ce12b 100644 --- a/examples/blog/routes/server.go +++ b/examples/blog/routes/server.go @@ -1,3 +1,17 @@ +// Copyright 2016 Iron.io +// +// 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 route import ( diff --git a/examples/blog/test.sh b/examples/blog/test.sh index ed95a4b07..72967bbd3 100755 --- a/examples/blog/test.sh +++ b/examples/blog/test.sh @@ -1,4 +1,19 @@ #!/bin/bash + +# Copyright 2016 Iron.io +# +# 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. + set -x ./build.sh diff --git a/examples/build-glide.sh b/examples/build-glide.sh index 6b9965ba8..8426ed377 100755 --- a/examples/build-glide.sh +++ b/examples/build-glide.sh @@ -1,3 +1,17 @@ +# Copyright 2016 Iron.io +# +# 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. + EXAMPLE=`pwd` cd .. diff --git a/examples/caddy-lb/build.sh b/examples/caddy-lb/build.sh index 35c18663d..a18e06038 100755 --- a/examples/caddy-lb/build.sh +++ b/examples/caddy-lb/build.sh @@ -1,4 +1,19 @@ #!/bin/bash + +# Copyright 2016 Iron.io +# +# 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. + set -ex docker-compose up \ No newline at end of file diff --git a/examples/caddy-lb/test.sh b/examples/caddy-lb/test.sh index 8dabc7407..f7abb5fe5 100755 --- a/examples/caddy-lb/test.sh +++ b/examples/caddy-lb/test.sh @@ -1,3 +1,18 @@ #!/bin/bash + +# Copyright 2016 Iron.io +# +# 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. + set -x diff --git a/examples/checker/Dockerfile b/examples/checker/Dockerfile index 44987d673..b762cf697 100644 --- a/examples/checker/Dockerfile +++ b/examples/checker/Dockerfile @@ -1,3 +1,17 @@ +# Copyright 2016 Iron.io +# +# 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. + FROM iron/ruby:dev WORKDIR /function diff --git a/examples/checker/build.sh b/examples/checker/build.sh index 5d9cf9a94..48bce0a1f 100755 --- a/examples/checker/build.sh +++ b/examples/checker/build.sh @@ -1,4 +1,19 @@ #!/bin/bash + +# Copyright 2016 Iron.io +# +# 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. + set -ex # build image diff --git a/examples/checker/function.rb b/examples/checker/function.rb index 5b8e0e14e..5c18f0de1 100644 --- a/examples/checker/function.rb +++ b/examples/checker/function.rb @@ -1,3 +1,17 @@ +# Copyright 2016 Iron.io +# +# 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. + require 'json' payload = STDIN.read diff --git a/examples/checker/test.sh b/examples/checker/test.sh index a3c9ff1c7..e21807579 100755 --- a/examples/checker/test.sh +++ b/examples/checker/test.sh @@ -1,3 +1,17 @@ +# Copyright 2016 Iron.io +# +# 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. + #!/bin/bash set -x diff --git a/examples/echo/Dockerfile b/examples/echo/Dockerfile index e60bd3b48..94bb32fc4 100644 --- a/examples/echo/Dockerfile +++ b/examples/echo/Dockerfile @@ -1,3 +1,17 @@ +# Copyright 2016 Iron.io +# +# 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. + FROM iron/ruby:dev WORKDIR /function diff --git a/examples/echo/build.sh b/examples/echo/build.sh index 8b35ad511..248a1e3b7 100755 --- a/examples/echo/build.sh +++ b/examples/echo/build.sh @@ -1,3 +1,17 @@ +# Copyright 2016 Iron.io +# +# 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. + #!/bin/bash set -ex diff --git a/examples/echo/function.rb b/examples/echo/function.rb index aa49581c6..8cb787758 100644 --- a/examples/echo/function.rb +++ b/examples/echo/function.rb @@ -1,3 +1,17 @@ +# Copyright 2016 Iron.io +# +# 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. + require 'json' payload = STDIN.read diff --git a/examples/echo/test.sh b/examples/echo/test.sh index ba4e41231..e3c2259bc 100755 --- a/examples/echo/test.sh +++ b/examples/echo/test.sh @@ -1,4 +1,19 @@ #!/bin/bash + +# Copyright 2016 Iron.io +# +# 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. + set -x ./build.sh diff --git a/examples/error/Dockerfile b/examples/error/Dockerfile index f810193e9..7b87e3075 100644 --- a/examples/error/Dockerfile +++ b/examples/error/Dockerfile @@ -1,3 +1,17 @@ +# Copyright 2016 Iron.io +# +# 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. + FROM iron/ruby:dev WORKDIR /worker diff --git a/examples/error/build.sh b/examples/error/build.sh index c93fa16b0..1b4d16f6e 100755 --- a/examples/error/build.sh +++ b/examples/error/build.sh @@ -1,4 +1,19 @@ #!/bin/bash + +# Copyright 2016 Iron.io +# +# 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. + set -ex docker build -t iron/func-error . \ No newline at end of file diff --git a/examples/error/function.rb b/examples/error/function.rb index a86263bda..3a4fd753c 100644 --- a/examples/error/function.rb +++ b/examples/error/function.rb @@ -1,3 +1,17 @@ +# Copyright 2016 Iron.io +# +# 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. + require 'json' payload = STDIN.read diff --git a/examples/error/test.sh b/examples/error/test.sh index 133cf550f..945062199 100755 --- a/examples/error/test.sh +++ b/examples/error/test.sh @@ -1,4 +1,19 @@ #!/bin/bash + +# Copyright 2016 Iron.io +# +# 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. + set -x ./build.sh diff --git a/examples/hello-go/Dockerfile b/examples/hello-go/Dockerfile index f5f8ab200..b54d3d304 100644 --- a/examples/hello-go/Dockerfile +++ b/examples/hello-go/Dockerfile @@ -1,3 +1,17 @@ +# Copyright 2016 Iron.io +# +# 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. + FROM iron/go ADD func . diff --git a/examples/hello-go/build.sh b/examples/hello-go/build.sh index 61bf638d3..c831e1d76 100755 --- a/examples/hello-go/build.sh +++ b/examples/hello-go/build.sh @@ -1,4 +1,19 @@ #!/bin/bash + +# Copyright 2016 Iron.io +# +# 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. + set -ex FUNCPKG=$(pwd | sed "s|$GOPATH/src/||") diff --git a/examples/hello-go/function.go b/examples/hello-go/function.go index 60bb44f02..7e4cee2b7 100644 --- a/examples/hello-go/function.go +++ b/examples/hello-go/function.go @@ -1,3 +1,17 @@ +// Copyright 2016 Iron.io +// +// 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/examples/hello-go/hello-async.sh b/examples/hello-go/hello-async.sh index 568f2dc15..f16b0baf5 100755 --- a/examples/hello-go/hello-async.sh +++ b/examples/hello-go/hello-async.sh @@ -1,5 +1,20 @@ #!/bin/bash +# Copyright 2016 Iron.io +# +# 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. + + HOST="${1:-localhost:8080}" REQ="${2:-1}" diff --git a/examples/hello-go/hello-sync.sh b/examples/hello-go/hello-sync.sh index 898b262ac..20e25f3f2 100755 --- a/examples/hello-go/hello-sync.sh +++ b/examples/hello-go/hello-sync.sh @@ -1,5 +1,20 @@ #!/bin/bash +# Copyright 2016 Iron.io +# +# 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. + + HOST="${1:-localhost:8080}" REQ="${2:-1}" diff --git a/examples/hello-go/test.sh b/examples/hello-go/test.sh index 7f3a0e581..deec5125b 100755 --- a/examples/hello-go/test.sh +++ b/examples/hello-go/test.sh @@ -1,3 +1,17 @@ +# Copyright 2016 Iron.io +# +# 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. + #!/bin/bash set -x diff --git a/examples/hello-ruby/Dockerfile b/examples/hello-ruby/Dockerfile index f6c10018d..0d81c6815 100644 --- a/examples/hello-ruby/Dockerfile +++ b/examples/hello-ruby/Dockerfile @@ -1,3 +1,17 @@ +# Copyright 2016 Iron.io +# +# 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. + FROM iron/ruby:dev WORKDIR /function diff --git a/examples/hello-ruby/build.sh b/examples/hello-ruby/build.sh index 4d8d73dbc..e1ddf8b1f 100755 --- a/examples/hello-ruby/build.sh +++ b/examples/hello-ruby/build.sh @@ -1,4 +1,19 @@ #!/bin/bash + +# Copyright 2016 Iron.io +# +# 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. + set -ex docker build -t iron/func-hello-ruby . \ No newline at end of file diff --git a/examples/hello-ruby/function.rb b/examples/hello-ruby/function.rb index e0eb673a5..2899091d2 100644 --- a/examples/hello-ruby/function.rb +++ b/examples/hello-ruby/function.rb @@ -1,3 +1,17 @@ +# Copyright 2016 Iron.io +# +# 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. + require 'json' name = "World" diff --git a/examples/hello-ruby/hello-async.sh b/examples/hello-ruby/hello-async.sh index d18bfa7b2..4f2f9a635 100755 --- a/examples/hello-ruby/hello-async.sh +++ b/examples/hello-ruby/hello-async.sh @@ -1,5 +1,20 @@ #!/bin/bash +# Copyright 2016 Iron.io +# +# 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. + + HOST="${1:-localhost:8080}" REQ="${2:-1}" diff --git a/examples/hello-ruby/hello-sync.sh b/examples/hello-ruby/hello-sync.sh index ff3d595f9..2274fee79 100755 --- a/examples/hello-ruby/hello-sync.sh +++ b/examples/hello-ruby/hello-sync.sh @@ -1,5 +1,19 @@ #!/bin/bash +# Copyright 2016 Iron.io +# +# 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. + HOST="${1:-localhost:8080}" REQ="${2:-1}" diff --git a/examples/hello-ruby/test.sh b/examples/hello-ruby/test.sh index 2a533a641..8bfeb5f00 100755 --- a/examples/hello-ruby/test.sh +++ b/examples/hello-ruby/test.sh @@ -1,4 +1,19 @@ #!/bin/bash + +# Copyright 2016 Iron.io +# +# 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. + set -x ./build.sh diff --git a/examples/redis/Dockerfile b/examples/redis/Dockerfile index f5f8ab200..b54d3d304 100644 --- a/examples/redis/Dockerfile +++ b/examples/redis/Dockerfile @@ -1,3 +1,17 @@ +# Copyright 2016 Iron.io +# +# 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. + FROM iron/go ADD func . diff --git a/examples/redis/build.sh b/examples/redis/build.sh index d3e8997d4..70a48fcac 100755 --- a/examples/redis/build.sh +++ b/examples/redis/build.sh @@ -1,4 +1,19 @@ #!/bin/bash + +# Copyright 2016 Iron.io +# +# 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. + set -ex FUNCPKG=$(pwd | sed "s|$GOPATH/src/||") diff --git a/examples/redis/function.go b/examples/redis/function.go index e83717143..2c5545279 100644 --- a/examples/redis/function.go +++ b/examples/redis/function.go @@ -1,3 +1,17 @@ +// Copyright 2016 Iron.io +// +// 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/examples/redis/test.sh b/examples/redis/test.sh index eee6486ac..69598849b 100755 --- a/examples/redis/test.sh +++ b/examples/redis/test.sh @@ -1,4 +1,19 @@ #!/bin/bash + +# Copyright 2016 Iron.io +# +# 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. + set -x ./build.sh diff --git a/examples/sleeper/Dockerfile b/examples/sleeper/Dockerfile index f6c10018d..0d81c6815 100644 --- a/examples/sleeper/Dockerfile +++ b/examples/sleeper/Dockerfile @@ -1,3 +1,17 @@ +# Copyright 2016 Iron.io +# +# 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. + FROM iron/ruby:dev WORKDIR /function diff --git a/examples/sleeper/build.sh b/examples/sleeper/build.sh index c062b83ee..3f1741dd1 100755 --- a/examples/sleeper/build.sh +++ b/examples/sleeper/build.sh @@ -1,4 +1,19 @@ #!/bin/bash + +# Copyright 2016 Iron.io +# +# 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. + set -ex docker build -t iron/func-sleeper . \ No newline at end of file diff --git a/examples/sleeper/function.rb b/examples/sleeper/function.rb index bdb56cd3d..54b0fd308 100644 --- a/examples/sleeper/function.rb +++ b/examples/sleeper/function.rb @@ -1,3 +1,17 @@ +# Copyright 2016 Iron.io +# +# 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. + require 'json' payload = STDIN.read diff --git a/examples/sleeper/test.sh b/examples/sleeper/test.sh index e1c80fa6c..fc3711174 100755 --- a/examples/sleeper/test.sh +++ b/examples/sleeper/test.sh @@ -1,9 +1,24 @@ #!/bin/bash + +# Copyright 2016 Iron.io +# +# 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. + set -x ./build.sh -PAYLOAD='{"sleep": 5}' +PAYLOAD='{"sleep": 5}' # test it echo $PAYLOAD | docker run --rm -i -e TEST=1 iron/func-sleeper \ No newline at end of file diff --git a/examples/tests.sh b/examples/tests.sh index 2e206065c..e31e9aad8 100755 --- a/examples/tests.sh +++ b/examples/tests.sh @@ -1,5 +1,19 @@ #!/bin/bash +# Copyright 2016 Iron.io +# +# 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. + testlist=`find -L "$@" -type f -executable -name test.sh` for test in $testlist diff --git a/examples/triggers/openstack-ceilometer/devstack.sh b/examples/triggers/openstack-ceilometer/devstack.sh index f113ab942..d9afbc9f7 100644 --- a/examples/triggers/openstack-ceilometer/devstack.sh +++ b/examples/triggers/openstack-ceilometer/devstack.sh @@ -1,5 +1,20 @@ #!/bin/bash +# Copyright 2016 Iron.io +# +# 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. + + OPENSTACK_VERSION=stable/mitaka sudo apt-get update -qqy diff --git a/examples/twitter/Dockerfile b/examples/twitter/Dockerfile index f5f8ab200..b54d3d304 100644 --- a/examples/twitter/Dockerfile +++ b/examples/twitter/Dockerfile @@ -1,3 +1,17 @@ +# Copyright 2016 Iron.io +# +# 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. + FROM iron/go ADD func . diff --git a/examples/twitter/build.sh b/examples/twitter/build.sh index 0dc577168..b0511e67c 100755 --- a/examples/twitter/build.sh +++ b/examples/twitter/build.sh @@ -1,3 +1,17 @@ +# Copyright 2016 Iron.io +# +# 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. + #!/bin/bash set -ex diff --git a/examples/twitter/function.go b/examples/twitter/function.go index d20a2e8da..b0a1f1060 100644 --- a/examples/twitter/function.go +++ b/examples/twitter/function.go @@ -1,3 +1,17 @@ +// Copyright 2016 Iron.io +// +// 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/examples/twitter/test.sh b/examples/twitter/test.sh index 59e170323..c6c2f561a 100755 --- a/examples/twitter/test.sh +++ b/examples/twitter/test.sh @@ -1,3 +1,17 @@ +# Copyright 2016 Iron.io +# +# 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. + #!/bin/bash set -x diff --git a/fnctl/Dockerfile b/fnctl/Dockerfile index 3169af3a2..f2299fb9c 100644 --- a/fnctl/Dockerfile +++ b/fnctl/Dockerfile @@ -1,3 +1,17 @@ +# Copyright 2016 Iron.io +# +# 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. + FROM alpine diff --git a/fnctl/apps.go b/fnctl/apps.go index ae0d2506c..2cd40e6de 100644 --- a/fnctl/apps.go +++ b/fnctl/apps.go @@ -1,3 +1,17 @@ +// Copyright 2016 Iron.io +// +// 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/fnctl/build.go b/fnctl/build.go index 21f5afc07..d5ed968a6 100644 --- a/fnctl/build.go +++ b/fnctl/build.go @@ -1,3 +1,17 @@ +// Copyright 2016 Iron.io +// +// 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/fnctl/bump.go b/fnctl/bump.go index 4ea292b89..da05dfc32 100644 --- a/fnctl/bump.go +++ b/fnctl/bump.go @@ -1,3 +1,17 @@ +// Copyright 2016 Iron.io +// +// 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/fnctl/common.go b/fnctl/common.go index 03f260231..c24efaa35 100644 --- a/fnctl/common.go +++ b/fnctl/common.go @@ -1,3 +1,17 @@ +// Copyright 2016 Iron.io +// +// 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/fnctl/entrypoint.sh b/fnctl/entrypoint.sh index 124ca62c7..f03b28ae2 100644 --- a/fnctl/entrypoint.sh +++ b/fnctl/entrypoint.sh @@ -1,5 +1,20 @@ #!/bin/sh +# Copyright 2016 Iron.io +# +# 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. + + HOST=$(/sbin/ip route|awk '/default/ { print $3 }') echo "$HOST default localhost localhost.local" > /etc/hosts diff --git a/fnctl/install b/fnctl/install index c826471b5..ea9f2eb20 100644 --- a/fnctl/install +++ b/fnctl/install @@ -1,4 +1,19 @@ #!/bin/sh + +# Copyright 2016 Iron.io +# +# 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. + set -e # # This script is meant for quick & easy install via: diff --git a/fnctl/lambda.go b/fnctl/lambda.go index 769d1a7df..f8f51ebe4 100644 --- a/fnctl/lambda.go +++ b/fnctl/lambda.go @@ -1,3 +1,17 @@ +// Copyright 2016 Iron.io +// +// 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/fnctl/main.go b/fnctl/main.go index 69e9f6c1a..78ae38c90 100644 --- a/fnctl/main.go +++ b/fnctl/main.go @@ -1,3 +1,17 @@ +// Copyright 2016 Iron.io +// +// 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/fnctl/publish.go b/fnctl/publish.go index 472fec987..765cd145a 100644 --- a/fnctl/publish.go +++ b/fnctl/publish.go @@ -1,3 +1,17 @@ +// Copyright 2016 Iron.io +// +// 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/fnctl/routes.go b/fnctl/routes.go index df4a249e3..04206b0a8 100644 --- a/fnctl/routes.go +++ b/fnctl/routes.go @@ -1,3 +1,17 @@ +// Copyright 2016 Iron.io +// +// 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/fnctl/run.go b/fnctl/run.go index 0cf6c6e5d..3383039d0 100644 --- a/fnctl/run.go +++ b/fnctl/run.go @@ -1,3 +1,17 @@ +// Copyright 2016 Iron.io +// +// 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/main.go b/main.go index 5864072e6..279cfcdee 100644 --- a/main.go +++ b/main.go @@ -1,3 +1,17 @@ +// Copyright 2016 Iron.io +// +// 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/release.sh b/release.sh index 075ce68a3..e21c6075e 100755 --- a/release.sh +++ b/release.sh @@ -1,4 +1,19 @@ #!/bin/bash + +# Copyright 2016 Iron.io +# +# 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. + set -ex user="iron" diff --git a/tests/Dockerfile b/tests/Dockerfile index 594f5e9d7..bef923cf5 100644 --- a/tests/Dockerfile +++ b/tests/Dockerfile @@ -1,3 +1,17 @@ +# Copyright 2016 Iron.io +# +# 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. + FROM iron/ruby:dev WORKDIR /app diff --git a/tests/build.sh b/tests/build.sh index dc8c021fe..722767b35 100755 --- a/tests/build.sh +++ b/tests/build.sh @@ -1,3 +1,17 @@ +# Copyright 2016 Iron.io +# +# 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. + set -ex docker build -t iron/worker-test . diff --git a/tests/run.sh b/tests/run.sh index a9db9c69a..496063c53 100755 --- a/tests/run.sh +++ b/tests/run.sh @@ -1,3 +1,17 @@ +# Copyright 2016 Iron.io +# +# 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. + set -ex ./build.sh diff --git a/tests/test.rb b/tests/test.rb index df4940b9f..3d864c8d3 100644 --- a/tests/test.rb +++ b/tests/test.rb @@ -1,3 +1,17 @@ +# Copyright 2016 Iron.io +# +# 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. + require 'test/unit' require 'worker_ruby' require 'net/http' diff --git a/tests/utils.rb b/tests/utils.rb index d93d1c299..e2e201b3f 100644 --- a/tests/utils.rb +++ b/tests/utils.rb @@ -1,3 +1,17 @@ +# Copyright 2016 Iron.io +# +# 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. + require 'open3' class ExecError < StandardError