pub struct DockerFile<'a> { /* private fields */ }
Implementations§
Source§impl<'a> DockerFile<'a>
impl<'a> DockerFile<'a>
pub fn new() -> Self
pub fn from_image(from: &'a str) -> Self
pub fn add(self, name: &'a str, val: DockerFieldType<'a>) -> Self
pub fn comment(self, cmt: &'a str) -> Self
pub fn from(self, from: &'a str) -> Self
pub fn from_alias(self, alias: &'a str, from: &'a str) -> Self
pub fn run(self, from: &'a str) -> Self
pub fn cmd(self, args: &'a [&'a str]) -> Self
pub fn label(self, labels: &'a [(&'a str, &'a str)]) -> Self
pub fn expose(self, port: i32) -> Self
pub fn expose_protocal(self, port: i32, prot: &'a str) -> Self
pub fn env(self, vals: &'a [(&'a str, &'a str)]) -> Self
pub fn workdir(self, dir: &'a str) -> Self
pub fn copy(self, src: &'a str, dest: &'a str) -> Self
pub fn copy_from(self, from: &'a str, src: &'a str, dest: &'a str) -> Self
pub fn volume(self, vols: &'a [&'a str]) -> Self
pub fn dockerfile(self, f: DockerFile<'a>) -> Self
pub fn entrypoint(self, args: &'a [&'a str]) -> Self
pub fn newline(self) -> Self
pub fn newlines(self, ammount: i32) -> Self
pub fn to_string(&self) -> String
Trait Implementations§
Source§impl<'a> Default for DockerFile<'a>
impl<'a> Default for DockerFile<'a>
Source§impl<'a> From<DockerFile<'a>> for DockerFieldType<'a>
impl<'a> From<DockerFile<'a>> for DockerFieldType<'a>
Source§fn from(value: DockerFile<'a>) -> Self
fn from(value: DockerFile<'a>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> Freeze for DockerFile<'a>
impl<'a> RefUnwindSafe for DockerFile<'a>
impl<'a> Send for DockerFile<'a>
impl<'a> Sync for DockerFile<'a>
impl<'a> Unpin for DockerFile<'a>
impl<'a> UnwindSafe for DockerFile<'a>
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