pub struct BuildOptions {
pub timeout: Duration,
pub cpus: u32,
pub memory: String,
pub cache_size: String,
pub max_context: u64,
}Expand description
Limits for a build. BuildOptions::default reads ISB_BUILD_TIMEOUT,
ISB_BUILD_CPUS, ISB_BUILD_MEMORY and ISB_BUILD_CACHE_SIZE.
Fields§
§timeout: DurationThe whole build, sandbox creation to push (default 30 minutes).
cpus: u32The build sandbox’s CPUs (default 2) and memory (default 4GiB), counted against the org’s quota.
memory: String§cache_size: StringA VM build’s cache disk (default 20GiB); a container’s cache volume is a directory, bounded by BuildKit’s own garbage collection.
max_context: u64Largest source tree copied in (default 2 GiB).
Trait Implementations§
Source§impl Clone for BuildOptions
impl Clone for BuildOptions
Source§impl Debug for BuildOptions
impl Debug for BuildOptions
Auto Trait Implementations§
impl Freeze for BuildOptions
impl RefUnwindSafe for BuildOptions
impl Send for BuildOptions
impl Sync for BuildOptions
impl Unpin for BuildOptions
impl UnsafeUnpin for BuildOptions
impl UnwindSafe for BuildOptions
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