pub struct SecretsLog { /* private fields */ }Expand description
The secrets log of one repository.
Implementations§
Source§impl SecretsLog
impl SecretsLog
pub fn new(path: impl Into<PathBuf>) -> Self
pub fn next_push_seq(&self) -> Result<u64>
pub fn push(&self, updates: &[SecretUpdate]) -> Result<u64>
pub fn scan(&self) -> Result<PushLogScan>
Sourcepub fn compact(&self) -> Result<CompactionReport>
pub fn compact(&self) -> Result<CompactionReport>
Fold every frame into one. See PushLog::compact.
Sourcepub fn maybe_compact(
&self,
policy: CompactionPolicy,
) -> Result<Option<CompactionReport>>
pub fn maybe_compact( &self, policy: CompactionPolicy, ) -> Result<Option<CompactionReport>>
Compact if the log has grown past policy.
pub fn current(&self) -> Result<BTreeMap<String, SecretState>>
pub fn seal_section(&self) -> Result<ReservedSection>
Auto Trait Implementations§
impl Freeze for SecretsLog
impl RefUnwindSafe for SecretsLog
impl Send for SecretsLog
impl Sync for SecretsLog
impl Unpin for SecretsLog
impl UnsafeUnpin for SecretsLog
impl UnwindSafe for SecretsLog
Blanket Implementations§
impl<T> Allocation for T
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