[−][src]Struct crev_lib::repo::Repo
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]
&mut self,
local: &Local,
allow_dirty: bool,
for_id: Option<String>,
params: &TrustDistanceParams,
requirements: &VerificationRequirements
) -> Result<VerificationStatus>
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]
&mut self,
passphrase_callback: PassphraseFn,
allow_dirty: bool
) -> Result<()>
pub fn commit(
&mut self,
passphrase_callback: PassphraseFn,
allow_dirty: bool
) -> Result<()>
[src]
&mut self,
passphrase_callback: PassphraseFn,
allow_dirty: bool
) -> Result<()>
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,