diff --git a/Makefile b/Makefile index 45f7291d6..b5eb4fe7e 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,18 @@ - +# +# Copyright (C) 2023, Pelican Project, Morgridge Institute for Research +# +# 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. +# CONTAINER_TOOL := docker diff --git a/acquire_token.go b/acquire_token.go index 7a4643c0b..2fa89fdde 100644 --- a/acquire_token.go +++ b/acquire_token.go @@ -1,3 +1,21 @@ +/*************************************************************** + * + * Copyright (C) 2023, Pelican Project, Morgridge Institute for Research + * + * 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 pelican import ( diff --git a/classads/classads.go b/classads/classads.go index 9b7f46869..a6ab18117 100644 --- a/classads/classads.go +++ b/classads/classads.go @@ -1,3 +1,21 @@ +/*************************************************************** + * + * Copyright (C) 2023, University of Nebraska-Lincoln + * + * 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 classads import ( diff --git a/classads/classads_test.go b/classads/classads_test.go index dc6bd19f0..b2514ad51 100644 --- a/classads/classads_test.go +++ b/classads/classads_test.go @@ -1,3 +1,21 @@ +/*************************************************************** + * + * Copyright (C) 2023, University of Nebraska-Lincoln + * + * 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 classads import ( diff --git a/cmd/config_mgr.go b/cmd/config_mgr.go index 70f75d697..627341c65 100644 --- a/cmd/config_mgr.go +++ b/cmd/config_mgr.go @@ -1,3 +1,21 @@ +/*************************************************************** + * + * Copyright (C) 2023, Pelican Project, Morgridge Institute for Research + * + * 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/cmd/director.go b/cmd/director.go index bcecb48be..f56e5cf84 100644 --- a/cmd/director.go +++ b/cmd/director.go @@ -1,6 +1,21 @@ -/* -Copyright © 2023 Justin Hiemstra -*/ +/*************************************************************** + * + * Copyright (C) 2023, Pelican Project, Morgridge Institute for Research + * + * 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/cmd/director_serve.go b/cmd/director_serve.go index 4368301a1..261a94573 100644 --- a/cmd/director_serve.go +++ b/cmd/director_serve.go @@ -1,3 +1,21 @@ +/*************************************************************** + * + * Copyright (C) 2023, Pelican Project, Morgridge Institute for Research + * + * 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/cmd/main.go b/cmd/main.go index 5f7e3b2f2..1f674ff35 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -1,3 +1,21 @@ +/*************************************************************** + * + * Copyright (C) 2023, Pelican Project, Morgridge Institute for Research + * + * 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/cmd/namespace_client.go b/cmd/namespace_client.go index 7fb13fd07..c23fc1d92 100644 --- a/cmd/namespace_client.go +++ b/cmd/namespace_client.go @@ -1,3 +1,21 @@ +/*************************************************************** + * + * Copyright (C) 2023, Pelican Project, Morgridge Institute for Research + * + * 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/cmd/namespace_registry.go b/cmd/namespace_registry.go index 5a043f2a6..169906d53 100644 --- a/cmd/namespace_registry.go +++ b/cmd/namespace_registry.go @@ -1,3 +1,21 @@ +/*************************************************************** + * + * Copyright (C) 2023, Pelican Project, Morgridge Institute for Research + * + * 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/cmd/namespace_registry_serve.go b/cmd/namespace_registry_serve.go index c2a60505c..3cfb6e715 100644 --- a/cmd/namespace_registry_serve.go +++ b/cmd/namespace_registry_serve.go @@ -1,3 +1,21 @@ +/*************************************************************** + * + * Copyright (C) 2023, Pelican Project, Morgridge Institute for Research + * + * 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/cmd/object.go b/cmd/object.go index 31326c695..f6bf869a8 100644 --- a/cmd/object.go +++ b/cmd/object.go @@ -1,3 +1,21 @@ +/*************************************************************** + * + * Copyright (C) 2023, Pelican Project, Morgridge Institute for Research + * + * 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/cmd/object_copy.go b/cmd/object_copy.go index 104a86126..6989d19c7 100644 --- a/cmd/object_copy.go +++ b/cmd/object_copy.go @@ -1,3 +1,21 @@ +/*************************************************************** + * + * Copyright (C) 2023, Pelican Project, Morgridge Institute for Research + * + * 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/cmd/origin.go b/cmd/origin.go index c57e51919..9d707e788 100644 --- a/cmd/origin.go +++ b/cmd/origin.go @@ -1,3 +1,21 @@ +/*************************************************************** + * + * Copyright (C) 2023, Pelican Project, Morgridge Institute for Research + * + * 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/cmd/origin_serve.go b/cmd/origin_serve.go index 6c179ecc3..16ec364b3 100644 --- a/cmd/origin_serve.go +++ b/cmd/origin_serve.go @@ -1,5 +1,23 @@ //go:build !windows +/*************************************************************** + * + * Copyright (C) 2023, Pelican Project, Morgridge Institute for Research + * + * 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/cmd/origin_serve_windows.go b/cmd/origin_serve_windows.go index b686f8dc9..d5795e756 100644 --- a/cmd/origin_serve_windows.go +++ b/cmd/origin_serve_windows.go @@ -1,5 +1,23 @@ //go:build windows +/*************************************************************** + * + * Copyright (C) 2023, Pelican Project, Morgridge Institute for Research + * + * 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/cmd/plugin.go b/cmd/plugin.go index 13aa3c2fe..2a90181df 100644 --- a/cmd/plugin.go +++ b/cmd/plugin.go @@ -1,3 +1,21 @@ +/*************************************************************** + * + * Copyright (C) 2023, University of Nebraska-Lincoln + * + * 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/cmd/plugin_stage.go b/cmd/plugin_stage.go index 25ea5351b..49b488951 100644 --- a/cmd/plugin_stage.go +++ b/cmd/plugin_stage.go @@ -1,3 +1,21 @@ +/*************************************************************** + * + * Copyright (C) 2023, Pelican Project, Morgridge Institute for Research + * + * 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/cmd/plugin_test.go b/cmd/plugin_test.go index 5699fb500..ae0806ed2 100644 --- a/cmd/plugin_test.go +++ b/cmd/plugin_test.go @@ -1,3 +1,21 @@ +/*************************************************************** + * + * Copyright (C) 2023, University of Nebraska-Lincoln + * + * 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/cmd/resources/xrootd.cfg b/cmd/resources/xrootd.cfg index 68cf00401..eaeee49d1 100644 --- a/cmd/resources/xrootd.cfg +++ b/cmd/resources/xrootd.cfg @@ -1,3 +1,19 @@ +# +# Copyright (C) 2023, Pelican Project, Morgridge Institute for Research +# +# 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. +# + all.manager {{.ManagerHost}}+ {{.ManagerPort}} all.role server if exec xrootd diff --git a/cmd/root.go b/cmd/root.go index 27a196452..cfea79728 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -1,6 +1,21 @@ -/* -Copyright 2023 Brian Bockelman -*/ +/*************************************************************** + * + * Copyright (C) 2023, Pelican Project, Morgridge Institute for Research + * + * 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/config/caps_default.go b/config/caps_default.go index 2758edada..dca45c4b9 100644 --- a/config/caps_default.go +++ b/config/caps_default.go @@ -1,5 +1,23 @@ //go:build !linux +/*************************************************************** + * + * Copyright (C) 2023, Pelican Project, Morgridge Institute for Research + * + * 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 config // If we're not on Linux, we always lack the privilege to run multiuser diff --git a/config/caps_linux.go b/config/caps_linux.go index 8868f3247..2b4e0e221 100644 --- a/config/caps_linux.go +++ b/config/caps_linux.go @@ -1,5 +1,23 @@ //go:build linux +/*************************************************************** + * + * Copyright (C) 2023, Pelican Project, Morgridge Institute for Research + * + * 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 config import ( diff --git a/config/config.go b/config/config.go index 690fb4274..cb4f563ec 100644 --- a/config/config.go +++ b/config/config.go @@ -1,3 +1,21 @@ +/*************************************************************** + * + * Copyright (C) 2023, Pelican Project, Morgridge Institute for Research + * + * 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 config import ( diff --git a/config/encrypted.go b/config/encrypted.go index f6311e6ed..8b23255cc 100644 --- a/config/encrypted.go +++ b/config/encrypted.go @@ -1,3 +1,21 @@ +/*************************************************************** + * + * Copyright (C) 2023, Pelican Project, Morgridge Institute for Research + * + * 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 config import ( diff --git a/config/init_server_creds.go b/config/init_server_creds.go index a0cd7e7de..e49fb2840 100644 --- a/config/init_server_creds.go +++ b/config/init_server_creds.go @@ -1,3 +1,21 @@ +/*************************************************************** + * + * Copyright (C) 2023, Pelican Project, Morgridge Institute for Research + * + * 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 config import ( diff --git a/config/keyring_default.go b/config/keyring_default.go index 261712ee9..9b43ffdfb 100644 --- a/config/keyring_default.go +++ b/config/keyring_default.go @@ -1,5 +1,23 @@ //go:build !linux || (linux && !amd64) +/*************************************************************** + * + * Copyright (C) 2023, Pelican Project, Morgridge Institute for Research + * + * 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 config var saved_password bool = false diff --git a/config/keyring_linux.go b/config/keyring_linux.go index 1c420260b..596bd6804 100644 --- a/config/keyring_linux.go +++ b/config/keyring_linux.go @@ -1,5 +1,23 @@ //go:build linux && amd64 +/*************************************************************** + * + * Copyright (C) 2023, Pelican Project, Morgridge Institute for Research + * + * 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 config import ( diff --git a/config/mkdirall.go b/config/mkdirall.go index 05b655b23..1e5411058 100644 --- a/config/mkdirall.go +++ b/config/mkdirall.go @@ -1,3 +1,21 @@ +/*************************************************************** + * + * Copyright (C) 2023, Pelican Project, Morgridge Institute for Research + * + * 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 config import ( diff --git a/config/mkdirall_default.go b/config/mkdirall_default.go index 4f853979c..c55182e6b 100644 --- a/config/mkdirall_default.go +++ b/config/mkdirall_default.go @@ -1,5 +1,23 @@ //go:build !windows +/*************************************************************** + * + * Copyright (C) 2023, Pelican Project, Morgridge Institute for Research + * + * 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 config func fixRootDirectory(p string) string { diff --git a/config/mkdirall_windows.go b/config/mkdirall_windows.go index 1f5cb0126..f212ba964 100644 --- a/config/mkdirall_windows.go +++ b/config/mkdirall_windows.go @@ -1,5 +1,23 @@ //go:build windows +/*************************************************************** + * + * Copyright (C) 2023, Pelican Project, Morgridge Institute for Research + * + * 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 config import "os" diff --git a/config/privs.go b/config/privs.go index 4305db8b0..0134ee207 100644 --- a/config/privs.go +++ b/config/privs.go @@ -1,3 +1,21 @@ +/*************************************************************** + * + * Copyright (C) 2023, Pelican Project, Morgridge Institute for Research + * + * 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 config import ( diff --git a/config/resources/defaults.yaml b/config/resources/defaults.yaml index 3ddeb17be..bb1d5fbc3 100644 --- a/config/resources/defaults.yaml +++ b/config/resources/defaults.yaml @@ -1,3 +1,19 @@ +# +# Copyright (C) 2023, Pelican Project, Morgridge Institute for Research +# +# 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. +# + Port: 8443 WebPort: 8444 WebAddress: "0.0.0.0" diff --git a/config/resources/osdf.yaml b/config/resources/osdf.yaml index 4383b7c16..d3540573b 100644 --- a/config/resources/osdf.yaml +++ b/config/resources/osdf.yaml @@ -1,3 +1,19 @@ +# +# Copyright (C) 2023, Pelican Project, Morgridge Institute for Research +# +# 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. +# + ManagerHost: redirector.osgstorage.org SummaryMonitoringHost: xrd-report.osgstorage.org DetailedMonitoringHost: xrd-mon.osgstorage.org diff --git a/director.go b/director.go index 9e22a9cc2..49e31b5f1 100644 --- a/director.go +++ b/director.go @@ -1,3 +1,21 @@ +/*************************************************************** + * + * Copyright (C) 2023, Pelican Project, Morgridge Institute for Research + * + * 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 pelican import ( diff --git a/director/advertise.go b/director/advertise.go index 6460be52b..1100a726b 100644 --- a/director/advertise.go +++ b/director/advertise.go @@ -1,3 +1,21 @@ +/*************************************************************** + * + * Copyright (C) 2023, Pelican Project, Morgridge Institute for Research + * + * 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 director import ( diff --git a/director/cache_ads.go b/director/cache_ads.go index ed2d07912..eb49f6c6d 100644 --- a/director/cache_ads.go +++ b/director/cache_ads.go @@ -1,3 +1,21 @@ +/*************************************************************** + * + * Copyright (C) 2023, Pelican Project, Morgridge Institute for Research + * + * 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 director import ( diff --git a/director/geosort.go b/director/geosort.go index 806a2b3e0..0a71ef295 100644 --- a/director/geosort.go +++ b/director/geosort.go @@ -1,3 +1,21 @@ +/*************************************************************** + * + * Copyright (C) 2023, Pelican Project, Morgridge Institute for Research + * + * 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 director import ( diff --git a/director/origin_api.go b/director/origin_api.go index 4937e6a2b..e30d1c0ee 100644 --- a/director/origin_api.go +++ b/director/origin_api.go @@ -1,3 +1,21 @@ +/*************************************************************** + * + * Copyright (C) 2023, Pelican Project, Morgridge Institute for Research + * + * 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 director import ( diff --git a/director/redirect.go b/director/redirect.go index 709a1aad6..f0e0d3cee 100644 --- a/director/redirect.go +++ b/director/redirect.go @@ -1,3 +1,21 @@ +/*************************************************************** + * + * Copyright (C) 2023, Pelican Project, Morgridge Institute for Research + * + * 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 director import ( diff --git a/director/sort.go b/director/sort.go index e20c35af1..eef688517 100644 --- a/director/sort.go +++ b/director/sort.go @@ -1,3 +1,21 @@ +/*************************************************************** + * + * Copyright (C) 2023, Pelican Project, Morgridge Institute for Research + * + * 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 director import ( diff --git a/director_test.go b/director_test.go index 3284b640a..0695fca95 100644 --- a/director_test.go +++ b/director_test.go @@ -1,3 +1,21 @@ +/*************************************************************** + * + * Copyright (C) 2023, Pelican Project, Morgridge Institute for Research + * + * 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 pelican import ( diff --git a/docs/parameters.yaml b/docs/parameters.yaml index 333eb4efe..7c77c7e2a 100644 --- a/docs/parameters.yaml +++ b/docs/parameters.yaml @@ -1,3 +1,19 @@ +# +# Copyright (C) 2023, Pelican Project, Morgridge Institute for Research +# +# Licensed under the Apache License, Version 2.0 (the "License"); you +# may not use this file except in compliance with the License. You may +# obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + # This file contains structured documentation about the Pelican parameters. # While it is somewhat human-readable, it is meant to help with the documentation # generation. diff --git a/errorAccum.go b/errorAccum.go index a9cb96f5c..4289ffe37 100644 --- a/errorAccum.go +++ b/errorAccum.go @@ -1,3 +1,21 @@ +/*************************************************************** + * + * Copyright (C) 2023, University of Nebraska-Lincoln + * + * 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 pelican import ( diff --git a/errorAccum_test.go b/errorAccum_test.go index d96cdf82f..2bc490b22 100644 --- a/errorAccum_test.go +++ b/errorAccum_test.go @@ -1,3 +1,21 @@ +/*************************************************************** + * + * Copyright (C) 2023, University of Nebraska-Lincoln + * + * 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 pelican import ( diff --git a/get_best_cache.go b/get_best_cache.go index 3009730a2..0e65fd699 100644 --- a/get_best_cache.go +++ b/get_best_cache.go @@ -1,3 +1,21 @@ +/*************************************************************** + * + * Copyright (C) 2023, University of Nebraska-Lincoln + * + * 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 pelican import ( diff --git a/handle_http.go b/handle_http.go index ca99545e9..717e64751 100644 --- a/handle_http.go +++ b/handle_http.go @@ -1,3 +1,21 @@ +/*************************************************************** + * + * Copyright (C) 2023, University of Nebraska-Lincoln + * + * 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 pelican import ( diff --git a/handle_http_test.go b/handle_http_test.go index b1c6fb95c..e889dfb26 100644 --- a/handle_http_test.go +++ b/handle_http_test.go @@ -1,3 +1,21 @@ +/*************************************************************** + * + * Copyright (C) 2023, University of Nebraska-Lincoln + * + * 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 pelican import ( diff --git a/handle_ingest.go b/handle_ingest.go index 32e92cbdb..d656a70f5 100644 --- a/handle_ingest.go +++ b/handle_ingest.go @@ -1,3 +1,21 @@ +/*************************************************************** + * + * Copyright (C) 2023, University of Nebraska-Lincoln + * + * 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 pelican import ( diff --git a/images/Dockerfile b/images/Dockerfile index d02790e05..7ca2ae8d5 100644 --- a/images/Dockerfile +++ b/images/Dockerfile @@ -1,3 +1,19 @@ +# +# Copyright (C) 2023, Pelican Project, Morgridge Institute for Research +# +# 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. +# + ARG BASE_YUM_REPO=release ARG BASE_OSG_SERIES=3.6 diff --git a/images/entrypoint.sh b/images/entrypoint.sh index 80395ddbc..7baf81e84 100644 --- a/images/entrypoint.sh +++ b/images/entrypoint.sh @@ -1,4 +1,19 @@ #!/bin/bash +# +# Copyright (C) 2023, Pelican Project, Morgridge Institute for Research +# +# 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. +# supervisord -c /etc/supervisord.conf diff --git a/images/supervisord/pelican_director_serve.conf b/images/supervisord/pelican_director_serve.conf index 0301cabe4..cedcf59f6 100644 --- a/images/supervisord/pelican_director_serve.conf +++ b/images/supervisord/pelican_director_serve.conf @@ -1,3 +1,19 @@ +# +# Copyright (C) 2023, Pelican Project, Morgridge Institute for Research +# +# 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. +# + [program:pelican_director_serve] command=/pelican/osdf-client director serve -p %(ENV_OSDF_DIRECTOR_PORT)s autostart=false diff --git a/images/supervisord/supervisord.conf b/images/supervisord/supervisord.conf index 952e8f4ae..8e3dbab6b 100644 --- a/images/supervisord/supervisord.conf +++ b/images/supervisord/supervisord.conf @@ -1,3 +1,19 @@ +# +# Copyright (C) 2023, Pelican Project, Morgridge Institute for Research +# +# 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. +# + [supervisord] pidfile=/var/run/supervisord.pid logfile=/var/log/supervisord.log diff --git a/main.go b/main.go index af1e6e811..681a1f9e4 100644 --- a/main.go +++ b/main.go @@ -1,3 +1,21 @@ +/*************************************************************** + * + * Copyright (C) 2023, University of Nebraska-Lincoln + * + * 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 pelican import ( diff --git a/main_test.go b/main_test.go index 640bde5c5..395b6a7ea 100644 --- a/main_test.go +++ b/main_test.go @@ -1,3 +1,21 @@ +/*************************************************************** + * + * Copyright (C) 2023, University of Nebraska-Lincoln + * + * 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 pelican import ( diff --git a/metrics/health.go b/metrics/health.go index d91a77962..01ec7d6a4 100644 --- a/metrics/health.go +++ b/metrics/health.go @@ -1,3 +1,21 @@ +/*************************************************************** + * + * Copyright (C) 2023, Pelican Project, Morgridge Institute for Research + * + * 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 metrics import ( diff --git a/metrics/xrootd_metrics.go b/metrics/xrootd_metrics.go index 222bb6347..786f55ef0 100644 --- a/metrics/xrootd_metrics.go +++ b/metrics/xrootd_metrics.go @@ -1,3 +1,21 @@ +/*************************************************************** + * + * Copyright (C) 2023, Pelican Project, Morgridge Institute for Research + * + * 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 metrics import ( diff --git a/namespace-registry/client_commands.go b/namespace-registry/client_commands.go index d0e9be304..e5bec2f5b 100644 --- a/namespace-registry/client_commands.go +++ b/namespace-registry/client_commands.go @@ -1,3 +1,21 @@ +/*************************************************************** + * + * Copyright (C) 2023, Pelican Project, Morgridge Institute for Research + * + * 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 nsregistry import ( diff --git a/namespace-registry/registry-db.go b/namespace-registry/registry-db.go index ddc62e427..ba749d488 100644 --- a/namespace-registry/registry-db.go +++ b/namespace-registry/registry-db.go @@ -1,3 +1,21 @@ +/*************************************************************** + * + * Copyright (C) 2023, Pelican Project, Morgridge Institute for Research + * + * 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 nsregistry import ( diff --git a/namespace-registry/registry.go b/namespace-registry/registry.go index e82b79813..4bce40cc0 100644 --- a/namespace-registry/registry.go +++ b/namespace-registry/registry.go @@ -1,3 +1,21 @@ +/*************************************************************** + * + * Copyright (C) 2023, Pelican Project, Morgridge Institute for Research + * + * 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 nsregistry import ( diff --git a/namespaces/namespaces.go b/namespaces/namespaces.go index 03f8591ab..65a64ca56 100644 --- a/namespaces/namespaces.go +++ b/namespaces/namespaces.go @@ -1,3 +1,21 @@ +/*************************************************************** + * + * Copyright (C) 2023, Pelican Project, Morgridge Institute for Research + * + * 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 namespaces import ( diff --git a/namespaces/namespaces_test.go b/namespaces/namespaces_test.go index 40341ce39..102ab96fa 100644 --- a/namespaces/namespaces_test.go +++ b/namespaces/namespaces_test.go @@ -1,3 +1,21 @@ +/*************************************************************** + * + * Copyright (C) 2023, Pelican Project, Morgridge Institute for Research + * + * 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 namespaces import ( diff --git a/oauth2/issuer_metadata.go b/oauth2/issuer_metadata.go index 9de30c86d..c414f0b55 100644 --- a/oauth2/issuer_metadata.go +++ b/oauth2/issuer_metadata.go @@ -1,3 +1,21 @@ +/*************************************************************** + * + * Copyright (C) 2023, Pelican Project, Morgridge Institute for Research + * + * 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 oauth2 import ( diff --git a/oauth2/oauth2.go b/oauth2/oauth2.go index 06e105cc6..11eef5a6e 100644 --- a/oauth2/oauth2.go +++ b/oauth2/oauth2.go @@ -1,3 +1,21 @@ +/*************************************************************** + * + * Copyright (C) 2023, Pelican Project, Morgridge Institute for Research + * + * 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 oauth2 import ( diff --git a/origin_ui/advertise.go b/origin_ui/advertise.go index 449ab2e58..25fc4c322 100644 --- a/origin_ui/advertise.go +++ b/origin_ui/advertise.go @@ -1,3 +1,21 @@ +/*************************************************************** + * + * Copyright (C) 2023, Pelican Project, Morgridge Institute for Research + * + * 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 origin_ui import ( diff --git a/origin_ui/origin.go b/origin_ui/origin.go index 47d8bcc61..f46d664bc 100644 --- a/origin_ui/origin.go +++ b/origin_ui/origin.go @@ -1,3 +1,21 @@ +/*************************************************************** + * + * Copyright (C) 2023, Pelican Project, Morgridge Institute for Research + * + * 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 origin_ui import ( diff --git a/resources/10-stash-plugin.conf b/resources/10-stash-plugin.conf index bec573152..4692e2912 100644 --- a/resources/10-stash-plugin.conf +++ b/resources/10-stash-plugin.conf @@ -1,3 +1,19 @@ +# +# Copyright (C) 2023, Pelican Project, Morgridge Institute for Research +# +# 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. +# + # HTCondor configuration file to enable the Stash/OSDF file transfer plugin STASH_PLUGIN = $(LIBEXEC)/stash_plugin FILETRANSFER_PLUGINS = $(FILETRANSFER_PLUGINS),$(STASH_PLUGIN) diff --git a/resources/update-namespaces.sh b/resources/update-namespaces.sh index a1383c4b8..3873fd41e 100755 --- a/resources/update-namespaces.sh +++ b/resources/update-namespaces.sh @@ -1,4 +1,20 @@ #!/bin/bash +# +# Copyright (C) 2023, Pelican Project, University of Wisconsin-Madison +# +# 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. +# + # Download the newest namespaces.json from Topology # Requires: curl, jq diff --git a/tests/citests.sh b/tests/citests.sh index 5a39ea9d1..f5ca9b7d9 100755 --- a/tests/citests.sh +++ b/tests/citests.sh @@ -1,4 +1,19 @@ #!/bin/bash -xe +# +# Copyright (C) 2023, University of Nebraska-Lincoln +# +# 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. +# cp pelican stashcp cp pelican stash_plugin diff --git a/unique_hash_darwin.go b/unique_hash_darwin.go index 277709097..62c1fadbc 100644 --- a/unique_hash_darwin.go +++ b/unique_hash_darwin.go @@ -1,6 +1,24 @@ //go:build darwin // +build darwin +/*************************************************************** + * + * Copyright (C) 2023, Pelican Project, Morgridge Institute for Research + * + * 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 pelican import ( diff --git a/unique_hash_linux.go b/unique_hash_linux.go index 924dfdff8..5a4226493 100644 --- a/unique_hash_linux.go +++ b/unique_hash_linux.go @@ -1,6 +1,24 @@ //go:build linux // +build linux +/*************************************************************** + * + * Copyright (C) 2023, Pelican Project, Morgridge Institute for Research + * + * 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 pelican import ( diff --git a/unique_hash_windows.go b/unique_hash_windows.go index 9979723a9..8018b69ea 100644 --- a/unique_hash_windows.go +++ b/unique_hash_windows.go @@ -1,6 +1,24 @@ //go:build windows // +build windows +/*************************************************************** + * + * Copyright (C) 2023, Pelican Project, Morgridge Institute for Research + * + * 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 pelican import ( diff --git a/util.go b/util.go index 23e2e12f5..797211c4e 100644 --- a/util.go +++ b/util.go @@ -1,3 +1,21 @@ +/*************************************************************** + * + * Copyright (C) 2023, Pelican Project, Morgridge Institute for Research + * + * 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 pelican import "fmt" diff --git a/web_ui/ui.go b/web_ui/ui.go index 2644c8471..c7b063a6d 100644 --- a/web_ui/ui.go +++ b/web_ui/ui.go @@ -1,3 +1,21 @@ +/*************************************************************** + * + * Copyright (C) 2023, Pelican Project, Morgridge Institute for Research + * + * 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 web_ui import ( diff --git a/xrootd/launch.go b/xrootd/launch.go index 736bb4fa2..6679bd123 100644 --- a/xrootd/launch.go +++ b/xrootd/launch.go @@ -1,5 +1,23 @@ //go:build !windows +/*************************************************************** + * + * Copyright (C) 2023, Pelican Project, Morgridge Institute for Research + * + * 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 xrootd import ( diff --git a/xrootd/launch_default.go b/xrootd/launch_default.go index 1ac10362b..3d7db2b86 100644 --- a/xrootd/launch_default.go +++ b/xrootd/launch_default.go @@ -1,5 +1,23 @@ //go:build !linux +/*************************************************************** + * + * Copyright (C) 2023, Pelican Project, Morgridge Institute for Research + * + * 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 xrootd import ( diff --git a/xrootd/launch_linux.go b/xrootd/launch_linux.go index 30fa24b60..a3e64a51e 100644 --- a/xrootd/launch_linux.go +++ b/xrootd/launch_linux.go @@ -1,5 +1,23 @@ //go:build linux +/*************************************************************** + * + * Copyright (C) 2023, Pelican Project, Morgridge Institute for Research + * + * 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 xrootd import ( diff --git a/xrootd/launch_windows.go b/xrootd/launch_windows.go index 7c087ce1d..ea28c2a7d 100644 --- a/xrootd/launch_windows.go +++ b/xrootd/launch_windows.go @@ -1,5 +1,23 @@ //go:build windows +/*************************************************************** + * + * Copyright (C) 2023, Pelican Project, Morgridge Institute for Research + * + * 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 xrootd import (