pub struct ReceiptManager { /* private fields */ }Expand description
Receipt manager for generating and storing receipts
Implementations§
Source§impl ReceiptManager
impl ReceiptManager
Sourcepub fn load_or_generate_keys(&mut self) -> Result<&VerifyingKey>
pub fn load_or_generate_keys(&mut self) -> Result<&VerifyingKey>
Load or generate Ed25519 keypair
Keys are stored in .ggen/keys/ directory:
- private.pem - Signing key (hex-encoded)
- public.pem - Verifying key (hex-encoded)
Sourcepub fn generate_pack_install_receipt(
&mut self,
pack_id: &str,
pack_version: &str,
packages_installed: &[String],
_install_path: &PathBuf,
) -> Result<PathBuf>
pub fn generate_pack_install_receipt( &mut self, pack_id: &str, pack_version: &str, packages_installed: &[String], _install_path: &PathBuf, ) -> Result<PathBuf>
Sourcepub fn verify_receipt(&self, receipt_path: &PathBuf) -> Result<VerifyOutput>
pub fn verify_receipt(&self, receipt_path: &PathBuf) -> Result<VerifyOutput>
Sourcepub fn receipts_dir(&self) -> &PathBuf
pub fn receipts_dir(&self) -> &PathBuf
Get path to receipts directory
Auto Trait Implementations§
impl Freeze for ReceiptManager
impl RefUnwindSafe for ReceiptManager
impl Send for ReceiptManager
impl Sync for ReceiptManager
impl Unpin for ReceiptManager
impl UnsafeUnpin for ReceiptManager
impl UnwindSafe for ReceiptManager
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> EvidenceKind for T
impl<T> EvidenceKind for T
default fn kind_label(&self) -> &'static str
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request