pub struct BuildRequest {Show 27 fields
pub request_id: String,
pub context_dir: String,
pub dockerfile_paths: Vec<String>,
pub tags: Vec<String>,
pub platforms: Vec<String>,
pub build_args: HashMap<String, String>,
pub secrets: Vec<String>,
pub ssh: Vec<String>,
pub target_stage: String,
pub host_network: bool,
pub cache_from: String,
pub cache_to: String,
pub no_cache: bool,
pub squash: bool,
pub layers: bool,
pub format: String,
pub pull_policy: String,
pub labels: Vec<String>,
pub annotations: Vec<String>,
pub add_hosts: Vec<String>,
pub envs: Vec<String>,
pub shm_size: String,
pub ulimits: Vec<String>,
pub volumes: Vec<String>,
pub source_date_epoch: i64,
pub rewrite_timestamp: bool,
pub isolation: String,
}Expand description
One Build request maps to one imagebuildah.BuildDockerfiles invocation
on the server. Fields mirror the subset of define.BuildOptions ZLayer
uses, plus enough additional knobs to cover the existing CLI surface.
Fields§
§request_id: StringOptional client-supplied request ID. Sidecar echoes back via events for correlation; if empty, sidecar mints a UUID and reports via the first event.
context_dir: StringAbsolute path to the build context directory (sidecar-visible). When the sidecar and client are on the same host this is the directory path; for remote sidecars, the client uploads via a future ContextStream RPC (not in this version of the schema).
dockerfile_paths: Vec<String>One or more Dockerfile paths (relative to context_dir or absolute).
Image tags to apply. First tag is Output; the rest are
AdditionalTags.
platforms: Vec<String>Target platforms (e.g. “linux/amd64”, “linux/arm64”).
build_args: HashMap<String, String>ARG values.
secrets: Vec<String>Secret specs in buildah –secret form: “id=mysecret,src=/path” or “id=mysecret,env=MY_VAR”.
ssh: Vec<String>SSH specs in buildah –ssh form: “default” or “
target_stage: StringMulti-stage target. Empty string means “build all stages.”
host_network: boolUse host networking. Maps to buildah –network=host.
cache_from: StringCache import / export references.
cache_to: String§no_cache: boolBuildah behavior toggles.
squash: bool§layers: bool§format: StringOutput format. Empty => buildah default. Allowed: “oci”, “docker”.
pull_policy: StringPull policy. Empty => buildah default. Allowed: “always”, “missing”, “never”, “ifnewer”.
labels: Vec<String>Additional labels in “key=value” form (mirrors –label).
annotations: Vec<String>Additional annotations in “key=value” form.
add_hosts: Vec<String>Hosts to add to /etc/hosts in “name:ip” form.
envs: Vec<String>Per-build env overrides (–env).
shm_size: StringShared memory size, e.g. “64m”. Empty => buildah default.
ulimits: Vec<String>ulimits, e.g. “nofile=1024:2048”.
volumes: Vec<String>Bind mounts (–volume) in “src:dst[:opts]” form.
source_date_epoch: i64Reproducibility knobs.
seconds; 0 means unset
rewrite_timestamp: bool§isolation: StringBuildah isolation backend. One of: “” — sidecar picks the safe default (chroot when rootless, oci when uid 0). “default” — buildah’s default for the host (= oci on Linux). “oci” — runc/crun. “rootless” — runc-rootless. “chroot” — simple chroot, no container runtime needed.
Trait Implementations§
Source§impl Clone for BuildRequest
impl Clone for BuildRequest
Source§fn clone(&self) -> BuildRequest
fn clone(&self) -> BuildRequest
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 BuildRequest
impl Debug for BuildRequest
Source§impl Default for BuildRequest
impl Default for BuildRequest
Source§impl Message for BuildRequest
impl Message for BuildRequest
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.Source§impl PartialEq for BuildRequest
impl PartialEq for BuildRequest
Source§fn eq(&self, other: &BuildRequest) -> bool
fn eq(&self, other: &BuildRequest) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BuildRequest
Auto Trait Implementations§
impl Freeze for BuildRequest
impl RefUnwindSafe for BuildRequest
impl Send for BuildRequest
impl Sync for BuildRequest
impl Unpin for BuildRequest
impl UnsafeUnpin for BuildRequest
impl UnwindSafe for BuildRequest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§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