[−][src]Struct docker_generate::DockerFile
Methods
impl<'a> DockerFile<'a>
[src]
pub fn new() -> Self
[src]
pub fn from_image(from: &'a str) -> Self
[src]
pub fn add(self, name: &'a str, val: DockerFieldType<'a>) -> Self
[src]
pub fn comment(self, cmt: &'a str) -> Self
[src]
pub fn from(self, from: &'a str) -> Self
[src]
pub fn from_alias(self, alias: &'a str, from: &'a str) -> Self
[src]
pub fn run(self, from: &'a str) -> Self
[src]
pub fn cmd(self, args: &'a [&'a str]) -> Self
[src]
pub fn label(self, labels: &'a [(&'a str, &'a str)]) -> Self
[src]
pub fn expose(self, port: i32) -> Self
[src]
pub fn expose_protocal(self, port: i32, prot: &'a str) -> Self
[src]
pub fn env(self, vals: &'a [(&'a str, &'a str)]) -> Self
[src]
pub fn workdir(self, dir: &'a str) -> Self
[src]
pub fn copy(self, src: &'a str, dest: &'a str) -> Self
[src]
pub fn copy_from(self, from: &'a str, src: &'a str, dest: &'a str) -> Self
[src]
pub fn volume(self, vols: &'a [&'a str]) -> Self
[src]
pub fn dockerfile(self, f: DockerFile<'a>) -> Self
[src]
pub fn entrypoint(self, args: &'a [&'a str]) -> Self
[src]
pub fn newline(self) -> Self
[src]
pub fn newlines(self, ammount: i32) -> Self
[src]
pub fn to_string(&self) -> String
[src]
Trait Implementations
impl<'a> Default for DockerFile<'a>
[src]
impl<'a> From<DockerFile<'a>> for DockerFieldType<'a>
[src]
fn from(value: DockerFile<'a>) -> Self
[src]
Auto Trait Implementations
impl<'a> Send for DockerFile<'a>
impl<'a> Sync for DockerFile<'a>
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)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> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,