pub struct PodmanDriver;Implementations§
Source§impl PodmanDriver
impl PodmanDriver
Trait Implementations§
Source§impl BuildChunkedOciDriver for PodmanDriver
impl BuildChunkedOciDriver for PodmanDriver
Source§fn manifest_create_with_runner(
runner: &RpmOstreeRunner,
opts: ManifestCreateOpts<'_>,
) -> Result<()>
fn manifest_create_with_runner( runner: &RpmOstreeRunner, opts: ManifestCreateOpts<'_>, ) -> Result<()>
Create a manifest containing all the built images.
Runs within the same context as rpm-ostree. Read more
Source§fn manifest_push_with_runner(
runner: &RpmOstreeRunner,
opts: ManifestPushOpts<'_>,
) -> Result<()>
fn manifest_push_with_runner( runner: &RpmOstreeRunner, opts: ManifestPushOpts<'_>, ) -> Result<()>
Pushes a manifest containing all the built images.
Runs within the same context as rpm-ostree. Read more
Source§fn pull_with_runner(
runner: &RpmOstreeRunner,
opts: PullOpts<'_>,
) -> Result<ContainerId>
fn pull_with_runner( runner: &RpmOstreeRunner, opts: PullOpts<'_>, ) -> Result<ContainerId>
Pull an image from a remote registry.
Runs within the same context as rpm-ostree. Read more
Source§fn remove_image_with_runner(
runner: &RpmOstreeRunner,
image_ref: &str,
) -> Result<()>
fn remove_image_with_runner( runner: &RpmOstreeRunner, image_ref: &str, ) -> Result<()>
Removes an image from local storage.
Runs within the same context as rpm-ostree. Read more
Source§fn build_chunked_oci(
runner: &RpmOstreeRunner,
unchunked_image: &ImageRef<'_>,
final_image: &ImageRef<'_>,
opts: BuildChunkedOciOpts,
) -> Result<()>
fn build_chunked_oci( runner: &RpmOstreeRunner, unchunked_image: &ImageRef<'_>, final_image: &ImageRef<'_>, opts: BuildChunkedOciOpts, ) -> Result<()>
Runs build-chunked-oci on an image. Read more
Source§fn build_rechunk_tag_push(
opts: BuildRechunkTagPushOpts<'_>,
) -> Result<Vec<String>>
fn build_rechunk_tag_push( opts: BuildRechunkTagPushOpts<'_>, ) -> Result<Vec<String>>
Runs the logic for building, rechunking, tagging, and pushing an image. Read more
Source§impl BuildDriver for PodmanDriver
impl BuildDriver for PodmanDriver
Source§fn pull(opts: PullOpts<'_>) -> Result<ContainerId>
fn pull(opts: PullOpts<'_>) -> Result<ContainerId>
Runs the pull logic for the driver Read more
Source§fn manifest_create(opts: ManifestCreateOpts<'_>) -> Result<()>
fn manifest_create(opts: ManifestCreateOpts<'_>) -> Result<()>
Create a manifest containing all the built images. Read more
Source§fn manifest_push(opts: ManifestPushOpts<'_>) -> Result<()>
fn manifest_push(opts: ManifestPushOpts<'_>) -> Result<()>
Pushes a manifest containing all the built images. Read more
Source§fn build_tag_push(opts: BuildTagPushOpts<'_>) -> Result<Vec<String>>
fn build_tag_push(opts: BuildTagPushOpts<'_>) -> Result<Vec<String>>
Runs the logic for building, tagging, and pushing an image. Read more
Source§impl Debug for PodmanDriver
impl Debug for PodmanDriver
Source§impl DriverVersion for PodmanDriver
impl DriverVersion for PodmanDriver
Source§const VERSION_REQ: &'static str = ">=4"
const VERSION_REQ: &'static str = ">=4"
The version req string slice that follows
the semver standard https://semver.org/.
fn is_supported_version() -> bool
Source§impl ImageStorageDriver for PodmanDriver
impl ImageStorageDriver for PodmanDriver
Source§fn remove_image(opts: RemoveImageOpts<'_>) -> Result<()>
fn remove_image(opts: RemoveImageOpts<'_>) -> Result<()>
Removes an image Read more
Source§impl RechunkDriver for PodmanDriver
impl RechunkDriver for PodmanDriver
const RECHUNK_IMAGE: &str = "ghcr.io/hhd-dev/rechunk:v1.0.1"
Source§fn rechunk(opts: RechunkOpts<'_>) -> Result<Vec<String>>
fn rechunk(opts: RechunkOpts<'_>) -> Result<Vec<String>>
Perform a rechunk build of a recipe. Read more
Source§fn prune_image(
mount: &MountId,
container: &ContainerId,
image: &Reference,
opts: RechunkOpts<'_>,
) -> Result<(), Error>
fn prune_image( mount: &MountId, container: &ContainerId, image: &Reference, opts: RechunkOpts<'_>, ) -> Result<(), Error>
Step 1 of the rechunk process that prunes excess files. Read more
Source§fn create_ostree_commit(
mount: &MountId,
ostree_cache_id: &str,
container: &ContainerId,
image: &Reference,
opts: RechunkOpts<'_>,
) -> Result<()>
fn create_ostree_commit( mount: &MountId, ostree_cache_id: &str, container: &ContainerId, image: &Reference, opts: RechunkOpts<'_>, ) -> Result<()>
Step 2 of the rechunk process that creates the ostree commit. Read more
Source§fn rechunk_image(
ostree_cache_id: &str,
temp_dir_str: &str,
current_dir: &str,
opts: RechunkOpts<'_>,
) -> Result<()>
fn rechunk_image( ostree_cache_id: &str, temp_dir_str: &str, current_dir: &str, opts: RechunkOpts<'_>, ) -> Result<()>
Step 3 of the rechunk process that generates the final chunked image. Read more
Source§impl RunDriver for PodmanDriver
impl RunDriver for PodmanDriver
Source§fn run(opts: RunOpts<'_>) -> Result<ExitStatus>
fn run(opts: RunOpts<'_>) -> Result<ExitStatus>
Run a container to perform an action. Read more
Source§fn run_output(opts: RunOpts<'_>) -> Result<Output>
fn run_output(opts: RunOpts<'_>) -> Result<Output>
Run a container to perform an action and capturing output. Read more
Source§fn run_detached(opts: RunOpts<'_>) -> Result<DetachedContainer>
fn run_detached(opts: RunOpts<'_>) -> Result<DetachedContainer>
Run a container to perform an action in the background.
The container will be stopped when the returned
DetachedContainer
value is dropped. Read moreSource§fn create_container(opts: CreateContainerOpts<'_>) -> Result<ContainerId>
fn create_container(opts: CreateContainerOpts<'_>) -> Result<ContainerId>
Creates container Read more
Source§fn remove_container(opts: RemoveContainerOpts<'_>) -> Result<()>
fn remove_container(opts: RemoveContainerOpts<'_>) -> Result<()>
Removes a container Read more
Auto Trait Implementations§
impl Freeze for PodmanDriver
impl RefUnwindSafe for PodmanDriver
impl Send for PodmanDriver
impl Sync for PodmanDriver
impl Unpin for PodmanDriver
impl UnsafeUnpin for PodmanDriver
impl UnwindSafe for PodmanDriver
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> BorrowUnordered for T
impl<T> BorrowUnordered for T
fn as_unordered(&self) -> &Unordered<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>
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 more