Skip to main content

ImageBuilder

Trait ImageBuilder 

Source
pub trait ImageBuilder: Send + Sync {
    // Required methods
    fn build_image<'life0, 'life1, 'async_trait>(
        &'life0 self,
        request: &'life1 ImageBuildRequest,
    ) -> Pin<Box<dyn Future<Output = CiabResult<ImageBuildResult>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn list_images<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = CiabResult<Vec<BuiltImage>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn delete_image<'life0, 'life1, 'async_trait>(
        &'life0 self,
        image_id: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = CiabResult<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn build_status<'life0, 'life1, 'async_trait>(
        &'life0 self,
        build_id: &'life1 Uuid,
    ) -> Pin<Box<dyn Future<Output = CiabResult<ImageBuildStatus>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

Trait for building machine images (e.g., AMIs via Packer).

Required Methods§

Source

fn build_image<'life0, 'life1, 'async_trait>( &'life0 self, request: &'life1 ImageBuildRequest, ) -> Pin<Box<dyn Future<Output = CiabResult<ImageBuildResult>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn list_images<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = CiabResult<Vec<BuiltImage>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn delete_image<'life0, 'life1, 'async_trait>( &'life0 self, image_id: &'life1 str, ) -> Pin<Box<dyn Future<Output = CiabResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn build_status<'life0, 'life1, 'async_trait>( &'life0 self, build_id: &'life1 Uuid, ) -> Pin<Box<dyn Future<Output = CiabResult<ImageBuildStatus>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§