Skip to content

Commit

Permalink
One pass to update copyright headers
Browse files Browse the repository at this point in the history
  • Loading branch information
haoming29 committed Feb 28, 2024
1 parent 82825e2 commit 555f4f5
Show file tree
Hide file tree
Showing 212 changed files with 884 additions and 212 deletions.
17 changes: 17 additions & 0 deletions .golangci.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
# ***************************************************************
#
# Copyright (C) 2024, 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.
#
# ***************************************************************

run:
# Pelican has gotten large enough that the GitHub Action sometimes
Expand Down
18 changes: 18 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
# ***************************************************************
#
# Copyright (C) 2024, 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.
#
# ***************************************************************

project_name: pelican

release:
Expand Down
18 changes: 18 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
# ***************************************************************
#
# Copyright (C) 2024, 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.
#
# ***************************************************************

# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (C) 2023, Pelican Project, Morgridge Institute for Research
# Copyright (C) 2024, 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
Expand Down
2 changes: 1 addition & 1 deletion cache_ui/advertise.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/***************************************************************
*
* Copyright (C) 2023, Pelican Project, Morgridge Institute for Research
* Copyright (C) 2024, 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
Expand Down
2 changes: 1 addition & 1 deletion classads/classads.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/***************************************************************
*
* Copyright (C) 2023, University of Nebraska-Lincoln
* Copyright (C) 2024, 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
Expand Down
2 changes: 1 addition & 1 deletion classads/classads_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/***************************************************************
*
* Copyright (C) 2023, University of Nebraska-Lincoln
* Copyright (C) 2024, 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
Expand Down
2 changes: 1 addition & 1 deletion client/acquire_token.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/***************************************************************
*
* Copyright (C) 2023, Pelican Project, Morgridge Institute for Research
* Copyright (C) 2024, 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
Expand Down
3 changes: 2 additions & 1 deletion client/bearer_auth.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/***************************************************************
*
* Copyright (C) 2023, University of Nebraska-Lincoln
* Copyright (C) 2024, 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
Expand All @@ -15,6 +15,7 @@
* limitations under the License.
*
***************************************************************/

package client

