voa_config/
lib.rs

1#![doc = include_str!("../README.md")]
2
3mod common;
4mod config;
5mod error;
6mod file;
7
8pub use config::{
9    base::{OsPurposeContext, VoaConfig},
10    technology::settings::{ConfigOrigin, TechnologySettings},
11};
12pub use error::Error;
13
14/// Items from [`voa_core`] used in [`VoaConfig`].
15pub mod core {
16    pub use voa_core::identifiers::{Context, Os, Purpose};
17}
18
19/// OpenPGP related items.
20pub mod openpgp {
21    pub use crate::config::technology::openpgp::{
22        DomainName,
23        Error as OpenpgpError,
24        NumCertifications,
25        NumDataSignatures,
26        OpenpgpFingerprint,
27        OpenpgpSettings,
28        PlainMode,
29        TrustAmountFlow,
30        TrustAmountPartial,
31        TrustAmountRoot,
32        TrustAnchorMode,
33        VerificationMethod,
34        WebOfTrustMode,
35        WebOfTrustRoot,
36    };
37}
38
39/// The configuration file paths considered in system mode.
40pub const CONFIG_DIRS_SYSTEM_MODE: &[&str] = &[
41    "/usr/share/voa/",
42    "/usr/local/share/voa/",
43    "/run/voa/",
44    "/etc/voa/",
45];
46/// The configuration file extension.
47pub const CONFIG_FILE_EXTENSION: &str = "yaml";