diff --git a/.github/workflows/container-build.yml b/.github/workflows/container-build.yml index 6d41c9c..40fd8be 100644 --- a/.github/workflows/container-build.yml +++ b/.github/workflows/container-build.yml @@ -1,3 +1,17 @@ +# Copyright 2025 Carver Automation Corporation. +# +# 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. + name: Build and Push Containers on: push: diff --git a/.github/workflows/go-coverage.yml b/.github/workflows/go-coverage.yml index 545965d..1b7dfaa 100644 --- a/.github/workflows/go-coverage.yml +++ b/.github/workflows/go-coverage.yml @@ -1,3 +1,17 @@ +# Copyright 2025 Carver Automation Corporation. +# +# 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. + name: go-coverage on: [push] permissions: diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index 4b01014..aa88625 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -1,3 +1,17 @@ +# Copyright 2025 Carver Automation Corporation. +# +# 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. + name: lint on: [push] permissions: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 49835f5..ea2e911 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,3 +1,17 @@ +# Copyright 2025 Carver Automation Corporation. +# +# 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. + # .github/workflows/release.yml name: Release ServiceRadar Packages on: diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 07f503d..807141a 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -1,3 +1,17 @@ +# Copyright 2025 Carver Automation Corporation. +# +# 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. + name: tests on: [push] permissions: diff --git a/.goreleaser.yml b/.goreleaser.yml index f95046c..00023e3 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,3 +1,17 @@ +# Copyright 2025 Carver Automation Corporation. +# +# 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: serviceradar before: diff --git a/.ko.yaml b/.ko.yaml index 92e4866..77cb9ef 100644 --- a/.ko.yaml +++ b/.ko.yaml @@ -1,3 +1,17 @@ +# Copyright 2025 Carver Automation Corporation. +# +# 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. + defaultBaseImage: cgr.dev/chainguard/static:latest builds: diff --git a/Dockerfile-rpm.cloud b/Dockerfile-rpm.cloud index 2302296..47402b5 100644 --- a/Dockerfile-rpm.cloud +++ b/Dockerfile-rpm.cloud @@ -1,3 +1,17 @@ +# Copyright 2025 Carver Automation Corporation. +# +# 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. + # Stage 1: Build the web UI FROM --platform=linux/amd64 node:18-bullseye AS web-builder diff --git a/Dockerfile.build b/Dockerfile.build index b22e7ba..d75d69a 100644 --- a/Dockerfile.build +++ b/Dockerfile.build @@ -1,3 +1,17 @@ +# Copyright 2025 Carver Automation Corporation. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + FROM --platform=linux/amd64 golang:1.24-bullseye # Install Node.js and npm diff --git a/Dockerfile.cloud b/Dockerfile.cloud index 8c93d3f..9616e89 100644 --- a/Dockerfile.cloud +++ b/Dockerfile.cloud @@ -1,3 +1,17 @@ +# Copyright 2025 Carver Automation Corporation. +# +# 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. + # Stage 1: Build the web UI FROM --platform=linux/amd64 node:18-bullseye AS web-builder diff --git a/Dockerfile.goreleaser.cloud b/Dockerfile.goreleaser.cloud index 3390fe5..d7c1708 100644 --- a/Dockerfile.goreleaser.cloud +++ b/Dockerfile.goreleaser.cloud @@ -1,3 +1,18 @@ +# Copyright 2025 Carver Automation Corporation. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + + FROM --platform=linux/amd64 golang:1.24-bullseye # Install Node.js and npm diff --git a/Dockerfile.rpm.simple b/Dockerfile.rpm.simple index 3fab2e1..d8e07ee 100644 --- a/Dockerfile.rpm.simple +++ b/Dockerfile.rpm.simple @@ -1,3 +1,17 @@ +# Copyright 2025 Carver Automation Corporation. +# +# 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. + # Stage 1: Build the Go binary FROM --platform=linux/amd64 golang:1.24-bullseye AS builder diff --git a/LICENSE b/LICENSE index 20cf892..15e0005 100644 --- a/LICENSE +++ b/LICENSE @@ -186,7 +186,7 @@ same "printed page" as the copyright notice for easier identification within third-party archives. - Copyright [2025] [Michael Freeman] + Copyright 2025 Carver Automation Corporation Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/Makefile b/Makefile index 1431406..959534a 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,17 @@ +# Copyright 2025 Carver Automation Corporation. +# +# 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. + # Go configuration GO ?= go GOBIN ?= $$($(GO) env GOPATH)/bin diff --git a/cmd/agent/main.go b/cmd/agent/main.go index 1d793c6..2b32545 100644 --- a/cmd/agent/main.go +++ b/cmd/agent/main.go @@ -1,3 +1,19 @@ +/*- + * Copyright 2025 Carver Automation Corporation. + * + * 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/checkers/dusk/main.go b/cmd/checkers/dusk/main.go index 7c57917..838144f 100644 --- a/cmd/checkers/dusk/main.go +++ b/cmd/checkers/dusk/main.go @@ -1,3 +1,19 @@ +/*- + * Copyright 2025 Carver Automation Corporation. + * + * 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/checkers/snmp/main.go b/cmd/checkers/snmp/main.go index 50daf08..981303e 100644 --- a/cmd/checkers/snmp/main.go +++ b/cmd/checkers/snmp/main.go @@ -1,3 +1,19 @@ +/*- + * Copyright 2025 Carver Automation Corporation. + * + * 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/cloud/.ko.yaml b/cmd/cloud/.ko.yaml index 29582ff..9b96259 100644 --- a/cmd/cloud/.ko.yaml +++ b/cmd/cloud/.ko.yaml @@ -1 +1,15 @@ +# Copyright 2025 Carver Automation Corporation. +# +# 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. + defaultBaseImage: cgr.dev/chainguard/ko diff --git a/cmd/cloud/main.go b/cmd/cloud/main.go index 447e049..76b4182 100644 --- a/cmd/cloud/main.go +++ b/cmd/cloud/main.go @@ -1,3 +1,19 @@ +/*- + * Copyright 2025 Carver Automation Corporation. + * + * 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/poller/main.go b/cmd/poller/main.go index d15d187..d24f369 100644 --- a/cmd/poller/main.go +++ b/cmd/poller/main.go @@ -1,3 +1,19 @@ +/*- + * Copyright 2025 Carver Automation Corporation. + * + * 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/packaging/setup.sh b/packaging/setup.sh index 976888c..936c9a2 100755 --- a/packaging/setup.sh +++ b/packaging/setup.sh @@ -1,4 +1,20 @@ #!/bin/bash + +# Copyright 2025 Carver Automation Corporation. +# +# 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. + +# setup.sh - Create packaging structure for ServiceRadar components set -e echo "Creating packaging structure..." diff --git a/pkg/agent/checker.go b/pkg/agent/checker.go index 9ded861..0b5ab70 100644 --- a/pkg/agent/checker.go +++ b/pkg/agent/checker.go @@ -1,3 +1,19 @@ +/*- + * Copyright 2025 Carver Automation Corporation. + * + * 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 agent pkg/agent/checker.go package agent diff --git a/pkg/agent/checker_integration_test.go b/pkg/agent/checker_integration_test.go index 2d8dc49..a2028a7 100644 --- a/pkg/agent/checker_integration_test.go +++ b/pkg/agent/checker_integration_test.go @@ -1,6 +1,22 @@ //go:build integration // +build integration +/*- + * Copyright 2025 Carver Automation Corporation. + * + * 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 agent import ( diff --git a/pkg/agent/checker_test.go b/pkg/agent/checker_test.go index b81786a..6c24b49 100644 --- a/pkg/agent/checker_test.go +++ b/pkg/agent/checker_test.go @@ -1,3 +1,19 @@ +/*- + * Copyright 2025 Carver Automation Corporation. + * + * 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 agent import ( diff --git a/pkg/agent/errors.go b/pkg/agent/errors.go index 7ed8313..352421a 100644 --- a/pkg/agent/errors.go +++ b/pkg/agent/errors.go @@ -1,3 +1,19 @@ +/*- + * Copyright 2025 Carver Automation Corporation. + * + * 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 agent import "errors" diff --git a/pkg/agent/external_checker.go b/pkg/agent/external_checker.go index 9603bc1..c8cfbce 100644 --- a/pkg/agent/external_checker.go +++ b/pkg/agent/external_checker.go @@ -1,3 +1,19 @@ +/*- + * Copyright 2025 Carver Automation Corporation. + * + * 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 agent pkg/agent/external_checker.go package agent diff --git a/pkg/agent/icmp_checker.go b/pkg/agent/icmp_checker.go index b39731c..bca0be9 100644 --- a/pkg/agent/icmp_checker.go +++ b/pkg/agent/icmp_checker.go @@ -1,3 +1,19 @@ +/*- + * Copyright 2025 Carver Automation Corporation. + * + * 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 agent pkg/agent/icmp_checker.go package agent diff --git a/pkg/agent/interfaces.go b/pkg/agent/interfaces.go index 8b4ff5d..d9dbd4a 100644 --- a/pkg/agent/interfaces.go +++ b/pkg/agent/interfaces.go @@ -1,3 +1,19 @@ +/*- + * Copyright 2025 Carver Automation Corporation. + * + * 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 agent import ( diff --git a/pkg/agent/ipv4_sorter.go b/pkg/agent/ipv4_sorter.go index f35da1b..b70dcb2 100644 --- a/pkg/agent/ipv4_sorter.go +++ b/pkg/agent/ipv4_sorter.go @@ -1,3 +1,19 @@ +/*- + * Copyright 2025 Carver Automation Corporation. + * + * 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 agent import ( diff --git a/pkg/agent/registry.go b/pkg/agent/registry.go index a324a0f..59327ab 100644 --- a/pkg/agent/registry.go +++ b/pkg/agent/registry.go @@ -1,3 +1,19 @@ +/*- + * Copyright 2025 Carver Automation Corporation. + * + * 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 agent pkg/agent/registry.go package agent diff --git a/pkg/agent/server.go b/pkg/agent/server.go index 3c2a6eb..0180977 100644 --- a/pkg/agent/server.go +++ b/pkg/agent/server.go @@ -1,3 +1,19 @@ +/*- + * Copyright 2025 Carver Automation Corporation. + * + * 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 agent pkg/agent/server.go package agent diff --git a/pkg/agent/server_test.go b/pkg/agent/server_test.go index 8eaba51..4a33dc5 100644 --- a/pkg/agent/server_test.go +++ b/pkg/agent/server_test.go @@ -1,3 +1,19 @@ +/*- + * Copyright 2025 Carver Automation Corporation. + * + * 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 agent import ( diff --git a/pkg/agent/snmp_checker.go b/pkg/agent/snmp_checker.go index 32e08ef..6e21659 100644 --- a/pkg/agent/snmp_checker.go +++ b/pkg/agent/snmp_checker.go @@ -1,3 +1,19 @@ +/*- + * Copyright 2025 Carver Automation Corporation. + * + * 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 agent import ( diff --git a/pkg/agent/sweep_service.go b/pkg/agent/sweep_service.go index 04ccf1d..04ae567 100644 --- a/pkg/agent/sweep_service.go +++ b/pkg/agent/sweep_service.go @@ -1,3 +1,19 @@ +/*- + * Copyright 2025 Carver Automation Corporation. + * + * 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 agent import ( diff --git a/pkg/agent/sweep_service_test.go b/pkg/agent/sweep_service_test.go index 6d176b6..6158806 100644 --- a/pkg/agent/sweep_service_test.go +++ b/pkg/agent/sweep_service_test.go @@ -1,3 +1,19 @@ +/*- + * Copyright 2025 Carver Automation Corporation. + * + * 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 agent import ( diff --git a/pkg/checker/dusk/config.go b/pkg/checker/dusk/config.go index 7a37b31..6d5c69a 100644 --- a/pkg/checker/dusk/config.go +++ b/pkg/checker/dusk/config.go @@ -1,3 +1,19 @@ +/*- + * Copyright 2025 Carver Automation Corporation. + * + * 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 dusk import ( diff --git a/pkg/checker/dusk/dusk.go b/pkg/checker/dusk/dusk.go index cc07240..a9e9e14 100644 --- a/pkg/checker/dusk/dusk.go +++ b/pkg/checker/dusk/dusk.go @@ -1,3 +1,19 @@ +/*- + * Copyright 2025 Carver Automation Corporation. + * + * 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 dusk import ( diff --git a/pkg/checker/interfaces.go b/pkg/checker/interfaces.go index 005a25d..20e55a0 100644 --- a/pkg/checker/interfaces.go +++ b/pkg/checker/interfaces.go @@ -1,3 +1,19 @@ +/*- + * Copyright 2025 Carver Automation Corporation. + * + * 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 checker import ( diff --git a/pkg/checker/registry.go b/pkg/checker/registry.go index a0792a2..9ded65a 100644 --- a/pkg/checker/registry.go +++ b/pkg/checker/registry.go @@ -1,3 +1,19 @@ +/*- + * Copyright 2025 Carver Automation Corporation. + * + * 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 checker import ( diff --git a/pkg/checker/snmp/aggregator.go b/pkg/checker/snmp/aggregator.go index 0909a08..2573083 100644 --- a/pkg/checker/snmp/aggregator.go +++ b/pkg/checker/snmp/aggregator.go @@ -1,3 +1,19 @@ +/*- + * Copyright 2025 Carver Automation Corporation. + * + * 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 snmp pkg/checker/snmp/aggregator.go package snmp diff --git a/pkg/checker/snmp/aggregator_test.go b/pkg/checker/snmp/aggregator_test.go index d44798b..2f83030 100644 --- a/pkg/checker/snmp/aggregator_test.go +++ b/pkg/checker/snmp/aggregator_test.go @@ -1,3 +1,19 @@ +/*- + * Copyright 2025 Carver Automation Corporation. + * + * 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 snmp import ( diff --git a/pkg/checker/snmp/client.go b/pkg/checker/snmp/client.go index 79a7f80..abea728 100644 --- a/pkg/checker/snmp/client.go +++ b/pkg/checker/snmp/client.go @@ -1,3 +1,19 @@ +/*- + * Copyright 2025 Carver Automation Corporation. + * + * 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 snmp pkg/checker/snmp/client.go package snmp diff --git a/pkg/checker/snmp/collector.go b/pkg/checker/snmp/collector.go index 86daa14..655880c 100644 --- a/pkg/checker/snmp/collector.go +++ b/pkg/checker/snmp/collector.go @@ -1,3 +1,19 @@ +/*- + * Copyright 2025 Carver Automation Corporation. + * + * 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 snmp pkg/checker/snmp/collector.go package snmp diff --git a/pkg/checker/snmp/collector_test.go b/pkg/checker/snmp/collector_test.go index 8c50aaf..167e43e 100644 --- a/pkg/checker/snmp/collector_test.go +++ b/pkg/checker/snmp/collector_test.go @@ -1,3 +1,19 @@ +/*- + * Copyright 2025 Carver Automation Corporation. + * + * 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 snmp pkg/checker/snmp/service_test.go package snmp diff --git a/pkg/checker/snmp/config.go b/pkg/checker/snmp/config.go index 72dc648..7170a31 100644 --- a/pkg/checker/snmp/config.go +++ b/pkg/checker/snmp/config.go @@ -1,3 +1,19 @@ +/*- + * Copyright 2025 Carver Automation Corporation. + * + * 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 snmp pkg/checker/snmp/config.go package snmp diff --git a/pkg/checker/snmp/errors.go b/pkg/checker/snmp/errors.go index 91a7f95..c696587 100644 --- a/pkg/checker/snmp/errors.go +++ b/pkg/checker/snmp/errors.go @@ -1,3 +1,19 @@ +/*- + * Copyright 2025 Carver Automation Corporation. + * + * 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 snmp import ( diff --git a/pkg/checker/snmp/grpc_snmp.go b/pkg/checker/snmp/grpc_snmp.go index 754505e..d78547c 100644 --- a/pkg/checker/snmp/grpc_snmp.go +++ b/pkg/checker/snmp/grpc_snmp.go @@ -1,3 +1,19 @@ +/*- + * Copyright 2025 Carver Automation Corporation. + * + * 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 snmp pkg/checker/snmp/snmp.go package snmp diff --git a/pkg/checker/snmp/interfaces.go b/pkg/checker/snmp/interfaces.go index 9ea9e45..1b7417d 100644 --- a/pkg/checker/snmp/interfaces.go +++ b/pkg/checker/snmp/interfaces.go @@ -1,3 +1,19 @@ +/*- + * Copyright 2025 Carver Automation Corporation. + * + * 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 snmp pkg/checker/snmp/interfaces.go package snmp diff --git a/pkg/checker/snmp/service.go b/pkg/checker/snmp/service.go index be18c9a..c056067 100644 --- a/pkg/checker/snmp/service.go +++ b/pkg/checker/snmp/service.go @@ -1,3 +1,19 @@ +/*- + * Copyright 2025 Carver Automation Corporation. + * + * 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 snmp pkg/checker/snmp/service.go package snmp diff --git a/pkg/checker/snmp/service_test.go b/pkg/checker/snmp/service_test.go index ef94b74..e2985cc 100644 --- a/pkg/checker/snmp/service_test.go +++ b/pkg/checker/snmp/service_test.go @@ -1,3 +1,19 @@ +/*- + * Copyright 2025 Carver Automation Corporation. + * + * 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 snmp pkg/checker/snmp/service_test.go package snmp diff --git a/pkg/checker/snmp/snmp.go b/pkg/checker/snmp/snmp.go index 1d31e2e..e708479 100644 --- a/pkg/checker/snmp/snmp.go +++ b/pkg/checker/snmp/snmp.go @@ -1,3 +1,19 @@ +/*- + * Copyright 2025 Carver Automation Corporation. + * + * 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 snmp import ( diff --git a/pkg/checker/snmp/snmp_integration_test.go b/pkg/checker/snmp/snmp_integration_test.go index ab66e1d..74216bf 100644 --- a/pkg/checker/snmp/snmp_integration_test.go +++ b/pkg/checker/snmp/snmp_integration_test.go @@ -1,6 +1,22 @@ //go:build integration // +build integration +/*- + * Copyright 2025 Carver Automation Corporation. + * + * 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 snmp pkg/checker/snmp/snmp_integration_test.go package snmp diff --git a/pkg/checker/snmp/target_status.go b/pkg/checker/snmp/target_status.go index b73c954..5fdae43 100644 --- a/pkg/checker/snmp/target_status.go +++ b/pkg/checker/snmp/target_status.go @@ -1,3 +1,19 @@ +/*- + * Copyright 2025 Carver Automation Corporation. + * + * 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 snmp pkg/checker/snmp/target_status.go package snmp diff --git a/pkg/checker/snmp/types.go b/pkg/checker/snmp/types.go index c6db0bd..ed5db82 100644 --- a/pkg/checker/snmp/types.go +++ b/pkg/checker/snmp/types.go @@ -1,3 +1,19 @@ +/*- + * Copyright 2025 Carver Automation Corporation. + * + * 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 snmp pkg/checker/snmp/types.go package snmp diff --git a/pkg/cloud/alerts/discord.go b/pkg/cloud/alerts/discord.go index decd4a5..a7be8a4 100644 --- a/pkg/cloud/alerts/discord.go +++ b/pkg/cloud/alerts/discord.go @@ -1,3 +1,19 @@ +/*- + * Copyright 2025 Carver Automation Corporation. + * + * 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 alerts import "time" diff --git a/pkg/cloud/alerts/interfaces.go b/pkg/cloud/alerts/interfaces.go index 40ab027..e31cfca 100644 --- a/pkg/cloud/alerts/interfaces.go +++ b/pkg/cloud/alerts/interfaces.go @@ -1,3 +1,19 @@ +/*- + * Copyright 2025 Carver Automation Corporation. + * + * 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 alerts pkg/cloud/alerts/interfaces.go //go:generate mockgen -destination=mock_alerts.go -package=alerts github.com/carverauto/serviceradar/pkg/cloud/alerts AlertService diff --git a/pkg/cloud/alerts/webhook.go b/pkg/cloud/alerts/webhook.go index 2b2a732..a80d49b 100644 --- a/pkg/cloud/alerts/webhook.go +++ b/pkg/cloud/alerts/webhook.go @@ -1,3 +1,19 @@ +/*- + * Copyright 2025 Carver Automation Corporation. + * + * 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 alerts import ( diff --git a/pkg/cloud/api/interfaces.go b/pkg/cloud/api/interfaces.go index 50f651a..01ea1cb 100644 --- a/pkg/cloud/api/interfaces.go +++ b/pkg/cloud/api/interfaces.go @@ -1,3 +1,19 @@ +/*- + * Copyright 2025 Carver Automation Corporation. + * + * 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 //go:generate mockgen -destination=mock_api_server.go -package=api github.com/carverauto/serviceradar/pkg/cloud/api Service diff --git a/pkg/cloud/api/server.go b/pkg/cloud/api/server.go index dfd6365..0869a6c 100644 --- a/pkg/cloud/api/server.go +++ b/pkg/cloud/api/server.go @@ -1,3 +1,19 @@ +/*- + * Copyright 2025 Carver Automation Corporation. + * + * 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. + */ + // pkg/cloud/api/server.go package api diff --git a/pkg/cloud/api/types.go b/pkg/cloud/api/types.go index a0a5736..865e78e 100644 --- a/pkg/cloud/api/types.go +++ b/pkg/cloud/api/types.go @@ -1,3 +1,19 @@ +/*- + * Copyright 2025 Carver Automation Corporation. + * + * 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/pkg/cloud/errors.go b/pkg/cloud/errors.go index a6994a9..d1152a0 100644 --- a/pkg/cloud/errors.go +++ b/pkg/cloud/errors.go @@ -1,3 +1,19 @@ +/*- + * Copyright 2025 Carver Automation Corporation. + * + * 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 cloud import "errors" diff --git a/pkg/cloud/interfaces.go b/pkg/cloud/interfaces.go index c594501..e2dccfe 100644 --- a/pkg/cloud/interfaces.go +++ b/pkg/cloud/interfaces.go @@ -1,3 +1,19 @@ +/*- + * Copyright 2025 Carver Automation Corporation. + * + * 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 cloud pkg/cloud/interfaces.go //go:generate mockgen -destination=mock_server.go -package=cloud github.com/carverauto/serviceradar/pkg/cloud NodeService,CloudService diff --git a/pkg/cloud/node_recovery.go b/pkg/cloud/node_recovery.go index 397ae73..18800c9 100644 --- a/pkg/cloud/node_recovery.go +++ b/pkg/cloud/node_recovery.go @@ -1,3 +1,19 @@ +/*- + * Copyright 2025 Carver Automation Corporation. + * + * 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 cloud import ( diff --git a/pkg/cloud/node_recovery_test.go b/pkg/cloud/node_recovery_test.go index 45ac9a6..e326d08 100644 --- a/pkg/cloud/node_recovery_test.go +++ b/pkg/cloud/node_recovery_test.go @@ -1,3 +1,19 @@ +/*- + * Copyright 2025 Carver Automation Corporation. + * + * 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 cloud import ( diff --git a/pkg/cloud/server.go b/pkg/cloud/server.go index b8a224e..19c9b6e 100644 --- a/pkg/cloud/server.go +++ b/pkg/cloud/server.go @@ -1,3 +1,19 @@ +/*- + * Copyright 2025 Carver Automation Corporation. + * + * 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 cloud import ( diff --git a/pkg/cloud/server_test.go b/pkg/cloud/server_test.go index 1e5bd36..384683c 100644 --- a/pkg/cloud/server_test.go +++ b/pkg/cloud/server_test.go @@ -1,3 +1,19 @@ +/*- + * Copyright 2025 Carver Automation Corporation. + * + * 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 cloud import ( diff --git a/pkg/cloud/types.go b/pkg/cloud/types.go index d18f5c4..297c20a 100644 --- a/pkg/cloud/types.go +++ b/pkg/cloud/types.go @@ -1,3 +1,19 @@ +/*- + * Copyright 2025 Carver Automation Corporation. + * + * 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 cloud import ( diff --git a/pkg/config/config.go b/pkg/config/config.go index 4bdf094..b63544e 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -1,3 +1,19 @@ +/*- + * Copyright 2025 Carver Automation Corporation. + * + * 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 pkg/config/config.go package config diff --git a/pkg/config/interfaces.go b/pkg/config/interfaces.go index c6da3dd..c10dde0 100644 --- a/pkg/config/interfaces.go +++ b/pkg/config/interfaces.go @@ -1,3 +1,19 @@ +/*- + * Copyright 2025 Carver Automation Corporation. + * + * 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 // Validator interface for configurations that need validation. diff --git a/pkg/config/types.go b/pkg/config/types.go index 5807c35..7fe9aac 100644 --- a/pkg/config/types.go +++ b/pkg/config/types.go @@ -1,3 +1,19 @@ +/*- + * Copyright 2025 Carver Automation Corporation. + * + * 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/pkg/db/clean.go b/pkg/db/clean.go index 46fba0d..f4c40f6 100644 --- a/pkg/db/clean.go +++ b/pkg/db/clean.go @@ -1,3 +1,19 @@ +/*- + * Copyright 2025 Carver Automation Corporation. + * + * 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 db import ( diff --git a/pkg/db/db.go b/pkg/db/db.go index aef250e..9e52020 100644 --- a/pkg/db/db.go +++ b/pkg/db/db.go @@ -1,3 +1,19 @@ +/*- + * Copyright 2025 Carver Automation Corporation. + * + * 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 db pkg/db/db.go provides SQLite database functionality for ServiceRadar package db diff --git a/pkg/db/errors.go b/pkg/db/errors.go index 8997b38..c4dac48 100644 --- a/pkg/db/errors.go +++ b/pkg/db/errors.go @@ -1,3 +1,19 @@ +/*- + * Copyright 2025 Carver Automation Corporation. + * + * 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 errors pkg/db/errors.go provides errors for the db package. package db diff --git a/pkg/db/interfaces.go b/pkg/db/interfaces.go index 2d8b329..aec2d36 100644 --- a/pkg/db/interfaces.go +++ b/pkg/db/interfaces.go @@ -1,3 +1,19 @@ +/*- + * Copyright 2025 Carver Automation Corporation. + * + * 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 db pkg/db/interfaces.go package db diff --git a/pkg/db/metrics.go b/pkg/db/metrics.go index 3567e57..70e657c 100644 --- a/pkg/db/metrics.go +++ b/pkg/db/metrics.go @@ -1,3 +1,19 @@ +/*- + * Copyright 2025 Carver Automation Corporation. + * + * 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 db import ( diff --git a/pkg/db/sql_wrappers.go b/pkg/db/sql_wrappers.go index 338858b..8a5acde 100644 --- a/pkg/db/sql_wrappers.go +++ b/pkg/db/sql_wrappers.go @@ -1,3 +1,19 @@ +/*- + * Copyright 2025 Carver Automation Corporation. + * + * 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 db pkg/db/sql_wrappers.go provides wrappers for the sql package to implement the // interfaces defined in pkg/db/interfaces.go. This allows the concrete sql package types to // be used in the db.Service interface. This is useful for testing and for decoupling the diff --git a/pkg/db/types.go b/pkg/db/types.go index a893dce..ed3b85e 100644 --- a/pkg/db/types.go +++ b/pkg/db/types.go @@ -1,3 +1,19 @@ +/*- + * Copyright 2025 Carver Automation Corporation. + * + * 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 db import "time" diff --git a/pkg/grpc/cert_manager.go b/pkg/grpc/cert_manager.go index f1ceac3..183d1c0 100644 --- a/pkg/grpc/cert_manager.go +++ b/pkg/grpc/cert_manager.go @@ -1,3 +1,19 @@ +/*- + * Copyright 2025 Carver Automation Corporation. + * + * 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 grpc import ( diff --git a/pkg/grpc/client.go b/pkg/grpc/client.go index 9fb9699..6011c39 100644 --- a/pkg/grpc/client.go +++ b/pkg/grpc/client.go @@ -1,3 +1,19 @@ +/*- + * Copyright 2025 Carver Automation Corporation. + * + * 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 grpc - gRPC client with mTLS support package grpc diff --git a/pkg/grpc/errors.go b/pkg/grpc/errors.go index 9a56aee..337ec7f 100644 --- a/pkg/grpc/errors.go +++ b/pkg/grpc/errors.go @@ -1,3 +1,19 @@ +/*- + * Copyright 2025 Carver Automation Corporation. + * + * 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 grpc import ( diff --git a/pkg/grpc/generate_certs_test.go b/pkg/grpc/generate_certs_test.go index 043c632..96d5e1b 100644 --- a/pkg/grpc/generate_certs_test.go +++ b/pkg/grpc/generate_certs_test.go @@ -1,3 +1,19 @@ +/*- + * Copyright 2025 Carver Automation Corporation. + * + * 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 grpc import ( diff --git a/pkg/grpc/interfaces.go b/pkg/grpc/interfaces.go index 222f345..84c05bc 100644 --- a/pkg/grpc/interfaces.go +++ b/pkg/grpc/interfaces.go @@ -1,3 +1,19 @@ +/*- + * Copyright 2025 Carver Automation Corporation. + * + * 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 grpc import ( diff --git a/pkg/grpc/security.go b/pkg/grpc/security.go index fb8fa72..d9c8842 100644 --- a/pkg/grpc/security.go +++ b/pkg/grpc/security.go @@ -1,3 +1,19 @@ +/*- + * Copyright 2025 Carver Automation Corporation. + * + * 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 grpc pkg/grpc/security.go provides secure gRPC communication options package grpc diff --git a/pkg/grpc/security_test.go b/pkg/grpc/security_test.go index f97b76c..23a538d 100644 --- a/pkg/grpc/security_test.go +++ b/pkg/grpc/security_test.go @@ -1,3 +1,19 @@ +/*- + * Copyright 2025 Carver Automation Corporation. + * + * 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 grpc import ( diff --git a/pkg/grpc/server.go b/pkg/grpc/server.go index 6464170..dd429e3 100644 --- a/pkg/grpc/server.go +++ b/pkg/grpc/server.go @@ -1,3 +1,19 @@ +/*- + * Copyright 2025 Carver Automation Corporation. + * + * 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 grpc pkg/grpc/server.go package grpc diff --git a/pkg/http/middleware.go b/pkg/http/middleware.go index a8ebb80..18d8c81 100644 --- a/pkg/http/middleware.go +++ b/pkg/http/middleware.go @@ -1,3 +1,19 @@ +/*- + * Copyright 2025 Carver Automation Corporation. + * + * 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 httpx provides HTTP utilities for the application package httpx diff --git a/pkg/lifecycle/server.go b/pkg/lifecycle/server.go index 2800cc3..5ae66ae 100644 --- a/pkg/lifecycle/server.go +++ b/pkg/lifecycle/server.go @@ -1,3 +1,19 @@ +/*- + * Copyright 2025 Carver Automation Corporation. + * + * 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 lifecycle import ( diff --git a/pkg/metrics/buffer.go b/pkg/metrics/buffer.go index c5b3d8f..4b6b973 100644 --- a/pkg/metrics/buffer.go +++ b/pkg/metrics/buffer.go @@ -1,3 +1,19 @@ +/*- + * Copyright 2025 Carver Automation Corporation. + * + * 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/pkg/metrics/buffer_bench_test.go b/pkg/metrics/buffer_bench_test.go index a5985e3..64ce505 100644 --- a/pkg/metrics/buffer_bench_test.go +++ b/pkg/metrics/buffer_bench_test.go @@ -1,3 +1,19 @@ +/*- + * Copyright 2025 Carver Automation Corporation. + * + * 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/pkg/metrics/buffer_test.go b/pkg/metrics/buffer_test.go index e0a273f..f0a9579 100644 --- a/pkg/metrics/buffer_test.go +++ b/pkg/metrics/buffer_test.go @@ -1,3 +1,19 @@ +/*- + * Copyright 2025 Carver Automation Corporation. + * + * 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/pkg/metrics/interfaces.go b/pkg/metrics/interfaces.go index 10d3453..c4336dc 100644 --- a/pkg/metrics/interfaces.go +++ b/pkg/metrics/interfaces.go @@ -1,3 +1,19 @@ +/*- + * Copyright 2025 Carver Automation Corporation. + * + * 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/pkg/metrics/manager.go b/pkg/metrics/manager.go index 07558f4..af617b1 100644 --- a/pkg/metrics/manager.go +++ b/pkg/metrics/manager.go @@ -1,3 +1,19 @@ +/*- + * Copyright 2025 Carver Automation Corporation. + * + * 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/pkg/models/grpc.go b/pkg/models/grpc.go index 045f27c..6731785 100644 --- a/pkg/models/grpc.go +++ b/pkg/models/grpc.go @@ -1,3 +1,19 @@ +/*- + * Copyright 2025 Carver Automation Corporation. + * + * 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 // ServerConfig holds the agent server configuration. diff --git a/pkg/models/metrics.go b/pkg/models/metrics.go index 2892bf1..ccfcfb9 100644 --- a/pkg/models/metrics.go +++ b/pkg/models/metrics.go @@ -1,3 +1,19 @@ +/*- + * Copyright 2025 Carver Automation Corporation. + * + * 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 pkg/models/metrics.go package models diff --git a/pkg/models/sweep.go b/pkg/models/sweep.go index 1544064..7dce085 100644 --- a/pkg/models/sweep.go +++ b/pkg/models/sweep.go @@ -1,3 +1,19 @@ +/*- + * Copyright 2025 Carver Automation Corporation. + * + * 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 "time" diff --git a/pkg/monitoring/monitor.go b/pkg/monitoring/monitor.go index b896873..3a8329a 100644 --- a/pkg/monitoring/monitor.go +++ b/pkg/monitoring/monitor.go @@ -1,3 +1,19 @@ +/*- + * Copyright 2025 Carver Automation Corporation. + * + * 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 monitoring pkg/monitoring/monitor.go package monitoring diff --git a/pkg/poller/config.go b/pkg/poller/config.go index 9c64de3..b2adc50 100644 --- a/pkg/poller/config.go +++ b/pkg/poller/config.go @@ -1,3 +1,19 @@ +/*- + * Copyright 2025 Carver Automation Corporation. + * + * 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 poller import ( diff --git a/pkg/poller/poller.go b/pkg/poller/poller.go index 2ee18aa..afbe489 100644 --- a/pkg/poller/poller.go +++ b/pkg/poller/poller.go @@ -1,3 +1,19 @@ +/*- + * Copyright 2025 Carver Automation Corporation. + * + * 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 poller pkg/poller/poller.go package poller diff --git a/pkg/scan/cleanup_manager.go b/pkg/scan/cleanup_manager.go index ee63bf5..e3e905d 100644 --- a/pkg/scan/cleanup_manager.go +++ b/pkg/scan/cleanup_manager.go @@ -1,3 +1,19 @@ +/*- + * Copyright 2025 Carver Automation Corporation. + * + * 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 scan import ( diff --git a/pkg/scan/combined_scanner.go b/pkg/scan/combined_scanner.go index 7505308..4185a85 100644 --- a/pkg/scan/combined_scanner.go +++ b/pkg/scan/combined_scanner.go @@ -1,3 +1,19 @@ +/*- + * Copyright 2025 Carver Automation Corporation. + * + * 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 scan import ( diff --git a/pkg/scan/combined_scanner_test.go b/pkg/scan/combined_scanner_test.go index 50fa3f9..6bb45f0 100644 --- a/pkg/scan/combined_scanner_test.go +++ b/pkg/scan/combined_scanner_test.go @@ -1,3 +1,19 @@ +/*- + * Copyright 2025 Carver Automation Corporation. + * + * 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 scan import ( diff --git a/pkg/scan/icmp_scanner.go b/pkg/scan/icmp_scanner.go index ef9943b..f53bae6 100644 --- a/pkg/scan/icmp_scanner.go +++ b/pkg/scan/icmp_scanner.go @@ -1,3 +1,19 @@ +/*- + * Copyright 2025 Carver Automation Corporation. + * + * 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 scan import ( diff --git a/pkg/scan/icmp_scanner_integration_test.go b/pkg/scan/icmp_scanner_integration_test.go index abdf3b0..2355892 100644 --- a/pkg/scan/icmp_scanner_integration_test.go +++ b/pkg/scan/icmp_scanner_integration_test.go @@ -1,6 +1,22 @@ //go:build integration // +build integration +/*- + * Copyright 2025 Carver Automation Corporation. + * + * 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 scan import ( diff --git a/pkg/scan/icmp_scanner_priv_test.go b/pkg/scan/icmp_scanner_priv_test.go index 8371b2d..934d968 100644 --- a/pkg/scan/icmp_scanner_priv_test.go +++ b/pkg/scan/icmp_scanner_priv_test.go @@ -1,5 +1,21 @@ //go:build icmp_privileged +/*- + * Copyright 2025 Carver Automation Corporation. + * + * 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 scan func TestICMPScanner_Scan_InvalidTargets(t *testing.T) { diff --git a/pkg/scan/icmp_scanner_test.go b/pkg/scan/icmp_scanner_test.go index 53df5e6..9a66448 100644 --- a/pkg/scan/icmp_scanner_test.go +++ b/pkg/scan/icmp_scanner_test.go @@ -1,3 +1,19 @@ +/*- + * Copyright 2025 Carver Automation Corporation. + * + * 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 scan import ( diff --git a/pkg/scan/interfaces.go b/pkg/scan/interfaces.go index 2fd96e7..6debb6f 100644 --- a/pkg/scan/interfaces.go +++ b/pkg/scan/interfaces.go @@ -1,3 +1,19 @@ +/*- + * Copyright 2025 Carver Automation Corporation. + * + * 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 scan import ( diff --git a/pkg/scan/ipv4_utils.go b/pkg/scan/ipv4_utils.go index cbd4f15..bdd1838 100644 --- a/pkg/scan/ipv4_utils.go +++ b/pkg/scan/ipv4_utils.go @@ -1,3 +1,19 @@ +/*- + * Copyright 2025 Carver Automation Corporation. + * + * 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 scan import ( diff --git a/pkg/scan/ipv4_utils_test.go b/pkg/scan/ipv4_utils_test.go index 2194cf1..77138ab 100644 --- a/pkg/scan/ipv4_utils_test.go +++ b/pkg/scan/ipv4_utils_test.go @@ -1,3 +1,19 @@ +/*- + * Copyright 2025 Carver Automation Corporation. + * + * 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 scan import ( diff --git a/pkg/scan/tcp_scanner.go b/pkg/scan/tcp_scanner.go index bd7c02a..948ce85 100644 --- a/pkg/scan/tcp_scanner.go +++ b/pkg/scan/tcp_scanner.go @@ -1,3 +1,19 @@ +/*- + * Copyright 2025 Carver Automation Corporation. + * + * 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 scan provides network scanning functionality package scan diff --git a/pkg/scan/tcp_scanner_test.go b/pkg/scan/tcp_scanner_test.go index db7a614..4b2d7c6 100644 --- a/pkg/scan/tcp_scanner_test.go +++ b/pkg/scan/tcp_scanner_test.go @@ -1,3 +1,19 @@ +/*- + * Copyright 2025 Carver Automation Corporation. + * + * 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 scan import ( diff --git a/pkg/sweeper/base_processor.go b/pkg/sweeper/base_processor.go index 4ffcc12..9ad915e 100644 --- a/pkg/sweeper/base_processor.go +++ b/pkg/sweeper/base_processor.go @@ -1,3 +1,19 @@ +/*- + * Copyright 2025 Carver Automation Corporation. + * + * 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 sweeper import ( diff --git a/pkg/sweeper/base_processor_test.go b/pkg/sweeper/base_processor_test.go index a9f3cca..99e92dc 100644 --- a/pkg/sweeper/base_processor_test.go +++ b/pkg/sweeper/base_processor_test.go @@ -1,3 +1,19 @@ +/*- + * Copyright 2025 Carver Automation Corporation. + * + * 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 sweeper import ( diff --git a/pkg/sweeper/interfaces.go b/pkg/sweeper/interfaces.go index d6a394d..73d2636 100644 --- a/pkg/sweeper/interfaces.go +++ b/pkg/sweeper/interfaces.go @@ -1,3 +1,19 @@ +/*- + * Copyright 2025 Carver Automation Corporation. + * + * 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 sweeper import ( diff --git a/pkg/sweeper/memory_store.go b/pkg/sweeper/memory_store.go index 95c9f50..c20ddfe 100644 --- a/pkg/sweeper/memory_store.go +++ b/pkg/sweeper/memory_store.go @@ -1,3 +1,19 @@ +/*- + * Copyright 2025 Carver Automation Corporation. + * + * 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 sweeper pkg/sweeper/memory_store.go package sweeper diff --git a/pkg/sweeper/sqlite_store.go b/pkg/sweeper/sqlite_store.go index 4dfec3d..88dff39 100644 --- a/pkg/sweeper/sqlite_store.go +++ b/pkg/sweeper/sqlite_store.go @@ -1,3 +1,19 @@ +/*- + * Copyright 2025 Carver Automation Corporation. + * + * 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 sweeper import ( diff --git a/pkg/sweeper/sweeper.go b/pkg/sweeper/sweeper.go index 6b94889..52269b7 100644 --- a/pkg/sweeper/sweeper.go +++ b/pkg/sweeper/sweeper.go @@ -1,3 +1,19 @@ +/*- + * Copyright 2025 Carver Automation Corporation. + * + * 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 sweeper pkg/sweeper/sweeper.go package sweeper diff --git a/pkg/sweeper/sweeper_test.go b/pkg/sweeper/sweeper_test.go index 70b14d7..ca79314 100644 --- a/pkg/sweeper/sweeper_test.go +++ b/pkg/sweeper/sweeper_test.go @@ -1,3 +1,19 @@ +/*- + * Copyright 2025 Carver Automation Corporation. + * + * 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 sweeper import ( diff --git a/proto/monitoring.proto b/proto/monitoring.proto index acae120..7acfc24 100644 --- a/proto/monitoring.proto +++ b/proto/monitoring.proto @@ -1,3 +1,19 @@ +/*- + * Copyright 2025 Carver Automation Corporation. + * + * 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. + */ + syntax = "proto3"; package monitoring; diff --git a/scripts/build-cloud.sh b/scripts/build-cloud.sh index a5a821d..682e79f 100755 --- a/scripts/build-cloud.sh +++ b/scripts/build-cloud.sh @@ -1,4 +1,20 @@ #!/bin/bash + +# Copyright 2025 Carver Automation Corporation. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# build-cloud.sh - Build the cloud package for ServiceRadar set -e VERSION=$1 diff --git a/scripts/buildAll.sh b/scripts/buildAll.sh index f0b180f..f7e53fd 100755 --- a/scripts/buildAll.sh +++ b/scripts/buildAll.sh @@ -1,7 +1,21 @@ #!/bin/bash -VERSION=${VERSION:-1.0.20} +# Copyright 2025 Carver Automation Corporation. +# +# 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. +# buildAll.sh - Build all packages for ServiceRadar +VERSION=${VERSION:-1.0.20} ./scripts/setup-deb-agent.sh ./scripts/setup-deb-poller.sh diff --git a/scripts/buildCloud.sh b/scripts/buildCloud.sh index 6b325cb..19d8e77 100755 --- a/scripts/buildCloud.sh +++ b/scripts/buildCloud.sh @@ -1,4 +1,21 @@ #!/bin/bash + + +# Copyright 2025 Carver Automation Corporation. +# +# 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. + +# buildCloud.sh - Build the cloud package for ServiceRadar set -e export VERSION=${VERSION} diff --git a/scripts/buildRpms.sh b/scripts/buildRpms.sh index b21d30b..d8fb554 100755 --- a/scripts/buildRpms.sh +++ b/scripts/buildRpms.sh @@ -1,4 +1,20 @@ #!/bin/bash + +# Copyright 2025 Carver Automation Corporation. +# +# 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. + +# buildRpms.sh - Build RPM packages for ServiceRadar set -e export VERSION=${VERSION:-1.0.20} diff --git a/scripts/buildServiceRadar.sh b/scripts/buildServiceRadar.sh index aa311d9..4dca9f3 100755 --- a/scripts/buildServiceRadar.sh +++ b/scripts/buildServiceRadar.sh @@ -1,4 +1,19 @@ #!/bin/bash + +# Copyright 2025 Carver Automation Corporation. +# +# 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. + # buildServiceradar.sh - Build and optionally install ServiceRadar components set -e # Exit on any error diff --git a/scripts/bump-version.sh b/scripts/bump-version.sh index 9f22c17..80bfa7f 100755 --- a/scripts/bump-version.sh +++ b/scripts/bump-version.sh @@ -1,4 +1,21 @@ #!/bin/bash + +# Copyright 2025 Carver Automation Corporation. +# +# 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. + + +# bump-version.sh - Bump the version of the setup scripts set -e # Default to patch version bump if no argument provided diff --git a/scripts/container-build-web.sh b/scripts/container-build-web.sh index 29130a1..3b5dcd4 100755 --- a/scripts/container-build-web.sh +++ b/scripts/container-build-web.sh @@ -1,4 +1,20 @@ #!/bin/bash + +# Copyright 2025 Carver Automation Corporation. +# +# 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-build-web.sh - Build the web package for ServiceRadar set -e cd /build/web diff --git a/scripts/deployTesting.sh b/scripts/deployTesting.sh index ce60406..9c0c523 100755 --- a/scripts/deployTesting.sh +++ b/scripts/deployTesting.sh @@ -1,5 +1,21 @@ #!/bin/bash +# Copyright 2025 Carver Automation Corporation. +# +# 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. + +# deployTesting.sh - Deploy the testing packages for ServiceRadar + # Define the version of the packages VERSION=${VERSION:-1.0.20} diff --git a/scripts/setup-build-env.sh b/scripts/setup-build-env.sh index aac635a..a877fe3 100644 --- a/scripts/setup-build-env.sh +++ b/scripts/setup-build-env.sh @@ -1,4 +1,19 @@ #!/bin/bash + +# Copyright 2025 Carver Automation Corporation. +# +# 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. + # setup-build-env.sh - Set up the build environment for serviceradar set -e diff --git a/scripts/setup-deb-agent.sh b/scripts/setup-deb-agent.sh index e51d665..45e2974 100755 --- a/scripts/setup-deb-agent.sh +++ b/scripts/setup-deb-agent.sh @@ -1,4 +1,19 @@ #!/bin/bash + +# Copyright 2025 Carver Automation Corporation. +# +# 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. + # setup-deb-agent.sh set -e # Exit on any error diff --git a/scripts/setup-deb-cloud.sh b/scripts/setup-deb-cloud.sh index 8d188ba..ea648e8 100755 --- a/scripts/setup-deb-cloud.sh +++ b/scripts/setup-deb-cloud.sh @@ -1,5 +1,20 @@ #!/bin/bash -# setup-deb-cloud.sh - UPDATED + +# Copyright 2025 Carver Automation Corporation. +# +# 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. + +# setup-deb-cloud.sh set -e # Exit on any error echo "Setting up package structure..." diff --git a/scripts/setup-deb-dusk-checker.sh b/scripts/setup-deb-dusk-checker.sh index e23400d..a081a79 100755 --- a/scripts/setup-deb-dusk-checker.sh +++ b/scripts/setup-deb-dusk-checker.sh @@ -1,4 +1,19 @@ #!/bin/bash + +# Copyright 2025 Carver Automation Corporation. +# +# 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. + # setup-deb-dusk-checker.sh set -e # Exit on any error diff --git a/scripts/setup-deb-poller.sh b/scripts/setup-deb-poller.sh index 366dbad..994ad4a 100755 --- a/scripts/setup-deb-poller.sh +++ b/scripts/setup-deb-poller.sh @@ -1,4 +1,19 @@ #!/bin/bash + +# Copyright 2025 Carver Automation Corporation. +# +# 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. + # setup-deb-poller.sh set -e # Exit on any error diff --git a/scripts/setup-deb-snmp-checker.sh b/scripts/setup-deb-snmp-checker.sh index 2855d33..058780c 100755 --- a/scripts/setup-deb-snmp-checker.sh +++ b/scripts/setup-deb-snmp-checker.sh @@ -1,4 +1,19 @@ #!/bin/bash + +# Copyright 2025 Carver Automation Corporation. +# +# 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. + # setup-deb-snmp-checker.sh set -e # Exit on any error diff --git a/scripts/setup-deb-web.sh b/scripts/setup-deb-web.sh index a9199a8..0bbe25d 100755 --- a/scripts/setup-deb-web.sh +++ b/scripts/setup-deb-web.sh @@ -1,5 +1,20 @@ #!/bin/bash -# setup-deb-web.sh - UPDATED + +# Copyright 2025 Carver Automation Corporation. +# +# 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. + +# setup-deb-web.sh set -e # Exit on any error echo "Setting up package structure for Next.js web interface..." diff --git a/scripts/update-configs-for-certs.sh b/scripts/update-configs-for-certs.sh deleted file mode 100755 index e8bf237..0000000 --- a/scripts/update-configs-for-certs.sh +++ /dev/null @@ -1,72 +0,0 @@ -#!/bin/bash -# update_configs.sh -# Script to update ServiceRadar component configurations for TLS - -set -e - -# Default values -CONFIG_DIR="/etc/serviceradar" -CERT_DIR="/etc/serviceradar/certs" - -usage() { - echo "Usage: $0 [-c config_dir] [-d cert_dir]" - echo " -c: Configuration directory (default: /etc/serviceradar)" - echo " -d: Certificate directory (default: /etc/serviceradar/certs)" - exit 1 -} - -while getopts "c:d:h" opt; do - case $opt in - c) CONFIG_DIR="$OPTARG" ;; - d) CERT_DIR="$OPTARG" ;; - h) usage ;; - \?) usage ;; - esac -done - -# Function to update JSON config files -update_config() { - local file="$1" - local tmp_file="${file}.tmp" - - if [ ! -f "$file" ]; then - echo "Warning: Config file $file not found, skipping..." - return - } - - # Add security configuration if it doesn't exist - if grep -q "security" "$file"; then - # Update existing security configuration - sed -i'.bak' \ - -e 's/"mode":[ ]*"[^"]*"/"mode": "mtls"/' \ - -e 's|"cert_dir":[ ]*"[^"]*"|"cert_dir": "'${CERT_DIR}'"|' \ - "$file" - else - # Add new security configuration before the last closing brace - sed -i'.bak' '$ i\,\n "security": {\n "mode": "mtls",\n "cert_dir": "'${CERT_DIR}'"\n }' "$file" - fi -} - -# Update configurations for each component -echo "Updating cloud configuration..." -update_config "${CONFIG_DIR}/cloud.json" - -echo "Updating poller configuration..." -update_config "${CONFIG_DIR}/poller.json" - -echo "Updating agent configuration..." -update_config "${CONFIG_DIR}/agent.json" - -echo " -Configuration updates complete! The following files have been updated: -- ${CONFIG_DIR}/cloud.json -- ${CONFIG_DIR}/poller.json -- ${CONFIG_DIR}/agent.json - -Backup files have been created with .bak extension. - -Please restart the services to apply the new configuration: -- systemctl restart serviceradar-cloud -- systemctl restart serviceradar-poller -- systemctl restart serviceradar-agent -" \ No newline at end of file