From af0ccc9a4506b4450e5008df4ab14eaf2714216e Mon Sep 17 00:00:00 2001 From: "Alex Ellis (VMware)" Date: Mon, 3 Sep 2018 13:26:58 +0100 Subject: [PATCH] Add Copyright headers where missing in handlers - Added Copyright in handlers where missing - Renamed Project to Author(s) where needed Signed-off-by: Alex Ellis (VMware) --- gateway/handlers/baseurlresolver_test.go | 3 +++ gateway/handlers/basic_auth.go | 3 +++ gateway/handlers/basic_auth_test.go | 3 +++ gateway/handlers/callid_middleware.go | 3 +++ gateway/handlers/cors.go | 3 +++ gateway/handlers/cors_test.go | 3 +++ gateway/handlers/forwarding_proxy.go | 3 +++ gateway/handlers/forwarding_proxy_test.go | 3 +++ gateway/handlers/function_cache.go | 2 +- gateway/handlers/function_cache_test.go | 3 +++ .../function_prefix_trimming_url_path_transformer_test.go | 3 +++ gateway/handlers/infohandler.go | 3 +++ gateway/handlers/scaling.go | 2 +- gateway/handlers/service_query.go | 3 +++ gateway/handlers/transparent_url_path_transformer_test.go | 3 +++ 15 files changed, 41 insertions(+), 2 deletions(-) diff --git a/gateway/handlers/baseurlresolver_test.go b/gateway/handlers/baseurlresolver_test.go index a69ab74d..db32015d 100644 --- a/gateway/handlers/baseurlresolver_test.go +++ b/gateway/handlers/baseurlresolver_test.go @@ -1,3 +1,6 @@ +// Copyright (c) OpenFaaS Author(s). All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + package handlers import ( diff --git a/gateway/handlers/basic_auth.go b/gateway/handlers/basic_auth.go index d20da584..1c2be23b 100644 --- a/gateway/handlers/basic_auth.go +++ b/gateway/handlers/basic_auth.go @@ -1,3 +1,6 @@ +// Copyright (c) OpenFaaS Author(s). All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + package handlers import ( diff --git a/gateway/handlers/basic_auth_test.go b/gateway/handlers/basic_auth_test.go index b666597e..b1e1d983 100644 --- a/gateway/handlers/basic_auth_test.go +++ b/gateway/handlers/basic_auth_test.go @@ -1,3 +1,6 @@ +// Copyright (c) OpenFaaS Author(s). All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + package handlers import ( diff --git a/gateway/handlers/callid_middleware.go b/gateway/handlers/callid_middleware.go index 666575cb..a1ddea54 100644 --- a/gateway/handlers/callid_middleware.go +++ b/gateway/handlers/callid_middleware.go @@ -1,3 +1,6 @@ +// Copyright (c) OpenFaaS Author(s). All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + package handlers import ( diff --git a/gateway/handlers/cors.go b/gateway/handlers/cors.go index 29b1c3a3..75b0c943 100644 --- a/gateway/handlers/cors.go +++ b/gateway/handlers/cors.go @@ -1,3 +1,6 @@ +// Copyright (c) OpenFaaS Author(s). All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + package handlers import "net/http" diff --git a/gateway/handlers/cors_test.go b/gateway/handlers/cors_test.go index 6d942aec..87841054 100644 --- a/gateway/handlers/cors_test.go +++ b/gateway/handlers/cors_test.go @@ -1,3 +1,6 @@ +// Copyright (c) OpenFaaS Author(s). All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + package handlers import ( diff --git a/gateway/handlers/forwarding_proxy.go b/gateway/handlers/forwarding_proxy.go index 495a0875..52e0066b 100644 --- a/gateway/handlers/forwarding_proxy.go +++ b/gateway/handlers/forwarding_proxy.go @@ -1,3 +1,6 @@ +// Copyright (c) OpenFaaS Author(s). All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + package handlers import ( diff --git a/gateway/handlers/forwarding_proxy_test.go b/gateway/handlers/forwarding_proxy_test.go index 3cb50762..a5f2eabd 100644 --- a/gateway/handlers/forwarding_proxy_test.go +++ b/gateway/handlers/forwarding_proxy_test.go @@ -1,3 +1,6 @@ +// Copyright (c) OpenFaaS Author(s). All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + package handlers import ( diff --git a/gateway/handlers/function_cache.go b/gateway/handlers/function_cache.go index 852ec3b6..58a835e3 100644 --- a/gateway/handlers/function_cache.go +++ b/gateway/handlers/function_cache.go @@ -1,4 +1,4 @@ -// Copyright (c) OpenFaaS Project. All rights reserved. +// Copyright (c) OpenFaaS Author(s). All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. package handlers diff --git a/gateway/handlers/function_cache_test.go b/gateway/handlers/function_cache_test.go index 6bbbc812..8d0cb064 100644 --- a/gateway/handlers/function_cache_test.go +++ b/gateway/handlers/function_cache_test.go @@ -1,3 +1,6 @@ +// Copyright (c) OpenFaaS Author(s). All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + package handlers import ( diff --git a/gateway/handlers/function_prefix_trimming_url_path_transformer_test.go b/gateway/handlers/function_prefix_trimming_url_path_transformer_test.go index 67f5bc75..9ecc358f 100644 --- a/gateway/handlers/function_prefix_trimming_url_path_transformer_test.go +++ b/gateway/handlers/function_prefix_trimming_url_path_transformer_test.go @@ -1,3 +1,6 @@ +// Copyright (c) OpenFaaS Author(s). All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + package handlers import ( diff --git a/gateway/handlers/infohandler.go b/gateway/handlers/infohandler.go index 6a868a47..7c70bf69 100644 --- a/gateway/handlers/infohandler.go +++ b/gateway/handlers/infohandler.go @@ -1,3 +1,6 @@ +// Copyright (c) OpenFaaS Author(s). All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + package handlers import ( diff --git a/gateway/handlers/scaling.go b/gateway/handlers/scaling.go index b37da38c..5827078d 100644 --- a/gateway/handlers/scaling.go +++ b/gateway/handlers/scaling.go @@ -1,4 +1,4 @@ -// Copyright (c) OpenFaaS Project. All rights reserved. +// Copyright (c) OpenFaaS Author(s). All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. package handlers diff --git a/gateway/handlers/service_query.go b/gateway/handlers/service_query.go index c0568447..8139b898 100644 --- a/gateway/handlers/service_query.go +++ b/gateway/handlers/service_query.go @@ -1,3 +1,6 @@ +// Copyright (c) OpenFaaS Author(s). All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + package handlers // ServiceQuery provides interface for replica querying/setting diff --git a/gateway/handlers/transparent_url_path_transformer_test.go b/gateway/handlers/transparent_url_path_transformer_test.go index b628db54..beb60ddf 100644 --- a/gateway/handlers/transparent_url_path_transformer_test.go +++ b/gateway/handlers/transparent_url_path_transformer_test.go @@ -1,3 +1,6 @@ +// Copyright (c) OpenFaaS Author(s). All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + package handlers import (