pub enum BuildConfig {
Context(String),
Config {Show 24 fields
context: String,
dockerfile: Option<String>,
dockerfile_inline: Option<String>,
args: EnvVars,
target: Option<String>,
cache_from: Vec<String>,
cache_to: Vec<String>,
labels: Labels,
shm_size: Option<String>,
network: Option<String>,
platforms: Vec<String>,
additional_contexts: HashMap<String, String>,
no_cache: Option<bool>,
pull: Option<bool>,
extra_hosts: Vec<String>,
tags: Vec<String>,
privileged: Option<bool>,
ssh: Vec<String>,
secrets: Vec<String>,
ulimits: IndexMap<String, UlimitConfig>,
isolation: Option<String>,
entitlements: Vec<String>,
provenance: Option<Value>,
sbom: Option<bool>,
},
}Expand description
Compose build: directive — either a bare context path or a full build-config block.
Variants§
Implementations§
Source§impl BuildConfig
impl BuildConfig
pub fn context(&self) -> &str
pub fn dockerfile(&self) -> Option<&str>
pub fn args(&self) -> EnvVars
pub fn target(&self) -> Option<&str>
pub fn no_cache(&self) -> bool
pub fn pull(&self) -> bool
pub fn shm_size(&self) -> Option<&str>
pub fn extra_hosts(&self) -> &[String]
pub fn cache_from(&self) -> &[String]
pub fn dockerfile_inline(&self) -> Option<&str>
Sourcepub fn secrets(&self) -> &[String]
pub fn secrets(&self) -> &[String]
build.secrets — names of top-level secrets exposed to the build.
Sourcepub fn additional_contexts(&self) -> Vec<(String, String)>
pub fn additional_contexts(&self) -> Vec<(String, String)>
build.additional_contexts — named extra build contexts (name -> value).
Trait Implementations§
Source§impl Clone for BuildConfig
impl Clone for BuildConfig
Source§fn clone(&self) -> BuildConfig
fn clone(&self) -> BuildConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BuildConfig
impl Debug for BuildConfig
Source§impl<'de> Deserialize<'de> for BuildConfig
impl<'de> Deserialize<'de> for BuildConfig
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for BuildConfig
impl RefUnwindSafe for BuildConfig
impl Send for BuildConfig
impl Sync for BuildConfig
impl Unpin for BuildConfig
impl UnsafeUnpin for BuildConfig
impl UnwindSafe for BuildConfig
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