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§
Source§impl 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 Freeze for Repo
impl RefUnwindSafe for Repo
impl Send for Repo
impl Sync for Repo
impl Unpin for Repo
impl UnwindSafe for Repo
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
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>
Converts
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>
Converts
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