pub struct PullOptions<'a> {
pub img_proxy_config: Option<ImageProxyConfig>,
pub local_fetch: LocalFetchOpt,
pub storage_root: Option<&'a Path>,
pub additional_image_stores: &'a [&'a Path],
pub progress: Option<SharedReporter>,
}Expand description
Options for a pull operation.
Use Default::default() for the common case (skopeo transport, no
containers-storage import).
Fields§
§img_proxy_config: Option<ImageProxyConfig>Image proxy configuration passed to skopeo (ignored for
containers-storage: references when local_fetch is not
Disabled).
local_fetch: LocalFetchOptControls whether the native containers-storage import path is used.
See LocalFetchOpt for details.
storage_root: Option<&'a Path>Explicit containers-storage root. When set, auto-discovery is skipped
and only this path (plus any additional_image_stores) is searched.
Only relevant when local_fetch is not Disabled.
additional_image_stores: &'a [&'a Path]Additional read-only image stores to search beyond the primary
(auto-discovered or explicit) store. Equivalent to the
additionalimagestore= option in containers/storage.
Only relevant when local_fetch is not Disabled.
progress: Option<SharedReporter>Progress reporter for this pull operation.
When None, all progress events are silently discarded. Supply a
SharedReporter implementation (e.g. an indicatif-backed renderer)
to receive ProgressEvents as the pull proceeds.
Trait Implementations§
Source§impl<'a> Debug for PullOptions<'a>
impl<'a> Debug for PullOptions<'a>
Source§impl<'a> Default for PullOptions<'a>
impl<'a> Default for PullOptions<'a>
Source§fn default() -> PullOptions<'a>
fn default() -> PullOptions<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for PullOptions<'a>
impl<'a> !UnwindSafe for PullOptions<'a>
impl<'a> Freeze for PullOptions<'a>
impl<'a> Send for PullOptions<'a>
impl<'a> Sync for PullOptions<'a>
impl<'a> Unpin for PullOptions<'a>
impl<'a> UnsafeUnpin for PullOptions<'a>
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
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