pub struct SecretsPaths { /* private fields */ }Expand description
Canonical path layout for secrets runtime files.
Implementations§
Source§impl SecretsPaths
impl SecretsPaths
Sourcepub fn new(root: impl AsRef<Path>) -> SecretsPaths
pub fn new(root: impl AsRef<Path>) -> SecretsPaths
Creates a path layout rooted at root.
Sourcepub fn metadata_dir(&self) -> PathBuf
pub fn metadata_dir(&self) -> PathBuf
Secret metadata directory.
Sourcepub fn pending_file(&self) -> PathBuf
pub fn pending_file(&self) -> PathBuf
Pending requests JSON file.
Sourcepub fn audit_file(&self) -> PathBuf
pub fn audit_file(&self) -> PathBuf
Audit log JSONL file.
Sourcepub fn default_identity_file(&self) -> PathBuf
pub fn default_identity_file(&self) -> PathBuf
Default age identity file for CLI agent.
Sourcepub fn agents_dir(&self) -> PathBuf
pub fn agents_dir(&self) -> PathBuf
Canonical per-agent identity root.
Sourcepub fn identity_file_for_agent(&self, agent_id: &str) -> PathBuf
pub fn identity_file_for_agent(&self, agent_id: &str) -> PathBuf
Age identity file for one agent id.
Sourcepub fn legacy_identity_file_for_agent(&self, agent_id: &str) -> PathBuf
pub fn legacy_identity_file_for_agent(&self, agent_id: &str) -> PathBuf
Legacy root-level age identity file for one agent id.
Sourcepub fn namespaced_identity_file_for_agent(&self, agent_id: &str) -> PathBuf
pub fn namespaced_identity_file_for_agent(&self, agent_id: &str) -> PathBuf
Legacy namespaced-store age identity file for one agent id.
Sourcepub fn default_signing_key_file(&self) -> PathBuf
pub fn default_signing_key_file(&self) -> PathBuf
Default Ed25519 signing key file for CLI agent.
Sourcepub fn signing_key_file_for_agent(&self, agent_id: &str) -> PathBuf
pub fn signing_key_file_for_agent(&self, agent_id: &str) -> PathBuf
Ed25519 signing key file for one agent id.
Sourcepub fn legacy_signing_key_file_for_agent(&self, agent_id: &str) -> PathBuf
pub fn legacy_signing_key_file_for_agent(&self, agent_id: &str) -> PathBuf
Legacy root-level Ed25519 signing key file for one agent id.
Sourcepub fn vaults_dir(&self) -> PathBuf
pub fn vaults_dir(&self) -> PathBuf
Vault configuration directory.
Sourcepub fn gpg_homes_dir(&self) -> PathBuf
pub fn gpg_homes_dir(&self) -> PathBuf
Per-agent GPG homedir root.
Sourcepub fn legacy_gpg_home(&self, agent_id: &str) -> PathBuf
pub fn legacy_gpg_home(&self, agent_id: &str) -> PathBuf
Legacy GPG homedir for one agent id.
Sourcepub fn vault_sessions_file(&self) -> PathBuf
pub fn vault_sessions_file(&self) -> PathBuf
Vault session metadata file.
Sourcepub fn encrypted_dir(&self) -> PathBuf
pub fn encrypted_dir(&self) -> PathBuf
Encrypted vault payload root directory.
Sourcepub fn mounts_dir(&self) -> PathBuf
pub fn mounts_dir(&self) -> PathBuf
Default vault mount root directory.
Sourcepub fn vault_config_file(&self, vault_name: &str) -> PathBuf
pub fn vault_config_file(&self, vault_name: &str) -> PathBuf
Path to one vault config file.
Sourcepub fn vault_cipher_dir(&self, vault_name: &str) -> PathBuf
pub fn vault_cipher_dir(&self, vault_name: &str) -> PathBuf
Path to one vault ciphertext directory.
Sourcepub fn vault_mountpoint(&self, vault_name: &str) -> PathBuf
pub fn vault_mountpoint(&self, vault_name: &str) -> PathBuf
Path to one vault mountpoint.
Trait Implementations§
Source§impl Clone for SecretsPaths
impl Clone for SecretsPaths
Source§fn clone(&self) -> SecretsPaths
fn clone(&self) -> SecretsPaths
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for SecretsPaths
impl RefUnwindSafe for SecretsPaths
impl Send for SecretsPaths
impl Sync for SecretsPaths
impl Unpin for SecretsPaths
impl UnsafeUnpin for SecretsPaths
impl UnwindSafe for SecretsPaths
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more