pub struct DockerfileImage {
pub dockerfile: String,
pub context_files: Vec<AddLocalDirFile>,
pub build_args: HashMap<String, String>,
pub context_dirs: Vec<DockerfileContextDir>,
pub context_symlinks: Vec<DockerfileContextSymlink>,
pub pinned_from: Vec<DockerfileFromResolution>,
}Expand description
Your own Dockerfile built into an image, with its resolved build context.
Fields§
§dockerfile: StringFull Dockerfile text.
context_files: Vec<AddLocalDirFile>Content manifest of the build context the Dockerfile’s COPY and
ADD instructions read from; empty builds without a context.
build_args: HashMap<String, String>Values for the Dockerfile’s ARG instructions, like --build-arg.
context_dirs: Vec<DockerfileContextDir>Every directory in the context with its mode, so COPY of an empty
directory works and directory modes survive like they do in a docker
build.
context_symlinks: Vec<DockerfileContextSymlink>Symbolic links in the context, carried as links the way a docker build context carries them.
pinned_from: Vec<DockerfileFromResolution>The version each external image reference resolved to when this spec was built, filled in on the spec a completed build returns. A spec carrying these keeps naming the image its build produced, even after a forced build moves what the references mean for your organization; a forced build looks every reference up again instead. Empty means the build looks the references up.
Trait Implementations§
Source§impl Clone for DockerfileImage
impl Clone for DockerfileImage
Source§fn clone(&self) -> DockerfileImage
fn clone(&self) -> DockerfileImage
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DockerfileImage
impl Debug for DockerfileImage
Source§impl Default for DockerfileImage
impl Default for DockerfileImage
Source§fn default() -> DockerfileImage
fn default() -> DockerfileImage
Source§impl<'de> Deserialize<'de> for DockerfileImagewhere
DockerfileImage: Default,
impl<'de> Deserialize<'de> for DockerfileImagewhere
DockerfileImage: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for DockerfileImage
impl PartialEq for DockerfileImage
Source§impl Serialize for DockerfileImage
impl Serialize for DockerfileImage
impl StructuralPartialEq for DockerfileImage
Auto Trait Implementations§
impl Freeze for DockerfileImage
impl RefUnwindSafe for DockerfileImage
impl Send for DockerfileImage
impl Sync for DockerfileImage
impl Unpin for DockerfileImage
impl UnsafeUnpin for DockerfileImage
impl UnwindSafe for DockerfileImage
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request