Struct dockerfile::DockerfileBuilder
source · pub struct DockerfileBuilder { /* private fields */ }
Expand description
A Dockerfile builder.
Implementations
sourceimpl DockerfileBuilder
impl DockerfileBuilder
sourcepub fn push_initial_directive(self, directive: Directive) -> Self
pub fn push_initial_directive(self, directive: Directive) -> Self
Push a new initial directive to this Dockerfile instance.
sourcepub fn push_initial_arg(self, arg: Arg) -> Self
pub fn push_initial_arg(self, arg: Arg) -> Self
Push a new initial arg to this Dockerfile instance.
sourcepub fn push<I: Into<Instruction>>(self, instruction: I) -> Self
pub fn push<I: Into<Instruction>>(self, instruction: I) -> Self
Push a new instruction into this Dockerfile instance.
sourcepub fn append<I: Into<Instruction>>(self, new: Vec<I>) -> Self
pub fn append<I: Into<Instruction>>(self, new: Vec<I>) -> Self
Append a vector of instructions to this Dockerfile instance.
sourcepub fn finish(self) -> Dockerfile
pub fn finish(self) -> Dockerfile
Generate the output Dockerfile as a string.
Auto Trait Implementations
impl RefUnwindSafe for DockerfileBuilder
impl Send for DockerfileBuilder
impl Sync for DockerfileBuilder
impl Unpin for DockerfileBuilder
impl UnwindSafe for DockerfileBuilder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more