Skip to main content

BuildahBackend

Struct BuildahBackend 

Source
pub struct BuildahBackend { /* private fields */ }
Expand description

Build backend that delegates to the buildah CLI.

Implementations§

Source§

impl BuildahBackend

Source

pub async fn try_new() -> Result<Self>

Try to create a new BuildahBackend.

Returns Ok if buildah is found and functional, Err otherwise.

§Errors

Returns an error if buildah is not installed or is not responding.

Source

pub async fn new() -> Result<Self>

Create a new BuildahBackend, returning an error if buildah is not available.

§Errors

Returns an error if buildah is not installed or cannot be initialized.

Source

pub fn with_executor(executor: BuildahExecutor) -> Self

Create a BuildahBackend from an existing executor.

Source

pub fn executor(&self) -> &BuildahExecutor

Borrow the inner executor (useful for low-level operations).

Trait Implementations§

Source§

impl BuildBackend for BuildahBackend

Source§

fn build_image<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, _context: &'life1 Path, dockerfile: &'life2 Dockerfile, options: &'life3 BuildOptions, event_tx: Option<Sender<BuildEvent>>, ) -> Pin<Box<dyn Future<Output = Result<BuiltImage>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

Build a container image from a parsed Dockerfile. Read more
Source§

fn push_image<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, tag: &'life1 str, auth: Option<&'life2 RegistryAuth>, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Push an image to a container registry.
Source§

fn tag_image<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, image: &'life1 str, new_tag: &'life2 str, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Tag an existing image with a new name.
Source§

fn manifest_create<'life0, 'life1, 'async_trait>( &'life0 self, name: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Create a new (empty) manifest list.
Source§

fn manifest_add<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, manifest: &'life1 str, image: &'life2 str, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Add an image to an existing manifest list.
Source§

fn manifest_push<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, name: &'life1 str, destination: &'life2 str, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Push a manifest list (and all referenced images) to a registry.
Source§

fn is_available<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Returns true if the backend tooling is installed and functional.
Source§

fn name(&self) -> &'static str

Human-readable name for this backend (e.g. "buildah", "sandbox").

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> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
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 = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more