Struct podman_api::api::Manifests
source · pub struct Manifests { /* private fields */ }
Expand description
Handle for Podman Manifests.
Implementations§
source§impl Manifests
impl Manifests
sourcepub async fn create(&self, opts: &ManifestCreateOpts) -> Result<Manifest>
pub async fn create(&self, opts: &ManifestCreateOpts) -> Result<Manifest>
Create a manifest list.
Examples:
async {
use podman_api::Podman;
use podman_api::opts::ManifestCreateOpts;
let podman = Podman::unix("/run/user/1000/podman/podman.sock");
match podman
.manifests()
.create(
&ManifestCreateOpts::builder("my-manifest")
.images(["alpine"])
.build(),
)
.await
{
Ok(manifest) => { /* do something with the manifest */ }
Err(e) => eprintln!("{}", e),
}
};