podman-client 0.0.2

A native Rust client for the Podman REST API over Unix sockets
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use podman_client::{client::Client, models::podman::secrets::remove::SecretRemoveOptions};
use users::get_current_username;

#[tokio::main]
async fn main() {
    println!(
        "Running example 'secret_remove' on user {:?}",
        get_current_username().unwrap()
    );
    let client = Client::new("/run/user/1000/podman/podman.sock");
    let secret_remove = client
        .secret_remove(SecretRemoveOptions {
            name: "my_secret",
            ..Default::default()
        })
        .await;
    println!("{:#?}", secret_remove);
}