[−][src]Struct buildkit_llb::ops::Command
Command execution operation. This is what a Dockerfile's RUN
directive is translated to.
Methods
impl<'a> Command<'a>
[src]
pub fn run<S>(name: S) -> Self where
S: Into<String>,
[src]
S: Into<String>,
pub fn args<A, S>(self, args: A) -> Self where
A: IntoIterator<Item = S>,
S: AsRef<str>,
[src]
A: IntoIterator<Item = S>,
S: AsRef<str>,
pub fn env<S, Q>(self, name: S, value: Q) -> Self where
S: AsRef<str>,
Q: AsRef<str>,
[src]
S: AsRef<str>,
Q: AsRef<str>,
pub fn env_iter<I, S, Q>(self, iter: I) -> Self where
I: IntoIterator<Item = (S, Q)>,
S: AsRef<str>,
Q: AsRef<str>,
[src]
I: IntoIterator<Item = (S, Q)>,
S: AsRef<str>,
Q: AsRef<str>,
pub fn cwd<P>(self, path: P) -> Self where
P: Into<PathBuf>,
[src]
P: Into<PathBuf>,
pub fn user<S>(self, user: S) -> Self where
S: Into<String>,
[src]
S: Into<String>,
pub fn mount<P>(self, mount: Mount<'a, P>) -> Self where
P: AsRef<Path>,
[src]
P: AsRef<Path>,
Trait Implementations
impl<'a> Clone for Command<'a>
[src]
impl<'a> Debug for Command<'a>
[src]
impl<'a, 'b: 'a> MultiBorrowedOutput<'b> for Command<'b>
[src]
fn output(&'b self, index: u32) -> OperationOutput<'b>
[src]
impl<'a> OperationBuilder<'a> for Command<'a>
[src]
fn custom_name<S>(self, name: S) -> Self where
S: Into<String>,
[src]
S: Into<String>,
fn ignore_cache(self, ignore: bool) -> Self
[src]
fn ref_counted(self) -> Arc<Self> where
Self: Sized + 'a,
[src]
Self: Sized + 'a,
Auto Trait Implementations
impl<'a> !RefUnwindSafe for Command<'a>
impl<'a> Send for Command<'a>
impl<'a> Sync for Command<'a>
impl<'a> Unpin for Command<'a>
impl<'a> !UnwindSafe for Command<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,