pub struct Repo { /* private fields */ }
Expand description
crev
repository dir inside a package dir
This represents the .crev
directory and all
the internals of it.
Implementations
sourceimpl Repo
impl Repo
pub fn init(path: &Path, id_str: String) -> Result<Self, Error>
pub fn open(path: &Path) -> Result<Self, Error>
pub fn auto_open() -> Result<Self, Error>
pub fn load_package_config(&self) -> Result<PackageConfig, Error>
pub fn try_load_package_config(&self) -> Result<Option<PackageConfig>, Error>
pub fn dot_crev_path(&self) -> PathBuf
pub fn staging(&mut self) -> Result<&mut Staging, Error>
pub fn get_proof_rel_store_path(&self, _proof: &Proof) -> PathBuf
pub fn package_verify(
&mut self,
local: &Local,
allow_dirty: bool,
for_id: Option<String>,
params: &TrustDistanceParams,
requirements: &VerificationRequirements
) -> Result<VerificationStatus, Error>
pub fn package_digest(&mut self, allow_dirty: bool) -> Result<Digest, Error>
pub fn add(&mut self, file_paths: Vec<PathBuf>) -> Result<(), Error>
pub fn remove(&mut self, file_paths: Vec<PathBuf>) -> Result<(), Error>
Auto Trait Implementations
impl RefUnwindSafe for Repo
impl Send for Repo
impl Sync for Repo
impl Unpin for Repo
impl UnwindSafe for Repo
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more