Trait Manifests

Source
pub trait Manifests:
    HasConfig
    + Send
    + Sync {
    // Provided methods
    fn manifest_delete_libpod<'a>(
        &'a self,
        name: &'a str,
    ) -> Pin<Box<dyn Future<Output = Result<LibpodImagesRemoveReport, Error>> + Send + 'a>> { ... }
    fn manifest_create_libpod<'a>(
        &'a self,
        name: &'a str,
        params: Option<ManifestCreateLibpod<'a>>,
        options: ManifestModifyOptions,
    ) -> Pin<Box<dyn Future<Output = Result<IdResponse, Error>> + Send + 'a>> { ... }
    fn manifest_modify_libpod<'a>(
        &'a self,
        name: &'a str,
        params: Option<ManifestModifyLibpod>,
        options: ManifestModifyOptions,
    ) -> Pin<Box<dyn Future<Output = Result<ManifestModifyReport, Error>> + Send + 'a>> { ... }
    fn manifest_add_libpod<'a>(
        &'a self,
        name: &'a str,
        options: ManifestAddOptions,
    ) -> Pin<Box<dyn Future<Output = Result<IdResponse, Error>> + Send + 'a>> { ... }
    fn manifest_exists_libpod<'a>(
        &'a self,
        name: &'a str,
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>> { ... }
    fn manifest_inspect_libpod<'a>(
        &'a self,
        name: &'a str,
        params: Option<ManifestInspectLibpod>,
    ) -> Pin<Box<dyn Future<Output = Result<Schema2ListPublic, Error>> + Send + 'a>> { ... }
    fn manifest_push_v_3_libpod<'a>(
        &'a self,
        name: &'a str,
        params: Option<ManifestPushV3Libpod<'a>>,
    ) -> Pin<Box<dyn Future<Output = Result<IdResponse, Error>> + Send + 'a>> { ... }
    fn manifest_push_libpod<'a>(
        &'a self,
        name: &'a str,
        destination: &'a str,
        params: Option<ManifestPushLibpod<'a>>,
    ) -> Pin<Box<dyn Future<Output = Result<IdResponse, Error>> + Send + 'a>> { ... }
}
Available on crate feature v5 only.

Provided Methods§

Source

fn manifest_delete_libpod<'a>( &'a self, name: &'a str, ) -> Pin<Box<dyn Future<Output = Result<LibpodImagesRemoveReport, Error>> + Send + 'a>>

DELETE /libpod/manifests/{name}

Delete manifest list

Delete named manifest list

As of v4.0.0

Source

fn manifest_create_libpod<'a>( &'a self, name: &'a str, params: Option<ManifestCreateLibpod<'a>>, options: ManifestModifyOptions, ) -> Pin<Box<dyn Future<Output = Result<IdResponse, Error>> + Send + 'a>>

POST /libpod/manifests/{name}

Create

Create a manifest list

Source

fn manifest_modify_libpod<'a>( &'a self, name: &'a str, params: Option<ManifestModifyLibpod>, options: ManifestModifyOptions, ) -> Pin<Box<dyn Future<Output = Result<ManifestModifyReport, Error>> + Send + 'a>>

GET /libpod/manifests/{name}

Modify manifest list

Add/Remove an image(s) to a manifest list

Note: operations are not atomic when multiple Images are provided.

As of v4.0.0

Source

fn manifest_add_libpod<'a>( &'a self, name: &'a str, options: ManifestAddOptions, ) -> Pin<Box<dyn Future<Output = Result<IdResponse, Error>> + Send + 'a>>

POST /libpod/manifests/{name}/add

Add image

Add an image to a manifest list

Deprecated: As of 4.0.0 use ManifestModifyLibpod instead

Source

fn manifest_exists_libpod<'a>( &'a self, name: &'a str, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>

GET /libpod/manifests/{name}/exists

Exists

Check if manifest list exists

Note: There is no contract that the manifest list will exist for a follow-on operation

Source

fn manifest_inspect_libpod<'a>( &'a self, name: &'a str, params: Option<ManifestInspectLibpod>, ) -> Pin<Box<dyn Future<Output = Result<Schema2ListPublic, Error>> + Send + 'a>>

GET /libpod/manifests/{name}/json

Inspect

Display attributes of given manifest list

Source

fn manifest_push_v_3_libpod<'a>( &'a self, name: &'a str, params: Option<ManifestPushV3Libpod<'a>>, ) -> Pin<Box<dyn Future<Output = Result<IdResponse, Error>> + Send + 'a>>

POST /libpod/manifests/{name}/push

Push manifest to registry

Push a manifest list or image index to a registry

Deprecated: As of 4.0.0 use ManifestPushLibpod instead

Source

fn manifest_push_libpod<'a>( &'a self, name: &'a str, destination: &'a str, params: Option<ManifestPushLibpod<'a>>, ) -> Pin<Box<dyn Future<Output = Result<IdResponse, Error>> + Send + 'a>>

POST /libpod/manifests/{name}/registry/{destination}

Push manifest list to registry

Push a manifest list or image index to the named registry

As of v4.0.0

Implementors§