pub struct BuildSpec {
pub context_path: String,
pub runtime: Option<String>,
pub build_args: HashMap<String, String>,
pub target: Option<String>,
pub tags: Vec<String>,
pub no_cache: bool,
pub push: bool,
}Expand description
Specification sent to the daemon’s POST /api/v1/build/json endpoint to
start an image build against a server-side context path.
Mirrors zlayer_api::handlers::build::BuildRequestWithContext on the
wire; the server-side type is Deserialize-only so we carry a
Serialize mirror here.
Fields§
§context_path: StringPath to the build context on the daemon host. Must already exist.
runtime: Option<String>Runtime template name (e.g. "node20") to use instead of a Dockerfile.
build_args: HashMap<String, String>Build arguments (Dockerfile ARG values).
target: Option<String>Target stage for multi-stage Dockerfiles.
Tags to apply to the resulting image.
no_cache: boolDisable the buildah layer cache.
push: boolPush the resulting image to its registry after the build succeeds.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BuildSpec
impl RefUnwindSafe for BuildSpec
impl Send for BuildSpec
impl Sync for BuildSpec
impl Unpin for BuildSpec
impl UnsafeUnpin for BuildSpec
impl UnwindSafe for BuildSpec
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