[][src]Struct docker_generate::DockerFile

pub struct DockerFile<'a> { /* fields omitted */ }

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]

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]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.