pub struct AgentImage { /* private fields */ }Expand description
The description and artifacts needed to build a pipette disk image for a VM.
Implementations§
Source§impl AgentImage
impl AgentImage
Sourcepub fn new(os_flavor: OsFlavor) -> Self
pub fn new(os_flavor: OsFlavor) -> Self
Resolves the artifacts needed to build a disk image for a VM.
Sourcepub fn with_pipette(
self,
resolver: &ArtifactResolver<'_>,
arch: MachineArch,
) -> Self
pub fn with_pipette( self, resolver: &ArtifactResolver<'_>, arch: MachineArch, ) -> Self
Adds the appropriate pipette binary to the image
Sourcepub fn contains_pipette(&self) -> bool
pub fn contains_pipette(&self) -> bool
Check if the image contains pipette
Sourcepub fn add_file(&mut self, name: &str, artifact: ResolvedArtifact)
pub fn add_file(&mut self, name: &str, artifact: ResolvedArtifact)
Adds an extra file to the disk image.
Sourcepub fn build(&self) -> Result<Option<NamedTempFile>>
pub fn build(&self) -> Result<Option<NamedTempFile>>
Builds a disk image containing pipette and any files needed for the guest VM to run pipette.
Auto Trait Implementations§
impl Freeze for AgentImage
impl RefUnwindSafe for AgentImage
impl Send for AgentImage
impl Sync for AgentImage
impl Unpin for AgentImage
impl UnwindSafe for AgentImage
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