pub struct VaultPaths { /* private fields */ }Expand description
All path resolution for vault directories and files.
Implementations§
Source§impl VaultPaths
impl VaultPaths
pub fn new(root: impl Into<PathBuf>) -> Self
Sourcepub fn config_file(&self) -> PathBuf
pub fn config_file(&self) -> PathBuf
.agent-vault/config.yaml
Sourcepub fn owner_pub_file(&self) -> PathBuf
pub fn owner_pub_file(&self) -> PathBuf
.agent-vault/owner.pub
Sourcepub fn manifest_file(&self) -> PathBuf
pub fn manifest_file(&self) -> PathBuf
.agent-vault/manifest.yaml
Sourcepub fn gitignore_file(&self) -> PathBuf
pub fn gitignore_file(&self) -> PathBuf
.agent-vault/.gitignore
Sourcepub fn agents_dir(&self) -> PathBuf
pub fn agents_dir(&self) -> PathBuf
.agent-vault/agents/
Sourcepub fn agent_pub_file(&self, name: &str) -> PathBuf
pub fn agent_pub_file(&self, name: &str) -> PathBuf
.agent-vault/agents/<name>/public.key
Sourcepub fn agent_escrow_file(&self, name: &str) -> PathBuf
pub fn agent_escrow_file(&self, name: &str) -> PathBuf
.agent-vault/agents/<name>/private.key.escrow
Sourcepub fn secrets_dir(&self) -> PathBuf
pub fn secrets_dir(&self) -> PathBuf
.agent-vault/secrets/
Sourcepub fn secret_enc_file(&self, path: &str) -> PathBuf
pub fn secret_enc_file(&self, path: &str) -> PathBuf
.agent-vault/secrets/<group>/<name>.enc
Sourcepub fn secret_meta_file(&self, path: &str) -> PathBuf
pub fn secret_meta_file(&self, path: &str) -> PathBuf
.agent-vault/secrets/<group>/<name>.meta
pub fn root(&self) -> &Path
Auto Trait Implementations§
impl Freeze for VaultPaths
impl RefUnwindSafe for VaultPaths
impl Send for VaultPaths
impl Sync for VaultPaths
impl Unpin for VaultPaths
impl UnsafeUnpin for VaultPaths
impl UnwindSafe for VaultPaths
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
Mutably borrows from an owned value. Read more