mod git; mod http; mod image; mod local; pub use self::git::GitSource; pub use self::http::HttpSource; pub use self::image::{ImageSource, ResolveMode}; pub use self::local::LocalSource; /// Provide an input for other operations. For example: `FROM` directive in Dockerfile. #[derive(Debug)] pub struct Source; impl Source { pub fn image(name: S) -> ImageSource where S: Into, { ImageSource::new(name) } pub fn git(url: S) -> GitSource where S: Into, { GitSource::new(url) } pub fn local(name: S) -> LocalSource where S: Into, { LocalSource::new(name) } pub fn http(name: S) -> HttpSource where S: Into, { HttpSource::new(name) } }