pub struct BuildahBackend { /* private fields */ }Expand description
Build backend that delegates to the buildah CLI.
Implementations§
Source§impl BuildahBackend
impl BuildahBackend
Sourcepub async fn try_new() -> Result<Self>
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.
Sourcepub async fn new() -> Result<Self>
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.
Sourcepub fn with_executor(executor: BuildahExecutor) -> Self
pub fn with_executor(executor: BuildahExecutor) -> Self
Create a BuildahBackend from an existing executor.
Sourcepub fn executor(&self) -> &BuildahExecutor
pub fn executor(&self) -> &BuildahExecutor
Borrow the inner executor (useful for low-level operations).
Trait Implementations§
Source§impl BuildBackend for BuildahBackend
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,
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,
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,
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,
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,
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,
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.
Auto Trait Implementations§
impl Freeze for BuildahBackend
impl RefUnwindSafe for BuildahBackend
impl Send for BuildahBackend
impl Sync for BuildahBackend
impl Unpin for BuildahBackend
impl UnsafeUnpin for BuildahBackend
impl UnwindSafe for BuildahBackend
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 more