diff --git a/src/api.rs b/src/api.rs index 8472d0a..3b687b9 100644 --- a/src/api.rs +++ b/src/api.rs @@ -1,3 +1,19 @@ +/* + * Copyright 2023 Anthony Oteri + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + use serde::Deserialize; use crate::config::Config; diff --git a/src/cli.rs b/src/cli.rs index 322d6bc..8e4ac4e 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -1,3 +1,19 @@ +/* + * Copyright 2023 Anthony Oteri + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + #![allow(unused_imports)] use std::ffi::OsString; diff --git a/src/commands.rs b/src/commands.rs index 3060f6d..65f432c 100644 --- a/src/commands.rs +++ b/src/commands.rs @@ -1,3 +1,19 @@ +/* + * Copyright 2023 Anthony Oteri + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + pub mod catalog; pub mod tags; pub mod version; diff --git a/src/commands/catalog.rs b/src/commands/catalog.rs index 4e757a6..fb59ed8 100644 --- a/src/commands/catalog.rs +++ b/src/commands/catalog.rs @@ -1,3 +1,19 @@ +/* + * Copyright 2023 Anthony Oteri + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + //! Command module responsible for handling the "catalog" command. //! //! The "catalog" command works with the Docker Registry API's "catalog" diff --git a/src/commands/tags.rs b/src/commands/tags.rs index 4ffcf3d..96c6092 100644 --- a/src/commands/tags.rs +++ b/src/commands/tags.rs @@ -1,3 +1,19 @@ +/* + * Copyright 2023 Anthony Oteri + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + //! Command module responsible for handling the "tags" command. //! //! The "tags" command works with the Docker Registry API's "tags" diff --git a/src/commands/version.rs b/src/commands/version.rs index 4b328bb..a8b77a5 100644 --- a/src/commands/version.rs +++ b/src/commands/version.rs @@ -1,3 +1,19 @@ +/* + * Copyright 2023 Anthony Oteri + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + //! Command module responsible for handling the API Version check. //! //! This is a minimal endpoint suitable for ensuring that the configured diff --git a/src/config.rs b/src/config.rs index 0bd612f..30aa3b3 100644 --- a/src/config.rs +++ b/src/config.rs @@ -1,3 +1,19 @@ +/* + * Copyright 2023 Anthony Oteri + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + use std::fs; use std::path::Path; diff --git a/src/error.rs b/src/error.rs index f9bc798..58638aa 100644 --- a/src/error.rs +++ b/src/error.rs @@ -1,3 +1,19 @@ +/* + * Copyright 2023 Anthony Oteri + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + #![allow(clippy::enum_variant_names)] use thiserror::Error; diff --git a/src/main.rs b/src/main.rs index 83eb684..cf08f2a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,3 +1,19 @@ +/* + * Copyright 2023 Anthony Oteri + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + use std::ffi::OsString; use std::path::PathBuf;