import (
Expand Down
3 changes: 2 additions & 1 deletion client/bearer_auth_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/***************************************************************
*
* Copyright (C) 2023, University of Nebraska-Lincoln
* Copyright (C) 2024, 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
Expand All @@ -15,6 +15,7 @@
* limitations under the License.
*
***************************************************************/

package client

import (
Expand Down
2 changes: 1 addition & 1 deletion client/director.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/***************************************************************
*
* Copyright (C) 2023, Pelican Project, Morgridge Institute for Research
* Copyright (C) 2024, 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
Expand Down
2 changes: 1 addition & 1 deletion client/director_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/***************************************************************
*
* Copyright (C) 2023, Pelican Project, Morgridge Institute for Research
* Copyright (C) 2024, 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
Expand Down
2 changes: 1 addition & 1 deletion client/errorAccum.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/***************************************************************
*
* Copyright (C) 2023, University of Nebraska-Lincoln
* Copyright (C) 2024, 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
Expand Down
2 changes: 1 addition & 1 deletion client/errorAccum_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/***************************************************************
*
* Copyright (C) 2023, University of Nebraska-Lincoln
* Copyright (C) 2024, 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
Expand Down
2 changes: 1 addition & 1 deletion client/get_best_cache.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/***************************************************************
*
* Copyright (C) 2023, University of Nebraska-Lincoln
* Copyright (C) 2024, 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
Expand Down
18 changes: 18 additions & 0 deletions client/get_stashserver_caches.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
/***************************************************************
*
* Copyright (C) 2024, 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 client

import (
Expand Down
2 changes: 1 addition & 1 deletion client/handle_http.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/***************************************************************
*
* Copyright (C) 2023, University of Nebraska-Lincoln
* Copyright (C) 2024, 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
Expand Down
2 changes: 1 addition & 1 deletion client/handle_http_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

/***************************************************************
*
* Copyright (C) 2023, University of Nebraska-Lincoln
* Copyright (C) 2024, 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
Expand Down
2 changes: 1 addition & 1 deletion client/handle_ingest.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/***************************************************************
*
* Copyright (C) 2023, University of Nebraska-Lincoln
* Copyright (C) 2024, 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
Expand Down
2 changes: 1 addition & 1 deletion client/main.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/***************************************************************
*
* Copyright (C) 2023, University of Nebraska-Lincoln
* Copyright (C) 2024, 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
Expand Down
2 changes: 1 addition & 1 deletion client/main_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/***************************************************************
*
* Copyright (C) 2023, University of Nebraska-Lincoln
* Copyright (C) 2024, 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
Expand Down
2 changes: 1 addition & 1 deletion client/pack_handler.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/***************************************************************
*
* Copyright (C) 2023, Morgridge Institute for Research
* Copyright (C) 2024, 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
Expand Down
2 changes: 1 addition & 1 deletion client/pack_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

/***************************************************************
*
* Copyright (C) 2023, Morgridge Institute for Research
* Copyright (C) 2024, 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
Expand Down
2 changes: 1 addition & 1 deletion client/resources/10-stash-plugin.conf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (C) 2023, Pelican Project, Morgridge Institute for Research
# Copyright (C) 2024, 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
Expand Down
2 changes: 1 addition & 1 deletion client/resources/update-namespaces.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
#
# Copyright (C) 2023, Pelican Project, University of Wisconsin-Madison
# Copyright (C) 2024, 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
Expand Down
2 changes: 1 addition & 1 deletion client/sharing_url.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/***************************************************************
*
* Copyright (C) 2023, University of Nebraska-Lincoln
* Copyright (C) 2024, 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
Expand Down
2 changes: 1 addition & 1 deletion client/sharing_url_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/***************************************************************
*
* Copyright (C) 2023, University of Nebraska-Lincoln
* Copyright (C) 2024, 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
Expand Down
2 changes: 1 addition & 1 deletion client/unique_hash_darwin.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

/***************************************************************
*
* Copyright (C) 2023, Pelican Project, Morgridge Institute for Research
* Copyright (C) 2024, 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
Expand Down
2 changes: 1 addition & 1 deletion client/unique_hash_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

/***************************************************************
*
* Copyright (C) 2023, Pelican Project, Morgridge Institute for Research
* Copyright (C) 2024, 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
Expand Down
2 changes: 1 addition & 1 deletion client/unique_hash_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

/***************************************************************
*
* Copyright (C) 2023, Pelican Project, Morgridge Institute for Research
* Copyright (C) 2024, 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
Expand Down
2 changes: 1 addition & 1 deletion client/util.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/***************************************************************
*
* Copyright (C) 2023, Pelican Project, Morgridge Institute for Research
* Copyright (C) 2024, 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
Expand Down
2 changes: 1 addition & 1 deletion cmd/cache.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/***************************************************************
*
* Copyright (C) 2023, Pelican Project, Morgridge Institute for Research
* Copyright (C) 2024, 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
Expand Down
2 changes: 1 addition & 1 deletion cmd/cache_serve.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

/***************************************************************
*
* Copyright (C) 2023, Pelican Project, Morgridge Institute for Research
* Copyright (C) 2024, 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
Expand Down
2 changes: 1 addition & 1 deletion cmd/cache_serve_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

/***************************************************************
*
* Copyright (C) 2023, Pelican Project, Morgridge Institute for Research
* Copyright (C) 2024, 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
Expand Down
2 changes: 1 addition & 1 deletion cmd/config_mgr.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/***************************************************************
*
* Copyright (C) 2023, Pelican Project, Morgridge Institute for Research
* Copyright (C) 2024, 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
Expand Down
2 changes: 1 addition & 1 deletion cmd/director.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/***************************************************************
*
* Copyright (C) 2023, Pelican Project, Morgridge Institute for Research
* Copyright (C) 2024, 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
Expand Down
2 changes: 1 addition & 1 deletion cmd/director_serve.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/***************************************************************
*
* Copyright (C) 2023, Pelican Project, Morgridge Institute for Research
* Copyright (C) 2024, 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
Expand Down
2 changes: 1 addition & 1 deletion cmd/fed.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/***************************************************************
*
* Copyright (C) 2023, Pelican Project, Morgridge Institute for Research
* Copyright (C) 2024, 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
Expand Down
2 changes: 1 addition & 1 deletion cmd/fed_serve.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

/***************************************************************
*
* Copyright (C) 2023, Pelican Project, Morgridge Institute for Research
* Copyright (C) 2024, 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
Expand Down
2 changes: 1 addition & 1 deletion cmd/fed_serve_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

/***************************************************************
*
* Copyright (C) 2023, Pelican Project, Morgridge Institute for Research
* Copyright (C) 2024, 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
Expand Down
Loading

0 comments on commit 555f4f5

Please sign in to comment.