Struct dagger_sdk::ContainerExportOptsBuilder
source · pub struct ContainerExportOptsBuilder { /* private fields */ }Expand description
Builder for ContainerExportOpts.
Implementations§
source§impl ContainerExportOptsBuilder
impl ContainerExportOptsBuilder
sourcepub fn forced_compression<VALUE: Into<ImageLayerCompression>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn forced_compression<VALUE: Into<ImageLayerCompression>>( &mut self, value: VALUE ) -> &mut Self
Force each layer of the exported image to use the specified compression algorithm. If this is unset, then if a layer already has a compressed blob in the engine’s cache, that will be used (this can result in a mix of compression algorithms for different layers). If this is unset and a layer has no compressed blob in the engine’s cache, then it will be compressed using Gzip.
sourcepub fn media_types<VALUE: Into<ImageMediaTypes>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn media_types<VALUE: Into<ImageMediaTypes>>( &mut self, value: VALUE ) -> &mut Self
Use the specified media types for the exported image’s layers. Defaults to OCI, which is largely compatible with most recent container runtimes, but Docker may be needed for older runtimes without OCI support.
sourcepub fn platform_variants<VALUE: Into<Vec<ContainerId>>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn platform_variants<VALUE: Into<Vec<ContainerId>>>( &mut self, value: VALUE ) -> &mut Self
Identifiers for other platform specific containers. Used for multi-platform image.
sourcepub fn build(
&self
) -> Result<ContainerExportOpts, ContainerExportOptsBuilderError>
pub fn build( &self ) -> Result<ContainerExportOpts, ContainerExportOptsBuilderError>
Trait Implementations§
source§impl Clone for ContainerExportOptsBuilder
impl Clone for ContainerExportOptsBuilder
source§fn clone(&self) -> ContainerExportOptsBuilder
fn clone(&self) -> ContainerExportOptsBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl RefUnwindSafe for ContainerExportOptsBuilder
impl Send for ContainerExportOptsBuilder
impl Sync for ContainerExportOptsBuilder
impl Unpin for ContainerExportOptsBuilder
impl UnwindSafe for ContainerExportOptsBuilder
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