Skip to main content

GithubVerifiedArtifactStore

Struct GithubVerifiedArtifactStore 

Source
pub struct GithubVerifiedArtifactStore<R> { /* private fields */ }
Expand description

Concrete independent GitHub artifact verifier and private local cache.

Implementations§

Source§

impl<R> GithubVerifiedArtifactStore<R>

Source

pub fn new( transport: GithubTransport<R>, cache_root: impl AsRef<Path>, ) -> Result<Self, GithubArtifactStoreError>

Bind a dedicated GitHub transport to an existing private cache root.

§Errors

Rejects relative, aliased, linked, non-directory, or group/world-accessible cache roots. Unix roots must have no group or other permission bits.

Source

pub fn cache_root(&self) -> &Utf8Path

Return the canonical private cache root.

Source

pub fn into_transport(self) -> GithubTransport<R>

Consume the store and recover its dedicated transport.

Trait Implementations§

Source§

impl<R: GhRunner + Send> VerifiedArtifactStore for GithubVerifiedArtifactStore<R>

Source§

fn supports_listing(&self) -> bool

Whether verified manifest enumeration is implemented.
Source§

fn supports_download(&self) -> bool

Whether verified no-clobber download is implemented.
Source§

fn supports_removal(&self) -> bool

Whether exact retained-artifact deletion is implemented.
Source§

fn supports_signed_cleanup_evidence(&self) -> bool

Whether this verifier can produce attempt-scoped signed-cleanup evidence from raw reports.
Source§

fn list_verified( &mut self, context: &GithubArtifactContext, ) -> RemoteBuildResult<Vec<ArtifactManifest>>

Return only independently verified manifests, or an empty vector while pending. Read more
Source§

fn verified_run_evidence( &mut self, context: &GithubArtifactContext, ) -> RemoteBuildResult<Option<GithubVerifiedRunEvidence>>

Return evidence produced by the same independent verification as Self::list_verified. Read more
Source§

fn download_verified( &mut self, context: &GithubArtifactContext, request: &ArtifactDownloadRequest, ) -> RemoteBuildResult<ArtifactDownloadResult>

Download and independently verify one exact manifest artifact. Read more
Source§

fn remove_artifacts( &mut self, _context: &GithubArtifactContext, ) -> RemoteBuildResult<()>

Delete only artifacts owned by the exact mapped run. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.