pub struct FileRegistry { /* private fields */ }Expand description
Construct with FileRegistry::new. Stateless except for the cosign
stub; configurable via env vars (PF_FILE_REG_SIGN_KEY).
Implementations§
Source§impl FileRegistry
impl FileRegistry
Trait Implementations§
Source§impl Debug for FileRegistry
impl Debug for FileRegistry
Source§impl Default for FileRegistry
impl Default for FileRegistry
Source§fn default() -> FileRegistry
fn default() -> FileRegistry
Returns the “default value” for a type. Read more
Source§impl Registry for FileRegistry
impl Registry for FileRegistry
Source§fn push<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
target: &'life1 ImageRef,
manifest: &'life2 Manifest,
blobs: &'life3 dyn BlobStore,
) -> Pin<Box<dyn Future<Output = Result<(), RegistryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn push<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
target: &'life1 ImageRef,
manifest: &'life2 Manifest,
blobs: &'life3 dyn BlobStore,
) -> Pin<Box<dyn Future<Output = Result<(), RegistryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Push a
.pfimg to the destination encoded by target.Source§fn pull<'life0, 'life1, 'async_trait>(
&'life0 self,
source: &'life1 ImageRef,
) -> Pin<Box<dyn Future<Output = Result<LayerSet, RegistryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn pull<'life0, 'life1, 'async_trait>(
&'life0 self,
source: &'life1 ImageRef,
) -> Pin<Box<dyn Future<Output = Result<LayerSet, RegistryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Pull a
.pfimg from source. Returns the manifest + all blobs
it references (so the caller can flush them into a local
BlobStore of choice).Auto Trait Implementations§
impl Freeze for FileRegistry
impl RefUnwindSafe for FileRegistry
impl Send for FileRegistry
impl Sync for FileRegistry
impl Unpin for FileRegistry
impl UnsafeUnpin for FileRegistry
impl UnwindSafe for FileRegistry
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
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 moreCreates a shared type from an unshared type.