Skip to main content

ImageHandler

Trait ImageHandler 

Source
pub trait ImageHandler {
    // Required methods
    fn handle_list<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        ctx: &'life1 EnvelopeContext,
        request_id: u64,
        data: &'life2 ImageFilter,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<ImageInfo>>> + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn handle_status<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        ctx: &'life1 EnvelopeContext,
        request_id: u64,
        data: &'life2 ImageStatusRequest,
    ) -> Pin<Box<dyn Future<Output = Result<ImageStatusResult>> + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn handle_pull<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        ctx: &'life1 EnvelopeContext,
        request_id: u64,
        data: &'life2 PullImageRequest,
    ) -> Pin<Box<dyn Future<Output = Result<String>> + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn handle_remove<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        ctx: &'life1 EnvelopeContext,
        request_id: u64,
        data: &'life2 ImageSpec,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn handle_fs_info<'life0, 'life1, 'async_trait>(
        &'life0 self,
        ctx: &'life1 EnvelopeContext,
        request_id: u64,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<FilesystemUsage>>> + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

Generated handler trait for the image scope.

Required Methods§

Source

fn handle_list<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, ctx: &'life1 EnvelopeContext, request_id: u64, data: &'life2 ImageFilter, ) -> Pin<Box<dyn Future<Output = Result<Vec<ImageInfo>>> + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

List container images matching optional filter

Source

fn handle_status<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, ctx: &'life1 EnvelopeContext, request_id: u64, data: &'life2 ImageStatusRequest, ) -> Pin<Box<dyn Future<Output = Result<ImageStatusResult>> + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Get status of a container image

Source

fn handle_pull<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, ctx: &'life1 EnvelopeContext, request_id: u64, data: &'life2 PullImageRequest, ) -> Pin<Box<dyn Future<Output = Result<String>> + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Pull a container image from a registry

Source

fn handle_remove<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, ctx: &'life1 EnvelopeContext, request_id: u64, data: &'life2 ImageSpec, ) -> Pin<Box<dyn Future<Output = Result<()>> + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Remove a container image

Source

fn handle_fs_info<'life0, 'life1, 'async_trait>( &'life0 self, ctx: &'life1 EnvelopeContext, request_id: u64, ) -> Pin<Box<dyn Future<Output = Result<Vec<FilesystemUsage>>> + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Get filesystem usage information for images

Implementors§