diff --git a/.cargo/config.toml b/.cargo/config.toml index 0c4494dc7..d8dc1a517 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -1,2 +1,16 @@ +# ---------------------------------------------------------------------------- # +# | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | # +# | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | # +# | ███████║██║ ██║██████╔╝███████║█████╗ | # +# | ██╔══██║██║ ██║██╔══██╗██╔══██║██╔══╝ | # +# | ██║ ██║╚██████╔╝██║ ██║██║ ██║███████╗ | # +# | ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ | # +# +--------------------------------------------+ # +# # +# Distributed Systems Runtime # +# ---------------------------------------------------------------------------- # +# Copyright 2022 - 2024, the aurae contributors # +# SPDX-License-Identifier: Apache-2.0 # +# ---------------------------------------------------------------------------- # [build] rustflags = "--cfg tokio_unstable" diff --git a/Cargo.toml b/Cargo.toml index 1419993cb..09e8a1905 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,4 @@ # ---------------------------------------------------------------------------- # -# Apache 2.0 License Copyright © 2022-2023 The Aurae Authors # -# # -# +--------------------------------------------+ # # | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | # # | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | # # | ███████║██║ ██║██████╔╝███████║█████╗ | # @@ -11,21 +8,9 @@ # +--------------------------------------------+ # # # # Distributed Systems Runtime # -# # # ---------------------------------------------------------------------------- # -# # -# 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. # -# # +# Copyright 2022 - 2024, the aurae contributors # +# SPDX-License-Identifier: Apache-2.0 # # ---------------------------------------------------------------------------- # [workspace] diff --git a/Makefile b/Makefile index 513d64387..23f34d7fb 100644 --- a/Makefile +++ b/Makefile @@ -444,15 +444,11 @@ tlsinfo: ## Show TLS Info for /var/run/aurae* fmt: headers ## Format the entire code base(s) ./hack/code-format +# writes license headers to files that are missing them. from the root of the +# repo, you can run `DRY_RUN=1 ./hack/headers-write` manually in case you are +# unsure what the script is going to do .PHONY: headers -headers: headers-write ## Fix headers. Run this if you want to clobber things. - -.PHONY: headers-check -headers-check: ## Only check for problematic files. - ./hack/headers-check - -.PHONY: headers-write -headers-write: ## Fix any problematic files blindly. +headers: ./hack/headers-write .PHONY: check-deps diff --git a/aer/Cargo.toml b/aer/Cargo.toml index 5b97a91f9..0f641e610 100644 --- a/aer/Cargo.toml +++ b/aer/Cargo.toml @@ -1,3 +1,17 @@ +# ---------------------------------------------------------------------------- # +# | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | # +# | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | # +# | ███████║██║ ██║██████╔╝███████║█████╗ | # +# | ██╔══██║██║ ██║██╔══██╗██╔══██║██╔══╝ | # +# | ██║ ██║╚██████╔╝██║ ██║██║ ██║███████╗ | # +# | ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ | # +# +--------------------------------------------+ # +# # +# Distributed Systems Runtime # +# ---------------------------------------------------------------------------- # +# Copyright 2022 - 2024, the aurae contributors # +# SPDX-License-Identifier: Apache-2.0 # +# ---------------------------------------------------------------------------- # [package] name = "aer" version = "0.0.0" diff --git a/aer/macros/Cargo.toml b/aer/macros/Cargo.toml index b24a38037..09610c121 100644 --- a/aer/macros/Cargo.toml +++ b/aer/macros/Cargo.toml @@ -1,3 +1,17 @@ +# ---------------------------------------------------------------------------- # +# | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | # +# | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | # +# | ███████║██║ ██║██████╔╝███████║█████╗ | # +# | ██╔══██║██║ ██║██╔══██╗██╔══██║██╔══╝ | # +# | ██║ ██║╚██████╔╝██║ ██║██║ ██║███████╗ | # +# | ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ | # +# +--------------------------------------------+ # +# # +# Distributed Systems Runtime # +# ---------------------------------------------------------------------------- # +# Copyright 2022 - 2024, the aurae contributors # +# SPDX-License-Identifier: Apache-2.0 # +# ---------------------------------------------------------------------------- # [package] name = "aer-macros" version = "0.0.0" @@ -17,4 +31,4 @@ protobuf = { workspace = true } protobuf-parse = { workspace = true } proto-reader = { path = "../../crates/proto-reader" } # using workspace isn't working quote = { workspace = true } -syn = { workspace = true } \ No newline at end of file +syn = { workspace = true } diff --git a/aer/macros/src/lib.rs b/aer/macros/src/lib.rs index f136578f5..901fa3db4 100644 --- a/aer/macros/src/lib.rs +++ b/aer/macros/src/lib.rs @@ -1,7 +1,4 @@ /* -------------------------------------------------------------------------- *\ - * Apache 2.0 License Copyright © 2022-2023 The Aurae Authors * - * * - * +--------------------------------------------+ * * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * * | ███████║██║ ██║██████╔╝███████║█████╗ | * @@ -11,21 +8,9 @@ * +--------------------------------------------+ * * * * Distributed Systems Runtime * - * * * -------------------------------------------------------------------------- * - * * - * 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. * - * * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * \* -------------------------------------------------------------------------- */ // The project prefers .expect("reason") instead of .unwrap() so we fail @@ -63,4 +48,4 @@ pub fn subcommand(input: TokenStream) -> TokenStream { #[proc_macro] pub fn subcommand_for_dev_only(input: TokenStream) -> TokenStream { subcommand::subcommand(input, false) -} +} \ No newline at end of file diff --git a/aer/macros/src/subcommand.rs b/aer/macros/src/subcommand.rs index c158aea85..63ca6215a 100644 --- a/aer/macros/src/subcommand.rs +++ b/aer/macros/src/subcommand.rs @@ -1,3 +1,17 @@ +/* -------------------------------------------------------------------------- *\ + * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * + * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * + * | ███████║██║ ██║██████╔╝███████║█████╗ | * + * | ██╔══██║██║ ██║██╔══██╗██╔══██║██╔══╝ | * + * | ██║ ██║╚██████╔╝██║ ██║██║ ██║███████╗ | * + * | ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ | * + * +--------------------------------------------+ * + * * + * Distributed Systems Runtime * + * -------------------------------------------------------------------------- * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * +\* -------------------------------------------------------------------------- */ /* -------------------------------------------------------------------------- *\ * Apache 2.0 License Copyright © 2022-2023 The Aurae Authors * * * @@ -603,4 +617,4 @@ fn write_mapping( mapping.push_str("};"); mapping -} +} \ No newline at end of file diff --git a/aer/src/bin/main.rs b/aer/src/bin/main.rs index 5d228fbef..89a907ed1 100644 --- a/aer/src/bin/main.rs +++ b/aer/src/bin/main.rs @@ -1,3 +1,17 @@ +/* -------------------------------------------------------------------------- *\ + * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * + * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * + * | ███████║██║ ██║██████╔╝███████║█████╗ | * + * | ██╔══██║██║ ██║██╔══██╗██╔══██║██╔══╝ | * + * | ██║ ██║╚██████╔╝██║ ██║██║ ██║███████╗ | * + * | ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ | * + * +--------------------------------------------+ * + * * + * Distributed Systems Runtime * + * -------------------------------------------------------------------------- * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * +\* -------------------------------------------------------------------------- */ /* -------------------------------------------------------------------------- *\ * Apache 2.0 License Copyright © 2022-2023 The Aurae Authors * * * @@ -77,4 +91,4 @@ async fn main() { } { eprintln!("{e:#?}"); } -} +} \ No newline at end of file diff --git a/aer/src/cri/image_service.rs b/aer/src/cri/image_service.rs index 937ee41dd..8e97b172e 100644 --- a/aer/src/cri/image_service.rs +++ b/aer/src/cri/image_service.rs @@ -1,3 +1,17 @@ +/* -------------------------------------------------------------------------- *\ + * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * + * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * + * | ███████║██║ ██║██████╔╝███████║█████╗ | * + * | ██╔══██║██║ ██║██╔══██╗██╔══██║██╔══╝ | * + * | ██║ ██║╚██████╔╝██║ ██║██║ ██║███████╗ | * + * | ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ | * + * +--------------------------------------------+ * + * * + * Distributed Systems Runtime * + * -------------------------------------------------------------------------- * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * +\* -------------------------------------------------------------------------- */ /* -------------------------------------------------------------------------- *\ * Apache 2.0 License Copyright © 2022-2023 The Aurae Authors * * * @@ -37,4 +51,4 @@ // "../api/kubernetes/cri/v1/release-1.26.proto", // kubernetes::cri, // ImageService, -// ); +// ); \ No newline at end of file diff --git a/aer/src/cri/mod.rs b/aer/src/cri/mod.rs index 24089f576..8ad1d4893 100644 --- a/aer/src/cri/mod.rs +++ b/aer/src/cri/mod.rs @@ -1,3 +1,17 @@ +/* -------------------------------------------------------------------------- *\ + * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * + * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * + * | ███████║██║ ██║██████╔╝███████║█████╗ | * + * | ██╔══██║██║ ██║██╔══██╗██╔══██║██╔══╝ | * + * | ██║ ██║╚██████╔╝██║ ██║██║ ██║███████╗ | * + * | ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ | * + * +--------------------------------------------+ * + * * + * Distributed Systems Runtime * + * -------------------------------------------------------------------------- * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * +\* -------------------------------------------------------------------------- */ /* -------------------------------------------------------------------------- *\ * Apache 2.0 License Copyright © 2022-2023 The Aurae Authors * * * @@ -29,4 +43,4 @@ \* -------------------------------------------------------------------------- */ pub mod image_service; -pub mod pod_service; +pub mod pod_service; \ No newline at end of file diff --git a/aer/src/cri/pod_service.rs b/aer/src/cri/pod_service.rs index 04fef245d..97111dc85 100644 --- a/aer/src/cri/pod_service.rs +++ b/aer/src/cri/pod_service.rs @@ -1,3 +1,17 @@ +/* -------------------------------------------------------------------------- *\ + * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * + * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * + * | ███████║██║ ██║██████╔╝███████║█████╗ | * + * | ██╔══██║██║ ██║██╔══██╗██╔══██║██╔══╝ | * + * | ██║ ██║╚██████╔╝██║ ██║██║ ██║███████╗ | * + * | ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ | * + * +--------------------------------------------+ * + * * + * Distributed Systems Runtime * + * -------------------------------------------------------------------------- * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * +\* -------------------------------------------------------------------------- */ /* -------------------------------------------------------------------------- *\ * Apache 2.0 License Copyright © 2022-2023 The Aurae Authors * * * @@ -37,4 +51,4 @@ // "../api/kubernetes/cri/v1/release-1.26.proto", // kubernetes::cri, // RuntimeService, -// ); +// ); \ No newline at end of file diff --git a/aer/src/discovery/discovery_service.rs b/aer/src/discovery/discovery_service.rs index db6a2452e..4335b95c7 100644 --- a/aer/src/discovery/discovery_service.rs +++ b/aer/src/discovery/discovery_service.rs @@ -1,3 +1,17 @@ +/* -------------------------------------------------------------------------- *\ + * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * + * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * + * | ███████║██║ ██║██████╔╝███████║█████╗ | * + * | ██╔══██║██║ ██║██╔══██╗██╔══██║██╔══╝ | * + * | ██║ ██║╚██████╔╝██║ ██║██║ ██║███████╗ | * + * | ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ | * + * +--------------------------------------------+ * + * * + * Distributed Systems Runtime * + * -------------------------------------------------------------------------- * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * +\* -------------------------------------------------------------------------- */ /* -------------------------------------------------------------------------- *\ * Apache 2.0 License Copyright © 2022-2023 The Aurae Authors * * * @@ -32,4 +46,4 @@ macros::subcommand!( "../api/v0/discovery/discovery.proto", discovery, DiscoveryService -); +); \ No newline at end of file diff --git a/aer/src/discovery/mod.rs b/aer/src/discovery/mod.rs index 3df3f2b3c..325117b5a 100644 --- a/aer/src/discovery/mod.rs +++ b/aer/src/discovery/mod.rs @@ -1,3 +1,17 @@ +/* -------------------------------------------------------------------------- *\ + * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * + * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * + * | ███████║██║ ██║██████╔╝███████║█████╗ | * + * | ██╔══██║██║ ██║██╔══██╗██╔══██║██╔══╝ | * + * | ██║ ██║╚██████╔╝██║ ██║██║ ██║███████╗ | * + * | ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ | * + * +--------------------------------------------+ * + * * + * Distributed Systems Runtime * + * -------------------------------------------------------------------------- * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * +\* -------------------------------------------------------------------------- */ /* -------------------------------------------------------------------------- *\ * Apache 2.0 License Copyright © 2022-2023 The Aurae Authors * * * @@ -30,4 +44,4 @@ pub use discovery_service::DiscoveryServiceCommands; -mod discovery_service; +mod discovery_service; \ No newline at end of file diff --git a/aer/src/grpc/health_service.rs b/aer/src/grpc/health_service.rs index bd1ac1443..049b4e914 100644 --- a/aer/src/grpc/health_service.rs +++ b/aer/src/grpc/health_service.rs @@ -1,3 +1,17 @@ +/* -------------------------------------------------------------------------- *\ + * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * + * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * + * | ███████║██║ ██║██████╔╝███████║█████╗ | * + * | ██╔══██║██║ ██║██╔══██╗██╔══██║██╔══╝ | * + * | ██║ ██║╚██████╔╝██║ ██║██║ ██║███████╗ | * + * | ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ | * + * +--------------------------------------------+ * + * * + * Distributed Systems Runtime * + * -------------------------------------------------------------------------- * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * +\* -------------------------------------------------------------------------- */ /* -------------------------------------------------------------------------- *\ * Apache 2.0 License Copyright © 2022-2023 The Aurae Authors * * * @@ -28,4 +42,4 @@ * * \* -------------------------------------------------------------------------- */ -macros::subcommand!("../api/grpc/health/v1/health.proto", grpc::health, Health); +macros::subcommand!("../api/grpc/health/v1/health.proto", grpc::health, Health); \ No newline at end of file diff --git a/aer/src/grpc/mod.rs b/aer/src/grpc/mod.rs index 387a53e3c..d04484352 100644 --- a/aer/src/grpc/mod.rs +++ b/aer/src/grpc/mod.rs @@ -1,3 +1,17 @@ +/* -------------------------------------------------------------------------- *\ + * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * + * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * + * | ███████║██║ ██║██████╔╝███████║█████╗ | * + * | ██╔══██║██║ ██║██╔══██╗██╔══██║██╔══╝ | * + * | ██║ ██║╚██████╔╝██║ ██║██║ ██║███████╗ | * + * | ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ | * + * +--------------------------------------------+ * + * * + * Distributed Systems Runtime * + * -------------------------------------------------------------------------- * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * +\* -------------------------------------------------------------------------- */ /* -------------------------------------------------------------------------- *\ * Apache 2.0 License Copyright © 2022-2023 The Aurae Authors * * * @@ -30,4 +44,4 @@ pub use health_service::HealthCommands; -mod health_service; +mod health_service; \ No newline at end of file diff --git a/aer/src/lib.rs b/aer/src/lib.rs index 7daba0660..9db6eab93 100644 --- a/aer/src/lib.rs +++ b/aer/src/lib.rs @@ -1,3 +1,17 @@ +/* -------------------------------------------------------------------------- *\ + * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * + * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * + * | ███████║██║ ██║██████╔╝███████║█████╗ | * + * | ██╔══██║██║ ██║██╔══██╗██╔══██║██╔══╝ | * + * | ██║ ██║╚██████╔╝██║ ██║██║ ██║███████╗ | * + * | ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ | * + * +--------------------------------------------+ * + * * + * Distributed Systems Runtime * + * -------------------------------------------------------------------------- * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * +\* -------------------------------------------------------------------------- */ /* -------------------------------------------------------------------------- *\ * Apache 2.0 License Copyright © 2022-2023 The Aurae Authors * * * @@ -85,4 +99,4 @@ macro_rules! execute_server_streaming { println!("{res:#?}"); } }}; -} +} \ No newline at end of file diff --git a/aer/src/observe/mod.rs b/aer/src/observe/mod.rs index a4b684139..8c8f23f23 100644 --- a/aer/src/observe/mod.rs +++ b/aer/src/observe/mod.rs @@ -1,3 +1,17 @@ +/* -------------------------------------------------------------------------- *\ + * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * + * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * + * | ███████║██║ ██║██████╔╝███████║█████╗ | * + * | ██╔══██║██║ ██║██╔══██╗██╔══██║██╔══╝ | * + * | ██║ ██║╚██████╔╝██║ ██║██║ ██║███████╗ | * + * | ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ | * + * +--------------------------------------------+ * + * * + * Distributed Systems Runtime * + * -------------------------------------------------------------------------- * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * +\* -------------------------------------------------------------------------- */ /* -------------------------------------------------------------------------- *\ * Apache 2.0 License Copyright © 2022-2023 The Aurae Authors * * * @@ -30,4 +44,4 @@ pub use observe_service::ObserveServiceCommands; -mod observe_service; +mod observe_service; \ No newline at end of file diff --git a/aer/src/observe/observe_service.rs b/aer/src/observe/observe_service.rs index b937f65fd..eb8239aa6 100644 --- a/aer/src/observe/observe_service.rs +++ b/aer/src/observe/observe_service.rs @@ -1,3 +1,17 @@ +/* -------------------------------------------------------------------------- *\ + * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * + * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * + * | ███████║██║ ██║██████╔╝███████║█████╗ | * + * | ██╔══██║██║ ██║██╔══██╗██╔══██║██╔══╝ | * + * | ██║ ██║╚██████╔╝██║ ██║██║ ██║███████╗ | * + * | ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ | * + * +--------------------------------------------+ * + * * + * Distributed Systems Runtime * + * -------------------------------------------------------------------------- * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * +\* -------------------------------------------------------------------------- */ /* -------------------------------------------------------------------------- *\ * Apache 2.0 License Copyright © 2022-2023 The Aurae Authors * * * @@ -33,4 +47,4 @@ macros::subcommand!("../api/v0/observe/observe.proto", observe, ObserveService, process_id[required = true, alias = "pid"], channel_type[default_value = "1"], // default to stdout }, -); +); \ No newline at end of file diff --git a/aer/src/runtime/cell_service.rs b/aer/src/runtime/cell_service.rs index 6025eb948..d27432b24 100644 --- a/aer/src/runtime/cell_service.rs +++ b/aer/src/runtime/cell_service.rs @@ -1,3 +1,17 @@ +/* -------------------------------------------------------------------------- *\ + * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * + * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * + * | ███████║██║ ██║██████╔╝███████║█████╗ | * + * | ██╔══██║██║ ██║██╔══██╗██╔══██║██╔══╝ | * + * | ██║ ██║╚██████╔╝██║ ██║██║ ██║███████╗ | * + * | ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ | * + * +--------------------------------------------+ * + * * + * Distributed Systems Runtime * + * -------------------------------------------------------------------------- * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * +\* -------------------------------------------------------------------------- */ /* -------------------------------------------------------------------------- *\ * Apache 2.0 License Copyright © 2022-2023 The Aurae Authors * * * @@ -54,4 +68,4 @@ macros::subcommand!( cell_name[required = true], executable_name[required = true], }, -); +); \ No newline at end of file diff --git a/aer/src/runtime/mod.rs b/aer/src/runtime/mod.rs index f59341d70..08c5dc8d1 100644 --- a/aer/src/runtime/mod.rs +++ b/aer/src/runtime/mod.rs @@ -1,3 +1,17 @@ +/* -------------------------------------------------------------------------- *\ + * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * + * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * + * | ███████║██║ ██║██████╔╝███████║█████╗ | * + * | ██╔══██║██║ ██║██╔══██╗██╔══██║██╔══╝ | * + * | ██║ ██║╚██████╔╝██║ ██║██║ ██║███████╗ | * + * | ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ | * + * +--------------------------------------------+ * + * * + * Distributed Systems Runtime * + * -------------------------------------------------------------------------- * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * +\* -------------------------------------------------------------------------- */ /* -------------------------------------------------------------------------- *\ * Apache 2.0 License Copyright © 2022-2023 The Aurae Authors * * * @@ -30,4 +44,4 @@ pub use cell_service::CellServiceCommands; -mod cell_service; +mod cell_service; \ No newline at end of file diff --git a/auraed/Cargo.toml b/auraed/Cargo.toml index f56fed1ad..e1481c9c3 100644 --- a/auraed/Cargo.toml +++ b/auraed/Cargo.toml @@ -1,7 +1,4 @@ # ---------------------------------------------------------------------------- # -# Apache 2.0 License Copyright © 2022-2023 The Aurae Authors # -# # -# +--------------------------------------------+ # # | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | # # | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | # # | ███████║██║ ██║██████╔╝███████║█████╗ | # @@ -11,21 +8,9 @@ # +--------------------------------------------+ # # # # Distributed Systems Runtime # -# # # ---------------------------------------------------------------------------- # -# # -# 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. # -# # +# Copyright 2022 - 2024, the aurae contributors # +# SPDX-License-Identifier: Apache-2.0 # # ---------------------------------------------------------------------------- # [package] diff --git a/auraed/hack/initramfs/utils.sh b/auraed/hack/initramfs/utils.sh index 9f161fd32..387f982f1 100755 --- a/auraed/hack/initramfs/utils.sh +++ b/auraed/hack/initramfs/utils.sh @@ -1,3 +1,17 @@ +# ---------------------------------------------------------------------------- # +# | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | # +# | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | # +# | ███████║██║ ██║██████╔╝███████║█████╗ | # +# | ██╔══██║██║ ██║██╔══██╗██╔══██║██╔══╝ | # +# | ██║ ██║╚██████╔╝██║ ██║██║ ██║███████╗ | # +# | ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ | # +# +--------------------------------------------+ # +# # +# Distributed Systems Runtime # +# ---------------------------------------------------------------------------- # +# Copyright 2022 - 2024, the aurae contributors # +# SPDX-License-Identifier: Apache-2.0 # +# ---------------------------------------------------------------------------- # #!/bin/bash # -------------------------------------------------------------------------- # @@ -37,8 +51,8 @@ copy_lib() { install_libs() { libs=$(ldd $1 \ | grep so \ - | sed -e '/^[^\t]/ d' \ - | sed -e 's/\t//' \ + | sed -e '/^[^ ]/ d' \ + | sed -e 's/ //' \ | sed -e 's/.*=..//' \ | sed -e 's/ (0.*)//' \ | sort \ diff --git a/auraed/hack/kernel/config.sh b/auraed/hack/kernel/config.sh index 1940b621a..9ae01bd2f 100755 --- a/auraed/hack/kernel/config.sh +++ b/auraed/hack/kernel/config.sh @@ -1,3 +1,17 @@ +# ---------------------------------------------------------------------------- # +# | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | # +# | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | # +# | ███████║██║ ██║██████╔╝███████║█████╗ | # +# | ██╔══██║██║ ██║██╔══██╗██╔══██║██╔══╝ | # +# | ██║ ██║╚██████╔╝██║ ██║██║ ██║███████╗ | # +# | ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ | # +# +--------------------------------------------+ # +# # +# Distributed Systems Runtime # +# ---------------------------------------------------------------------------- # +# Copyright 2022 - 2024, the aurae contributors # +# SPDX-License-Identifier: Apache-2.0 # +# ---------------------------------------------------------------------------- # #!/bin/bash # -------------------------------------------------------------------------- # @@ -31,4 +45,4 @@ # -------------------------------------------------------------------------- # export KERNEL_VERSION=5.15.68 -export KERNEL_CONFIG="aurae-linux-${KERNEL_VERSION}.config" \ No newline at end of file +export KERNEL_CONFIG="aurae-linux-${KERNEL_VERSION}.config" diff --git a/auraed/hack/libvirt/init.sh b/auraed/hack/libvirt/init.sh index e85c730bc..1f218a2f9 100755 --- a/auraed/hack/libvirt/init.sh +++ b/auraed/hack/libvirt/init.sh @@ -1,3 +1,17 @@ +# ---------------------------------------------------------------------------- # +# | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | # +# | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | # +# | ███████║██║ ██║██████╔╝███████║█████╗ | # +# | ██╔══██║██║ ██║██╔══██╗██╔══██║██╔══╝ | # +# | ██║ ██║╚██████╔╝██║ ██║██║ ██║███████╗ | # +# | ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ | # +# +--------------------------------------------+ # +# # +# Distributed Systems Runtime # +# ---------------------------------------------------------------------------- # +# Copyright 2022 - 2024, the aurae contributors # +# SPDX-License-Identifier: Apache-2.0 # +# ---------------------------------------------------------------------------- # #!/bin/bash # -------------------------------------------------------------------------- # diff --git a/auraed/src/auraed_path.rs b/auraed/src/auraed_path.rs index b8360d5e4..db8d9ff28 100644 --- a/auraed/src/auraed_path.rs +++ b/auraed/src/auraed_path.rs @@ -1,3 +1,17 @@ +/* -------------------------------------------------------------------------- *\ + * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * + * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * + * | ███████║██║ ██║██████╔╝███████║█████╗ | * + * | ██╔══██║██║ ██║██╔══██╗██╔══██║██╔══╝ | * + * | ██║ ██║╚██████╔╝██║ ██║██║ ██║███████╗ | * + * | ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ | * + * +--------------------------------------------+ * + * * + * Distributed Systems Runtime * + * -------------------------------------------------------------------------- * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * +\* -------------------------------------------------------------------------- */ use std::fmt::{Display, Formatter}; use std::path::PathBuf; @@ -53,4 +67,4 @@ impl Display for AuraedPath { None => std::fmt::Display::fmt(PROC_SELF_EXE, f), } } -} +} \ No newline at end of file diff --git a/auraed/src/bin/main.rs b/auraed/src/bin/main.rs index d347a6573..c3e34e881 100644 --- a/auraed/src/bin/main.rs +++ b/auraed/src/bin/main.rs @@ -1,7 +1,4 @@ /* -------------------------------------------------------------------------- *\ - * Apache 2.0 License Copyright © 2022-2023 The Aurae Authors * - * * - * +--------------------------------------------+ * * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * * | ███████║██║ ██║██████╔╝███████║█████╗ | * @@ -11,21 +8,9 @@ * +--------------------------------------------+ * * * * Distributed Systems Runtime * - * * * -------------------------------------------------------------------------- * - * * - * 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. * - * * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * \* -------------------------------------------------------------------------- */ // Lint groups: https://doc.rust-lang.org/rustc/lints/groups.html @@ -198,4 +183,4 @@ async fn handle_spawn_subcommand(output: &str) -> i32 { info!("Spawning Auraed OCI bundle: {}", output); prep_oci_spec_for_spawn(output); // Prepare the OCI spec for spawning EXIT_OKAY // Return success exit code -} +} \ No newline at end of file diff --git a/auraed/src/cells/cell_service/cell_service.rs b/auraed/src/cells/cell_service/cell_service.rs index fa6462a81..bf2b6fbfa 100644 --- a/auraed/src/cells/cell_service/cell_service.rs +++ b/auraed/src/cells/cell_service/cell_service.rs @@ -1,7 +1,4 @@ /* -------------------------------------------------------------------------- *\ - * Apache 2.0 License Copyright © 2022-2023 The Aurae Authors * - * * - * +--------------------------------------------+ * * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * * | ███████║██║ ██║██████╔╝███████║█████╗ | * @@ -11,21 +8,9 @@ * +--------------------------------------------+ * * * * Distributed Systems Runtime * - * * * -------------------------------------------------------------------------- * - * * - * 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. * - * * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * \* -------------------------------------------------------------------------- */ use super::{ @@ -675,4 +660,4 @@ mod tests { // Return the validated allocate request ValidatedCellServiceAllocateRequest { cell } } -} +} \ No newline at end of file diff --git a/auraed/src/cells/cell_service/cells/cell.rs b/auraed/src/cells/cell_service/cells/cell.rs index 2538f84cf..b449ba731 100644 --- a/auraed/src/cells/cell_service/cells/cell.rs +++ b/auraed/src/cells/cell_service/cells/cell.rs @@ -1,7 +1,4 @@ /* -------------------------------------------------------------------------- *\ - * Apache 2.0 License Copyright © 2022-2023 The Aurae Authors * - * * - * +--------------------------------------------+ * * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * * | ███████║██║ ██║██████╔╝███████║█████╗ | * @@ -11,21 +8,9 @@ * +--------------------------------------------+ * * * * Distributed Systems Runtime * - * * * -------------------------------------------------------------------------- * - * * - * 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. * - * * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * \* -------------------------------------------------------------------------- */ use super::{ @@ -294,4 +279,4 @@ mod tests { cell.allocate().expect("failed to allocate 2"); assert!(matches!(cell.state, CellState::Freed)); } -} +} \ No newline at end of file diff --git a/auraed/src/cells/cell_service/cells/cell_name.rs b/auraed/src/cells/cell_service/cells/cell_name.rs index c0ef3700f..3f4315202 100644 --- a/auraed/src/cells/cell_service/cells/cell_name.rs +++ b/auraed/src/cells/cell_service/cells/cell_name.rs @@ -1,3 +1,17 @@ +/* -------------------------------------------------------------------------- *\ + * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * + * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * + * | ███████║██║ ██║██████╔╝███████║█████╗ | * + * | ██╔══██║██║ ██║██╔══██╗██╔══██║██╔══╝ | * + * | ██║ ██║╚██████╔╝██║ ██║██║ ██║███████╗ | * + * | ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ | * + * +--------------------------------------------+ * + * * + * Distributed Systems Runtime * + * -------------------------------------------------------------------------- * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * +\* -------------------------------------------------------------------------- */ use iter_tools::Itertools; use std::borrow::Cow; use std::fmt::{Display, Formatter}; @@ -212,4 +226,4 @@ mod tests { assert_eq!(child_of_grandparent, parent_cell_name); } -} +} \ No newline at end of file diff --git a/auraed/src/cells/cell_service/cells/cells.rs b/auraed/src/cells/cell_service/cells/cells.rs index be75cb1eb..f6b0fba85 100644 --- a/auraed/src/cells/cell_service/cells/cells.rs +++ b/auraed/src/cells/cell_service/cells/cells.rs @@ -1,7 +1,4 @@ /* -------------------------------------------------------------------------- *\ - * Apache 2.0 License Copyright © 2022-2023 The Aurae Authors * - * * - * +--------------------------------------------+ * * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * * | ███████║██║ ██║██████╔╝███████║█████╗ | * @@ -11,21 +8,9 @@ * +--------------------------------------------+ * * * * Distributed Systems Runtime * - * * * -------------------------------------------------------------------------- * - * * - * 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. * - * * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * \* -------------------------------------------------------------------------- */ use super::{cgroups::Cgroup, Cell, CellName, CellSpec, CellsError, Result}; @@ -460,4 +445,4 @@ mod tests { assert_eq!(child_cell.name, child_cell_name); assert_eq!(child_cell.children.len(), 0); } -} +} \ No newline at end of file diff --git a/auraed/src/cells/cell_service/cells/cells_cache.rs b/auraed/src/cells/cell_service/cells/cells_cache.rs index e8cd29903..9b8b66965 100644 --- a/auraed/src/cells/cell_service/cells/cells_cache.rs +++ b/auraed/src/cells/cell_service/cells/cells_cache.rs @@ -1,3 +1,17 @@ +/* -------------------------------------------------------------------------- *\ + * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * + * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * + * | ███████║██║ ██║██████╔╝███████║█████╗ | * + * | ██╔══██║██║ ██║██╔══██╗██╔══██║██╔══╝ | * + * | ██║ ██║╚██████╔╝██║ ██║██║ ██║███████╗ | * + * | ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ | * + * +--------------------------------------------+ * + * * + * Distributed Systems Runtime * + * -------------------------------------------------------------------------- * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * +\* -------------------------------------------------------------------------- */ /* -------------------------------------------------------------------------- *\ * Apache 2.0 License Copyright © 2022-2023 The Aurae Authors * * * @@ -67,4 +81,4 @@ pub trait CellsCache { /// Sends a [SIGKILL] to all Cells, ignoring any errors. fn broadcast_kill(&mut self); -} +} \ No newline at end of file diff --git a/auraed/src/cells/cell_service/cells/cgroups/allocation.rs b/auraed/src/cells/cell_service/cells/cgroups/allocation.rs index 52a3017f2..902b721c0 100644 --- a/auraed/src/cells/cell_service/cells/cgroups/allocation.rs +++ b/auraed/src/cells/cell_service/cells/cgroups/allocation.rs @@ -1,7 +1,4 @@ /* -------------------------------------------------------------------------- *\ - * Apache 2.0 License Copyright © 2022-2023 The Aurae Authors * - * * - * +--------------------------------------------+ * * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * * | ███████║██║ ██║██████╔╝███████║█████╗ | * @@ -11,21 +8,9 @@ * +--------------------------------------------+ * * * * Distributed Systems Runtime * - * * * -------------------------------------------------------------------------- * - * * - * 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. * - * * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * \* -------------------------------------------------------------------------- */ use std::fmt::{Display, Formatter}; @@ -73,4 +58,4 @@ impl Display for Allocation { fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result { self.0.fmt(f) } -} +} \ No newline at end of file diff --git a/auraed/src/cells/cell_service/cells/cgroups/cgroup.rs b/auraed/src/cells/cell_service/cells/cgroups/cgroup.rs index e163a7bfc..721d7e882 100644 --- a/auraed/src/cells/cell_service/cells/cgroups/cgroup.rs +++ b/auraed/src/cells/cell_service/cells/cgroups/cgroup.rs @@ -1,7 +1,4 @@ /* -------------------------------------------------------------------------- *\ - * Apache 2.0 License Copyright © 2022-2023 The Aurae Authors * - * * - * +--------------------------------------------+ * * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * * | ███████║██║ ██║██████╔╝███████║█████╗ | * @@ -11,21 +8,9 @@ * +--------------------------------------------+ * * * * Distributed Systems Runtime * - * * * -------------------------------------------------------------------------- * - * * - * 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. * - * * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * \* -------------------------------------------------------------------------- */ use crate::cells::cell_service::cells::{ @@ -255,4 +240,4 @@ impl Cgroup { fn get_leaf_path(cell_name: &CellName) -> PathBuf { // '_' is an invalid character in CellName, making it safe to use cell_name.as_inner().join("_") -} +} \ No newline at end of file diff --git a/auraed/src/cells/cell_service/cells/cgroups/cpu/mod.rs b/auraed/src/cells/cell_service/cells/cgroups/cpu/mod.rs index e825a9540..a495d6352 100644 --- a/auraed/src/cells/cell_service/cells/cgroups/cpu/mod.rs +++ b/auraed/src/cells/cell_service/cells/cgroups/cpu/mod.rs @@ -1,7 +1,4 @@ /* -------------------------------------------------------------------------- *\ - * Apache 2.0 License Copyright © 2022-2023 The Aurae Authors * - * * - * +--------------------------------------------+ * * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * * | ███████║██║ ██║██████╔╝███████║█████╗ | * @@ -11,21 +8,9 @@ * +--------------------------------------------+ * * * * Distributed Systems Runtime * - * * * -------------------------------------------------------------------------- * - * * - * 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. * - * * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * \* -------------------------------------------------------------------------- */ use super::{Limit, Weight}; @@ -35,4 +20,4 @@ pub struct CpuController { pub weight: Option, pub max: Option, pub period: Option, -} +} \ No newline at end of file diff --git a/auraed/src/cells/cell_service/cells/cgroups/cpuset/cpus.rs b/auraed/src/cells/cell_service/cells/cgroups/cpuset/cpus.rs index 6e2bd8210..ac6511c7f 100644 --- a/auraed/src/cells/cell_service/cells/cgroups/cpuset/cpus.rs +++ b/auraed/src/cells/cell_service/cells/cgroups/cpuset/cpus.rs @@ -1,3 +1,17 @@ +/* -------------------------------------------------------------------------- *\ + * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * + * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * + * | ███████║██║ ██║██████╔╝███████║█████╗ | * + * | ██╔══██║██║ ██║██╔══██╗██╔══██║██╔══╝ | * + * | ██║ ██║╚██████╔╝██║ ██║██║ ██║███████╗ | * + * | ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ | * + * +--------------------------------------------+ * + * * + * Distributed Systems Runtime * + * -------------------------------------------------------------------------- * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * +\* -------------------------------------------------------------------------- */ use fancy_regex::Regex; use lazy_static::lazy_static; use std::{ @@ -88,4 +102,4 @@ mod tests { Cpus::validate(Some(input.to_string()), "cpu_cpus", None).is_err() ); } -} +} \ No newline at end of file diff --git a/auraed/src/cells/cell_service/cells/cgroups/cpuset/mems.rs b/auraed/src/cells/cell_service/cells/cgroups/cpuset/mems.rs index a4e18e4b3..043e1baf5 100644 --- a/auraed/src/cells/cell_service/cells/cgroups/cpuset/mems.rs +++ b/auraed/src/cells/cell_service/cells/cgroups/cpuset/mems.rs @@ -1,3 +1,17 @@ +/* -------------------------------------------------------------------------- *\ + * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * + * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * + * | ███████║██║ ██║██████╔╝███████║█████╗ | * + * | ██╔══██║██║ ██║██╔══██╗██╔══██║██╔══╝ | * + * | ██║ ██║╚██████╔╝██║ ██║██║ ██║███████╗ | * + * | ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ | * + * +--------------------------------------------+ * + * * + * Distributed Systems Runtime * + * -------------------------------------------------------------------------- * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * +\* -------------------------------------------------------------------------- */ use fancy_regex::Regex; use lazy_static::lazy_static; use std::{ @@ -88,4 +102,4 @@ mod tests { Mems::validate(Some(input.to_string()), "cpu_cpus", None).is_err() ); } -} +} \ No newline at end of file diff --git a/auraed/src/cells/cell_service/cells/cgroups/cpuset/mod.rs b/auraed/src/cells/cell_service/cells/cgroups/cpuset/mod.rs index 94e60fbf6..4ca55d818 100644 --- a/auraed/src/cells/cell_service/cells/cgroups/cpuset/mod.rs +++ b/auraed/src/cells/cell_service/cells/cgroups/cpuset/mod.rs @@ -1,7 +1,4 @@ /* -------------------------------------------------------------------------- *\ - * Apache 2.0 License Copyright © 2022-2023 The Aurae Authors * - * * - * +--------------------------------------------+ * * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * * | ███████║██║ ██║██████╔╝███████║█████╗ | * @@ -11,21 +8,9 @@ * +--------------------------------------------+ * * * * Distributed Systems Runtime * - * * * -------------------------------------------------------------------------- * - * * - * 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. * - * * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * \* -------------------------------------------------------------------------- */ pub use cpus::Cpus; @@ -38,4 +23,4 @@ mod mems; pub struct CpusetController { pub cpus: Option, pub mems: Option, -} +} \ No newline at end of file diff --git a/auraed/src/cells/cell_service/cells/cgroups/error.rs b/auraed/src/cells/cell_service/cells/cgroups/error.rs index c6a90873b..74102b750 100644 --- a/auraed/src/cells/cell_service/cells/cgroups/error.rs +++ b/auraed/src/cells/cell_service/cells/cgroups/error.rs @@ -1,7 +1,4 @@ /* -------------------------------------------------------------------------- *\ - * Apache 2.0 License Copyright © 2022-2023 The Aurae Authors * - * * - * +--------------------------------------------+ * * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * * | ███████║██║ ██║██████╔╝███████║█████╗ | * @@ -11,21 +8,9 @@ * +--------------------------------------------+ * * * * Distributed Systems Runtime * - * * * -------------------------------------------------------------------------- * - * * - * 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. * - * * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * \* -------------------------------------------------------------------------- */ use crate::cells::cell_service::cells::CellName; @@ -43,4 +28,4 @@ pub enum CgroupsError { DeleteCgroup { cell_name: CellName, source: anyhow::Error }, #[error("cgroup '{cell_name}' failed to read stats: {source}")] ReadStats { cell_name: CellName, source: anyhow::Error }, -} +} \ No newline at end of file diff --git a/auraed/src/cells/cell_service/cells/cgroups/limit.rs b/auraed/src/cells/cell_service/cells/cgroups/limit.rs index 49568f9e4..75de16b73 100644 --- a/auraed/src/cells/cell_service/cells/cgroups/limit.rs +++ b/auraed/src/cells/cell_service/cells/cgroups/limit.rs @@ -1,7 +1,4 @@ /* -------------------------------------------------------------------------- *\ - * Apache 2.0 License Copyright © 2022-2023 The Aurae Authors * - * * - * +--------------------------------------------+ * * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * * | ███████║██║ ██║██████╔╝███████║█████╗ | * @@ -11,21 +8,9 @@ * +--------------------------------------------+ * * * * Distributed Systems Runtime * - * * * -------------------------------------------------------------------------- * - * * - * 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. * - * * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * \* -------------------------------------------------------------------------- */ use std::fmt::{Display, Formatter}; @@ -72,4 +57,4 @@ impl Display for Limit { fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result { self.0.fmt(f) } -} +} \ No newline at end of file diff --git a/auraed/src/cells/cell_service/cells/cgroups/memory/mod.rs b/auraed/src/cells/cell_service/cells/cgroups/memory/mod.rs index 3049809c2..f389a8686 100644 --- a/auraed/src/cells/cell_service/cells/cgroups/memory/mod.rs +++ b/auraed/src/cells/cell_service/cells/cgroups/memory/mod.rs @@ -1,7 +1,4 @@ /* -------------------------------------------------------------------------- *\ - * Apache 2.0 License Copyright © 2022-2023 The Aurae Authors * - * * - * +--------------------------------------------+ * * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * * | ███████║██║ ██║██████╔╝███████║█████╗ | * @@ -11,21 +8,9 @@ * +--------------------------------------------+ * * * * Distributed Systems Runtime * - * * * -------------------------------------------------------------------------- * - * * - * 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. * - * * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * \* -------------------------------------------------------------------------- */ use super::{Limit, Protection}; @@ -36,4 +21,4 @@ pub struct MemoryController { pub low: Option, pub high: Option, pub max: Option, -} +} \ No newline at end of file diff --git a/auraed/src/cells/cell_service/cells/cgroups/mod.rs b/auraed/src/cells/cell_service/cells/cgroups/mod.rs index 0b999c8c7..e2c5bec8a 100644 --- a/auraed/src/cells/cell_service/cells/cgroups/mod.rs +++ b/auraed/src/cells/cell_service/cells/cgroups/mod.rs @@ -1,7 +1,4 @@ /* -------------------------------------------------------------------------- *\ - * Apache 2.0 License Copyright © 2022-2023 The Aurae Authors * - * * - * +--------------------------------------------+ * * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * * | ███████║██║ ██║██████╔╝███████║█████╗ | * @@ -11,21 +8,9 @@ * +--------------------------------------------+ * * * * Distributed Systems Runtime * - * * * -------------------------------------------------------------------------- * - * * - * 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. * - * * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * \* -------------------------------------------------------------------------- */ pub use cgroup::Cgroup; @@ -52,4 +37,4 @@ pub struct CgroupSpec { pub cpu: Option, pub cpuset: Option, pub memory: Option, -} +} \ No newline at end of file diff --git a/auraed/src/cells/cell_service/cells/cgroups/protection.rs b/auraed/src/cells/cell_service/cells/cgroups/protection.rs index 0c249eeab..b9ad22f7e 100644 --- a/auraed/src/cells/cell_service/cells/cgroups/protection.rs +++ b/auraed/src/cells/cell_service/cells/cgroups/protection.rs @@ -1,7 +1,4 @@ /* -------------------------------------------------------------------------- *\ - * Apache 2.0 License Copyright © 2022-2023 The Aurae Authors * - * * - * +--------------------------------------------+ * * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * * | ███████║██║ ██║██████╔╝███████║█████╗ | * @@ -11,21 +8,9 @@ * +--------------------------------------------+ * * * * Distributed Systems Runtime * - * * * -------------------------------------------------------------------------- * - * * - * 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. * - * * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * \* -------------------------------------------------------------------------- */ use std::fmt::{Display, Formatter}; @@ -72,4 +57,4 @@ impl Display for Protection { fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result { self.0.fmt(f) } -} +} \ No newline at end of file diff --git a/auraed/src/cells/cell_service/cells/cgroups/weight.rs b/auraed/src/cells/cell_service/cells/cgroups/weight.rs index 4a18c0ff9..c9319bd4a 100644 --- a/auraed/src/cells/cell_service/cells/cgroups/weight.rs +++ b/auraed/src/cells/cell_service/cells/cgroups/weight.rs @@ -1,3 +1,17 @@ +/* -------------------------------------------------------------------------- *\ + * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * + * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * + * | ███████║██║ ██║██████╔╝███████║█████╗ | * + * | ██╔══██║██║ ██║██╔══██╗██╔══██║██╔══╝ | * + * | ██║ ██║╚██████╔╝██║ ██║██║ ██║███████╗ | * + * | ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ | * + * +--------------------------------------------+ * + * * + * Distributed Systems Runtime * + * -------------------------------------------------------------------------- * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * +\* -------------------------------------------------------------------------- */ use std::{ fmt::{Display, Formatter}, ops::Deref, @@ -78,4 +92,4 @@ mod tests { Err(ValidationError::Maximum { .. }) )); } -} +} \ No newline at end of file diff --git a/auraed/src/cells/cell_service/cells/error.rs b/auraed/src/cells/cell_service/cells/error.rs index 2e7977497..edf8be67d 100644 --- a/auraed/src/cells/cell_service/cells/error.rs +++ b/auraed/src/cells/cell_service/cells/error.rs @@ -1,7 +1,4 @@ /* -------------------------------------------------------------------------- *\ - * Apache 2.0 License Copyright © 2022-2023 The Aurae Authors * - * * - * +--------------------------------------------+ * * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * * | ███████║██║ ██║██████╔╝███████║█████╗ | * @@ -11,21 +8,9 @@ * +--------------------------------------------+ * * * * Distributed Systems Runtime * - * * * -------------------------------------------------------------------------- * - * * - * 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. * - * * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * \* -------------------------------------------------------------------------- */ use super::{cgroups::error::CgroupsError, CellName}; @@ -57,4 +42,4 @@ pub enum CellsError { CgroupIsNotACell { cell_name: CellName }, #[error("cgroup '{cell_name}` not found on host")] CgroupNotFound { cell_name: CellName }, -} +} \ No newline at end of file diff --git a/auraed/src/cells/cell_service/cells/mod.rs b/auraed/src/cells/cell_service/cells/mod.rs index 0d95ab8ea..f124d569f 100644 --- a/auraed/src/cells/cell_service/cells/mod.rs +++ b/auraed/src/cells/cell_service/cells/mod.rs @@ -1,7 +1,4 @@ /* -------------------------------------------------------------------------- *\ - * Apache 2.0 License Copyright © 2022-2023 The Aurae Authors * - * * - * +--------------------------------------------+ * * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * * | ███████║██║ ██║██████╔╝███████║█████╗ | * @@ -11,21 +8,9 @@ * +--------------------------------------------+ * * * * Distributed Systems Runtime * - * * * -------------------------------------------------------------------------- * - * * - * 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. * - * * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * \* -------------------------------------------------------------------------- */ pub use cell::Cell; @@ -79,4 +64,4 @@ impl CellSpec { }, } } -} +} \ No newline at end of file diff --git a/auraed/src/cells/cell_service/cells/nested_auraed/isolation_controls.rs b/auraed/src/cells/cell_service/cells/nested_auraed/isolation_controls.rs index 103616823..317a8f5b9 100644 --- a/auraed/src/cells/cell_service/cells/nested_auraed/isolation_controls.rs +++ b/auraed/src/cells/cell_service/cells/nested_auraed/isolation_controls.rs @@ -1,7 +1,4 @@ /* -------------------------------------------------------------------------- *\ - * Apache 2.0 License Copyright © 2022-2023 The Aurae Authors * - * * - * +--------------------------------------------+ * * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * * | ███████║██║ ██║██████╔╝███████║█████╗ | * @@ -11,21 +8,9 @@ * +--------------------------------------------+ * * * * Distributed Systems Runtime * - * * * -------------------------------------------------------------------------- * - * * - * 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. * - * * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * \* -------------------------------------------------------------------------- */ use libc::c_char; @@ -125,4 +110,4 @@ impl Isolation { // Insert pre_exec network logic here Ok(()) } -} +} \ No newline at end of file diff --git a/auraed/src/cells/cell_service/cells/nested_auraed/mod.rs b/auraed/src/cells/cell_service/cells/nested_auraed/mod.rs index 32b03587e..ede8b5353 100644 --- a/auraed/src/cells/cell_service/cells/nested_auraed/mod.rs +++ b/auraed/src/cells/cell_service/cells/nested_auraed/mod.rs @@ -1,7 +1,4 @@ /* -------------------------------------------------------------------------- *\ - * Apache 2.0 License Copyright © 2022-2023 The Aurae Authors * - * * - * +--------------------------------------------+ * * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * * | ███████║██║ ██║██████╔╝███████║█████╗ | * @@ -11,21 +8,9 @@ * +--------------------------------------------+ * * * * Distributed Systems Runtime * - * * * -------------------------------------------------------------------------- * - * * - * 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. * - * * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * \* -------------------------------------------------------------------------- */ pub use isolation_controls::IsolationControls; @@ -33,4 +18,4 @@ pub use nested_auraed::NestedAuraed; mod isolation_controls; #[allow(clippy::module_inception)] -mod nested_auraed; +mod nested_auraed; \ No newline at end of file diff --git a/auraed/src/cells/cell_service/cells/nested_auraed/nested_auraed.rs b/auraed/src/cells/cell_service/cells/nested_auraed/nested_auraed.rs index b256765b7..944cb6037 100644 --- a/auraed/src/cells/cell_service/cells/nested_auraed/nested_auraed.rs +++ b/auraed/src/cells/cell_service/cells/nested_auraed/nested_auraed.rs @@ -1,7 +1,4 @@ /* -------------------------------------------------------------------------- *\ - * Apache 2.0 License Copyright © 2022-2023 The Aurae Authors * - * * - * +--------------------------------------------+ * * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * * | ███████║██║ ██║██████╔╝███████║█████╗ | * @@ -11,21 +8,9 @@ * +--------------------------------------------+ * * * * Distributed Systems Runtime * - * * * -------------------------------------------------------------------------- * - * * - * 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. * - * * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * \* -------------------------------------------------------------------------- */ use super::isolation_controls::{Isolation, IsolationControls}; @@ -236,4 +221,4 @@ impl NestedAuraed { pub fn pid(&self) -> Pid { Pid::from_raw(self.process.pid) } -} +} \ No newline at end of file diff --git a/auraed/src/cells/cell_service/error.rs b/auraed/src/cells/cell_service/error.rs index 344d9ada2..9047ebf77 100644 --- a/auraed/src/cells/cell_service/error.rs +++ b/auraed/src/cells/cell_service/error.rs @@ -1,7 +1,4 @@ /* -------------------------------------------------------------------------- *\ - * Apache 2.0 License Copyright © 2022-2023 The Aurae Authors * - * * - * +--------------------------------------------+ * * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * * | ███████║██║ ██║██████╔╝███████║█████╗ | * @@ -11,21 +8,9 @@ * +--------------------------------------------+ * * * * Distributed Systems Runtime * - * * * -------------------------------------------------------------------------- * - * * - * 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. * - * * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * \* -------------------------------------------------------------------------- */ use super::{cells::CellsError, executables::ExecutablesError}; @@ -94,4 +79,4 @@ impl From for Status { CellsServiceError::ObserveServiceError(e) => e.into(), } } -} +} \ No newline at end of file diff --git a/auraed/src/cells/cell_service/executables/error.rs b/auraed/src/cells/cell_service/executables/error.rs index be4740aad..d1feaddb0 100644 --- a/auraed/src/cells/cell_service/executables/error.rs +++ b/auraed/src/cells/cell_service/executables/error.rs @@ -1,7 +1,4 @@ /* -------------------------------------------------------------------------- *\ - * Apache 2.0 License Copyright © 2022-2023 The Aurae Authors * - * * - * +--------------------------------------------+ * * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * * | ███████║██║ ██║██████╔╝███████║█████╗ | * @@ -11,21 +8,9 @@ * +--------------------------------------------+ * * * * Distributed Systems Runtime * - * * * -------------------------------------------------------------------------- * - * * - * 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. * - * * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * \* -------------------------------------------------------------------------- */ use super::ExecutableName; @@ -50,4 +35,4 @@ pub enum ExecutablesError { executable_name: ExecutableName, source: io::Error, }, -} +} \ No newline at end of file diff --git a/auraed/src/cells/cell_service/executables/executable.rs b/auraed/src/cells/cell_service/executables/executable.rs index 5eba2ae52..a844fd195 100644 --- a/auraed/src/cells/cell_service/executables/executable.rs +++ b/auraed/src/cells/cell_service/executables/executable.rs @@ -1,3 +1,17 @@ +/* -------------------------------------------------------------------------- *\ + * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * + * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * + * | ███████║██║ ██║██████╔╝███████║█████╗ | * + * | ██╔══██║██║ ██║██╔══██╗██╔══██║██╔══╝ | * + * | ██║ ██║╚██████╔╝██║ ██║██║ ██║███████╗ | * + * | ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ | * + * +--------------------------------------------+ * + * * + * Distributed Systems Runtime * + * -------------------------------------------------------------------------- * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * +\* -------------------------------------------------------------------------- */ use super::{ExecutableName, ExecutableSpec}; use crate::logging::log_channel::LogChannel; use nix::unistd::Pid; @@ -138,4 +152,4 @@ impl Executable { Ok(process.id().map(|id| Pid::from_raw(id as i32))) } -} +} \ No newline at end of file diff --git a/auraed/src/cells/cell_service/executables/executable_name.rs b/auraed/src/cells/cell_service/executables/executable_name.rs index d6b30df76..f37f3f50d 100644 --- a/auraed/src/cells/cell_service/executables/executable_name.rs +++ b/auraed/src/cells/cell_service/executables/executable_name.rs @@ -1,3 +1,17 @@ +/* -------------------------------------------------------------------------- *\ + * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * + * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * + * | ███████║██║ ██║██████╔╝███████║█████╗ | * + * | ██╔══██║██║ ██║██╔══██╗██╔══██║██╔══╝ | * + * | ██║ ██║╚██████╔╝██║ ██║██║ ██║███████╗ | * + * | ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ | * + * +--------------------------------------------+ * + * * + * Distributed Systems Runtime * + * -------------------------------------------------------------------------- * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * +\* -------------------------------------------------------------------------- */ use std::ffi::OsStr; use std::fmt::{Display, Formatter}; use std::ops::Deref; @@ -58,4 +72,4 @@ impl AsRef for ExecutableName { fn as_ref(&self) -> &OsStr { self.0.deref().as_ref() } -} +} \ No newline at end of file diff --git a/auraed/src/cells/cell_service/executables/executables.rs b/auraed/src/cells/cell_service/executables/executables.rs index 9ce9569ca..231ad2630 100644 --- a/auraed/src/cells/cell_service/executables/executables.rs +++ b/auraed/src/cells/cell_service/executables/executables.rs @@ -1,7 +1,4 @@ /* -------------------------------------------------------------------------- *\ - * Apache 2.0 License Copyright © 2022-2023 The Aurae Authors * - * * - * +--------------------------------------------+ * * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * * | ███████║██║ ██║██████╔╝███████║█████╗ | * @@ -11,21 +8,9 @@ * +--------------------------------------------+ * * * * Distributed Systems Runtime * - * * * -------------------------------------------------------------------------- * - * * - * 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. * - * * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * \* -------------------------------------------------------------------------- */ use super::{ @@ -127,4 +112,4 @@ impl Executables { let _ = self.cache.remove(&name); } } -} +} \ No newline at end of file diff --git a/auraed/src/cells/cell_service/executables/mod.rs b/auraed/src/cells/cell_service/executables/mod.rs index 3688bd102..f8978eb84 100644 --- a/auraed/src/cells/cell_service/executables/mod.rs +++ b/auraed/src/cells/cell_service/executables/mod.rs @@ -1,7 +1,4 @@ /* -------------------------------------------------------------------------- *\ - * Apache 2.0 License Copyright © 2022-2023 The Aurae Authors * - * * - * +--------------------------------------------+ * * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * * | ███████║██║ ██║██████╔╝███████║█████╗ | * @@ -11,21 +8,9 @@ * +--------------------------------------------+ * * * * Distributed Systems Runtime * - * * * -------------------------------------------------------------------------- * - * * - * 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. * - * * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * \* -------------------------------------------------------------------------- */ pub use error::{ExecutablesError, Result}; @@ -44,4 +29,4 @@ pub struct ExecutableSpec { pub name: ExecutableName, pub description: String, pub command: Command, -} +} \ No newline at end of file diff --git a/auraed/src/cells/cell_service/mod.rs b/auraed/src/cells/cell_service/mod.rs index 8702d58b7..b43887f60 100644 --- a/auraed/src/cells/cell_service/mod.rs +++ b/auraed/src/cells/cell_service/mod.rs @@ -1,3 +1,17 @@ +/* -------------------------------------------------------------------------- *\ + * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * + * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * + * | ███████║██║ ██║██████╔╝███████║█████╗ | * + * | ██╔══██║██║ ██║██╔══██╗██╔══██║██╔══╝ | * + * | ██║ ██║╚██████╔╝██║ ██║██║ ██║███████╗ | * + * | ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ | * + * +--------------------------------------------+ * + * * + * Distributed Systems Runtime * + * -------------------------------------------------------------------------- * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * +\* -------------------------------------------------------------------------- */ pub use cell_service::CellService; use error::Result; @@ -6,4 +20,4 @@ mod cell_service; mod cells; mod error; mod executables; -mod validation; +mod validation; \ No newline at end of file diff --git a/auraed/src/cells/cell_service/validation.rs b/auraed/src/cells/cell_service/validation.rs index c8bf217d7..f95d3a1ec 100644 --- a/auraed/src/cells/cell_service/validation.rs +++ b/auraed/src/cells/cell_service/validation.rs @@ -1,3 +1,17 @@ +/* -------------------------------------------------------------------------- *\ + * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * + * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * + * | ███████║██║ ██║██████╔╝███████║█████╗ | * + * | ██╔══██║██║ ██║██╔══██╗██╔══██║██╔══╝ | * + * | ██║ ██║╚██████╔╝██║ ██║██║ ██║███████╗ | * + * | ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ | * + * +--------------------------------------------+ * + * * + * Distributed Systems Runtime * + * -------------------------------------------------------------------------- * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * +\* -------------------------------------------------------------------------- */ use super::cells::{ cgroups::{ self, @@ -526,4 +540,4 @@ mod tests { assert!(validated.is_ok()); assert_eq!(validated.unwrap(), OsString::from("command")); } -} +} \ No newline at end of file diff --git a/auraed/src/cells/mod.rs b/auraed/src/cells/mod.rs index d1e8f7702..5f835cc0a 100644 --- a/auraed/src/cells/mod.rs +++ b/auraed/src/cells/mod.rs @@ -1,7 +1,4 @@ /* -------------------------------------------------------------------------- *\ - * Apache 2.0 License Copyright © 2022-2023 The Aurae Authors * - * * - * +--------------------------------------------+ * * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * * | ███████║██║ ██║██████╔╝███████║█████╗ | * @@ -11,23 +8,11 @@ * +--------------------------------------------+ * * * * Distributed Systems Runtime * - * * * -------------------------------------------------------------------------- * - * * - * 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. * - * * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * \* -------------------------------------------------------------------------- */ pub(crate) use cell_service::CellService; -mod cell_service; +mod cell_service; \ No newline at end of file diff --git a/auraed/src/cri/error.rs b/auraed/src/cri/error.rs index 51bdd7339..f733f2b48 100644 --- a/auraed/src/cri/error.rs +++ b/auraed/src/cri/error.rs @@ -1,7 +1,4 @@ /* -------------------------------------------------------------------------- *\ - * Apache 2.0 License Copyright © 2022-2023 The Aurae Authors * - * * - * +--------------------------------------------+ * * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * * | ███████║██║ ██║██████╔╝███████║█████╗ | * @@ -11,21 +8,9 @@ * +--------------------------------------------+ * * * * Distributed Systems Runtime * - * * * -------------------------------------------------------------------------- * - * * - * 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. * - * * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * \* -------------------------------------------------------------------------- */ use client::ClientError; @@ -70,4 +55,4 @@ impl From for Status { }, } } -} +} \ No newline at end of file diff --git a/auraed/src/cri/image_service.rs b/auraed/src/cri/image_service.rs index 633409257..28305c947 100644 --- a/auraed/src/cri/image_service.rs +++ b/auraed/src/cri/image_service.rs @@ -1,3 +1,17 @@ +/* -------------------------------------------------------------------------- *\ + * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * + * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * + * | ███████║██║ ██║██████╔╝███████║█████╗ | * + * | ██╔══██║██║ ██║██╔══██╗██╔══██║██╔══╝ | * + * | ██║ ██║╚██████╔╝██║ ██║██║ ██║███████╗ | * + * | ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ | * + * +--------------------------------------------+ * + * * + * Distributed Systems Runtime * + * -------------------------------------------------------------------------- * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * +\* -------------------------------------------------------------------------- */ /* -------------------------------------------------------------------------- *\ * Apache 2.0 License Copyright © 2022-2023 The Aurae Authors * * * @@ -74,4 +88,4 @@ impl image_service_server::ImageService for ImageService { ) -> Result, Status> { todo!() } -} +} \ No newline at end of file diff --git a/auraed/src/cri/mod.rs b/auraed/src/cri/mod.rs index 10777e7ae..3f52c9f63 100644 --- a/auraed/src/cri/mod.rs +++ b/auraed/src/cri/mod.rs @@ -1,3 +1,17 @@ +/* -------------------------------------------------------------------------- *\ + * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * + * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * + * | ███████║██║ ██║██████╔╝███████║█████╗ | * + * | ██╔══██║██║ ██║██╔══██╗██╔══██║██╔══╝ | * + * | ██║ ██║╚██████╔╝██║ ██║██║ ██║███████╗ | * + * | ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ | * + * +--------------------------------------------+ * + * * + * Distributed Systems Runtime * + * -------------------------------------------------------------------------- * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * +\* -------------------------------------------------------------------------- */ /* -------------------------------------------------------------------------- *\ * Apache 2.0 License Copyright © 2022-2023 The Aurae Authors * * * @@ -34,4 +48,4 @@ pub mod runtime_service; mod error; mod sandbox; -mod sandbox_cache; +mod sandbox_cache; \ No newline at end of file diff --git a/auraed/src/cri/oci.rs b/auraed/src/cri/oci.rs index 0ad2cc4a8..c3e58b8f2 100644 --- a/auraed/src/cri/oci.rs +++ b/auraed/src/cri/oci.rs @@ -1,3 +1,17 @@ +/* -------------------------------------------------------------------------- *\ + * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * + * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * + * | ███████║██║ ██║██████╔╝███████║█████╗ | * + * | ██╔══██║██║ ██║██╔══██╗██╔══██║██╔══╝ | * + * | ██║ ██║╚██████╔╝██║ ██║██║ ██║███████╗ | * + * | ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ | * + * +--------------------------------------------+ * + * * + * Distributed Systems Runtime * + * -------------------------------------------------------------------------- * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * +\* -------------------------------------------------------------------------- */ /* -------------------------------------------------------------------------- *\ * Apache 2.0 License Copyright © 2022-2023 The Aurae Authors * * * @@ -256,4 +270,4 @@ impl AuraeOCIBuilder { pub fn build(self) -> Result { self.spec_builder.build() } -} +} \ No newline at end of file diff --git a/auraed/src/cri/runtime_service.rs b/auraed/src/cri/runtime_service.rs index ccf52c1e1..0e1a097b4 100644 --- a/auraed/src/cri/runtime_service.rs +++ b/auraed/src/cri/runtime_service.rs @@ -1,3 +1,17 @@ +/* -------------------------------------------------------------------------- *\ + * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * + * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * + * | ███████║██║ ██║██████╔╝███████║█████╗ | * + * | ██╔══██║██║ ██║██╔══██╗██╔══██║██╔══╝ | * + * | ██║ ██║╚██████╔╝██║ ██║██║ ██║███████╗ | * + * | ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ | * + * +--------------------------------------------+ * + * * + * Distributed Systems Runtime * + * -------------------------------------------------------------------------- * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * +\* -------------------------------------------------------------------------- */ /* -------------------------------------------------------------------------- *\ * Apache 2.0 License Copyright © 2022-2023 The Aurae Authors * * * @@ -410,4 +424,4 @@ impl runtime_service_server::RuntimeService for RuntimeService { ) -> Result, Status> { todo!() } -} +} \ No newline at end of file diff --git a/auraed/src/cri/sandbox.rs b/auraed/src/cri/sandbox.rs index 11ebe7bd3..bc469a8ba 100644 --- a/auraed/src/cri/sandbox.rs +++ b/auraed/src/cri/sandbox.rs @@ -1,7 +1,4 @@ /* -------------------------------------------------------------------------- *\ - * Apache 2.0 License Copyright © 2022-2023 The Aurae Authors * - * * - * +--------------------------------------------+ * * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * * | ███████║██║ ██║██████╔╝███████║█████╗ | * @@ -11,21 +8,9 @@ * +--------------------------------------------+ * * * * Distributed Systems Runtime * - * * * -------------------------------------------------------------------------- * - * * - * 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. * - * * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * \* -------------------------------------------------------------------------- */ #![allow(dead_code)] @@ -76,4 +61,4 @@ impl SandboxBuilder { pub fn build(self) -> Sandbox { Sandbox { name: self.name, init: self.init, tenants: vec![] } } -} +} \ No newline at end of file diff --git a/auraed/src/cri/sandbox_cache.rs b/auraed/src/cri/sandbox_cache.rs index fd37a09d0..b82a7b8fa 100644 --- a/auraed/src/cri/sandbox_cache.rs +++ b/auraed/src/cri/sandbox_cache.rs @@ -1,7 +1,4 @@ /* -------------------------------------------------------------------------- *\ - * Apache 2.0 License Copyright © 2022-2023 The Aurae Authors * - * * - * +--------------------------------------------+ * * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * * | ███████║██║ ██║██████╔╝███████║█████╗ | * @@ -11,21 +8,9 @@ * +--------------------------------------------+ * * * * Distributed Systems Runtime * - * * * -------------------------------------------------------------------------- * - * * - * 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. * - * * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * \* -------------------------------------------------------------------------- */ use super::error::{Result, RuntimeServiceError}; @@ -77,4 +62,4 @@ impl SandboxCache { } Ok(()) } -} +} \ No newline at end of file diff --git a/auraed/src/discovery/mod.rs b/auraed/src/discovery/mod.rs index 082aedb51..adb5782eb 100644 --- a/auraed/src/discovery/mod.rs +++ b/auraed/src/discovery/mod.rs @@ -1,7 +1,4 @@ /* -------------------------------------------------------------------------- *\ - * Apache 2.0 License Copyright © 2022-2023 The Aurae Authors * - * * - * +--------------------------------------------+ * * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * * | ███████║██║ ██║██████╔╝███████║█████╗ | * @@ -11,21 +8,9 @@ * +--------------------------------------------+ * * * * Distributed Systems Runtime * - * * * -------------------------------------------------------------------------- * - * * - * 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. * - * * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * \* -------------------------------------------------------------------------- */ use proto::discovery::{ @@ -99,4 +84,4 @@ mod tests { assert!(resp.healthy); assert_eq!(resp.version, VERSION.expect("valid version")); } -} +} \ No newline at end of file diff --git a/auraed/src/ebpf/bpf_context.rs b/auraed/src/ebpf/bpf_context.rs index 1b8c85191..cde7dc536 100644 --- a/auraed/src/ebpf/bpf_context.rs +++ b/auraed/src/ebpf/bpf_context.rs @@ -1,7 +1,4 @@ /* -------------------------------------------------------------------------- *\ - * Apache 2.0 License Copyright © 2022-2023 The Aurae Authors * - * * - * +--------------------------------------------+ * * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * * | ███████║██║ ██║██████╔╝███████║█████╗ | * @@ -11,21 +8,9 @@ * +--------------------------------------------+ * * * * Distributed Systems Runtime * - * * * -------------------------------------------------------------------------- * - * * - * 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. * - * * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * \* -------------------------------------------------------------------------- */ use super::{ @@ -104,4 +89,4 @@ impl BpfContext { } } } -} +} \ No newline at end of file diff --git a/auraed/src/ebpf/bpf_file.rs b/auraed/src/ebpf/bpf_file.rs index 16c6d31ed..bf694ebc5 100644 --- a/auraed/src/ebpf/bpf_file.rs +++ b/auraed/src/ebpf/bpf_file.rs @@ -1,7 +1,4 @@ /* -------------------------------------------------------------------------- *\ - * Apache 2.0 License Copyright © 2022-2023 The Aurae Authors * - * * - * +--------------------------------------------+ * * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * * | ███████║██║ ██║██████╔╝███████║█████╗ | * @@ -11,21 +8,9 @@ * +--------------------------------------------+ * * * * Distributed Systems Runtime * - * * * -------------------------------------------------------------------------- * - * * - * 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. * - * * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * \* -------------------------------------------------------------------------- */ use crate::AURAED_RUNTIME; @@ -48,4 +33,4 @@ pub trait BpfFile { Self::OBJ_NAME )) } -} +} \ No newline at end of file diff --git a/auraed/src/ebpf/kprobe/kprobe_program.rs b/auraed/src/ebpf/kprobe/kprobe_program.rs index 928b62eec..aa3395807 100644 --- a/auraed/src/ebpf/kprobe/kprobe_program.rs +++ b/auraed/src/ebpf/kprobe/kprobe_program.rs @@ -1,7 +1,4 @@ /* -------------------------------------------------------------------------- *\ - * Apache 2.0 License Copyright © 2022-2023 The Aurae Authors * - * * - * +--------------------------------------------+ * * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * * | ███████║██║ ██║██████╔╝███████║█████╗ | * @@ -11,21 +8,9 @@ * +--------------------------------------------+ * * * * Distributed Systems Runtime * - * * * -------------------------------------------------------------------------- * - * * - * 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. * - * * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * \* -------------------------------------------------------------------------- */ use aya::programs::{KProbe, ProgramError}; use aya::Bpf; @@ -67,4 +52,4 @@ pub trait KProbeProgram { Ok(()) } -} +} \ No newline at end of file diff --git a/auraed/src/ebpf/kprobe/mod.rs b/auraed/src/ebpf/kprobe/mod.rs index 0e9973cb7..2d23ef838 100644 --- a/auraed/src/ebpf/kprobe/mod.rs +++ b/auraed/src/ebpf/kprobe/mod.rs @@ -1,7 +1,4 @@ /* -------------------------------------------------------------------------- *\ - * Apache 2.0 License Copyright © 2022-2023 The Aurae Authors * - * * - * +--------------------------------------------+ * * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * * | ███████║██║ ██║██████╔╝███████║█████╗ | * @@ -11,21 +8,9 @@ * +--------------------------------------------+ * * * * Distributed Systems Runtime * - * * * -------------------------------------------------------------------------- * - * * - * 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. * - * * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * \* -------------------------------------------------------------------------- */ use super::{bpf_file::BpfFile, perf_buffer_reader::PerfBufferReader}; use aurae_ebpf_shared::ProcessExit; @@ -47,4 +32,4 @@ impl BpfFile for TaskstatsExitKProbeProgram { const OBJ_NAME: &'static str = "instrument-kprobe-taskstats-exit"; } -impl PerfBufferReader for TaskstatsExitKProbeProgram {} +impl PerfBufferReader for TaskstatsExitKProbeProgram {} \ No newline at end of file diff --git a/auraed/src/ebpf/mod.rs b/auraed/src/ebpf/mod.rs index 0a4f6b9d5..ae256aa81 100644 --- a/auraed/src/ebpf/mod.rs +++ b/auraed/src/ebpf/mod.rs @@ -1,7 +1,4 @@ /* -------------------------------------------------------------------------- *\ - * Apache 2.0 License Copyright © 2022-2023 The Aurae Authors * - * * - * +--------------------------------------------+ * * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * * | ███████║██║ ██║██████╔╝███████║█████╗ | * @@ -11,21 +8,9 @@ * +--------------------------------------------+ * * * * Distributed Systems Runtime * - * * * -------------------------------------------------------------------------- * - * * - * 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. * - * * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * \* -------------------------------------------------------------------------- */ pub use bpf_context::BpfContext; @@ -39,4 +24,4 @@ mod bpf_file; pub(crate) mod kprobe; pub(crate) mod perf_buffer_reader; pub(crate) mod perf_event_broadcast; -pub(crate) mod tracepoint; +pub(crate) mod tracepoint; \ No newline at end of file diff --git a/auraed/src/ebpf/perf_buffer_reader.rs b/auraed/src/ebpf/perf_buffer_reader.rs index d20d7f027..a84175307 100644 --- a/auraed/src/ebpf/perf_buffer_reader.rs +++ b/auraed/src/ebpf/perf_buffer_reader.rs @@ -1,7 +1,4 @@ /* -------------------------------------------------------------------------- *\ - * Apache 2.0 License Copyright © 2022-2023 The Aurae Authors * - * * - * +--------------------------------------------+ * * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * * | ███████║██║ ██║██████╔╝███████║█████╗ | * @@ -11,21 +8,9 @@ * +--------------------------------------------+ * * * * Distributed Systems Runtime * - * * * -------------------------------------------------------------------------- * - * * - * 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. * - * * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * \* -------------------------------------------------------------------------- */ use anyhow::Context; @@ -143,4 +128,4 @@ pub trait PerfBufferReader { Ok(PerfEventBroadcast::new(tx)) } -} +} \ No newline at end of file diff --git a/auraed/src/ebpf/perf_event_broadcast.rs b/auraed/src/ebpf/perf_event_broadcast.rs index 159ed048e..a9bc110ef 100644 --- a/auraed/src/ebpf/perf_event_broadcast.rs +++ b/auraed/src/ebpf/perf_event_broadcast.rs @@ -1,7 +1,4 @@ /* -------------------------------------------------------------------------- *\ - * Apache 2.0 License Copyright © 2022-2023 The Aurae Authors * - * * - * +--------------------------------------------+ * * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * * | ███████║██║ ██║██████╔╝███████║█████╗ | * @@ -11,21 +8,9 @@ * +--------------------------------------------+ * * * * Distributed Systems Runtime * - * * * -------------------------------------------------------------------------- * - * * - * 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. * - * * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * \* -------------------------------------------------------------------------- */ use tokio::sync::broadcast::{Receiver, Sender}; @@ -41,4 +26,4 @@ impl PerfEventBroadcast { pub fn subscribe(&self) -> Receiver { self.0.subscribe() } -} +} \ No newline at end of file diff --git a/auraed/src/ebpf/tracepoint/mod.rs b/auraed/src/ebpf/tracepoint/mod.rs index 8614099a9..113f38ebe 100644 --- a/auraed/src/ebpf/tracepoint/mod.rs +++ b/auraed/src/ebpf/tracepoint/mod.rs @@ -1,7 +1,4 @@ /* -------------------------------------------------------------------------- *\ - * Apache 2.0 License Copyright © 2022-2023 The Aurae Authors * - * * - * +--------------------------------------------+ * * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * * | ███████║██║ ██║██████╔╝███████║█████╗ | * @@ -11,21 +8,9 @@ * +--------------------------------------------+ * * * * Distributed Systems Runtime * - * * * -------------------------------------------------------------------------- * - * * - * 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. * - * * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * \* -------------------------------------------------------------------------- */ use super::bpf_file::BpfFile; @@ -70,4 +55,4 @@ impl BpfFile for SchedProcessForkTracepointProgram { "instrument-tracepoint-sched-sched-process-fork"; } -impl PerfBufferReader for SchedProcessForkTracepointProgram {} +impl PerfBufferReader for SchedProcessForkTracepointProgram {} \ No newline at end of file diff --git a/auraed/src/ebpf/tracepoint/tracepoint_program.rs b/auraed/src/ebpf/tracepoint/tracepoint_program.rs index 22fbc6dc9..b04754015 100644 --- a/auraed/src/ebpf/tracepoint/tracepoint_program.rs +++ b/auraed/src/ebpf/tracepoint/tracepoint_program.rs @@ -1,7 +1,4 @@ /* -------------------------------------------------------------------------- *\ - * Apache 2.0 License Copyright © 2022-2023 The Aurae Authors * - * * - * +--------------------------------------------+ * * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * * | ███████║██║ ██║██████╔╝███████║█████╗ | * @@ -11,21 +8,9 @@ * +--------------------------------------------+ * * * * Distributed Systems Runtime * - * * * -------------------------------------------------------------------------- * - * * - * 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. * - * * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * \* -------------------------------------------------------------------------- */ use anyhow::Context; @@ -70,4 +55,4 @@ pub trait TracepointProgram { Ok(()) } -} +} \ No newline at end of file diff --git a/auraed/src/graceful_shutdown.rs b/auraed/src/graceful_shutdown.rs index 54ba3131b..6bcbc9fa8 100644 --- a/auraed/src/graceful_shutdown.rs +++ b/auraed/src/graceful_shutdown.rs @@ -1,7 +1,4 @@ /* -------------------------------------------------------------------------- *\ - * Apache 2.0 License Copyright © 2022-2023 The Aurae Authors * - * * - * +--------------------------------------------+ * * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * * | ███████║██║ ██║██████╔╝███████║█████╗ | * @@ -11,21 +8,9 @@ * +--------------------------------------------+ * * * * Distributed Systems Runtime * - * * * -------------------------------------------------------------------------- * - * * - * 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. * - * * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * \* -------------------------------------------------------------------------- */ use crate::{cells::CellService, discovery::DiscoveryService}; @@ -118,4 +103,4 @@ pub async fn wait_for_sigint() { .expect("failed to listen for SIGINT"); let _ = stream.recv().await; -} +} \ No newline at end of file diff --git a/auraed/src/init/fileio.rs b/auraed/src/init/fileio.rs index 22cfb7d00..469b91e65 100644 --- a/auraed/src/init/fileio.rs +++ b/auraed/src/init/fileio.rs @@ -1,7 +1,4 @@ /* -------------------------------------------------------------------------- *\ - * Apache 2.0 License Copyright © 2022-2023 The Aurae Authors * - * * - * +--------------------------------------------+ * * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * * | ███████║██║ ██║██████╔╝███████║█████╗ | * @@ -11,21 +8,9 @@ * +--------------------------------------------+ * * * * Distributed Systems Runtime * - * * * -------------------------------------------------------------------------- * - * * - * 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. * - * * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * \* -------------------------------------------------------------------------- */ use std::path::Path; @@ -61,4 +46,4 @@ pub(crate) fn show_dir( } Ok(()) -} +} \ No newline at end of file diff --git a/auraed/src/init/fs.rs b/auraed/src/init/fs.rs index dbdbe35cd..82b156113 100644 --- a/auraed/src/init/fs.rs +++ b/auraed/src/init/fs.rs @@ -1,3 +1,17 @@ +/* -------------------------------------------------------------------------- *\ + * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * + * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * + * | ███████║██║ ██║██████╔╝███████║█████╗ | * + * | ██╔══██║██║ ██║██╔══██╗██╔══██║██╔══╝ | * + * | ██║ ██║╚██████╔╝██║ ██║██║ ██║███████╗ | * + * | ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ | * + * +--------------------------------------------+ * + * * + * Distributed Systems Runtime * + * -------------------------------------------------------------------------- * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * +\* -------------------------------------------------------------------------- */ use std::io; use tracing::{error, info}; @@ -34,4 +48,4 @@ impl MountSpec { Ok(()) } -} +} \ No newline at end of file diff --git a/auraed/src/init/logging.rs b/auraed/src/init/logging.rs index d71d929e8..ae909858c 100644 --- a/auraed/src/init/logging.rs +++ b/auraed/src/init/logging.rs @@ -1,3 +1,17 @@ +/* -------------------------------------------------------------------------- *\ + * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * + * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * + * | ███████║██║ ██║██████╔╝███████║█████╗ | * + * | ██╔══██║██║ ██║██╔══██╗██╔══██║██╔══╝ | * + * | ██║ ██║╚██████╔╝██║ ██║██║ ██║███████╗ | * + * | ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ | * + * +--------------------------------------------+ * + * * + * Distributed Systems Runtime * + * -------------------------------------------------------------------------- * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * +\* -------------------------------------------------------------------------- */ use std::ffi::CStr; use tracing::{info, Level}; use tracing_subscriber::{ @@ -104,4 +118,4 @@ fn init_pid1_logging(tracing_level: Level) -> Result<(), LoggingError> { .with_env_filter(format!("auraed={tracing_level}")) .try_init() .map_err(|e| LoggingError::SetupFailure { source: e }) -} +} \ No newline at end of file diff --git a/auraed/src/init/mod.rs b/auraed/src/init/mod.rs index 5de9cb1e7..c99afeb6e 100644 --- a/auraed/src/init/mod.rs +++ b/auraed/src/init/mod.rs @@ -1,7 +1,4 @@ /* -------------------------------------------------------------------------- *\ - * Apache 2.0 License Copyright © 2022-2023 The Aurae Authors * - * * - * +--------------------------------------------+ * * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * * | ███████║██║ ██║██████╔╝███████║█████╗ | * @@ -11,21 +8,9 @@ * +--------------------------------------------+ * * * * Distributed Systems Runtime * - * * * -------------------------------------------------------------------------- * - * * - * 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. * - * * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * \* -------------------------------------------------------------------------- */ //! Run the Aurae daemon as a pid 1 init program. @@ -196,4 +181,4 @@ fn in_new_cgroup_namespace() -> bool { } Err(_) => false, } -} +} \ No newline at end of file diff --git a/auraed/src/init/network/mod.rs b/auraed/src/init/network/mod.rs index 012353797..494f3d83f 100644 --- a/auraed/src/init/network/mod.rs +++ b/auraed/src/init/network/mod.rs @@ -1,7 +1,4 @@ /* -------------------------------------------------------------------------- *\ - * Apache 2.0 License Copyright © 2022-2023 The Aurae Authors * - * * - * +--------------------------------------------+ * * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * * | ███████║██║ ██║██████╔╝███████║█████╗ | * @@ -11,21 +8,9 @@ * +--------------------------------------------+ * * * * Distributed Systems Runtime * - * * * -------------------------------------------------------------------------- * - * * - * 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. * - * * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * \* -------------------------------------------------------------------------- */ use futures::stream::TryStreamExt; @@ -386,4 +371,4 @@ async fn dump_addresses( } else { Err(NetworkError::DeviceNotFound { iface: iface.to_string() }) } -} +} \ No newline at end of file diff --git a/auraed/src/init/network/sriov.rs b/auraed/src/init/network/sriov.rs index c119361f4..effcb320b 100644 --- a/auraed/src/init/network/sriov.rs +++ b/auraed/src/init/network/sriov.rs @@ -1,3 +1,17 @@ +/* -------------------------------------------------------------------------- *\ + * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * + * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * + * | ███████║██║ ██║██████╔╝███████║█████╗ | * + * | ██╔══██║██║ ██║██╔══██╗██╔══██║██╔══╝ | * + * | ██║ ██║╚██████╔╝██║ ██║██║ ██║███████╗ | * + * | ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ | * + * +--------------------------------------------+ * + * * + * Distributed Systems Runtime * + * -------------------------------------------------------------------------- * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * +\* -------------------------------------------------------------------------- */ use std::num::ParseIntError; use std::{cmp, fs, io}; @@ -43,4 +57,4 @@ pub(crate) fn setup_sriov(iface: &str, limit: u16) -> Result<(), SriovError> { fn get_sriov_capabilities(iface: &str) -> Result { fs::read_to_string(format!("/sys/class/net/{iface}/device/sriov_totalvfs")) -} +} \ No newline at end of file diff --git a/auraed/src/init/power.rs b/auraed/src/init/power.rs index 62184e826..ba7c6b3d3 100644 --- a/auraed/src/init/power.rs +++ b/auraed/src/init/power.rs @@ -1,7 +1,4 @@ /* -------------------------------------------------------------------------- *\ - * Apache 2.0 License Copyright © 2022-2023 The Aurae Authors * - * * - * +--------------------------------------------+ * * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * * | ███████║██║ ██║██████╔╝███████║█████╗ | * @@ -11,21 +8,9 @@ * +--------------------------------------------+ * * * * Distributed Systems Runtime * - * * * -------------------------------------------------------------------------- * - * * - * 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. * - * * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * \* -------------------------------------------------------------------------- */ use anyhow::anyhow; @@ -121,4 +106,4 @@ pub(crate) fn spawn_thread_power_button_listener( } }); Ok(()) -} +} \ No newline at end of file diff --git a/auraed/src/init/system_runtimes/cell_system_runtime.rs b/auraed/src/init/system_runtimes/cell_system_runtime.rs index 11277c014..da405ec1c 100644 --- a/auraed/src/init/system_runtimes/cell_system_runtime.rs +++ b/auraed/src/init/system_runtimes/cell_system_runtime.rs @@ -1,7 +1,4 @@ /* -------------------------------------------------------------------------- *\ - * Apache 2.0 License Copyright © 2022-2023 The Aurae Authors * - * * - * +--------------------------------------------+ * * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * * | ███████║██║ ██║██████╔╝███████║█████╗ | * @@ -11,21 +8,9 @@ * +--------------------------------------------+ * * * * Distributed Systems Runtime * - * * * -------------------------------------------------------------------------- * - * * - * 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. * - * * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * \* -------------------------------------------------------------------------- */ use std::path::PathBuf; @@ -57,4 +42,4 @@ impl SystemRuntime for CellSystemRuntime { ) .await } -} +} \ No newline at end of file diff --git a/auraed/src/init/system_runtimes/container_system_runtime.rs b/auraed/src/init/system_runtimes/container_system_runtime.rs index fedc85a1c..2dbd21d05 100644 --- a/auraed/src/init/system_runtimes/container_system_runtime.rs +++ b/auraed/src/init/system_runtimes/container_system_runtime.rs @@ -1,7 +1,4 @@ /* -------------------------------------------------------------------------- *\ - * Apache 2.0 License Copyright © 2022-2023 The Aurae Authors * - * * - * +--------------------------------------------+ * * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * * | ███████║██║ ██║██████╔╝███████║█████╗ | * @@ -11,21 +8,9 @@ * +--------------------------------------------+ * * * * Distributed Systems Runtime * - * * * -------------------------------------------------------------------------- * - * * - * 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. * - * * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * \* -------------------------------------------------------------------------- */ use std::path::PathBuf; @@ -57,4 +42,4 @@ impl SystemRuntime for ContainerSystemRuntime { ) .await } -} +} \ No newline at end of file diff --git a/auraed/src/init/system_runtimes/daemon_system_runtime.rs b/auraed/src/init/system_runtimes/daemon_system_runtime.rs index 578bb11a6..f23173616 100644 --- a/auraed/src/init/system_runtimes/daemon_system_runtime.rs +++ b/auraed/src/init/system_runtimes/daemon_system_runtime.rs @@ -1,7 +1,4 @@ /* -------------------------------------------------------------------------- *\ - * Apache 2.0 License Copyright © 2022-2023 The Aurae Authors * - * * - * +--------------------------------------------+ * * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * * | ███████║██║ ██║██████╔╝███████║█████╗ | * @@ -11,21 +8,9 @@ * +--------------------------------------------+ * * * * Distributed Systems Runtime * - * * * -------------------------------------------------------------------------- * - * * - * 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. * - * * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * \* -------------------------------------------------------------------------- */ use std::{net::SocketAddr, path::PathBuf, str::FromStr}; @@ -72,4 +57,4 @@ impl SystemRuntime for DaemonSystemRuntime { create_unix_socket_stream(PathBuf::from(sockaddr)).await } } -} +} \ No newline at end of file diff --git a/auraed/src/init/system_runtimes/mod.rs b/auraed/src/init/system_runtimes/mod.rs index e35635fac..d36fe9d73 100644 --- a/auraed/src/init/system_runtimes/mod.rs +++ b/auraed/src/init/system_runtimes/mod.rs @@ -1,7 +1,4 @@ /* -------------------------------------------------------------------------- *\ - * Apache 2.0 License Copyright © 2022-2023 The Aurae Authors * - * * - * +--------------------------------------------+ * * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * * | ███████║██║ ██║██████╔╝███████║█████╗ | * @@ -11,21 +8,9 @@ * +--------------------------------------------+ * * * * Distributed Systems Runtime * - * * * -------------------------------------------------------------------------- * - * * - * 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. * - * * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * \* -------------------------------------------------------------------------- */ use anyhow::{anyhow, Context}; pub(crate) use cell_system_runtime::CellSystemRuntime; @@ -122,4 +107,4 @@ async fn create_tcp_socket_stream( let sock = TcpListener::bind(&socket_addr).await?; info!("TCP Access Socket created: {:?}", socket_addr); Ok(SocketStream::Tcp(TcpListenerStream::new(sock))) -} +} \ No newline at end of file diff --git a/auraed/src/init/system_runtimes/pid1_system_runtime.rs b/auraed/src/init/system_runtimes/pid1_system_runtime.rs index 951c256e1..9746982de 100644 --- a/auraed/src/init/system_runtimes/pid1_system_runtime.rs +++ b/auraed/src/init/system_runtimes/pid1_system_runtime.rs @@ -1,7 +1,4 @@ /* -------------------------------------------------------------------------- *\ - * Apache 2.0 License Copyright © 2022-2023 The Aurae Authors * - * * - * +--------------------------------------------+ * * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * * | ███████║██║ ██║██████╔╝███████║█████╗ | * @@ -11,21 +8,9 @@ * +--------------------------------------------+ * * * * Distributed Systems Runtime * - * * * -------------------------------------------------------------------------- * - * * - * 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. * - * * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * \* -------------------------------------------------------------------------- */ use super::{SocketStream, SystemRuntime, SystemRuntimeError}; @@ -121,4 +106,4 @@ impl SystemRuntime for Pid1SystemRuntime { .parse::()?; create_tcp_socket_stream(socket_addr).await } -} +} \ No newline at end of file diff --git a/auraed/src/lib.rs b/auraed/src/lib.rs index d4863f569..c75c9ec2c 100644 --- a/auraed/src/lib.rs +++ b/auraed/src/lib.rs @@ -1,7 +1,4 @@ /* -------------------------------------------------------------------------- *\ - * Apache 2.0 License Copyright © 2022-2023 The Aurae Authors * - * * - * +--------------------------------------------+ * * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * * | ███████║██║ ██║██████╔╝███████║█████╗ | * @@ -11,21 +8,9 @@ * +--------------------------------------------+ * * * * Distributed Systems Runtime * - * * * -------------------------------------------------------------------------- * - * * - * 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. * - * * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * \* -------------------------------------------------------------------------- */ //! # Aurae Daemon //! @@ -372,4 +357,4 @@ pub fn prep_oci_spec_for_spawn(output: &str) { AuraeOCIBuilder::new().build().expect("building default oci spec"), ) .expect("spawning"); -} +} \ No newline at end of file diff --git a/auraed/src/logging/log_channel.rs b/auraed/src/logging/log_channel.rs index 8b13d9b34..2c5ed7371 100644 --- a/auraed/src/logging/log_channel.rs +++ b/auraed/src/logging/log_channel.rs @@ -1,7 +1,4 @@ /* -------------------------------------------------------------------------- *\ - * Apache 2.0 License Copyright © 2022-2023 The Aurae Authors * - * * - * +--------------------------------------------+ * * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * * | ███████║██║ ██║██████╔╝███████║█████╗ | * @@ -11,21 +8,9 @@ * +--------------------------------------------+ * * * * Distributed Systems Runtime * - * * * -------------------------------------------------------------------------- * - * * - * 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. * - * * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * \* -------------------------------------------------------------------------- */ use super::get_timestamp_sec; @@ -104,4 +89,4 @@ mod tests { assert!(cur_item.is_some()); assert_eq!(cur_item.unwrap().line, "bye".to_string()); } -} +} \ No newline at end of file diff --git a/auraed/src/logging/mod.rs b/auraed/src/logging/mod.rs index ead1ea41a..c8d907a6f 100644 --- a/auraed/src/logging/mod.rs +++ b/auraed/src/logging/mod.rs @@ -1,7 +1,4 @@ /* -------------------------------------------------------------------------- *\ - * Apache 2.0 License Copyright © 2022-2023 The Aurae Authors * - * * - * +--------------------------------------------+ * * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * * | ███████║██║ ██║██████╔╝███████║█████╗ | * @@ -11,21 +8,9 @@ * +--------------------------------------------+ * * * * Distributed Systems Runtime * - * * * -------------------------------------------------------------------------- * - * * - * 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. * - * * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * \* -------------------------------------------------------------------------- */ //! Internal logging system for Auraed and all spawned Executables, Containers @@ -47,4 +32,4 @@ pub fn get_timestamp_sec() -> i64 { .expect("System Clock went backwards"); unix_ts.as_secs() as i64 -} +} \ No newline at end of file diff --git a/auraed/src/logging/stream_logger.rs b/auraed/src/logging/stream_logger.rs index 5ed71b427..8ed860c02 100644 --- a/auraed/src/logging/stream_logger.rs +++ b/auraed/src/logging/stream_logger.rs @@ -1,7 +1,4 @@ /* -------------------------------------------------------------------------- *\ - * Apache 2.0 License Copyright © 2022-2023 The Aurae Authors * - * * - * +--------------------------------------------+ * * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * * | ███████║██║ ██║██████╔╝███████║█████╗ | * @@ -11,21 +8,9 @@ * +--------------------------------------------+ * * * * Distributed Systems Runtime * - * * * -------------------------------------------------------------------------- * - * * - * 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. * - * * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * \* -------------------------------------------------------------------------- */ use log::Log; @@ -68,4 +53,4 @@ impl Log for StreamLogger { } fn flush(&self) {} -} +} \ No newline at end of file diff --git a/auraed/src/observe/cgroup_cache.rs b/auraed/src/observe/cgroup_cache.rs index b3dda1d28..dde5d9d6d 100644 --- a/auraed/src/observe/cgroup_cache.rs +++ b/auraed/src/observe/cgroup_cache.rs @@ -1,3 +1,17 @@ +/* -------------------------------------------------------------------------- *\ + * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * + * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * + * | ███████║██║ ██║██████╔╝███████║█████╗ | * + * | ██╔══██║██║ ██║██╔══██╗██╔══██║██╔══╝ | * + * | ██║ ██║╚██████╔╝██║ ██║██║ ██║███████╗ | * + * | ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ | * + * +--------------------------------------------+ * + * * + * Distributed Systems Runtime * + * -------------------------------------------------------------------------- * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * +\* -------------------------------------------------------------------------- */ /* -------------------------------------------------------------------------- *\ * Apache 2.0 License Copyright © 2022-2023 The Aurae Authors * * * @@ -131,4 +145,4 @@ mod test { .expect("dir entry"); dir_entry.ino() } -} +} \ No newline at end of file diff --git a/auraed/src/observe/error.rs b/auraed/src/observe/error.rs index f556c0044..9cd381352 100644 --- a/auraed/src/observe/error.rs +++ b/auraed/src/observe/error.rs @@ -1,7 +1,4 @@ /* -------------------------------------------------------------------------- *\ - * Apache 2.0 License Copyright © 2022-2023 The Aurae Authors * - * * - * +--------------------------------------------+ * * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * * | ███████║██║ ██║██████╔╝███████║█████╗ | * @@ -11,21 +8,9 @@ * +--------------------------------------------+ * * * * Distributed Systems Runtime * - * * * -------------------------------------------------------------------------- * - * * - * 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. * - * * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * \* -------------------------------------------------------------------------- */ use proto::observe::LogChannelType; @@ -62,4 +47,4 @@ impl From for Status { } } } -} +} \ No newline at end of file diff --git a/auraed/src/observe/mod.rs b/auraed/src/observe/mod.rs index 416899f73..a35973e50 100644 --- a/auraed/src/observe/mod.rs +++ b/auraed/src/observe/mod.rs @@ -1,7 +1,4 @@ /* -------------------------------------------------------------------------- *\ - * Apache 2.0 License Copyright © 2022-2023 The Aurae Authors * - * * - * +--------------------------------------------+ * * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * * | ███████║██║ ██║██████╔╝███████║█████╗ | * @@ -11,21 +8,9 @@ * +--------------------------------------------+ * * * * Distributed Systems Runtime * - * * * -------------------------------------------------------------------------- * - * * - * 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. * - * * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * \* -------------------------------------------------------------------------- */ pub(crate) use error::ObserveServiceError; @@ -35,4 +20,4 @@ mod cgroup_cache; mod error; mod observe_service; mod observed_event_stream; -mod proc_cache; +mod proc_cache; \ No newline at end of file diff --git a/auraed/src/observe/observe_service.rs b/auraed/src/observe/observe_service.rs index 7d285bd68..47cc8c6cc 100644 --- a/auraed/src/observe/observe_service.rs +++ b/auraed/src/observe/observe_service.rs @@ -1,7 +1,4 @@ /* -------------------------------------------------------------------------- *\ - * Apache 2.0 License Copyright © 2022-2023 The Aurae Authors * - * * - * +--------------------------------------------+ * * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * * | ███████║██║ ██║██████╔╝███████║█████╗ | * @@ -11,21 +8,9 @@ * +--------------------------------------------+ * * * * Distributed Systems Runtime * - * * * -------------------------------------------------------------------------- * - * * - * 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. * - * * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * \* -------------------------------------------------------------------------- */ // @todo @krisnova remove this once logging is further along @@ -391,4 +376,4 @@ mod tests { svc.sub_process_consumer_list.lock().await.clear(); } -} +} \ No newline at end of file diff --git a/auraed/src/observe/observed_event_stream.rs b/auraed/src/observe/observed_event_stream.rs index dbcc7de8e..46fa4a3d6 100644 --- a/auraed/src/observe/observed_event_stream.rs +++ b/auraed/src/observe/observed_event_stream.rs @@ -1,7 +1,4 @@ /* -------------------------------------------------------------------------- *\ - * Apache 2.0 License Copyright © 2022-2023 The Aurae Authors * - * * - * +--------------------------------------------+ * * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * * | ███████║██║ ██║██████╔╝███████║█████╗ | * @@ -11,21 +8,9 @@ * +--------------------------------------------+ * * * * Distributed Systems Runtime * - * * * -------------------------------------------------------------------------- * - * * - * 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. * - * * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * \* -------------------------------------------------------------------------- */ use super::{cgroup_cache::CgroupCache, proc_cache::ProcCache}; use crate::ebpf::tracepoint::PerfEventBroadcast; @@ -122,4 +107,4 @@ impl<'a, T: HasCgroup + HasHostPid + Clone + Send + Sync + 'static> rx } -} +} \ No newline at end of file diff --git a/auraed/src/observe/proc_cache.rs b/auraed/src/observe/proc_cache.rs index f5c212fe9..4166d3d06 100644 --- a/auraed/src/observe/proc_cache.rs +++ b/auraed/src/observe/proc_cache.rs @@ -1,3 +1,17 @@ +/* -------------------------------------------------------------------------- *\ + * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * + * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * + * | ███████║██║ ██║██████╔╝███████║█████╗ | * + * | ██╔══██║██║ ██║██╔══██╗██╔══██║██╔══╝ | * + * | ██║ ██║╚██████╔╝██║ ██║██║ ██║███████╗ | * + * | ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ | * + * +--------------------------------------------+ * + * * + * Distributed Systems Runtime * + * -------------------------------------------------------------------------- * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * +\* -------------------------------------------------------------------------- */ /* -------------------------------------------------------------------------- *\ * Apache 2.0 License Copyright © 2022-2023 The Aurae Authors * * * @@ -367,4 +381,4 @@ mod test { (cache, fork_tx, exit_tx) } -} +} \ No newline at end of file diff --git a/auraed/src/spawn/mod.rs b/auraed/src/spawn/mod.rs index c80905d30..800e66b84 100644 --- a/auraed/src/spawn/mod.rs +++ b/auraed/src/spawn/mod.rs @@ -1,7 +1,4 @@ /* -------------------------------------------------------------------------- *\ - * Apache 2.0 License Copyright © 2022-2023 The Aurae Authors * - * * - * +--------------------------------------------+ * * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * * | ███████║██║ ██║██████╔╝███████║█████╗ | * @@ -11,21 +8,9 @@ * +--------------------------------------------+ * * * * Distributed Systems Runtime * - * * * -------------------------------------------------------------------------- * - * * - * 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. * - * * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * \* -------------------------------------------------------------------------- */ use anyhow::Context; @@ -106,4 +91,4 @@ pub fn spawn_auraed_oci_to( .expect("linking /bin/auraed to /bin/init"); Ok(()) -} +} \ No newline at end of file diff --git a/auraed/src/vms/mod.rs b/auraed/src/vms/mod.rs index 3fcf07933..faabe9db8 100644 --- a/auraed/src/vms/mod.rs +++ b/auraed/src/vms/mod.rs @@ -1 +1,15 @@ +/* -------------------------------------------------------------------------- *\ + * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * + * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * + * | ███████║██║ ██║██████╔╝███████║█████╗ | * + * | ██╔══██║██║ ██║██╔══██╗██╔══██║██╔══╝ | * + * | ██║ ██║╚██████╔╝██║ ██║██║ ██║███████╗ | * + * | ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ | * + * +--------------------------------------------+ * + * * + * Distributed Systems Runtime * + * -------------------------------------------------------------------------- * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * +\* -------------------------------------------------------------------------- */ pub mod vm_service; \ No newline at end of file diff --git a/auraed/src/vms/vm_service.rs b/auraed/src/vms/vm_service.rs index 0853da597..d82e816f8 100644 --- a/auraed/src/vms/vm_service.rs +++ b/auraed/src/vms/vm_service.rs @@ -1,3 +1,17 @@ +/* -------------------------------------------------------------------------- *\ + * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * + * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * + * | ███████║██║ ██║██████╔╝███████║█████╗ | * + * | ██╔══██║██║ ██║██╔══██╗██╔══██║██╔══╝ | * + * | ██║ ██║╚██████╔╝██║ ██║██║ ██║███████╗ | * + * | ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ | * + * +--------------------------------------------+ * + * * + * Distributed Systems Runtime * + * -------------------------------------------------------------------------- * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * +\* -------------------------------------------------------------------------- */ use proto::vms::{ vm_service_server, VirtualMachine, VmServiceCreateRequest, VmServiceCreateResponse, VmServiceFreeRequest, VmServiceFreeResponse, @@ -43,4 +57,4 @@ impl vm_service_server::VmService for VmService { ) -> Result, Status> { todo!() } -} +} \ No newline at end of file diff --git a/auraed/tests/cell_list_must_list_allocated_cells_recursively.rs b/auraed/tests/cell_list_must_list_allocated_cells_recursively.rs index a4579b570..957bac1e3 100644 --- a/auraed/tests/cell_list_must_list_allocated_cells_recursively.rs +++ b/auraed/tests/cell_list_must_list_allocated_cells_recursively.rs @@ -1,3 +1,17 @@ +/* -------------------------------------------------------------------------- *\ + * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * + * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * + * | ███████║██║ ██║██████╔╝███████║█████╗ | * + * | ██╔══██║██║ ██║██╔══██╗██╔══██║██╔══╝ | * + * | ██║ ██║╚██████╔╝██║ ██║██║ ██║███████╗ | * + * | ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ | * + * +--------------------------------------------+ * + * * + * Distributed Systems Runtime * + * -------------------------------------------------------------------------- * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * +\* -------------------------------------------------------------------------- */ use client::cells::cell_service::CellServiceClient; use common::cells::CellServiceAllocateRequestBuilder; use pretty_assertions::assert_eq; @@ -118,4 +132,4 @@ async fn cells_list_must_list_allocated_cells_recursively() { expected.cells.swap(0, 1); assert_eq!(list_response, expected); } -} +} \ No newline at end of file diff --git a/auraed/tests/common/cells.rs b/auraed/tests/common/cells.rs index a677b067c..076cb22d7 100644 --- a/auraed/tests/common/cells.rs +++ b/auraed/tests/common/cells.rs @@ -1,3 +1,17 @@ +/* -------------------------------------------------------------------------- *\ + * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * + * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * + * | ███████║██║ ██║██████╔╝███████║█████╗ | * + * | ██╔══██║██║ ██║██╔══██╗██╔══██║██╔══╝ | * + * | ██║ ██║╚██████╔╝██║ ██║██║ ██║███████╗ | * + * | ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ | * + * +--------------------------------------------+ * + * * + * Distributed Systems Runtime * + * -------------------------------------------------------------------------- * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * +\* -------------------------------------------------------------------------- */ #![allow(unused)] use proto::cells::{ @@ -125,4 +139,4 @@ impl CellServiceStartRequestBuilder { executable: Some(self.executable_builder.build()), } } -} +} \ No newline at end of file diff --git a/auraed/tests/common/mod.rs b/auraed/tests/common/mod.rs index ad17c60c5..6880635de 100644 --- a/auraed/tests/common/mod.rs +++ b/auraed/tests/common/mod.rs @@ -1,3 +1,17 @@ +/* -------------------------------------------------------------------------- *\ + * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * + * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * + * | ███████║██║ ██║██████╔╝███████║█████╗ | * + * | ██╔══██║██║ ██║██╔══██╗██╔══██║██╔══╝ | * + * | ██║ ██║╚██████╔╝██║ ██║██║ ██║███████╗ | * + * | ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ | * + * +--------------------------------------------+ * + * * + * Distributed Systems Runtime * + * -------------------------------------------------------------------------- * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * +\* -------------------------------------------------------------------------- */ use auraed::{AuraedPath, AuraedRuntime}; use backoff::{ backoff::Backoff, exponential::ExponentialBackoff, @@ -129,4 +143,4 @@ pub fn default_retry_strategy() -> ExponentialBackoff { .with_max_interval(Duration::from_secs(3)) // but never delay more than 3s .with_max_elapsed_time(Some(Duration::from_secs(20))) // or 20s total .build() -} +} \ No newline at end of file diff --git a/auraed/tests/common/observe.rs b/auraed/tests/common/observe.rs index 9c93b4a40..278b60321 100644 --- a/auraed/tests/common/observe.rs +++ b/auraed/tests/common/observe.rs @@ -1,3 +1,17 @@ +/* -------------------------------------------------------------------------- *\ + * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * + * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * + * | ███████║██║ ██║██████╔╝███████║█████╗ | * + * | ██╔══██║██║ ██║██╔══██╗██╔══██║██╔══╝ | * + * | ██║ ██║╚██████╔╝██║ ██║██║ ██║███████╗ | * + * | ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ | * + * +--------------------------------------------+ * + * * + * Distributed Systems Runtime * + * -------------------------------------------------------------------------- * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * +\* -------------------------------------------------------------------------- */ #![allow(unused)] use crate::retry; @@ -52,4 +66,4 @@ impl GetPosixSignalsStreamRequestBuilder { pub fn build(&self) -> GetPosixSignalsStreamRequest { GetPosixSignalsStreamRequest { workload: self.workload.clone() } } -} +} \ No newline at end of file diff --git a/auraed/tests/observe_get_posix_signals_stream_must_get_posix_signals_for_a_cell.rs b/auraed/tests/observe_get_posix_signals_stream_must_get_posix_signals_for_a_cell.rs index f2e6632d2..4002f3f8e 100644 --- a/auraed/tests/observe_get_posix_signals_stream_must_get_posix_signals_for_a_cell.rs +++ b/auraed/tests/observe_get_posix_signals_stream_must_get_posix_signals_for_a_cell.rs @@ -1,3 +1,17 @@ +/* -------------------------------------------------------------------------- *\ + * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * + * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * + * | ███████║██║ ██║██████╔╝███████║█████╗ | * + * | ██╔══██║██║ ██║██╔══██╗██╔══██║██╔══╝ | * + * | ██║ ██║╚██████╔╝██║ ██║██║ ██║███████╗ | * + * | ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ | * + * +--------------------------------------------+ * + * * + * Distributed Systems Runtime * + * -------------------------------------------------------------------------- * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * +\* -------------------------------------------------------------------------- */ use client::cells::cell_service::CellServiceClient; use common::{ cells::{ @@ -114,4 +128,4 @@ async fn observe_get_posix_signal_stream_must_get_posix_signals_for_a_cell() { !guard.contains(&Signal { process_id: pid2, signal: 9 }), "unexpected signal intercepted" ); -} +} \ No newline at end of file diff --git a/auraed/tests/observe_get_posix_signals_stream_must_get_posix_signals_for_a_nested_cell.rs b/auraed/tests/observe_get_posix_signals_stream_must_get_posix_signals_for_a_nested_cell.rs index c6bd1c66b..8c5d827c2 100644 --- a/auraed/tests/observe_get_posix_signals_stream_must_get_posix_signals_for_a_nested_cell.rs +++ b/auraed/tests/observe_get_posix_signals_stream_must_get_posix_signals_for_a_nested_cell.rs @@ -1,3 +1,17 @@ +/* -------------------------------------------------------------------------- *\ + * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * + * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * + * | ███████║██║ ██║██████╔╝███████║█████╗ | * + * | ██╔══██║██║ ██║██╔══██╗██╔══██║██╔══╝ | * + * | ██║ ██║╚██████╔╝██║ ██║██║ ██║███████╗ | * + * | ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ | * + * +--------------------------------------------+ * + * * + * Distributed Systems Runtime * + * -------------------------------------------------------------------------- * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * +\* -------------------------------------------------------------------------- */ use client::cells::cell_service::CellServiceClient; use common::{ cells::{ @@ -160,4 +174,4 @@ async fn observe_get_posix_signal_stream_must_get_posix_signals_for_a_nested_cel !guard.contains(&Signal { process_id: pid2, signal: 9 }), "unexpected signal intercepted" ); -} +} \ No newline at end of file diff --git a/auraed/tests/observe_get_posix_signals_stream_must_get_posix_signals_for_the_host.rs b/auraed/tests/observe_get_posix_signals_stream_must_get_posix_signals_for_the_host.rs index a771b620f..0251124de 100644 --- a/auraed/tests/observe_get_posix_signals_stream_must_get_posix_signals_for_the_host.rs +++ b/auraed/tests/observe_get_posix_signals_stream_must_get_posix_signals_for_the_host.rs @@ -1,3 +1,17 @@ +/* -------------------------------------------------------------------------- *\ + * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * + * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * + * | ███████║██║ ██║██████╔╝███████║█████╗ | * + * | ██╔══██║██║ ██║██╔══██╗██╔══██║██╔══╝ | * + * | ██║ ██║╚██████╔╝██║ ██║██║ ██║███████╗ | * + * | ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ | * + * +--------------------------------------------+ * + * * + * Distributed Systems Runtime * + * -------------------------------------------------------------------------- * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * +\* -------------------------------------------------------------------------- */ use client::cells::cell_service::CellServiceClient; use common::{ cells::{ @@ -72,4 +86,4 @@ async fn observe_get_posix_signal_stream_must_get_posix_signals_for_the_host() { guard.contains(&expected), "signal not found\nexpected: {expected:#?}\nintercepted: {guard:#?}", ); -} +} \ No newline at end of file diff --git a/auraed/tests/observe_get_posix_signals_stream_must_map_host_pids_to_namespace_pids.rs b/auraed/tests/observe_get_posix_signals_stream_must_map_host_pids_to_namespace_pids.rs index 42fb4e686..342a72bd6 100644 --- a/auraed/tests/observe_get_posix_signals_stream_must_map_host_pids_to_namespace_pids.rs +++ b/auraed/tests/observe_get_posix_signals_stream_must_map_host_pids_to_namespace_pids.rs @@ -1,3 +1,17 @@ +/* -------------------------------------------------------------------------- *\ + * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * + * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * + * | ███████║██║ ██║██████╔╝███████║█████╗ | * + * | ██╔══██║██║ ██║██╔══██╗██╔══██║██╔══╝ | * + * | ██║ ██║╚██████╔╝██║ ██║██║ ██║███████╗ | * + * | ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ | * + * +--------------------------------------------+ * + * * + * Distributed Systems Runtime * + * -------------------------------------------------------------------------- * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * +\* -------------------------------------------------------------------------- */ use client::cells::cell_service::CellServiceClient; use common::{ cells::{ @@ -79,4 +93,4 @@ async fn observe_get_posix_signal_stream_must_map_host_pids_to_namespace_pids() guard.contains(&expected), "signal not found\nexpected: {expected:#?}\nintercepted: {guard:#?}", ); -} +} \ No newline at end of file diff --git a/auraed/tests/vms_start_must_start_vm_with_auraed.rs b/auraed/tests/vms_start_must_start_vm_with_auraed.rs index 86eb2cf91..a7ed35e8b 100644 --- a/auraed/tests/vms_start_must_start_vm_with_auraed.rs +++ b/auraed/tests/vms_start_must_start_vm_with_auraed.rs @@ -1,3 +1,17 @@ +/* -------------------------------------------------------------------------- *\ + * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * + * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * + * | ███████║██║ ██║██████╔╝███████║█████╗ | * + * | ██╔══██║██║ ██║██╔══██╗██╔══██║██╔══╝ | * + * | ██║ ██║╚██████╔╝██║ ██║██║ ██║███████╗ | * + * | ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ | * + * +--------------------------------------------+ * + * * + * Distributed Systems Runtime * + * -------------------------------------------------------------------------- * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * +\* -------------------------------------------------------------------------- */ // use client::discovery::discovery_service::DiscoveryServiceClient; // use client::vms::vms_service::VmServiceClient; // use proto::discovery::DiscoverRequest; @@ -58,4 +72,4 @@ // // // // let res = res.expect("this shouldn't happen").into_inner(); // // assert!(res.healthy); -// } +// } \ No newline at end of file diff --git a/auraescript/Cargo.toml b/auraescript/Cargo.toml index 32beccc9d..88a36de9b 100644 --- a/auraescript/Cargo.toml +++ b/auraescript/Cargo.toml @@ -1,7 +1,4 @@ # ---------------------------------------------------------------------------- # -# Apache 2.0 License Copyright © 2022-2023 The Aurae Authors # -# # -# +--------------------------------------------+ # # | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | # # | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | # # | ███████║██║ ██║██████╔╝███████║█████╗ | # @@ -11,21 +8,9 @@ # +--------------------------------------------+ # # # # Distributed Systems Runtime # -# # # ---------------------------------------------------------------------------- # -# # -# 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. # -# # +# Copyright 2022 - 2024, the aurae contributors # +# SPDX-License-Identifier: Apache-2.0 # # ---------------------------------------------------------------------------- # [package] diff --git a/auraescript/build.rs b/auraescript/build.rs index 4211bf814..78d6434ba 100644 --- a/auraescript/build.rs +++ b/auraescript/build.rs @@ -1,3 +1,17 @@ +/* -------------------------------------------------------------------------- *\ + * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * + * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * + * | ███████║██║ ██║██████╔╝███████║█████╗ | * + * | ██╔══██║██║ ██║██╔══██╗██╔══██║██╔══╝ | * + * | ██║ ██║╚██████╔╝██║ ██║██║ ██║███████╗ | * + * | ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ | * + * +--------------------------------------------+ * + * * + * Distributed Systems Runtime * + * -------------------------------------------------------------------------- * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * +\* -------------------------------------------------------------------------- */ use std::fs::OpenOptions; use std::io::Write; use std::path::PathBuf; @@ -39,4 +53,4 @@ fn generate_aurae_ts() { write!(ts, "{aurae}") .unwrap_or_else(|_| panic!("Could not write to {ts_path:?}")); -} +} \ No newline at end of file diff --git a/auraescript/default.config.toml b/auraescript/default.config.toml index 52bcaf812..31bef5557 100644 --- a/auraescript/default.config.toml +++ b/auraescript/default.config.toml @@ -1,7 +1,4 @@ # ---------------------------------------------------------------------------- # -# Apache 2.0 License Copyright © 2022-2023 The Aurae Authors # -# # -# +--------------------------------------------+ # # | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | # # | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | # # | ███████║██║ ██║██████╔╝███████║█████╗ | # @@ -11,21 +8,9 @@ # +--------------------------------------------+ # # # # Distributed Systems Runtime # -# # # ---------------------------------------------------------------------------- # -# # -# 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. # -# # +# Copyright 2022 - 2024, the aurae contributors # +# SPDX-License-Identifier: Apache-2.0 # # ---------------------------------------------------------------------------- # diff --git a/auraescript/macros/Cargo.toml b/auraescript/macros/Cargo.toml index 7a8d4390c..dea229ed7 100644 --- a/auraescript/macros/Cargo.toml +++ b/auraescript/macros/Cargo.toml @@ -1,3 +1,17 @@ +# ---------------------------------------------------------------------------- # +# | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | # +# | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | # +# | ███████║██║ ██║██████╔╝███████║█████╗ | # +# | ██╔══██║██║ ██║██╔══██╗██╔══██║██╔══╝ | # +# | ██║ ██║╚██████╔╝██║ ██║██║ ██║███████╗ | # +# | ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ | # +# +--------------------------------------------+ # +# # +# Distributed Systems Runtime # +# ---------------------------------------------------------------------------- # +# Copyright 2022 - 2024, the aurae contributors # +# SPDX-License-Identifier: Apache-2.0 # +# ---------------------------------------------------------------------------- # [package] name = "auraescript_macros" version = "0.0.0" diff --git a/auraescript/macros/src/lib.rs b/auraescript/macros/src/lib.rs index fec5e698b..d2cc9f11d 100644 --- a/auraescript/macros/src/lib.rs +++ b/auraescript/macros/src/lib.rs @@ -1,7 +1,4 @@ /* -------------------------------------------------------------------------- *\ - * Apache 2.0 License Copyright © 2022-2023 The Aurae Authors * - * * - * +--------------------------------------------+ * * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * * | ███████║██║ ██║██████╔╝███████║█████╗ | * @@ -11,21 +8,9 @@ * +--------------------------------------------+ * * * * Distributed Systems Runtime * - * * * -------------------------------------------------------------------------- * - * * - * 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. * - * * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * \* -------------------------------------------------------------------------- */ // The project prefers .expect("reason") instead of .unwrap() so we fail @@ -58,4 +43,4 @@ mod ops; #[proc_macro] pub fn ops_generator(input: TokenStream) -> TokenStream { ops::ops_generator(input) -} +} \ No newline at end of file diff --git a/auraescript/macros/src/ops.rs b/auraescript/macros/src/ops.rs index da85f6174..98c21c160 100644 --- a/auraescript/macros/src/ops.rs +++ b/auraescript/macros/src/ops.rs @@ -1,3 +1,17 @@ +/* -------------------------------------------------------------------------- *\ + * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * + * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * + * | ███████║██║ ██║██████╔╝███████║█████╗ | * + * | ██╔══██║██║ ██║██╔══██╗██╔══██║██╔══╝ | * + * | ██║ ██║╚██████╔╝██║ ██║██║ ██║███████╗ | * + * | ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ | * + * +--------------------------------------------+ * + * * + * Distributed Systems Runtime * + * -------------------------------------------------------------------------- * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * +\* -------------------------------------------------------------------------- */ use heck::{ToLowerCamelCase, ToSnakeCase}; use proc_macro::TokenStream; use proc_macro2::Ident; @@ -276,4 +290,4 @@ fn op_name(module: &Path, service_name: &str, method_name: &str) -> String { service_name.to_snake_case(), method_name.to_snake_case() ) -} +} \ No newline at end of file diff --git a/auraescript/src/bin/main.rs b/auraescript/src/bin/main.rs index fb0eaf8b2..eacfd9920 100644 --- a/auraescript/src/bin/main.rs +++ b/auraescript/src/bin/main.rs @@ -1,7 +1,4 @@ /* -------------------------------------------------------------------------- *\ - * Apache 2.0 License Copyright © 2022-2023 The Aurae Authors * - * * - * +--------------------------------------------+ * * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * * | ███████║██║ ██║██████╔╝███████║█████╗ | * @@ -11,21 +8,9 @@ * +--------------------------------------------+ * * * * Distributed Systems Runtime * - * * * -------------------------------------------------------------------------- * - * * - * 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. * - * * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * \* -------------------------------------------------------------------------- */ // Lint groups: https://doc.rust-lang.org/rustc/lints/groups.html @@ -68,4 +53,4 @@ fn main() -> anyhow::Result<()> { .enable_all() .build()? .block_on(rt) -} +} \ No newline at end of file diff --git a/auraescript/src/builtin/auraescript_client.rs b/auraescript/src/builtin/auraescript_client.rs index 27d1a610d..04aaed822 100644 --- a/auraescript/src/builtin/auraescript_client.rs +++ b/auraescript/src/builtin/auraescript_client.rs @@ -1,3 +1,17 @@ +/* -------------------------------------------------------------------------- *\ + * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * + * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * + * | ███████║██║ ██║██████╔╝███████║█████╗ | * + * | ██╔══██║██║ ██║██╔══██╗██╔══██║██╔══╝ | * + * | ██║ ██║╚██████╔╝██║ ██║██║ ██║███████╗ | * + * | ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ | * + * +--------------------------------------------+ * + * * + * Distributed Systems Runtime * + * -------------------------------------------------------------------------- * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * +\* -------------------------------------------------------------------------- */ #![allow(non_snake_case)] use anyhow::Result; @@ -79,4 +93,4 @@ pub(crate) fn op_decls() -> Vec<::deno_core::OpDecl> { // to impl Resource on it pub(crate) struct AuraeScriptClient(pub Client); -impl Resource for AuraeScriptClient {} // Blank impl +impl Resource for AuraeScriptClient {} // Blank impl \ No newline at end of file diff --git a/auraescript/src/builtin/mod.rs b/auraescript/src/builtin/mod.rs index 13409fbec..289d1f08e 100644 --- a/auraescript/src/builtin/mod.rs +++ b/auraescript/src/builtin/mod.rs @@ -1,7 +1,4 @@ /* -------------------------------------------------------------------------- *\ - * Apache 2.0 License Copyright © 2022-2023 The Aurae Authors * - * * - * +--------------------------------------------+ * * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * * | ███████║██║ ██║██████╔╝███████║█████╗ | * @@ -11,21 +8,9 @@ * +--------------------------------------------+ * * * * Distributed Systems Runtime * - * * * -------------------------------------------------------------------------- * - * * - * 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. * - * * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * \* -------------------------------------------------------------------------- */ //! The builtin functionality for AuraeScript. @@ -54,4 +39,4 @@ fn about() { /// Show version information. fn version() { println!("Version: {VERSION}"); -} +} \ No newline at end of file diff --git a/auraescript/src/cells.rs b/auraescript/src/cells.rs index 74a33c192..93a2d6fa8 100644 --- a/auraescript/src/cells.rs +++ b/auraescript/src/cells.rs @@ -1,7 +1,4 @@ /* -------------------------------------------------------------------------- *\ - * Apache 2.0 License Copyright © 2022-2023 The Aurae Authors * - * * - * +--------------------------------------------+ * * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * * | ███████║██║ ██║██████╔╝███████║█████╗ | * @@ -11,23 +8,11 @@ * +--------------------------------------------+ * * * * Distributed Systems Runtime * - * * * -------------------------------------------------------------------------- * - * * - * 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. * - * * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * \* -------------------------------------------------------------------------- */ #![allow(non_snake_case)] -macros::ops_generator!("../api/v0/cells/cells.proto", cells, CellService); +macros::ops_generator!("../api/v0/cells/cells.proto", cells, CellService); \ No newline at end of file diff --git a/auraescript/src/cri.rs b/auraescript/src/cri.rs index 0a5536f70..a12c1af83 100644 --- a/auraescript/src/cri.rs +++ b/auraescript/src/cri.rs @@ -1,3 +1,17 @@ +/* -------------------------------------------------------------------------- *\ + * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * + * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * + * | ███████║██║ ██║██████╔╝███████║█████╗ | * + * | ██╔══██║██║ ██║██╔══██╗██╔══██║██╔══╝ | * + * | ██║ ██║╚██████╔╝██║ ██║██║ ██║███████╗ | * + * | ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ | * + * +--------------------------------------------+ * + * * + * Distributed Systems Runtime * + * -------------------------------------------------------------------------- * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * +\* -------------------------------------------------------------------------- */ /* -------------------------------------------------------------------------- *\ * Apache 2.0 License Copyright © 2022-2023 The Aurae Authors * * * @@ -36,4 +50,4 @@ macros::ops_generator!( cri, RuntimeService, ImageService, -); +); \ No newline at end of file diff --git a/auraescript/src/discovery.rs b/auraescript/src/discovery.rs index d43f8e592..4a51598d9 100644 --- a/auraescript/src/discovery.rs +++ b/auraescript/src/discovery.rs @@ -1,7 +1,4 @@ /* -------------------------------------------------------------------------- *\ - * Apache 2.0 License Copyright © 2022-2023 The Aurae Authors * - * * - * +--------------------------------------------+ * * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * * | ███████║██║ ██║██████╔╝███████║█████╗ | * @@ -11,21 +8,9 @@ * +--------------------------------------------+ * * * * Distributed Systems Runtime * - * * * -------------------------------------------------------------------------- * - * * - * 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. * - * * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * \* -------------------------------------------------------------------------- */ #![allow(non_snake_case)] @@ -34,4 +19,4 @@ macros::ops_generator!( "../api/v0/discovery/discovery.proto", discovery, DiscoveryService, -); +); \ No newline at end of file diff --git a/auraescript/src/health.rs b/auraescript/src/health.rs index f8231c74d..ffef0cf54 100644 --- a/auraescript/src/health.rs +++ b/auraescript/src/health.rs @@ -1,7 +1,4 @@ /* -------------------------------------------------------------------------- *\ - * Apache 2.0 License Copyright © 2022-2023 The Aurae Authors * - * * - * +--------------------------------------------+ * * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * * | ███████║██║ ██║██████╔╝███████║█████╗ | * @@ -11,21 +8,9 @@ * +--------------------------------------------+ * * * * Distributed Systems Runtime * - * * * -------------------------------------------------------------------------- * - * * - * 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. * - * * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * \* -------------------------------------------------------------------------- */ #![allow(non_snake_case)] @@ -35,4 +20,4 @@ macros::ops_generator!( "../api/grpc/health/v1/health.proto", grpc::health, Health, -); +); \ No newline at end of file diff --git a/auraescript/src/lib.rs b/auraescript/src/lib.rs index 681f50e56..200545835 100644 --- a/auraescript/src/lib.rs +++ b/auraescript/src/lib.rs @@ -1,3 +1,17 @@ +/* -------------------------------------------------------------------------- *\ + * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * + * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * + * | ███████║██║ ██║██████╔╝███████║█████╗ | * + * | ██╔══██║██║ ██║██╔══██╗██╔══██║██╔══╝ | * + * | ██║ ██║╚██████╔╝██║ ██║██║ ██║███████╗ | * + * | ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ | * + * +--------------------------------------------+ * + * * + * Distributed Systems Runtime * + * -------------------------------------------------------------------------- * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * +\* -------------------------------------------------------------------------- */ /* -------------------------------------------------------------------------- *\ * Apache 2.0 License Copyright © 2022-2023 The Aurae Authors * * * @@ -237,4 +251,4 @@ impl ModuleLoader for TypescriptModuleLoader { module_specifier, )) } -} +} \ No newline at end of file diff --git a/auraescript/src/observe.rs b/auraescript/src/observe.rs index e8bb431f0..002559a4e 100644 --- a/auraescript/src/observe.rs +++ b/auraescript/src/observe.rs @@ -1,7 +1,4 @@ /* -------------------------------------------------------------------------- *\ - * Apache 2.0 License Copyright © 2022-2023 The Aurae Authors * - * * - * +--------------------------------------------+ * * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * * | ███████║██║ ██║██████╔╝███████║█████╗ | * @@ -11,21 +8,9 @@ * +--------------------------------------------+ * * * * Distributed Systems Runtime * - * * * -------------------------------------------------------------------------- * - * * - * 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. * - * * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * \* -------------------------------------------------------------------------- */ #![allow(non_snake_case)] @@ -34,4 +19,4 @@ macros::ops_generator!( "../api/v0/observe/observe.proto", observe, ObserveService, -); +); \ No newline at end of file diff --git a/client/Cargo.toml b/client/Cargo.toml index 31f584c29..76171c536 100644 --- a/client/Cargo.toml +++ b/client/Cargo.toml @@ -1,3 +1,17 @@ +# ---------------------------------------------------------------------------- # +# | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | # +# | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | # +# | ███████║██║ ██║██████╔╝███████║█████╗ | # +# | ██╔══██║██║ ██║██╔══██╗██╔══██║██╔══╝ | # +# | ██║ ██║╚██████╔╝██║ ██║██║ ██║███████╗ | # +# | ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ | # +# +--------------------------------------------+ # +# # +# Distributed Systems Runtime # +# ---------------------------------------------------------------------------- # +# Copyright 2022 - 2024, the aurae contributors # +# SPDX-License-Identifier: Apache-2.0 # +# ---------------------------------------------------------------------------- # [package] name = "client" version = "0.0.0" diff --git a/client/macros/Cargo.toml b/client/macros/Cargo.toml index e17887fdc..83449bc92 100644 --- a/client/macros/Cargo.toml +++ b/client/macros/Cargo.toml @@ -1,3 +1,17 @@ +# ---------------------------------------------------------------------------- # +# | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | # +# | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | # +# | ███████║██║ ██║██████╔╝███████║█████╗ | # +# | ██╔══██║██║ ██║██╔══██╗██╔══██║██╔══╝ | # +# | ██║ ██║╚██████╔╝██║ ██║██║ ██║███████╗ | # +# | ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ | # +# +--------------------------------------------+ # +# # +# Distributed Systems Runtime # +# ---------------------------------------------------------------------------- # +# Copyright 2022 - 2024, the aurae contributors # +# SPDX-License-Identifier: Apache-2.0 # +# ---------------------------------------------------------------------------- # [package] name = "client-macros" version = "0.0.0" diff --git a/client/macros/src/lib.rs b/client/macros/src/lib.rs index 64adfd1eb..647af2a7a 100644 --- a/client/macros/src/lib.rs +++ b/client/macros/src/lib.rs @@ -1,7 +1,4 @@ /* -------------------------------------------------------------------------- *\ - * Apache 2.0 License Copyright © 2022-2023 The Aurae Authors * - * * - * +--------------------------------------------+ * * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * * | ███████║██║ ██║██████╔╝███████║█████╗ | * @@ -11,21 +8,9 @@ * +--------------------------------------------+ * * * * Distributed Systems Runtime * - * * * -------------------------------------------------------------------------- * - * * - * 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. * - * * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * \* -------------------------------------------------------------------------- */ // The project prefers .expect("reason") instead of .unwrap() so we fail @@ -68,4 +53,4 @@ mod service; #[proc_macro] pub fn service(input: TokenStream) -> TokenStream { service::service(input) -} +} \ No newline at end of file diff --git a/client/macros/src/service.rs b/client/macros/src/service.rs index 1797b24a1..1f9fbc930 100644 --- a/client/macros/src/service.rs +++ b/client/macros/src/service.rs @@ -1,3 +1,17 @@ +/* -------------------------------------------------------------------------- *\ + * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * + * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * + * | ███████║██║ ██║██████╔╝███████║█████╗ | * + * | ██╔══██║██║ ██║██╔══██╗██╔══██║██╔══╝ | * + * | ██║ ██║╚██████╔╝██║ ██║██║ ██║███████╗ | * + * | ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ | * + * +--------------------------------------------+ * + * * + * Distributed Systems Runtime * + * -------------------------------------------------------------------------- * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * +\* -------------------------------------------------------------------------- */ use heck::ToSnakeCase; use proc_macro::TokenStream; use proc_macro2::Ident; @@ -120,4 +134,4 @@ pub(crate) fn service(input: TokenStream) -> TokenStream { }; expanded.into() -} +} \ No newline at end of file diff --git a/client/src/cells/cell_service.rs b/client/src/cells/cell_service.rs index 80ef46db3..552cb1d8d 100644 --- a/client/src/cells/cell_service.rs +++ b/client/src/cells/cell_service.rs @@ -1,7 +1,4 @@ /* -------------------------------------------------------------------------- *\ - * Apache 2.0 License Copyright © 2022-2023 The Aurae Authors * - * * - * +--------------------------------------------+ * * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * * | ███████║██║ ██║██████╔╝███████║█████╗ | * @@ -11,21 +8,9 @@ * +--------------------------------------------+ * * * * Distributed Systems Runtime * - * * * -------------------------------------------------------------------------- * - * * - * 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. * - * * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * \* -------------------------------------------------------------------------- */ -macros::service!("../api/v0/cells/cells.proto", cells, CellService); +macros::service!("../api/v0/cells/cells.proto", cells, CellService); \ No newline at end of file diff --git a/client/src/cells/mod.rs b/client/src/cells/mod.rs index f6b1515ea..ca25b12fa 100644 --- a/client/src/cells/mod.rs +++ b/client/src/cells/mod.rs @@ -1 +1,15 @@ -pub mod cell_service; +/* -------------------------------------------------------------------------- *\ + * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * + * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * + * | ███████║██║ ██║██████╔╝███████║█████╗ | * + * | ██╔══██║██║ ██║██╔══██╗██╔══██║██╔══╝ | * + * | ██║ ██║╚██████╔╝██║ ██║██║ ██║███████╗ | * + * | ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ | * + * +--------------------------------------------+ * + * * + * Distributed Systems Runtime * + * -------------------------------------------------------------------------- * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * +\* -------------------------------------------------------------------------- */ +pub mod cell_service; \ No newline at end of file diff --git a/client/src/client.rs b/client/src/client.rs index 3efcea264..83b8b42ac 100644 --- a/client/src/client.rs +++ b/client/src/client.rs @@ -1,7 +1,4 @@ /* -------------------------------------------------------------------------- *\ - * Apache 2.0 License Copyright © 2022-2023 The Aurae Authors * - * * - * +--------------------------------------------+ * * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * * | ███████║██║ ██║██████╔╝███████║█████╗ | * @@ -11,21 +8,9 @@ * +--------------------------------------------+ * * * * Distributed Systems Runtime * - * * * -------------------------------------------------------------------------- * - * * - * 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. * - * * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * \* -------------------------------------------------------------------------- */ //! An internally scoped rust client specific for Auraed & AuraeScript. @@ -130,4 +115,4 @@ impl Client { Ok(channel) } -} +} \ No newline at end of file diff --git a/client/src/config/auth_config.rs b/client/src/config/auth_config.rs index adff5abce..c6babed09 100644 --- a/client/src/config/auth_config.rs +++ b/client/src/config/auth_config.rs @@ -1,7 +1,4 @@ /* -------------------------------------------------------------------------- *\ - * Apache 2.0 License Copyright © 2022-2023 The Aurae Authors * - * * - * +--------------------------------------------+ * * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * * | ███████║██║ ██║██████╔╝███████║█████╗ | * @@ -11,21 +8,9 @@ * +--------------------------------------------+ * * * * Distributed Systems Runtime * - * * * -------------------------------------------------------------------------- * - * * - * 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. * - * * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * \* -------------------------------------------------------------------------- */ use crate::config::cert_material::CertMaterial; @@ -50,4 +35,4 @@ impl AuthConfig { pub async fn to_cert_material(&self) -> anyhow::Result { CertMaterial::from_config(self).await } -} +} \ No newline at end of file diff --git a/client/src/config/cert_material.rs b/client/src/config/cert_material.rs index 0bb794480..df9daea6d 100644 --- a/client/src/config/cert_material.rs +++ b/client/src/config/cert_material.rs @@ -1,3 +1,17 @@ +/* -------------------------------------------------------------------------- *\ + * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * + * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * + * | ███████║██║ ██║██████╔╝███████║█████╗ | * + * | ██╔══██║██║ ██║██╔══██╗██╔══██║██╔══╝ | * + * | ██║ ██║╚██████╔╝██║ ██║██║ ██║███████╗ | * + * | ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ | * + * +--------------------------------------------+ * + * * + * Distributed Systems Runtime * + * -------------------------------------------------------------------------- * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * +\* -------------------------------------------------------------------------- */ /* -------------------------------------------------------------------------- *\ * Apache 2.0 License Copyright © 2022-2023 The Aurae Authors * * * @@ -71,4 +85,4 @@ impl CertMaterial { pub fn get_client_cert_details(&self) -> anyhow::Result { Ok(ClientCertDetails(new_x509_details(self.client_cert.clone())?)) } -} +} \ No newline at end of file diff --git a/client/src/config/client_cert_details.rs b/client/src/config/client_cert_details.rs index 6694c78e4..9e780c6d4 100644 --- a/client/src/config/client_cert_details.rs +++ b/client/src/config/client_cert_details.rs @@ -1,3 +1,17 @@ +/* -------------------------------------------------------------------------- *\ + * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * + * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * + * | ███████║██║ ██║██████╔╝███████║█████╗ | * + * | ██╔══██║██║ ██║██╔══██╗██╔══██║██╔══╝ | * + * | ██║ ██║╚██████╔╝██║ ██║██║ ██║███████╗ | * + * | ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ | * + * +--------------------------------------------+ * + * * + * Distributed Systems Runtime * + * -------------------------------------------------------------------------- * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * +\* -------------------------------------------------------------------------- */ /* -------------------------------------------------------------------------- *\ * Apache 2.0 License Copyright © 2022-2023 The Aurae Authors * * * @@ -41,4 +55,4 @@ impl Deref for ClientCertDetails { fn deref(&self) -> &Self::Target { &self.0 } -} +} \ No newline at end of file diff --git a/client/src/config/mod.rs b/client/src/config/mod.rs index 710179ddc..ffbd24169 100644 --- a/client/src/config/mod.rs +++ b/client/src/config/mod.rs @@ -1,7 +1,4 @@ /* -------------------------------------------------------------------------- *\ - * Apache 2.0 License Copyright © 2022-2023 The Aurae Authors * - * * - * +--------------------------------------------+ * * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * * | ███████║██║ ██║██████╔╝███████║█████╗ | * @@ -11,21 +8,9 @@ * +--------------------------------------------+ * * * * Distributed Systems Runtime * - * * * -------------------------------------------------------------------------- * - * * - * 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. * - * * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * \* -------------------------------------------------------------------------- */ //! Configuration used to authenticate with a remote Aurae daemon. @@ -223,4 +208,4 @@ socket = "#; assert_eq!(*addr.ip(), Ipv4Addr::from_str("127.1.2.3").unwrap()); assert_eq!(addr.port(), 1234); } -} +} \ No newline at end of file diff --git a/client/src/config/system_config.rs b/client/src/config/system_config.rs index a656769e6..be6dc03e0 100644 --- a/client/src/config/system_config.rs +++ b/client/src/config/system_config.rs @@ -1,7 +1,4 @@ /* -------------------------------------------------------------------------- *\ - * Apache 2.0 License Copyright © 2022-2023 The Aurae Authors * - * * - * +--------------------------------------------+ * * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * * | ███████║██║ ██║██████╔╝███████║█████╗ | * @@ -11,21 +8,9 @@ * +--------------------------------------------+ * * * * Distributed Systems Runtime * - * * * -------------------------------------------------------------------------- * - * * - * 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. * - * * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * \* -------------------------------------------------------------------------- */ use serde::de::{Error, Visitor}; @@ -180,4 +165,4 @@ mod tests { assert_eq!(*addr.ip(), Ipv4Addr::from_str("127.0.0.1").unwrap()); assert_eq!(addr.port(), 8081); } -} +} \ No newline at end of file diff --git a/client/src/config/x509_details.rs b/client/src/config/x509_details.rs index 1fa6e9650..0e58822d1 100644 --- a/client/src/config/x509_details.rs +++ b/client/src/config/x509_details.rs @@ -1,3 +1,17 @@ +/* -------------------------------------------------------------------------- *\ + * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * + * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * + * | ███████║██║ ██║██████╔╝███████║█████╗ | * + * | ██╔══██║██║ ██║██╔══██╗██╔══██║██╔══╝ | * + * | ██║ ██║╚██████╔╝██║ ██║██║ ██║███████╗ | * + * | ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ | * + * +--------------------------------------------+ * + * * + * Distributed Systems Runtime * + * -------------------------------------------------------------------------- * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * +\* -------------------------------------------------------------------------- */ /* -------------------------------------------------------------------------- *\ * Apache 2.0 License Copyright © 2022-2023 The Aurae Authors * * * @@ -77,4 +91,4 @@ pub(crate) fn new_x509_details( key_algorithm, phantom_data: PhantomData, }) -} +} \ No newline at end of file diff --git a/client/src/cri/image_service.rs b/client/src/cri/image_service.rs index f8f950056..510e59db7 100644 --- a/client/src/cri/image_service.rs +++ b/client/src/cri/image_service.rs @@ -1,3 +1,17 @@ +/* -------------------------------------------------------------------------- *\ + * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * + * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * + * | ███████║██║ ██║██████╔╝███████║█████╗ | * + * | ██╔══██║██║ ██║██╔══██╗██╔══██║██╔══╝ | * + * | ██║ ██║╚██████╔╝██║ ██║██║ ██║███████╗ | * + * | ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ | * + * +--------------------------------------------+ * + * * + * Distributed Systems Runtime * + * -------------------------------------------------------------------------- * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * +\* -------------------------------------------------------------------------- */ /* -------------------------------------------------------------------------- *\ * Apache 2.0 License Copyright © 2022-2023 The Aurae Authors * * * @@ -28,4 +42,4 @@ * * \* -------------------------------------------------------------------------- */ -macros::service!("../api/cri/v1/release-1.26.proto", cri, ImageService); +macros::service!("../api/cri/v1/release-1.26.proto", cri, ImageService); \ No newline at end of file diff --git a/client/src/cri/mod.rs b/client/src/cri/mod.rs index 0ef55d196..8e6bbd4db 100644 --- a/client/src/cri/mod.rs +++ b/client/src/cri/mod.rs @@ -1,3 +1,17 @@ +/* -------------------------------------------------------------------------- *\ + * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * + * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * + * | ███████║██║ ██║██████╔╝███████║█████╗ | * + * | ██╔══██║██║ ██║██╔══██╗██╔══██║██╔══╝ | * + * | ██║ ██║╚██████╔╝██║ ██║██║ ██║███████╗ | * + * | ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ | * + * +--------------------------------------------+ * + * * + * Distributed Systems Runtime * + * -------------------------------------------------------------------------- * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * +\* -------------------------------------------------------------------------- */ /* -------------------------------------------------------------------------- *\ * Apache 2.0 License Copyright © 2022-2023 The Aurae Authors * * * @@ -29,4 +43,4 @@ \* -------------------------------------------------------------------------- */ pub mod image_service; -pub mod runtime_service; +pub mod runtime_service; \ No newline at end of file diff --git a/client/src/cri/runtime_service.rs b/client/src/cri/runtime_service.rs index 57d207a1a..15e3b7f87 100644 --- a/client/src/cri/runtime_service.rs +++ b/client/src/cri/runtime_service.rs @@ -1,3 +1,17 @@ +/* -------------------------------------------------------------------------- *\ + * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * + * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * + * | ███████║██║ ██║██████╔╝███████║█████╗ | * + * | ██╔══██║██║ ██║██╔══██╗██╔══██║██╔══╝ | * + * | ██║ ██║╚██████╔╝██║ ██║██║ ██║███████╗ | * + * | ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ | * + * +--------------------------------------------+ * + * * + * Distributed Systems Runtime * + * -------------------------------------------------------------------------- * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * +\* -------------------------------------------------------------------------- */ /* -------------------------------------------------------------------------- *\ * Apache 2.0 License Copyright © 2022-2023 The Aurae Authors * * * @@ -28,4 +42,4 @@ * * \* -------------------------------------------------------------------------- */ -macros::service!("../api/cri/v1/release-1.26.proto", cri, RuntimeService); +macros::service!("../api/cri/v1/release-1.26.proto", cri, RuntimeService); \ No newline at end of file diff --git a/client/src/discovery/discovery_service.rs b/client/src/discovery/discovery_service.rs index 0fc7a8f6d..71a8a2f15 100644 --- a/client/src/discovery/discovery_service.rs +++ b/client/src/discovery/discovery_service.rs @@ -1,7 +1,4 @@ /* -------------------------------------------------------------------------- *\ - * Apache 2.0 License Copyright © 2022-2023 The Aurae Authors * - * * - * +--------------------------------------------+ * * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * * | ███████║██║ ██║██████╔╝███████║█████╗ | * @@ -11,25 +8,13 @@ * +--------------------------------------------+ * * * * Distributed Systems Runtime * - * * * -------------------------------------------------------------------------- * - * * - * 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. * - * * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * \* -------------------------------------------------------------------------- */ macros::service!( "../api/v0/discovery/discovery.proto", discovery, DiscoveryService -); +); \ No newline at end of file diff --git a/client/src/discovery/mod.rs b/client/src/discovery/mod.rs index 33fae55a5..f482ef139 100644 --- a/client/src/discovery/mod.rs +++ b/client/src/discovery/mod.rs @@ -1 +1,15 @@ -pub mod discovery_service; +/* -------------------------------------------------------------------------- *\ + * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * + * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * + * | ███████║██║ ██║██████╔╝███████║█████╗ | * + * | ██╔══██║██║ ██║██╔══██╗██╔══██║██╔══╝ | * + * | ██║ ██║╚██████╔╝██║ ██║██║ ██║███████╗ | * + * | ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ | * + * +--------------------------------------------+ * + * * + * Distributed Systems Runtime * + * -------------------------------------------------------------------------- * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * +\* -------------------------------------------------------------------------- */ +pub mod discovery_service; \ No newline at end of file diff --git a/client/src/grpc/health/health.rs b/client/src/grpc/health/health.rs index afe4ecfb1..fa02eb749 100644 --- a/client/src/grpc/health/health.rs +++ b/client/src/grpc/health/health.rs @@ -1,7 +1,4 @@ /* -------------------------------------------------------------------------- *\ - * Apache 2.0 License Copyright © 2022-2023 The Aurae Authors * - * * - * +--------------------------------------------+ * * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * * | ███████║██║ ██║██████╔╝███████║█████╗ | * @@ -11,21 +8,9 @@ * +--------------------------------------------+ * * * * Distributed Systems Runtime * - * * * -------------------------------------------------------------------------- * - * * - * 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. * - * * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * \* -------------------------------------------------------------------------- */ -macros::service!("../api/grpc/health/v1/health.proto", grpc::health, Health); +macros::service!("../api/grpc/health/v1/health.proto", grpc::health, Health); \ No newline at end of file diff --git a/client/src/grpc/health/mod.rs b/client/src/grpc/health/mod.rs index 7faa8e101..d5b06ae73 100644 --- a/client/src/grpc/health/mod.rs +++ b/client/src/grpc/health/mod.rs @@ -1,2 +1,16 @@ +/* -------------------------------------------------------------------------- *\ + * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * + * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * + * | ███████║██║ ██║██████╔╝███████║█████╗ | * + * | ██╔══██║██║ ██║██╔══██╗██╔══██║██╔══╝ | * + * | ██║ ██║╚██████╔╝██║ ██║██║ ██║███████╗ | * + * | ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ | * + * +--------------------------------------------+ * + * * + * Distributed Systems Runtime * + * -------------------------------------------------------------------------- * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * +\* -------------------------------------------------------------------------- */ #[allow(clippy::module_inception)] -pub mod health; +pub mod health; \ No newline at end of file diff --git a/client/src/grpc/mod.rs b/client/src/grpc/mod.rs index 9c104bcff..7af6fc970 100644 --- a/client/src/grpc/mod.rs +++ b/client/src/grpc/mod.rs @@ -1,7 +1,4 @@ /* -------------------------------------------------------------------------- *\ - * Apache 2.0 License Copyright © 2022-2023 The Aurae Authors * - * * - * +--------------------------------------------+ * * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * * | ███████║██║ ██║██████╔╝███████║█████╗ | * @@ -11,21 +8,9 @@ * +--------------------------------------------+ * * * * Distributed Systems Runtime * - * * * -------------------------------------------------------------------------- * - * * - * 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. * - * * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * \* -------------------------------------------------------------------------- */ -pub mod health; +pub mod health; \ No newline at end of file diff --git a/client/src/lib.rs b/client/src/lib.rs index 8d53d6428..ed8922a6d 100644 --- a/client/src/lib.rs +++ b/client/src/lib.rs @@ -1,3 +1,17 @@ +/* -------------------------------------------------------------------------- *\ + * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * + * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * + * | ███████║██║ ██║██████╔╝███████║█████╗ | * + * | ██╔══██║██║ ██║██╔══██╗██╔══██║██╔══╝ | * + * | ██║ ██║╚██████╔╝██║ ██║██║ ██║███████╗ | * + * | ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ | * + * +--------------------------------------------+ * + * * + * Distributed Systems Runtime * + * -------------------------------------------------------------------------- * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * +\* -------------------------------------------------------------------------- */ pub use crate::client::{Client, ClientError}; pub use config::{AuraeConfig, AuraeSocket, AuthConfig, SystemConfig}; @@ -8,4 +22,4 @@ pub mod cri; pub mod discovery; pub mod grpc; pub mod observe; -pub mod vms; +pub mod vms; \ No newline at end of file diff --git a/client/src/observe/mod.rs b/client/src/observe/mod.rs index adb5b02b1..929ff5452 100644 --- a/client/src/observe/mod.rs +++ b/client/src/observe/mod.rs @@ -1 +1,15 @@ -pub mod observe_service; +/* -------------------------------------------------------------------------- *\ + * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * + * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * + * | ███████║██║ ██║██████╔╝███████║█████╗ | * + * | ██╔══██║██║ ██║██╔══██╗██╔══██║██╔══╝ | * + * | ██║ ██║╚██████╔╝██║ ██║██║ ██║███████╗ | * + * | ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ | * + * +--------------------------------------------+ * + * * + * Distributed Systems Runtime * + * -------------------------------------------------------------------------- * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * +\* -------------------------------------------------------------------------- */ +pub mod observe_service; \ No newline at end of file diff --git a/client/src/observe/observe_service.rs b/client/src/observe/observe_service.rs index c83b673f2..810b277d5 100644 --- a/client/src/observe/observe_service.rs +++ b/client/src/observe/observe_service.rs @@ -1,7 +1,4 @@ /* -------------------------------------------------------------------------- *\ - * Apache 2.0 License Copyright © 2022-2023 The Aurae Authors * - * * - * +--------------------------------------------+ * * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * * | ███████║██║ ██║██████╔╝███████║█████╗ | * @@ -11,21 +8,9 @@ * +--------------------------------------------+ * * * * Distributed Systems Runtime * - * * * -------------------------------------------------------------------------- * - * * - * 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. * - * * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * \* -------------------------------------------------------------------------- */ -macros::service!("../api/v0/observe/observe.proto", observe, ObserveService); +macros::service!("../api/v0/observe/observe.proto", observe, ObserveService); \ No newline at end of file diff --git a/client/src/vms/mod.rs b/client/src/vms/mod.rs index 655e97580..e1c4d3dd6 100644 --- a/client/src/vms/mod.rs +++ b/client/src/vms/mod.rs @@ -1 +1,15 @@ -pub mod vms_service; +/* -------------------------------------------------------------------------- *\ + * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * + * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * + * | ███████║██║ ██║██████╔╝███████║█████╗ | * + * | ██╔══██║██║ ██║██╔══██╗██╔══██║██╔══╝ | * + * | ██║ ██║╚██████╔╝██║ ██║██║ ██║███████╗ | * + * | ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ | * + * +--------------------------------------------+ * + * * + * Distributed Systems Runtime * + * -------------------------------------------------------------------------- * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * +\* -------------------------------------------------------------------------- */ +pub mod vms_service; \ No newline at end of file diff --git a/client/src/vms/vms_service.rs b/client/src/vms/vms_service.rs index 7b43a2024..c3ac30ebb 100644 --- a/client/src/vms/vms_service.rs +++ b/client/src/vms/vms_service.rs @@ -1,7 +1,4 @@ /* -------------------------------------------------------------------------- *\ - * Apache 2.0 License Copyright © 2022-2023 The Aurae Authors * - * * - * +--------------------------------------------+ * * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * * | ███████║██║ ██║██████╔╝███████║█████╗ | * @@ -11,21 +8,9 @@ * +--------------------------------------------+ * * * * Distributed Systems Runtime * - * * * -------------------------------------------------------------------------- * - * * - * 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. * - * * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * \* -------------------------------------------------------------------------- */ -macros::service!("../api/v0/vms/vms.proto", vms, VmService); +macros::service!("../api/v0/vms/vms.proto", vms, VmService); \ No newline at end of file diff --git a/clippy.toml b/clippy.toml index 4da81ba14..7c4091bfa 100644 --- a/clippy.toml +++ b/clippy.toml @@ -1 +1,15 @@ -allow-unwrap-in-tests = true \ No newline at end of file +# ---------------------------------------------------------------------------- # +# | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | # +# | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | # +# | ███████║██║ ██║██████╔╝███████║█████╗ | # +# | ██╔══██║██║ ██║██╔══██╗██╔══██║██╔══╝ | # +# | ██║ ██║╚██████╔╝██║ ██║██║ ██║███████╗ | # +# | ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ | # +# +--------------------------------------------+ # +# # +# Distributed Systems Runtime # +# ---------------------------------------------------------------------------- # +# Copyright 2022 - 2024, the aurae contributors # +# SPDX-License-Identifier: Apache-2.0 # +# ---------------------------------------------------------------------------- # +allow-unwrap-in-tests = true diff --git a/crates/proto-reader/Cargo.toml b/crates/proto-reader/Cargo.toml index 9d7bd4aa4..9b09d0f0b 100644 --- a/crates/proto-reader/Cargo.toml +++ b/crates/proto-reader/Cargo.toml @@ -1,3 +1,17 @@ +# ---------------------------------------------------------------------------- # +# | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | # +# | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | # +# | ███████║██║ ██║██████╔╝███████║█████╗ | # +# | ██╔══██║██║ ██║██╔══██╗██╔══██║██╔══╝ | # +# | ██║ ██║╚██████╔╝██║ ██║██║ ██║███████╗ | # +# | ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ | # +# +--------------------------------------------+ # +# # +# Distributed Systems Runtime # +# ---------------------------------------------------------------------------- # +# Copyright 2022 - 2024, the aurae contributors # +# SPDX-License-Identifier: Apache-2.0 # +# ---------------------------------------------------------------------------- # [package] name = "proto-reader" version = "0.0.0" @@ -12,4 +26,4 @@ proc-macro2 = { workspace = true } protobuf = { workspace = true } protobuf-parse = { workspace = true } quote = { workspace = true } -syn = { workspace = true } \ No newline at end of file +syn = { workspace = true } diff --git a/crates/proto-reader/src/helpers.rs b/crates/proto-reader/src/helpers.rs index 781229ee5..9ea09e044 100644 --- a/crates/proto-reader/src/helpers.rs +++ b/crates/proto-reader/src/helpers.rs @@ -1,3 +1,17 @@ +/* -------------------------------------------------------------------------- *\ + * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * + * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * + * | ███████║██║ ██║██████╔╝███████║█████╗ | * + * | ██╔══██║██║ ██║██╔══██╗██╔══██║██╔══╝ | * + * | ██║ ██║╚██████╔╝██║ ██║██║ ██║███████╗ | * + * | ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ | * + * +--------------------------------------------+ * + * * + * Distributed Systems Runtime * + * -------------------------------------------------------------------------- * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * +\* -------------------------------------------------------------------------- */ /* -------------------------------------------------------------------------- *\ * Apache 2.0 License Copyright © 2022-2023 The Aurae Authors * * * @@ -72,4 +86,4 @@ pub fn find_message<'a>( .iter() .flat_map(|f| &f.message_type) .find(|m| matches!(m.name(), n if name == n)) -} +} \ No newline at end of file diff --git a/crates/proto-reader/src/lib.rs b/crates/proto-reader/src/lib.rs index 6c0803dcb..234e73981 100644 --- a/crates/proto-reader/src/lib.rs +++ b/crates/proto-reader/src/lib.rs @@ -1,7 +1,4 @@ /* -------------------------------------------------------------------------- *\ - * Apache 2.0 License Copyright © 2022-2023 The Aurae Authors * - * * - * +--------------------------------------------+ * * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * * | ███████║██║ ██║██████╔╝███████║█████╗ | * @@ -11,21 +8,9 @@ * +--------------------------------------------+ * * * * Distributed Systems Runtime * - * * * -------------------------------------------------------------------------- * - * * - * 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. * - * * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * \* -------------------------------------------------------------------------- */ pub mod helpers; @@ -80,4 +65,4 @@ pub fn parse(file_path: &Lit) -> (PathBuf, ParsedAndTypechecked) { .expect("failed to parse proto file"); (parsed_file_path, proto) -} +} \ No newline at end of file diff --git a/crates/test-helpers-macros/Cargo.toml b/crates/test-helpers-macros/Cargo.toml index 9abc92fc8..095d5433c 100644 --- a/crates/test-helpers-macros/Cargo.toml +++ b/crates/test-helpers-macros/Cargo.toml @@ -1,3 +1,17 @@ +# ---------------------------------------------------------------------------- # +# | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | # +# | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | # +# | ███████║██║ ██║██████╔╝███████║█████╗ | # +# | ██╔══██║██║ ██║██╔══██╗██╔══██║██╔══╝ | # +# | ██║ ██║╚██████╔╝██║ ██║██║ ██║███████╗ | # +# | ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ | # +# +--------------------------------------------+ # +# # +# Distributed Systems Runtime # +# ---------------------------------------------------------------------------- # +# Copyright 2022 - 2024, the aurae contributors # +# SPDX-License-Identifier: Apache-2.0 # +# ---------------------------------------------------------------------------- # [package] name = "test-helpers-macros" version = "0.0.0" @@ -13,4 +27,4 @@ proc-macro = true heck = { workspace = true } proc-macro2 = { workspace = true } quote = { workspace = true } -syn = { workspace = true } \ No newline at end of file +syn = { workspace = true } diff --git a/crates/test-helpers-macros/src/lib.rs b/crates/test-helpers-macros/src/lib.rs index f5c99a3e2..d6061d17c 100644 --- a/crates/test-helpers-macros/src/lib.rs +++ b/crates/test-helpers-macros/src/lib.rs @@ -1,3 +1,17 @@ +/* -------------------------------------------------------------------------- *\ + * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * + * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * + * | ███████║██║ ██║██████╔╝███████║█████╗ | * + * | ██╔══██║██║ ██║██╔══██╗██╔══██║██╔══╝ | * + * | ██║ ██║╚██████╔╝██║ ██║██║ ██║███████╗ | * + * | ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ | * + * +--------------------------------------------+ * + * * + * Distributed Systems Runtime * + * -------------------------------------------------------------------------- * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * +\* -------------------------------------------------------------------------- */ use proc_macro::TokenStream; use quote::quote; use syn::{parse_macro_input, ItemFn}; @@ -29,4 +43,4 @@ pub fn shared_runtime_test( }; expanded.into() -} +} \ No newline at end of file diff --git a/crates/test-helpers/Cargo.toml b/crates/test-helpers/Cargo.toml index b3a1db66d..130ee9c05 100644 --- a/crates/test-helpers/Cargo.toml +++ b/crates/test-helpers/Cargo.toml @@ -1,3 +1,17 @@ +# ---------------------------------------------------------------------------- # +# | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | # +# | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | # +# | ███████║██║ ██║██████╔╝███████║█████╗ | # +# | ██╔══██║██║ ██║██╔══██╗██╔══██║██╔══╝ | # +# | ██║ ██║╚██████╔╝██║ ██║██║ ██║███████╗ | # +# | ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ | # +# +--------------------------------------------+ # +# # +# Distributed Systems Runtime # +# ---------------------------------------------------------------------------- # +# Copyright 2022 - 2024, the aurae contributors # +# SPDX-License-Identifier: Apache-2.0 # +# ---------------------------------------------------------------------------- # [package] name = "test-helpers" version = "0.0.0" @@ -8,4 +22,4 @@ license = "Apache-2.0" [dependencies] nix = { workspace = true } -once_cell = "1" \ No newline at end of file +once_cell = "1" diff --git a/crates/test-helpers/src/lib.rs b/crates/test-helpers/src/lib.rs index a974c7463..f7ba4397f 100644 --- a/crates/test-helpers/src/lib.rs +++ b/crates/test-helpers/src/lib.rs @@ -1,7 +1,4 @@ /* -------------------------------------------------------------------------- *\ - * Apache 2.0 License Copyright © 2022-2023 The Aurae Authors * - * * - * +--------------------------------------------+ * * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * * | ███████║██║ ██║██████╔╝███████║█████╗ | * @@ -11,21 +8,9 @@ * +--------------------------------------------+ * * * * Distributed Systems Runtime * - * * * -------------------------------------------------------------------------- * - * * - * 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. * - * * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * \* -------------------------------------------------------------------------- */ // Lint groups: https://doc.rust-lang.org/rustc/lints/groups.html @@ -148,4 +133,4 @@ pub mod mock_time { .expect("mock_time failed to reset the system time"); *guard = SystemTime::UNIX_EPOCH; } -} +} \ No newline at end of file diff --git a/crates/validation/Cargo.toml b/crates/validation/Cargo.toml index 0071fa657..268ed0f5d 100644 --- a/crates/validation/Cargo.toml +++ b/crates/validation/Cargo.toml @@ -1,3 +1,17 @@ +# ---------------------------------------------------------------------------- # +# | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | # +# | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | # +# | ███████║██║ ██║██████╔╝███████║█████╗ | # +# | ██╔══██║██║ ██║██╔══██╗██╔══██║██╔══╝ | # +# | ██║ ██║╚██████╔╝██║ ██║██║ ██║███████╗ | # +# | ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ | # +# +--------------------------------------------+ # +# # +# Distributed Systems Runtime # +# ---------------------------------------------------------------------------- # +# Copyright 2022 - 2024, the aurae contributors # +# SPDX-License-Identifier: Apache-2.0 # +# ---------------------------------------------------------------------------- # [package] name = "validation" version = "0.0.0" @@ -27,4 +41,4 @@ url = { workspace = true, optional = true } [dev-dependencies] num_enum = "0.5.7" -num_enum_derive = "0.5.7" \ No newline at end of file +num_enum_derive = "0.5.7" diff --git a/crates/validation/macros/Cargo.toml b/crates/validation/macros/Cargo.toml index 8377d08ad..b76b6858b 100644 --- a/crates/validation/macros/Cargo.toml +++ b/crates/validation/macros/Cargo.toml @@ -1,3 +1,17 @@ +# ---------------------------------------------------------------------------- # +# | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | # +# | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | # +# | ███████║██║ ██║██████╔╝███████║█████╗ | # +# | ██╔══██║██║ ██║██╔══██╗██╔══██║██╔══╝ | # +# | ██║ ██║╚██████╔╝██║ ██║██║ ██║███████╗ | # +# | ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ | # +# +--------------------------------------------+ # +# # +# Distributed Systems Runtime # +# ---------------------------------------------------------------------------- # +# Copyright 2022 - 2024, the aurae contributors # +# SPDX-License-Identifier: Apache-2.0 # +# ---------------------------------------------------------------------------- # [package] name = "validation_macros" version = "0.0.0" @@ -13,4 +27,4 @@ proc-macro = true heck = { workspace = true } proc-macro2 = { workspace = true } quote = { workspace = true } -syn = { workspace = true } \ No newline at end of file +syn = { workspace = true } diff --git a/crates/validation/macros/src/lib.rs b/crates/validation/macros/src/lib.rs index cbd1ec021..1d6002bb4 100644 --- a/crates/validation/macros/src/lib.rs +++ b/crates/validation/macros/src/lib.rs @@ -1,3 +1,17 @@ +/* -------------------------------------------------------------------------- *\ + * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * + * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * + * | ███████║██║ ██║██████╔╝███████║█████╗ | * + * | ██╔══██║██║ ██║██╔══██╗██╔══██║██╔══╝ | * + * | ██║ ██║╚██████╔╝██║ ██║██║ ██║███████╗ | * + * | ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ | * + * +--------------------------------------------+ * + * * + * Distributed Systems Runtime * + * -------------------------------------------------------------------------- * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * +\* -------------------------------------------------------------------------- */ #![warn(future_incompatible, nonstandard_style, unused)] #![warn(clippy::unwrap_used)] @@ -134,4 +148,4 @@ pub fn validated_type(input: TokenStream) -> TokenStream { }; expanded.into() -} +} \ No newline at end of file diff --git a/crates/validation/macros/src/validation.rs b/crates/validation/macros/src/validation.rs index 046c26969..95c4f015a 100644 --- a/crates/validation/macros/src/validation.rs +++ b/crates/validation/macros/src/validation.rs @@ -1,3 +1,17 @@ +/* -------------------------------------------------------------------------- *\ + * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * + * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * + * | ███████║██║ ██║██████╔╝███████║█████╗ | * + * | ██╔══██║██║ ██║██╔══██╗██╔══██║██╔══╝ | * + * | ██║ ██║╚██████╔╝██║ ██║██║ ██║███████╗ | * + * | ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ | * + * +--------------------------------------------+ * + * * + * Distributed Systems Runtime * + * -------------------------------------------------------------------------- * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * +\* -------------------------------------------------------------------------- */ use heck::ToSnakeCase; use proc_macro2::{Ident, TokenStream}; use quote::quote; @@ -201,4 +215,4 @@ impl From for ValidateInput { validator_struct_ident, } } -} +} \ No newline at end of file diff --git a/crates/validation/src/allow_regex.rs b/crates/validation/src/allow_regex.rs index e514c3786..c29513ce8 100644 --- a/crates/validation/src/allow_regex.rs +++ b/crates/validation/src/allow_regex.rs @@ -1,3 +1,17 @@ +/* -------------------------------------------------------------------------- *\ + * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * + * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * + * | ███████║██║ ██║██████╔╝███████║█████╗ | * + * | ██╔══██║██║ ██║██╔══██╗██╔══██║██╔══╝ | * + * | ██║ ██║╚██████╔╝██║ ██║██║ ██║███████╗ | * + * | ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ | * + * +--------------------------------------------+ * + * * + * Distributed Systems Runtime * + * -------------------------------------------------------------------------- * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * +\* -------------------------------------------------------------------------- */ use super::ValidationError; use fancy_regex::Regex; @@ -33,4 +47,4 @@ mod tests { Err(ValidationError::AllowRegexViolation { .. }) )); } -} +} \ No newline at end of file diff --git a/crates/validation/src/lib.rs b/crates/validation/src/lib.rs index b9fe620d8..28fe83d27 100644 --- a/crates/validation/src/lib.rs +++ b/crates/validation/src/lib.rs @@ -1,3 +1,17 @@ +/* -------------------------------------------------------------------------- *\ + * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * + * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * + * | ███████║██║ ██║██████╔╝███████║█████╗ | * + * | ██╔══██║██║ ██║██╔══██╗██╔══██║██╔══╝ | * + * | ██║ ██║╚██████╔╝██║ ██║██║ ██║███████╗ | * + * | ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ | * + * +--------------------------------------------+ * + * * + * Distributed Systems Runtime * + * -------------------------------------------------------------------------- * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * +\* -------------------------------------------------------------------------- */ #![warn(future_incompatible, nonstandard_style, unused)] #![warn(clippy::unwrap_used)] @@ -141,4 +155,4 @@ impl From for tonic::Status { fn from(e: ValidationError) -> Self { Self::failed_precondition(e.to_string()) } -} +} \ No newline at end of file diff --git a/crates/validation/src/maximum_length.rs b/crates/validation/src/maximum_length.rs index 1c4ce0917..c00d7b3b2 100644 --- a/crates/validation/src/maximum_length.rs +++ b/crates/validation/src/maximum_length.rs @@ -1,3 +1,17 @@ +/* -------------------------------------------------------------------------- *\ + * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * + * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * + * | ███████║██║ ██║██████╔╝███████║█████╗ | * + * | ██╔══██║██║ ██║██╔══██╗██╔══██║██╔══╝ | * + * | ██║ ██║╚██████╔╝██║ ██║██║ ██║███████╗ | * + * | ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ | * + * +--------------------------------------------+ * + * * + * Distributed Systems Runtime * + * -------------------------------------------------------------------------- * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * +\* -------------------------------------------------------------------------- */ use super::ValidationError; use validator::{validate_length, HasLen}; @@ -35,4 +49,4 @@ mod tests { let result = maximum_length(&value, maximum, "test", "test", None); assert!(matches!(result, Ok(..))); } -} +} \ No newline at end of file diff --git a/crates/validation/src/maximum_value.rs b/crates/validation/src/maximum_value.rs index 083ec91b7..74f73fe91 100644 --- a/crates/validation/src/maximum_value.rs +++ b/crates/validation/src/maximum_value.rs @@ -1,3 +1,17 @@ +/* -------------------------------------------------------------------------- *\ + * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * + * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * + * | ███████║██║ ██║██████╔╝███████║█████╗ | * + * | ██╔══██║██║ ██║██╔══██╗██╔══██║██╔══╝ | * + * | ██║ ██║╚██████╔╝██║ ██║██║ ██║███████╗ | * + * | ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ | * + * +--------------------------------------------+ * + * * + * Distributed Systems Runtime * + * -------------------------------------------------------------------------- * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * +\* -------------------------------------------------------------------------- */ use super::ValidationError; use std::fmt::Display; use validator::validate_range; @@ -32,4 +46,4 @@ mod tests { Err(ValidationError::Maximum { .. }) )); } -} +} \ No newline at end of file diff --git a/crates/validation/src/minimum_length.rs b/crates/validation/src/minimum_length.rs index e7e9f8a37..115b4196a 100644 --- a/crates/validation/src/minimum_length.rs +++ b/crates/validation/src/minimum_length.rs @@ -1,3 +1,17 @@ +/* -------------------------------------------------------------------------- *\ + * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * + * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * + * | ███████║██║ ██║██████╔╝███████║█████╗ | * + * | ██╔══██║██║ ██║██╔══██╗██╔══██║██╔══╝ | * + * | ██║ ██║╚██████╔╝██║ ██║██║ ██║███████╗ | * + * | ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ | * + * +--------------------------------------------+ * + * * + * Distributed Systems Runtime * + * -------------------------------------------------------------------------- * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * +\* -------------------------------------------------------------------------- */ use super::ValidationError; use validator::{validate_length, HasLen}; @@ -37,4 +51,4 @@ mod tests { Ok(..) )); } -} +} \ No newline at end of file diff --git a/crates/validation/src/minimum_value.rs b/crates/validation/src/minimum_value.rs index b9566082d..b1331a437 100644 --- a/crates/validation/src/minimum_value.rs +++ b/crates/validation/src/minimum_value.rs @@ -1,3 +1,17 @@ +/* -------------------------------------------------------------------------- *\ + * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * + * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * + * | ███████║██║ ██║██████╔╝███████║█████╗ | * + * | ██╔══██║██║ ██║██╔══██╗██╔══██║██╔══╝ | * + * | ██║ ██║╚██████╔╝██║ ██║██║ ██║███████╗ | * + * | ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ | * + * +--------------------------------------------+ * + * * + * Distributed Systems Runtime * + * -------------------------------------------------------------------------- * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * +\* -------------------------------------------------------------------------- */ use super::ValidationError; use std::fmt::Display; use validator::validate_range; @@ -32,4 +46,4 @@ mod tests { assert!(matches!(minimum_value(2, 1, "test", "test", None), Ok(..))); } -} +} \ No newline at end of file diff --git a/crates/validation/src/required.rs b/crates/validation/src/required.rs index b1cf571cb..766a58d41 100644 --- a/crates/validation/src/required.rs +++ b/crates/validation/src/required.rs @@ -1,3 +1,17 @@ +/* -------------------------------------------------------------------------- *\ + * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * + * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * + * | ███████║██║ ██║██████╔╝███████║█████╗ | * + * | ██╔══██║██║ ██║██╔══██╗██╔══██║██╔══╝ | * + * | ██║ ██║╚██████╔╝██║ ██║██║ ██║███████╗ | * + * | ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ | * + * +--------------------------------------------+ * + * * + * Distributed Systems Runtime * + * -------------------------------------------------------------------------- * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * +\* -------------------------------------------------------------------------- */ use super::ValidationError; pub fn required( @@ -29,4 +43,4 @@ mod tests { Err(ValidationError::Required { .. }) )); } -} +} \ No newline at end of file diff --git a/crates/validation/src/required_not_empty.rs b/crates/validation/src/required_not_empty.rs index 49f631c37..bf6a3f308 100644 --- a/crates/validation/src/required_not_empty.rs +++ b/crates/validation/src/required_not_empty.rs @@ -1,3 +1,17 @@ +/* -------------------------------------------------------------------------- *\ + * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * + * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * + * | ███████║██║ ██║██████╔╝███████║█████╗ | * + * | ██╔══██║██║ ██║██╔══██╗██╔══██║██╔══╝ | * + * | ██║ ██║╚██████╔╝██║ ██║██║ ██║███████╗ | * + * | ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ | * + * +--------------------------------------------+ * + * * + * Distributed Systems Runtime * + * -------------------------------------------------------------------------- * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * +\* -------------------------------------------------------------------------- */ use super::ValidationError; #[cfg(feature = "secrecy")] use secrecy::{ExposeSecret, SecretString}; @@ -80,4 +94,4 @@ mod tests { Err(ValidationError::Required { .. }) )); } -} +} \ No newline at end of file diff --git a/crates/validation/src/valid_enum.rs b/crates/validation/src/valid_enum.rs index 32a58c534..c70a8abe8 100644 --- a/crates/validation/src/valid_enum.rs +++ b/crates/validation/src/valid_enum.rs @@ -1,3 +1,17 @@ +/* -------------------------------------------------------------------------- *\ + * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * + * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * + * | ███████║██║ ██║██████╔╝███████║█████╗ | * + * | ██╔══██║██║ ██║██╔══██╗██╔══██║██╔══╝ | * + * | ██║ ██║╚██████╔╝██║ ██║██║ ██║███████╗ | * + * | ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ | * + * +--------------------------------------------+ * + * * + * Distributed Systems Runtime * + * -------------------------------------------------------------------------- * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * +\* -------------------------------------------------------------------------- */ use super::ValidationError; pub fn valid_enum>( @@ -34,4 +48,4 @@ mod tests { Err(ValidationError::Invalid { .. }) )); } -} +} \ No newline at end of file diff --git a/crates/validation/src/valid_json.rs b/crates/validation/src/valid_json.rs index f0d5eb8ec..15f2d32d4 100644 --- a/crates/validation/src/valid_json.rs +++ b/crates/validation/src/valid_json.rs @@ -1,3 +1,17 @@ +/* -------------------------------------------------------------------------- *\ + * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * + * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * + * | ███████║██║ ██║██████╔╝███████║█████╗ | * + * | ██╔══██║██║ ██║██╔══██╗██╔══██║██╔══╝ | * + * | ██║ ██║╚██████╔╝██║ ██║██║ ██║███████╗ | * + * | ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ | * + * +--------------------------------------------+ * + * * + * Distributed Systems Runtime * + * -------------------------------------------------------------------------- * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * +\* -------------------------------------------------------------------------- */ use super::ValidationError; pub fn valid_json( @@ -26,4 +40,4 @@ mod tests { Err(ValidationError::Invalid { .. }) )); } -} +} \ No newline at end of file diff --git a/crates/validation/src/valid_url.rs b/crates/validation/src/valid_url.rs index 2a63c910a..14566b6cf 100644 --- a/crates/validation/src/valid_url.rs +++ b/crates/validation/src/valid_url.rs @@ -1,3 +1,17 @@ +/* -------------------------------------------------------------------------- *\ + * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * + * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * + * | ███████║██║ ██║██████╔╝███████║█████╗ | * + * | ██╔══██║██║ ██║██╔══██╗██╔══██║██╔══╝ | * + * | ██║ ██║╚██████╔╝██║ ██║██║ ██║███████╗ | * + * | ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ | * + * +--------------------------------------------+ * + * * + * Distributed Systems Runtime * + * -------------------------------------------------------------------------- * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * +\* -------------------------------------------------------------------------- */ use super::ValidationError; use url::Url; @@ -12,4 +26,4 @@ pub fn valid_url( }), Ok(url) => Ok(url), } -} +} \ No newline at end of file diff --git a/deny.toml b/deny.toml index b71726951..9d08df2fa 100644 --- a/deny.toml +++ b/deny.toml @@ -1,3 +1,17 @@ +# ---------------------------------------------------------------------------- # +# | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | # +# | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | # +# | ███████║██║ ██║██████╔╝███████║█████╗ | # +# | ██╔══██║██║ ██║██╔══██╗██╔══██║██╔══╝ | # +# | ██║ ██║╚██████╔╝██║ ██║██║ ██║███████╗ | # +# | ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ | # +# +--------------------------------------------+ # +# # +# Distributed Systems Runtime # +# ---------------------------------------------------------------------------- # +# Copyright 2022 - 2024, the aurae contributors # +# SPDX-License-Identifier: Apache-2.0 # +# ---------------------------------------------------------------------------- # # This template contains all of the possible sections and their default values # Note that all fields that take a lint level have these possible values: diff --git a/ebpf-shared/Cargo.toml b/ebpf-shared/Cargo.toml index 815dd7513..cdbb2dec8 100644 --- a/ebpf-shared/Cargo.toml +++ b/ebpf-shared/Cargo.toml @@ -1,3 +1,17 @@ +# ---------------------------------------------------------------------------- # +# | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | # +# | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | # +# | ███████║██║ ██║██████╔╝███████║█████╗ | # +# | ██╔══██║██║ ██║██╔══██╗██╔══██║██╔══╝ | # +# | ██║ ██║╚██████╔╝██║ ██║██║ ██║███████╗ | # +# | ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ | # +# +--------------------------------------------+ # +# # +# Distributed Systems Runtime # +# ---------------------------------------------------------------------------- # +# Copyright 2022 - 2024, the aurae contributors # +# SPDX-License-Identifier: Apache-2.0 # +# ---------------------------------------------------------------------------- # [package] name = "aurae-ebpf-shared" version = "0.0.0" @@ -14,4 +28,4 @@ user = [ "aya" ] aya = { version = ">=0.11", optional=true } [lib] -path = "src/lib.rs" \ No newline at end of file +path = "src/lib.rs" diff --git a/ebpf-shared/src/lib.rs b/ebpf-shared/src/lib.rs index 1ff4dc023..8fcbf6a70 100644 --- a/ebpf-shared/src/lib.rs +++ b/ebpf-shared/src/lib.rs @@ -1,3 +1,17 @@ +/* -------------------------------------------------------------------------- *\ + * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * + * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * + * | ███████║██║ ██║██████╔╝███████║█████╗ | * + * | ██╔══██║██║ ██║██╔══██╗██╔══██║██╔══╝ | * + * | ██║ ██║╚██████╔╝██║ ██║██║ ██║███████╗ | * + * | ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ | * + * +--------------------------------------------+ * + * * + * Distributed Systems Runtime * + * -------------------------------------------------------------------------- * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * +\* -------------------------------------------------------------------------- */ #![no_std] pub trait HasCgroup { @@ -39,4 +53,4 @@ pub struct ForkedProcess { #[derive(Clone, Copy, Debug, PartialEq, Eq)] pub struct ProcessExit { pub pid: i32, -} +} \ No newline at end of file diff --git a/ebpf/Cargo.toml b/ebpf/Cargo.toml index 02ed4cd39..ff8be2656 100644 --- a/ebpf/Cargo.toml +++ b/ebpf/Cargo.toml @@ -1,3 +1,17 @@ +# ---------------------------------------------------------------------------- # +# | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | # +# | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | # +# | ███████║██║ ██║██████╔╝███████║█████╗ | # +# | ██╔══██║██║ ██║██╔══██╗██╔══██║██╔══╝ | # +# | ██║ ██║╚██████╔╝██║ ██║██║ ██║███████╗ | # +# | ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ | # +# +--------------------------------------------+ # +# # +# Distributed Systems Runtime # +# ---------------------------------------------------------------------------- # +# Copyright 2022 - 2024, the aurae contributors # +# SPDX-License-Identifier: Apache-2.0 # +# ---------------------------------------------------------------------------- # [package] name = "ebpf-probes" version = "0.0.0" diff --git a/ebpf/src/probe-kprobe-taskstats-exit.rs b/ebpf/src/probe-kprobe-taskstats-exit.rs index eafcc84a3..21b182f7d 100644 --- a/ebpf/src/probe-kprobe-taskstats-exit.rs +++ b/ebpf/src/probe-kprobe-taskstats-exit.rs @@ -1,3 +1,17 @@ +/* -------------------------------------------------------------------------- *\ + * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * + * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * + * | ███████║██║ ██║██████╔╝███████║█████╗ | * + * | ██╔══██║██║ ██║██╔══██╗██╔══██║██╔══╝ | * + * | ██║ ██║╚██████╔╝██║ ██║██║ ██║███████╗ | * + * | ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ | * + * +--------------------------------------------+ * + * * + * Distributed Systems Runtime * + * -------------------------------------------------------------------------- * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * +\* -------------------------------------------------------------------------- */ /* -------------------------------------------------------------------------- *\ * SPDX-License-Identifier: GPL-2.0 * * SPDX-License-Identifier: MIT * @@ -51,4 +65,4 @@ pub fn kprobe_taskstats_exit(ctx: ProbeContext) -> u32 { #[panic_handler] fn panic(_info: &core::panic::PanicInfo) -> ! { unsafe { core::hint::unreachable_unchecked() } -} +} \ No newline at end of file diff --git a/ebpf/src/probe-tracepoint-sched-sched-process-fork.rs b/ebpf/src/probe-tracepoint-sched-sched-process-fork.rs index 80a75864e..d44f8c72a 100644 --- a/ebpf/src/probe-tracepoint-sched-sched-process-fork.rs +++ b/ebpf/src/probe-tracepoint-sched-sched-process-fork.rs @@ -1,3 +1,17 @@ +/* -------------------------------------------------------------------------- *\ + * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * + * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * + * | ███████║██║ ██║██████╔╝███████║█████╗ | * + * | ██╔══██║██║ ██║██╔══██╗██╔══██║██╔══╝ | * + * | ██║ ██║╚██████╔╝██║ ██║██║ ██║███████╗ | * + * | ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ | * + * +--------------------------------------------+ * + * * + * Distributed Systems Runtime * + * -------------------------------------------------------------------------- * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * +\* -------------------------------------------------------------------------- */ /* -------------------------------------------------------------------------- *\ * SPDX-License-Identifier: GPL-2.0 * * SPDX-License-Identifier: MIT * @@ -72,4 +86,4 @@ fn try_forked_process(ctx: TracePointContext) -> Result { #[panic_handler] fn panic(_info: &core::panic::PanicInfo) -> ! { unsafe { core::hint::unreachable_unchecked() } -} +} \ No newline at end of file diff --git a/ebpf/src/probe-tracepoint-signal-signal-generate.rs b/ebpf/src/probe-tracepoint-signal-signal-generate.rs index 58959fe43..33eee58ec 100644 --- a/ebpf/src/probe-tracepoint-signal-signal-generate.rs +++ b/ebpf/src/probe-tracepoint-signal-signal-generate.rs @@ -1,3 +1,17 @@ +/* -------------------------------------------------------------------------- *\ + * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * + * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * + * | ███████║██║ ██║██████╔╝███████║█████╗ | * + * | ██╔══██║██║ ██║██╔══██╗██╔══██║██╔══╝ | * + * | ██║ ██║╚██████╔╝██║ ██║██║ ██║███████╗ | * + * | ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ | * + * +--------------------------------------------+ * + * * + * Distributed Systems Runtime * + * -------------------------------------------------------------------------- * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * +\* -------------------------------------------------------------------------- */ /* -------------------------------------------------------------------------- *\ * SPDX-License-Identifier: GPL-2.0 * * SPDX-License-Identifier: MIT * @@ -84,4 +98,4 @@ fn try_signals(ctx: TracePointContext) -> Result { #[panic_handler] fn panic(_info: &core::panic::PanicInfo) -> ! { unsafe { core::hint::unreachable_unchecked() } -} +} \ No newline at end of file diff --git a/hack/.header.script b/hack/.header.script index 375c79c97..db579009a 100644 --- a/hack/.header.script +++ b/hack/.header.script @@ -1,7 +1,4 @@ # ---------------------------------------------------------------------------- # -# Apache 2.0 License Copyright © 2022-2023 The Aurae Authors # -# # -# +--------------------------------------------+ # # | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | # # | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | # # | ███████║██║ ██║██████╔╝███████║█████╗ | # @@ -11,19 +8,7 @@ # +--------------------------------------------+ # # # # Distributed Systems Runtime # -# # # ---------------------------------------------------------------------------- # -# # -# 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. # -# # +# Copyright 2022 - 2024, the aurae contributors # +# SPDX-License-Identifier: Apache-2.0 # # ---------------------------------------------------------------------------- # diff --git a/hack/.header.source b/hack/.header.source index d8065a212..ccf9695df 100644 --- a/hack/.header.source +++ b/hack/.header.source @@ -1,7 +1,4 @@ /* -------------------------------------------------------------------------- *\ - * Apache 2.0 License Copyright © 2022-2023 The Aurae Authors * - * * - * +--------------------------------------------+ * * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * * | ███████║██║ ██║██████╔╝███████║█████╗ | * @@ -11,19 +8,7 @@ * +--------------------------------------------+ * * * * Distributed Systems Runtime * - * * * -------------------------------------------------------------------------- * - * * - * 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. * - * * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * \* -------------------------------------------------------------------------- */ diff --git a/hack/_common.mk b/hack/_common.mk index 5ca09511a..243fde0e3 100644 --- a/hack/_common.mk +++ b/hack/_common.mk @@ -1,3 +1,19 @@ +#!/usr/bin/env bash +# ---------------------------------------------------------------------------- # +# | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | # +# | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | # +# | ███████║██║ ██║██████╔╝███████║█████╗ | # +# | ██╔══██║██║ ██║██╔══██╗██╔══██║██╔══╝ | # +# | ██║ ██║╚██████╔╝██║ ██║██║ ██║███████╗ | # +# | ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ | # +# +--------------------------------------------+ # +# # +# Distributed Systems Runtime # +# ---------------------------------------------------------------------------- # +# Copyright 2022 - 2024, the aurae contributors # +# SPDX-License-Identifier: Apache-2.0 # +# ---------------------------------------------------------------------------- # + ifeq ($(__common__),) __common__ := defined diff --git a/hack/certgen b/hack/certgen old mode 100755 new mode 100644 index 56e63899a..233e5b5ed --- a/hack/certgen +++ b/hack/certgen @@ -1,8 +1,5 @@ #!/usr/bin/env bash # ---------------------------------------------------------------------------- # -# Apache 2.0 License Copyright © 2022-2023 The Aurae Authors # -# # -# +--------------------------------------------+ # # | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | # # | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | # # | ███████║██║ ██║██████╔╝███████║█████╗ | # @@ -12,23 +9,11 @@ # +--------------------------------------------+ # # # # Distributed Systems Runtime # -# # # ---------------------------------------------------------------------------- # -# # -# 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. # -# # +# Copyright 2022 - 2024, the aurae contributors # +# SPDX-License-Identifier: Apache-2.0 # # ---------------------------------------------------------------------------- # -# + set -e echo "" diff --git a/hack/certgen-client b/hack/certgen-client old mode 100755 new mode 100644 index b426ee009..2264e0229 --- a/hack/certgen-client +++ b/hack/certgen-client @@ -1,8 +1,5 @@ #!/usr/bin/env bash # ---------------------------------------------------------------------------- # -# Apache 2.0 License Copyright © 2022-2023 The Aurae Authors # -# # -# +--------------------------------------------+ # # | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | # # | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | # # | ███████║██║ ██║██████╔╝███████║█████╗ | # @@ -12,23 +9,11 @@ # +--------------------------------------------+ # # # # Distributed Systems Runtime # -# # # ---------------------------------------------------------------------------- # -# # -# 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. # -# # +# Copyright 2022 - 2024, the aurae contributors # +# SPDX-License-Identifier: Apache-2.0 # # ---------------------------------------------------------------------------- # -# + set -e # certgen-client assumes certgen has been ran diff --git a/hack/code-format b/hack/code-format old mode 100755 new mode 100644 index 9e4a84022..4abf0c816 --- a/hack/code-format +++ b/hack/code-format @@ -1,8 +1,5 @@ #!/usr/bin/env bash # ---------------------------------------------------------------------------- # -# Apache 2.0 License Copyright © 2022-2023 The Aurae Authors # -# # -# +--------------------------------------------+ # # | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | # # | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | # # | ███████║██║ ██║██████╔╝███████║█████╗ | # @@ -12,21 +9,9 @@ # +--------------------------------------------+ # # # # Distributed Systems Runtime # -# # # ---------------------------------------------------------------------------- # -# # -# 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. # -# # +# Copyright 2022 - 2024, the aurae contributors # +# SPDX-License-Identifier: Apache-2.0 # # ---------------------------------------------------------------------------- # D=$(pwd) @@ -53,4 +38,3 @@ rustfmt --edition=2021 ${RUSTSOURCES} ## Protobuf clang-format -i ./auraed/proto/*.proto - diff --git a/hack/common b/hack/common old mode 100755 new mode 100644 index f39738163..6b11246ad --- a/hack/common +++ b/hack/common @@ -1,8 +1,5 @@ #!/usr/bin/env bash # ---------------------------------------------------------------------------- # -# Apache 2.0 License Copyright © 2022-2023 The Aurae Authors # -# # -# +--------------------------------------------+ # # | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | # # | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | # # | ███████║██║ ██║██████╔╝███████║█████╗ | # @@ -12,21 +9,9 @@ # +--------------------------------------------+ # # # # Distributed Systems Runtime # -# # # ---------------------------------------------------------------------------- # -# # -# 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. # -# # +# Copyright 2022 - 2024, the aurae contributors # +# SPDX-License-Identifier: Apache-2.0 # # ---------------------------------------------------------------------------- # D=$(pwd) @@ -42,4 +27,3 @@ if [[ D == *"hack"* ]]; then fi # This script assumes running from the top level directory within a Makefile - diff --git a/hack/container b/hack/container old mode 100755 new mode 100644 index f3e60272c..f697f86ef --- a/hack/container +++ b/hack/container @@ -1,8 +1,5 @@ #!/usr/bin/env bash # ---------------------------------------------------------------------------- # -# Apache 2.0 License Copyright © 2022-2023 The Aurae Authors # -# # -# +--------------------------------------------+ # # | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | # # | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | # # | ███████║██║ ██║██████╔╝███████║█████╗ | # @@ -12,21 +9,9 @@ # +--------------------------------------------+ # # # # Distributed Systems Runtime # -# # # ---------------------------------------------------------------------------- # -# # -# 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. # -# # +# Copyright 2022 - 2024, the aurae contributors # +# SPDX-License-Identifier: Apache-2.0 # # ---------------------------------------------------------------------------- # sha=$(git rev-parse HEAD) @@ -34,5 +19,3 @@ sha=$(git rev-parse HEAD) sudo -E docker build -t krisnova/aurae:latest -t krisnova/aurae:$sha -f images/Dockerfile.nested . sudo -E docker push krisnova/aurae:latest sudo -E docker push krisnova/aurae:$sha - - diff --git a/hack/file-definitions b/hack/file-definitions old mode 100755 new mode 100644 index 3ea8e63ce..03c6588fc --- a/hack/file-definitions +++ b/hack/file-definitions @@ -1,8 +1,5 @@ #!/usr/bin/env bash # ---------------------------------------------------------------------------- # -# Apache 2.0 License Copyright © 2022-2023 The Aurae Authors # -# # -# +--------------------------------------------+ # # | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | # # | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | # # | ███████║██║ ██║██████╔╝███████║█████╗ | # @@ -12,21 +9,9 @@ # +--------------------------------------------+ # # # # Distributed Systems Runtime # -# # # ---------------------------------------------------------------------------- # -# # -# 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. # -# # +# Copyright 2022 - 2024, the aurae contributors # +# SPDX-License-Identifier: Apache-2.0 # # ---------------------------------------------------------------------------- # D=$(pwd) @@ -35,9 +20,6 @@ if [[ $D == *"hack"* ]]; then echo "/hack is a special directory. These scripts should only be executed from the Makefile." echo "..or the directory above this one." echo "" - echo "We suggest using the github.com/aurae-runtime/environment repository for building aurae" - echo "projects from source." - echo "" exit 99 fi @@ -52,6 +34,14 @@ SCRIPTS=$(find . \( \ -iname '*.toml' \ \) -not -path '*/ignore/*') +### HACK Dir Scripts +HACKSCRIPTS=$(find -s hack -type f -not \( \ + -name 'certgen.client.ext' -or \ + -name 'certgen.server.ext' -or \ + -name '.header.script' -or \ + -name '.header.source' \ + \)) + ### Define Sources SOURCES=$(find . \( \ -iname '*.rs' -or \ diff --git a/hack/headers-check b/hack/headers-check index 698e95a13..b96a3c01e 100755 --- a/hack/headers-check +++ b/hack/headers-check @@ -1,8 +1,5 @@ #!/usr/bin/env bash # ---------------------------------------------------------------------------- # -# Apache 2.0 License Copyright © 2022-2023 The Aurae Authors # -# # -# +--------------------------------------------+ # # | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | # # | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | # # | ███████║██║ ██║██████╔╝███████║█████╗ | # @@ -12,21 +9,9 @@ # +--------------------------------------------+ # # # # Distributed Systems Runtime # -# # # ---------------------------------------------------------------------------- # -# # -# 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. # -# # +# Copyright 2022 - 2024, the aurae contributors # +# SPDX-License-Identifier: Apache-2.0 # # ---------------------------------------------------------------------------- # D=$(pwd) @@ -35,9 +20,6 @@ if [[ $D == *"hack"* ]]; then echo "/hack is a special directory. These scripts should only be executed from the Makefile." echo "..or the directory above this one." echo "" - echo "We suggest using the github.com/aurae-runtime/environment repository for building aurae" - echo "projects from source." - echo "" exit 99 fi @@ -86,4 +68,4 @@ done echo " [ Checks Complete ] " -exit $STATUS \ No newline at end of file +exit $STATUS diff --git a/hack/headers-strip b/hack/headers-strip new file mode 100755 index 000000000..f1fce56fc --- /dev/null +++ b/hack/headers-strip @@ -0,0 +1,133 @@ +#!/usr/bin/env bash +# ---------------------------------------------------------------------------- # +# | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | # +# | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | # +# | ███████║██║ ██║██████╔╝███████║█████╗ | # +# | ██╔══██║██║ ██║██╔══██╗██╔══██║██╔══╝ | # +# | ██║ ██║╚██████╔╝██║ ██║██║ ██║███████╗ | # +# | ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ | # +# +--------------------------------------------+ # +# # +# Distributed Systems Runtime # +# ---------------------------------------------------------------------------- # +# Copyright 2022 - 2024, the aurae contributors # +# SPDX-License-Identifier: Apache-2.0 # +# ---------------------------------------------------------------------------- # +# +# strips SPDX headers from source and scripts + +function info() { + green='' + nc='' + printf "${green}%s${nc} +" "$1" +} + +# This script assumes running from the top level directory within a Makefile +D=$(pwd) +if [[ $D == *"hack"* ]]; then + echo "" + echo "/hack is a special directory. These scripts should only be executed from the Makefile." + echo "..or the directory above this one." + echo "" + exit 99 +fi + +# contains $SCRIPTS, $SOURCES, $EXPECTEDSOURCE, $EXPECTEDSCRIPT +. hack/file-definitions + +# strip a header from a script file. use `/hack/file-definitions` to understand what files can be +# passed in +function strip_script_header() { + local file="$1" + local expected="$2" + # Bypass files here + if [ "$file" == "ignore.me" ]; then + return + fi + + # set header line length + FIRST_LINE=$(head -n1 "$file") + # account for scripts with shebangs + if [ "$FIRST_LINE" = '#!/usr/bin/env bash' ]; then + HEADER_LINES=30 + expected=$(printf "%s +%s" '#!/usr/bin/env bash' "$expected") + else + HEADER_LINES=29 + fi + FILE_HEADER=$(head -n "$HEADER_LINES" "$file") + if [ "$FILE_HEADER" = "$expected" ]; then + info " -> [MUTATING SOURCE FILE] Stripping header: $file" + # strip the header from the source + tail -n +$((HEADER_LINES + 1)) "$file" > "${file}.tmp" && mv "${file}.tmp" "$file" + if [ "$HEADER_LINES" -eq 30 ]; then + # readd shebang + SRC=$(cat "$file") + echo -e "#!/usr/bin/env bash +$SRC" > "${file}.tmp" && mv "${file}.tmp" "$file" + fi + else + info " -> [SKIPPING SOURCE FILE] $file" + if [ "${SHOW_DEBUG:-0}" -gt 0 ] ; then + info "File Header:" + echo "$FILE_HEADER" + info "Expected Header:" + echo "$expected" + fi + fi +} + +# simpler method of stripping headers for source that doesn't need to worry about shebang +function strip_source_header() { + local file="$1" + local expected="$2" + # Bypass files here + if [ "$file" == "ignore.me" ]; then + return + fi + + HEADER_LINES=29 + FILE_HEADER=$(head -n "$HEADER_LINES" "$file") + if [ "$FILE_HEADER" = "$expected" ]; then + info " -> [MUTATING SOURCE FILE] Stripping header: $file" + # strip the header from the source + tail -n +$((HEADER_LINES + 1)) "$file" > "${file}.tmp" && mv "${file}.tmp" "$file" + else + info " -> [SKIPPING SOURCE FILE] $file" + if [ "${SHOW_DEBUG:-0}" -gt 0 ] ; then + info "File Header:" + echo "$FILE_HEADER" + info "Expected Header:" + echo "$expected" + fi + fi +} + +FILE_ARG="$1" +if [ -f "$FILE_ARG" ] ; then + strip_script_header "$FILE_ARG" + exit "$?" +fi + +EXPECTEDSCRIPT=$(echo "$EXPECTEDSCRIPT" | sed -E -e "s/Copyright © DATE/Copyright © $(date +%Y)/") +echo "" +echo " [ Stripping Scripts ] " +echo "" +for FILE in $SCRIPTS; do + strip_script_header "$FILE" "$EXPECTEDSCRIPT" +done + +echo "" +echo " [ Stripping Hack Scripts ] " +echo "" +for FILE in $HACKSCRIPTS; do + strip_script_header "$FILE" "$EXPECTEDSCRIPT" +done + +echo "" +echo " [ Stripping Source ] " +echo "" +for FILE in $SOURCES; do + strip_source_header "$FILE" "$EXPECTEDSOURCE" +done diff --git a/hack/headers-write b/hack/headers-write index 957c86081..975f7ca9b 100755 --- a/hack/headers-write +++ b/hack/headers-write @@ -1,8 +1,5 @@ #!/usr/bin/env bash # ---------------------------------------------------------------------------- # -# Apache 2.0 License Copyright © 2022-2023 The Aurae Authors # -# # -# +--------------------------------------------+ # # | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | # # | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | # # | ███████║██║ ██║██████╔╝███████║█████╗ | # @@ -12,32 +9,23 @@ # +--------------------------------------------+ # # # # Distributed Systems Runtime # -# # # ---------------------------------------------------------------------------- # -# # -# 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. # -# # +# Copyright 2022 - 2024, the aurae contributors # +# SPDX-License-Identifier: Apache-2.0 # # ---------------------------------------------------------------------------- # +function info() { + green='' + nc='' + printf "${green}%s${nc}\n" "$1" +} + D=$(pwd) if [[ $D == *"hack"* ]]; then echo "" echo "/hack is a special directory. These scripts should only be executed from the Makefile." echo "..or the directory above this one." echo "" - echo "We suggest using the github.com/aurae-runtime/environment repository for building aurae" - echo "projects from source." - echo "" exit 99 fi @@ -45,53 +33,98 @@ fi . hack/file-definitions -### Write Scripts +# check for the license header in a script, and write it if its not present. this +# function is shebang aware and will ensure the header doesn't overwrite it +function write_script_header() { + local file="$1" + local expected="$2" + # Bypass files here + if [ "$file" == "ignore.me" ]; then + return + fi + + # parse the file header + FIRST_LINE=$(head -n1 "$file") + # account for scripts with shebangs by adding the shebang to the expected + # header if the target file starts with a shebang + if [ "$FIRST_LINE" = '#!/usr/bin/env bash' ]; then + HEADER_LINES=15 + expected=$(printf "%s +%s" '#!/usr/bin/env bash' "$expected") + else + HEADER_LINES=14 + fi + FILE_HEADER=$(head -n "$HEADER_LINES" "$file") + if [ "$FILE_HEADER" != "$expected" ] ; then + # adding DRY_RUN=1 to the start of the invocation prints to be affected + # files instead of mutating them + if [ "${DRY_RUN:-0}" -eq 0 ] ; then + if [ "$HEADER_LINES" -eq 15 ]; then + info " -> [MUTATING SOURCE FILE] Writing header: $file" + # remove first line of file before writing header with shebang included + SRC=$(tail -n+2 "$file") + # using printf is the easiest way to preserve newline characters in source code + printf "%s\n%s" "$expected" "$SRC" > "$file" + elif [ "$HEADER_LINES" -eq 14 ]; then + info " -> [MUTATING SOURCE FILE] Writing header: $file" + SRC=$(cat "$file") + printf "%s\n%s" "$expected" "$SRC" > "$file" + fi + else + info " -> [DRY RUN SOURCE FILE] Detected Missing Header: $file" + fi + fi +} +# check for license header in source files and append it if its missing +function write_source_header() { + local file="$1" + local expected="$2" + # Bypass files here + if [ "$file" == "ignore.me" ]; then + return + fi + + HEADER_LINES=14 + FILE_HEADER=$(head -n "$HEADER_LINES" "$file") + if [ "$FILE_HEADER" != "$expected" ]; then + # adding DRY_RUN=1 to the start of the invocation prints to be affected + # files instead of mutating them + if [ "${DRY_RUN:-0}" -eq 0 ] ; then + info " -> [MUTATING SOURCE FILE] Writing header: $file" + SRC=$(cat "$file") + printf "%s\n%s" "$expected" "$SRC" > "$file" + else + info " -> [DRY RUN SOURCE FILE] Detected Missing Header: $file" + fi + fi +} + +### Write Scripts echo "" echo " [ Checking Scripts ] " echo "" for FILE in $SCRIPTS; do + echo "Checking $FILE" + write_script_header "$FILE" "$EXPECTEDSCRIPT" +done - # Bypass files here - if [ "$FILE" == "ignore.me" ]; then - continue - fi - - # Replace the actual year with DATE so we can ignore the year when checking for the license header. - CONTENT=$(head -n 30 $FILE | sed -E -e 's/Copyright © [0-9]+/Copyright © DATE/') - if [ "$CONTENT" != "$EXPECTEDSCRIPT" ]; then - # Replace DATE with the current year. - EXPECTEDSCRIPT=$(echo "$EXPECTEDSCRIPT" | sed -E -e "s/Copyright © DATE/Copyright © $(date +%Y)/") - SRC="$(cat $FILE)" - echo -e "$EXPECTEDSCRIPT\n\n$SRC" > $FILE - echo " -> [MUTATING SOURCE FILE] Writing header: $FILE" - fi - +### Write Hack Scripts +echo "" +echo " [ Stripping Hack Scripts ] " +echo "" +for FILE in $HACKSCRIPTS; do + echo "Checking $FILE" + write_script_header "$FILE" "$EXPECTEDSCRIPT" done ### Write Source Files (.rs, .go, .c, etc) +echo "" echo " [ Checking Source Code ] " echo "" for FILE in $SOURCES; do - - # Bypass files here - if [ "$FILE" == "ignore.me" ]; then - continue - fi - - # Replace the actual year with DATE so we can ignore the year when checking for the license header. - CONTENT=$(head -n 30 $FILE | sed -E -e 's/Copyright © [0-9]+/Copyright © DATE/') - if [ "$CONTENT" != "$EXPECTEDSOURCE" ]; then - # Replace DATE with the current year. - EXPECTEDSOURCE=$(echo "$EXPECTEDSOURCE" | sed -E -e "s/Copyright © DATE/Copyright © $(date +%Y)/") - SRC="$(cat $FILE)" - echo -e "$EXPECTEDSOURCE\n\n$SRC" > $FILE - echo " -> [MUTATING SOURCE FILE] Writing header: $FILE" - fi - + echo "Checking $FILE" + write_source_header "$FILE" "$EXPECTEDSOURCE" done echo " [ Write Complete] " - -echo $status - diff --git a/hack/oci-alpine b/hack/oci-alpine old mode 100755 new mode 100644 index 2fd3cdc3c..bbfc98c2e --- a/hack/oci-alpine +++ b/hack/oci-alpine @@ -1,8 +1,4 @@ -#!/usr/bin/env bash # ---------------------------------------------------------------------------- # -# Apache 2.0 License Copyright © 2022-2023 The Aurae Authors # -# # -# +--------------------------------------------+ # # | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | # # | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | # # | ███████║██║ ██║██████╔╝███████║█████╗ | # @@ -12,21 +8,9 @@ # +--------------------------------------------+ # # # # Distributed Systems Runtime # -# # # ---------------------------------------------------------------------------- # -# # -# 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. # -# # +# Copyright 2022 - 2024, the aurae contributors # +# SPDX-License-Identifier: Apache-2.0 # # ---------------------------------------------------------------------------- # rm -rf target/alpine @@ -36,4 +20,4 @@ sudo -E docker create --name alpine-aurae alpine sudo -E docker export alpine-aurae | tar -C target/alpine/rootfs -xf - sudo -E docker rm alpine-aurae cd target/alpine -sudo -E runc spec \ No newline at end of file +sudo -E runc spec diff --git a/hack/oci-busybox b/hack/oci-busybox old mode 100755 new mode 100644 index d7ca99d4b..07f989f78 --- a/hack/oci-busybox +++ b/hack/oci-busybox @@ -1,8 +1,5 @@ #!/usr/bin/env bash # ---------------------------------------------------------------------------- # -# Apache 2.0 License Copyright © 2022-2023 The Aurae Authors # -# # -# +--------------------------------------------+ # # | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | # # | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | # # | ███████║██║ ██║██████╔╝███████║█████╗ | # @@ -12,21 +9,9 @@ # +--------------------------------------------+ # # # # Distributed Systems Runtime # -# # # ---------------------------------------------------------------------------- # -# # -# 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. # -# # +# Copyright 2022 - 2024, the aurae contributors # +# SPDX-License-Identifier: Apache-2.0 # # ---------------------------------------------------------------------------- # rm -rf target/busybox @@ -36,4 +21,4 @@ sudo -E docker create --name busybox-aurae busybox sudo -E docker export busybox-aurae | tar -C target/busybox/rootfs -xf - sudo -E docker rm busybox-aurae cd target/busybox -sudo -E runc spec \ No newline at end of file +sudo -E runc spec diff --git a/hack/serve.sh b/hack/serve.sh old mode 100755 new mode 100644 index d10cc7a35..0e40c1c15 --- a/hack/serve.sh +++ b/hack/serve.sh @@ -1,8 +1,5 @@ #!/usr/bin/env bash # ---------------------------------------------------------------------------- # -# Apache 2.0 License Copyright © 2022-2023 The Aurae Authors # -# # -# +--------------------------------------------+ # # | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | # # | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | # # | ███████║██║ ██║██████╔╝███████║█████╗ | # @@ -12,21 +9,9 @@ # +--------------------------------------------+ # # # # Distributed Systems Runtime # -# # # ---------------------------------------------------------------------------- # -# # -# 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. # -# # +# Copyright 2022 - 2024, the aurae contributors # +# SPDX-License-Identifier: Apache-2.0 # # ---------------------------------------------------------------------------- # docker run --rm -it \ diff --git a/hack/server-tls-info b/hack/server-tls-info old mode 100755 new mode 100644 index 043ff3442..daa698f07 --- a/hack/server-tls-info +++ b/hack/server-tls-info @@ -1,8 +1,5 @@ #!/usr/bin/env bash # ---------------------------------------------------------------------------- # -# Apache 2.0 License Copyright © 2022-2023 The Aurae Authors # -# # -# +--------------------------------------------+ # # | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | # # | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | # # | ███████║██║ ██║██████╔╝███████║█████╗ | # @@ -12,21 +9,9 @@ # +--------------------------------------------+ # # # # Distributed Systems Runtime # -# # # ---------------------------------------------------------------------------- # -# # -# 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. # -# # +# Copyright 2022 - 2024, the aurae contributors # +# SPDX-License-Identifier: Apache-2.0 # # ---------------------------------------------------------------------------- # -openssl s_client -showcerts -unix /var/run/aurae/aurae.sock \ No newline at end of file +openssl s_client -showcerts -unix /var/run/aurae/aurae.sock diff --git a/hack/spawn b/hack/spawn old mode 100755 new mode 100644 index 17327439c..c70c6440b --- a/hack/spawn +++ b/hack/spawn @@ -1,8 +1,5 @@ #!/usr/bin/env bash # ---------------------------------------------------------------------------- # -# Apache 2.0 License Copyright © 2022-2023 The Aurae Authors # -# # -# +--------------------------------------------+ # # | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | # # | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | # # | ███████║██║ ██║██████╔╝███████║█████╗ | # @@ -12,21 +9,9 @@ # +--------------------------------------------+ # # # # Distributed Systems Runtime # -# # # ---------------------------------------------------------------------------- # -# # -# 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. # -# # +# Copyright 2022 - 2024, the aurae contributors # +# SPDX-License-Identifier: Apache-2.0 # # ---------------------------------------------------------------------------- # CID="aurae-spawn-hack" diff --git a/pods/error.rs b/pods/error.rs index 158ca8bbd..4991cdd87 100644 --- a/pods/error.rs +++ b/pods/error.rs @@ -1,7 +1,4 @@ /* -------------------------------------------------------------------------- *\ - * Apache 2.0 License Copyright © 2022-2023 The Aurae Authors * - * * - * +--------------------------------------------+ * * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * * | ███████║██║ ██║██████╔╝███████║█████╗ | * @@ -11,21 +8,9 @@ * +--------------------------------------------+ * * * * Distributed Systems Runtime * - * * * -------------------------------------------------------------------------- * - * * - * 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. * - * * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * \* -------------------------------------------------------------------------- */ use crate::runtime::pod_service::pods::image::Image; @@ -90,4 +75,4 @@ pub enum PodsError { FailedToKillContainer { pod_name: PodName, source: anyhow::Error }, #[error(transparent)] TaskJoinError(#[from] tokio::task::JoinError), -} +} \ No newline at end of file diff --git a/pods/image.rs b/pods/image.rs index cc4056c77..b09c61ae6 100644 --- a/pods/image.rs +++ b/pods/image.rs @@ -1,7 +1,4 @@ /* -------------------------------------------------------------------------- *\ - * Apache 2.0 License Copyright © 2022-2023 The Aurae Authors * - * * - * +--------------------------------------------+ * * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * * | ███████║██║ ██║██████╔╝███████║█████╗ | * @@ -11,21 +8,9 @@ * +--------------------------------------------+ * * * * Distributed Systems Runtime * - * * * -------------------------------------------------------------------------- * - * * - * 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. * - * * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * \* -------------------------------------------------------------------------- */ use ocipkg::ImageName; @@ -72,4 +57,4 @@ impl Deref for Image { fn deref(&self) -> &Self::Target { &self.0 } -} +} \ No newline at end of file diff --git a/pods/mod.rs b/pods/mod.rs index 711158b2f..0ee43575b 100644 --- a/pods/mod.rs +++ b/pods/mod.rs @@ -1,7 +1,4 @@ /* -------------------------------------------------------------------------- *\ - * Apache 2.0 License Copyright © 2022-2023 The Aurae Authors * - * * - * +--------------------------------------------+ * * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * * | ███████║██║ ██║██████╔╝███████║█████╗ | * @@ -11,21 +8,9 @@ * +--------------------------------------------+ * * * * Distributed Systems Runtime * - * * * -------------------------------------------------------------------------- * - * * - * 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. * - * * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * \* -------------------------------------------------------------------------- */ pub use error::{PodsError, Result}; @@ -43,4 +28,4 @@ mod pods; #[derive(Debug)] pub struct PodSpec { image: Image, -} +} \ No newline at end of file diff --git a/pods/pod.rs b/pods/pod.rs index c11379cec..f2e3ba465 100644 --- a/pods/pod.rs +++ b/pods/pod.rs @@ -1,7 +1,4 @@ /* -------------------------------------------------------------------------- *\ - * Apache 2.0 License Copyright © 2022-2023 The Aurae Authors * - * * - * +--------------------------------------------+ * * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * * | ███████║██║ ██║██████╔╝███████║█████╗ | * @@ -11,21 +8,9 @@ * +--------------------------------------------+ * * * * Distributed Systems Runtime * - * * * -------------------------------------------------------------------------- * - * * - * 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. * - * * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * \* -------------------------------------------------------------------------- */ use super::{PodName, PodSpec, Result}; @@ -250,4 +235,4 @@ mod tests { Pod::new(name, spec).await.expect("failed to instantiate pod"); pod.allocate().await.expect("failed to allocate pod"); } -} +} \ No newline at end of file diff --git a/pods/pod_name.rs b/pods/pod_name.rs index dcbf0f75d..b9bf6f4dd 100644 --- a/pods/pod_name.rs +++ b/pods/pod_name.rs @@ -1,7 +1,4 @@ /* -------------------------------------------------------------------------- *\ - * Apache 2.0 License Copyright © 2022-2023 The Aurae Authors * - * * - * +--------------------------------------------+ * * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * * | ███████║██║ ██║██████╔╝███████║█████╗ | * @@ -11,21 +8,9 @@ * +--------------------------------------------+ * * * * Distributed Systems Runtime * - * * * -------------------------------------------------------------------------- * - * * - * 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. * - * * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * \* -------------------------------------------------------------------------- */ use std::fmt::{Debug, Display, Formatter}; @@ -53,4 +38,4 @@ impl Deref for PodName { fn deref(&self) -> &Self::Target { &self.0 } -} +} \ No newline at end of file diff --git a/pods/pods.rs b/pods/pods.rs index 225ce55f5..25813d409 100644 --- a/pods/pods.rs +++ b/pods/pods.rs @@ -1,7 +1,4 @@ /* -------------------------------------------------------------------------- *\ - * Apache 2.0 License Copyright © 2022-2023 The Aurae Authors * - * * - * +--------------------------------------------+ * * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * * | ███████║██║ ██║██████╔╝███████║█████╗ | * @@ -11,21 +8,9 @@ * +--------------------------------------------+ * * * * Distributed Systems Runtime * - * * * -------------------------------------------------------------------------- * - * * - * 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. * - * * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * \* -------------------------------------------------------------------------- */ use super::{Pod, PodName, PodSpec, PodsError, Result}; @@ -96,4 +81,4 @@ impl Pods { res } -} +} \ No newline at end of file diff --git a/proto/Cargo.toml b/proto/Cargo.toml index c64f6e03e..21373be17 100644 --- a/proto/Cargo.toml +++ b/proto/Cargo.toml @@ -1,7 +1,4 @@ # ---------------------------------------------------------------------------- # -# Apache 2.0 License Copyright © 2022-2023 The Aurae Authors # -# # -# +--------------------------------------------+ # # | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | # # | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | # # | ███████║██║ ██║██████╔╝███████║█████╗ | # @@ -11,21 +8,9 @@ # +--------------------------------------------+ # # # # Distributed Systems Runtime # -# # # ---------------------------------------------------------------------------- # -# # -# 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. # -# # +# Copyright 2022 - 2024, the aurae contributors # +# SPDX-License-Identifier: Apache-2.0 # # ---------------------------------------------------------------------------- # [package] diff --git a/proto/src/lib.rs b/proto/src/lib.rs index 9d54b9b9b..234c2ffd1 100644 --- a/proto/src/lib.rs +++ b/proto/src/lib.rs @@ -1,7 +1,4 @@ /* -------------------------------------------------------------------------- *\ - * Apache 2.0 License Copyright © 2022-2023 The Aurae Authors * - * * - * +--------------------------------------------+ * * | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | * * | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | * * | ███████║██║ ██║██████╔╝███████║█████╗ | * @@ -11,21 +8,9 @@ * +--------------------------------------------+ * * * * Distributed Systems Runtime * - * * * -------------------------------------------------------------------------- * - * * - * 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. * - * * + * Copyright 2022 - 2024, the aurae contributors * + * SPDX-License-Identifier: Apache-2.0 * \* -------------------------------------------------------------------------- */ //! Generated Protobuf definitions for the Aurae Standard Library @@ -59,4 +44,4 @@ pub mod observe { pub mod vms { include!("../gen/aurae.vms.v0.rs"); -} +} \ No newline at end of file diff --git a/rustfmt.toml b/rustfmt.toml index 71b186123..373de8b92 100644 --- a/rustfmt.toml +++ b/rustfmt.toml @@ -1,2 +1,16 @@ +# ---------------------------------------------------------------------------- # +# | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | # +# | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | # +# | ███████║██║ ██║██████╔╝███████║█████╗ | # +# | ██╔══██║██║ ██║██╔══██╗██╔══██║██╔══╝ | # +# | ██║ ██║╚██████╔╝██║ ██║██║ ██║███████╗ | # +# | ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ | # +# +--------------------------------------------+ # +# # +# Distributed Systems Runtime # +# ---------------------------------------------------------------------------- # +# Copyright 2022 - 2024, the aurae contributors # +# SPDX-License-Identifier: Apache-2.0 # +# ---------------------------------------------------------------------------- # max_width = 80 -use_small_heuristics = "Max" \ No newline at end of file +use_small_heuristics = "Max"