switchyard-fs 1.0.0

Switchyard: safe, atomic, reversible filesystem swaps with policy and audit
Documentation
1
2
3
4
5
6
7
8
9
pub mod fs;
use crate::types::{errors::Result, safepath::SafePath, OwnershipInfo};

pub trait OwnershipOracle: Send + Sync {
    /// Get ownership information for the specified path.
    /// # Errors
    /// Returns an error if ownership information cannot be determined.
    fn owner_of(&self, path: &SafePath) -> Result<OwnershipInfo>;
}