pub struct DropExporter { /* private fields */ }Expand description
Streams collection manifests and content blobs into atomic .car.zst files.
Implementations§
Source§impl DropExporter
impl DropExporter
pub fn new(blob_store: BlobStore) -> Self
Sourcepub async fn export_archive(
&self,
manifest: &CollectionManifest,
output: impl AsRef<Path>,
) -> Result<DropExportResult>
pub async fn export_archive( &self, manifest: &CollectionManifest, output: impl AsRef<Path>, ) -> Result<DropExportResult>
Export one manifest without filtering.
§Errors
Returns an error if the manifest is invalid, content is unavailable, or the archive cannot be written.
Sourcepub async fn export_manifests(
&self,
manifests: &[CollectionManifest],
output: impl AsRef<Path>,
options: DropExportOptions,
) -> Result<DropExportResult>
pub async fn export_manifests( &self, manifests: &[CollectionManifest], output: impl AsRef<Path>, options: DropExportOptions, ) -> Result<DropExportResult>
Export one or more versions, selecting the requested version or latest semver version when no version is specified.
§Errors
Returns an error if manifests disagree about their collection, the requested version is unavailable, or the archive cannot be written.
Sourcepub async fn export_drop_with_options(
&self,
manifests: &[CollectionManifest],
output: impl AsRef<Path>,
options: DropExportOptions,
pool: Option<&ManagedPool>,
) -> Result<DropExportResult>
pub async fn export_drop_with_options( &self, manifests: &[CollectionManifest], output: impl AsRef<Path>, options: DropExportOptions, pool: Option<&ManagedPool>, ) -> Result<DropExportResult>
Export a manifest using filtering and version-selection options.
A filtered manifest is deliberately unsigned because changing its entries changes the signed content. The archive remains content addressed and each included blob is verified while it is streamed.
§Errors
Returns an error if the selected manifest or any referenced blob is invalid or unavailable, or if the archive cannot be written.
Trait Implementations§
Source§impl Clone for DropExporter
impl Clone for DropExporter
Source§fn clone(&self) -> DropExporter
fn clone(&self) -> DropExporter
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for DropExporter
impl !UnwindSafe for DropExporter
impl Freeze for DropExporter
impl Send for DropExporter
impl Sync for DropExporter
impl Unpin for DropExporter
impl UnsafeUnpin for DropExporter
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> ⓘ
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> ⓘ
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 more