orchestra_toolkit/
constants.rs

1/* Copyright 2024-2025 LEDR Technologies Inc.
2* This file is part of the Orchestra library, which helps developer use our Orchestra technology which is based on AvesTerra, owned and developped by Georgetown University, under license agreement with LEDR Technologies Inc.
3*
4* The Orchestra library is a free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version.
5*
6* The Orchestra library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
7*
8* You should have received a copy of the GNU Lesser General Public License along with the Orchestra library. If not, see <https://www.gnu.org/licenses/>.
9*
10* If you have any questions, feedback or issues about the Orchestra library, you can contact us at support@ledr.io.
11*/
12
13/// The IANA port number for the Avesterra protocol.
14pub const IANA_PORT: u16 = 20057;
15
16pub const DEFAULT_CERTIFICATE_PATH: &str = "/AvesTerra/Certificates/avesterra.pem";
17
18pub const ENV_AVESTERRA_CERT: &str = "AVESTERRA_CERT";
19pub const ENV_AVESTERRA_HOST: &str = "AVESTERRA_HOST";
20pub const ENV_AVESTERRA_AUTH: &str = "AVESTERRA_AUTH";
21pub const ENV_AVESTERRA_PORT: &str = "AVESTERRA_PORT";
22pub const ENV_AVESTERRA_CHAN: &str = "AVESTERRA_CHAN";
23
24pub mod outlet {
25    use crate::Entity;
26
27    pub const REGISTRIES: Entity = Entity::new(0, 0, 10);
28    pub const OBJECTS: Entity = Entity::new(0, 0, 11);
29    pub const FOLDERS: Entity = Entity::new(0, 0, 12);
30    pub const FILES: Entity = Entity::new(0, 0, 13);
31    pub const GENERAL: Entity = Entity::new(0, 0, 14);
32    pub const COMPARTMENT: Entity = Entity::new(0, 0, 15);
33    pub const TRASH: Entity = Entity::new(0, 0, 16);
34}