pub struct Dofigen {
pub context: Vec<String>,
pub ignore: Vec<String>,
pub builders: HashMap<String, Stage>,
pub stage: Stage,
pub entrypoint: Vec<String>,
pub cmd: Vec<String>,
pub volume: Vec<String>,
pub expose: Vec<Port>,
pub healthcheck: Option<Healthcheck>,
}
Expand description
Represents the Dockerfile main stage
Fields§
§context: Vec<String>
The context of the Docker build This is used to generate a .dockerignore file
ignore: Vec<String>
The elements to ignore from the build context This is used to generate a .dockerignore file
builders: HashMap<String, Stage>
The builder stages of the Dockerfile
stage: Stage
The runtime stage of the Dockerfile
entrypoint: Vec<String>
The entrypoint of the Dockerfile See https://docs.docker.com/reference/dockerfile/#entrypoint
cmd: Vec<String>
The default command of the Dockerfile See https://docs.docker.com/reference/dockerfile/#cmd
volume: Vec<String>
Create volume mounts See https://docs.docker.com/reference/dockerfile/#volume
expose: Vec<Port>
The ports exposed by the Dockerfile See https://docs.docker.com/reference/dockerfile/#expose
healthcheck: Option<Healthcheck>
The healthcheck of the Dockerfile See https://docs.docker.com/reference/dockerfile/#healthcheck
Implementations§
Trait Implementations§
Source§impl From<DofigenPatch> for Dofigen
impl From<DofigenPatch> for Dofigen
Source§fn from(value: DofigenPatch) -> Self
fn from(value: DofigenPatch) -> Self
Converts to this type from the input type.
Source§impl Patch<DofigenPatch> for Dofigen
impl Patch<DofigenPatch> for Dofigen
Source§fn apply(&mut self, patch: DofigenPatch)
fn apply(&mut self, patch: DofigenPatch)
Apply a patch
Source§fn into_patch(self) -> DofigenPatch
fn into_patch(self) -> DofigenPatch
Returns a patch that when applied turns any struct of the same type into
Self
Source§fn into_patch_by_diff(self, previous_struct: Self) -> DofigenPatch
fn into_patch_by_diff(self, previous_struct: Self) -> DofigenPatch
Returns a patch that when applied turns
previous_struct
into Self
Source§fn new_empty_patch() -> DofigenPatch
fn new_empty_patch() -> DofigenPatch
Get an empty patch instance
impl StructuralPartialEq for Dofigen
Auto Trait Implementations§
impl Freeze for Dofigen
impl RefUnwindSafe for Dofigen
impl Send for Dofigen
impl Sync for Dofigen
impl Unpin for Dofigen
impl UnwindSafe for Dofigen
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