pub struct Builder { /* private fields */ }
Expand description
Build Artifact
Implementations§
source§impl Builder
impl Builder
pub fn new(path: PathBuf, image_name: ImageName) -> Result<Self>
sourcepub fn append_files(&mut self, ps: &[impl AsRef<Path>]) -> Result<()>
pub fn append_files(&mut self, ps: &[impl AsRef<Path>]) -> Result<()>
Append a files as a layer
sourcepub fn append_dir_all(&mut self, path: &Path) -> Result<()>
pub fn append_dir_all(&mut self, path: &Path) -> Result<()>
Append directory as a layer
pub fn build(self) -> Result<OciArtifact<OciArchive>>
Auto Trait Implementations§
impl Freeze for Builder
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
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