From 28e2ddb317c3aa9eff8d51a23963dbf1d4bf5a9e Mon Sep 17 00:00:00 2001 From: Leonardo Grasso Date: Wed, 11 Oct 2023 12:56:17 +0200 Subject: [PATCH] docs: add license headers and spdx id Signed-off-by: Leonardo Grasso --- Makefile | 14 ++++++++++++++ configuration/configuration.go | 14 ++++++++++++++ configuration/version.go | 14 ++++++++++++++ docs/docs.go | 14 ++++++++++++++ frontend/src/http.js | 15 +++++++++++++++ frontend/src/main.js | 14 ++++++++++++++ frontend/src/router/index.js | 14 ++++++++++++++ frontend/src/store/index.js | 14 ++++++++++++++ frontend/src/utils.js | 14 ++++++++++++++ frontend/vue.config.js | 13 +++++++++++++ internal/api/api.go | 14 ++++++++++++++ internal/database/redis/client.go | 14 ++++++++++++++ internal/database/redis/count.go | 14 ++++++++++++++ internal/database/redis/index.go | 14 ++++++++++++++ internal/database/redis/query.go | 14 ++++++++++++++ internal/database/redis/search.go | 14 ++++++++++++++ internal/database/redis/set.go | 14 ++++++++++++++ internal/events/add.go | 14 ++++++++++++++ internal/events/count.go | 14 ++++++++++++++ internal/events/search.go | 14 ++++++++++++++ internal/models/models.go | 14 ++++++++++++++ internal/models/outputs.go | 14 ++++++++++++++ internal/utils/utils.go | 14 ++++++++++++++ main.go | 14 ++++++++++++++ release/ldflags.sh | 13 +++++++++++++ tools/go_install.sh | 14 ++++++++++++++ 26 files changed, 363 insertions(+) diff --git a/Makefile b/Makefile index 40e2f3a..2441498 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,17 @@ +# SPDX-License-Identifier: Apache-2.0 +# +# Copyright (C) 2023 The Falco Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the +# specific language governing permissions and limitations under the License. +# + # Ensure Make is run with bash shell as some syntax below is bash-specific SHELL=/bin/bash -o pipefail diff --git a/configuration/configuration.go b/configuration/configuration.go index 95e1735..2baa522 100644 --- a/configuration/configuration.go +++ b/configuration/configuration.go @@ -1,3 +1,17 @@ +// SPDX-License-Identifier: Apache-2.0 +/* +Copyright (C) 2023 The Falco Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package configuration type Configuration struct { diff --git a/configuration/version.go b/configuration/version.go index 513d0ea..9343ab5 100644 --- a/configuration/version.go +++ b/configuration/version.go @@ -1,3 +1,17 @@ +// SPDX-License-Identifier: Apache-2.0 +/* +Copyright (C) 2023 The Falco Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package configuration import ( diff --git a/docs/docs.go b/docs/docs.go index 237becf..45687b3 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -1,5 +1,19 @@ // Package docs GENERATED BY SWAG; DO NOT EDIT // This file was generated by swaggo/swag +// SPDX-License-Identifier: Apache-2.0 +/* +Copyright (C) 2023 The Falco Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package docs import "github.com/swaggo/swag" diff --git a/frontend/src/http.js b/frontend/src/http.js index e53d3c3..84fbf54 100644 --- a/frontend/src/http.js +++ b/frontend/src/http.js @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +/* +Copyright (C) 2023 The Falco Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + + import axios from 'axios'; import store from './store'; diff --git a/frontend/src/main.js b/frontend/src/main.js index 3d54283..bd14582 100755 --- a/frontend/src/main.js +++ b/frontend/src/main.js @@ -1,3 +1,17 @@ +// SPDX-License-Identifier: Apache-2.0 +/* +Copyright (C) 2023 The Falco Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import Vue from 'vue'; import Vuetify from 'vuetify'; import moment from 'moment'; diff --git a/frontend/src/router/index.js b/frontend/src/router/index.js index 0f679c8..8d55d28 100644 --- a/frontend/src/router/index.js +++ b/frontend/src/router/index.js @@ -1,3 +1,17 @@ +// SPDX-License-Identifier: Apache-2.0 +/* +Copyright (C) 2023 The Falco Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import Vue from 'vue'; import VueRouter from 'vue-router'; import TestPage from '../views/TestPage.vue'; diff --git a/frontend/src/store/index.js b/frontend/src/store/index.js index b3e78bd..3fb212d 100644 --- a/frontend/src/store/index.js +++ b/frontend/src/store/index.js @@ -1,3 +1,17 @@ +// SPDX-License-Identifier: Apache-2.0 +/* +Copyright (C) 2023 The Falco Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + /* eslint-disable no-param-reassign */ import Vue from 'vue'; import Vuex from 'vuex'; diff --git a/frontend/src/utils.js b/frontend/src/utils.js index 6054d77..16bd83a 100644 --- a/frontend/src/utils.js +++ b/frontend/src/utils.js @@ -1,3 +1,17 @@ +// SPDX-License-Identifier: Apache-2.0 +/* +Copyright (C) 2023 The Falco Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + const crypto = require('crypto'); export const utils = { diff --git a/frontend/vue.config.js b/frontend/vue.config.js index fdb4f9e..da9e786 100644 --- a/frontend/vue.config.js +++ b/frontend/vue.config.js @@ -1,3 +1,16 @@ +// SPDX-License-Identifier: Apache-2.0 +/* +Copyright (C) 2023 The Falco Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ module.exports = { publicPath: './', }; diff --git a/internal/api/api.go b/internal/api/api.go index 36e3760..c0d0d08 100644 --- a/internal/api/api.go +++ b/internal/api/api.go @@ -1,3 +1,17 @@ +// SPDX-License-Identifier: Apache-2.0 +/* +Copyright (C) 2023 The Falco Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package api import ( diff --git a/internal/database/redis/client.go b/internal/database/redis/client.go index 245b182..5b38409 100644 --- a/internal/database/redis/client.go +++ b/internal/database/redis/client.go @@ -1,3 +1,17 @@ +// SPDX-License-Identifier: Apache-2.0 +/* +Copyright (C) 2023 The Falco Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package redis import ( diff --git a/internal/database/redis/count.go b/internal/database/redis/count.go index 700153d..477eb16 100644 --- a/internal/database/redis/count.go +++ b/internal/database/redis/count.go @@ -1,3 +1,17 @@ +// SPDX-License-Identifier: Apache-2.0 +/* +Copyright (C) 2023 The Falco Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package redis import ( diff --git a/internal/database/redis/index.go b/internal/database/redis/index.go index c3813d5..d12ecce 100644 --- a/internal/database/redis/index.go +++ b/internal/database/redis/index.go @@ -1,3 +1,17 @@ +// SPDX-License-Identifier: Apache-2.0 +/* +Copyright (C) 2023 The Falco Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package redis import ( diff --git a/internal/database/redis/query.go b/internal/database/redis/query.go index d872ce1..438bc82 100644 --- a/internal/database/redis/query.go +++ b/internal/database/redis/query.go @@ -1,3 +1,17 @@ +// SPDX-License-Identifier: Apache-2.0 +/* +Copyright (C) 2023 The Falco Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package redis import ( diff --git a/internal/database/redis/search.go b/internal/database/redis/search.go index b885d23..989a618 100644 --- a/internal/database/redis/search.go +++ b/internal/database/redis/search.go @@ -1,3 +1,17 @@ +// SPDX-License-Identifier: Apache-2.0 +/* +Copyright (C) 2023 The Falco Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package redis import ( diff --git a/internal/database/redis/set.go b/internal/database/redis/set.go index aa08ded..acae1a9 100644 --- a/internal/database/redis/set.go +++ b/internal/database/redis/set.go @@ -1,3 +1,17 @@ +// SPDX-License-Identifier: Apache-2.0 +/* +Copyright (C) 2023 The Falco Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package redis import ( diff --git a/internal/events/add.go b/internal/events/add.go index 954b07f..abc6729 100644 --- a/internal/events/add.go +++ b/internal/events/add.go @@ -1,3 +1,17 @@ +// SPDX-License-Identifier: Apache-2.0 +/* +Copyright (C) 2023 The Falco Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package events import ( diff --git a/internal/events/count.go b/internal/events/count.go index 14bad31..5e9b6a5 100644 --- a/internal/events/count.go +++ b/internal/events/count.go @@ -1,3 +1,17 @@ +// SPDX-License-Identifier: Apache-2.0 +/* +Copyright (C) 2023 The Falco Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package events import ( diff --git a/internal/events/search.go b/internal/events/search.go index 69a927d..48158ec 100644 --- a/internal/events/search.go +++ b/internal/events/search.go @@ -1,3 +1,17 @@ +// SPDX-License-Identifier: Apache-2.0 +/* +Copyright (C) 2023 The Falco Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package events import ( diff --git a/internal/models/models.go b/internal/models/models.go index f3e3e64..242ad10 100644 --- a/internal/models/models.go +++ b/internal/models/models.go @@ -1,3 +1,17 @@ +// SPDX-License-Identifier: Apache-2.0 +/* +Copyright (C) 2023 The Falco Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package models import ( diff --git a/internal/models/outputs.go b/internal/models/outputs.go index ac6d4a0..9bd1986 100644 --- a/internal/models/outputs.go +++ b/internal/models/outputs.go @@ -1,3 +1,17 @@ +// SPDX-License-Identifier: Apache-2.0 +/* +Copyright (C) 2023 The Falco Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package models type Outputs []string diff --git a/internal/utils/utils.go b/internal/utils/utils.go index baea142..ddf154d 100644 --- a/internal/utils/utils.go +++ b/internal/utils/utils.go @@ -1,3 +1,17 @@ +// SPDX-License-Identifier: Apache-2.0 +/* +Copyright (C) 2023 The Falco Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package utils import ( diff --git a/main.go b/main.go index a2d966d..acee775 100644 --- a/main.go +++ b/main.go @@ -1,3 +1,17 @@ +// SPDX-License-Identifier: Apache-2.0 +/* +Copyright (C) 2023 The Falco Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package main import ( diff --git a/release/ldflags.sh b/release/ldflags.sh index 48676a3..537a5f2 100644 --- a/release/ldflags.sh +++ b/release/ldflags.sh @@ -1,4 +1,17 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# +# Copyright (C) 2023 The Falco Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the +# specific language governing permissions and limitations under the License. +# set -o errexit set -o nounset diff --git a/tools/go_install.sh b/tools/go_install.sh index 503e584..0d29817 100755 --- a/tools/go_install.sh +++ b/tools/go_install.sh @@ -1,4 +1,18 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# +# Copyright (C) 2023 The Falco Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the +# specific language governing permissions and limitations under the License. +# + set -o errexit set -o nounset