[][src]Struct crev_lib::repo::Repo

pub struct Repo { /* fields omitted */ }

crev repository dir inside a package dir

This represents the .crev directory and all the internals of it.

Methods

impl Repo[src]

pub fn init(path: &Path, id_str: String) -> Result<Self>[src]

pub fn open(path: &Path) -> Result<Self>[src]

pub fn auto_open() -> Result<Self>[src]

pub fn load_package_config(&self) -> Result<PackageConfig>[src]

pub fn try_load_package_config(&self) -> Result<Option<PackageConfig>>[src]

pub fn dot_crev_path(&self) -> PathBuf[src]

pub fn staging(&mut self) -> Result<&mut Staging>[src]

pub fn get_proof_rel_store_path(&self, _proof: &Proof) -> PathBuf[src]

pub fn package_verify(
    &mut self,
    local: &Local,
    allow_dirty: bool,
    for_id: Option<String>,
    params: &TrustDistanceParams,
    requirements: &VerificationRequirements
) -> Result<VerificationStatus>
[src]

pub fn package_digest(&mut self, allow_dirty: bool) -> Result<Digest>[src]

pub fn trust_package(
    &mut self,
    passphrase_callback: PassphraseFn,
    allow_dirty: bool
) -> Result<()>
[src]

pub fn commit(
    &mut self,
    passphrase_callback: PassphraseFn,
    allow_dirty: bool
) -> Result<()>
[src]

pub fn status(&mut self) -> Result<()>[src]

pub fn add(&mut self, file_paths: Vec<PathBuf>) -> Result<()>[src]

pub fn remove(&mut self, file_paths: Vec<PathBuf>) -> Result<()>[src]

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,