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
pub struct Client {
    pub(crate) podman_base_url: &'static str,
    socket_path: String,
}

impl Client {
    pub fn new(socket_path: &str) -> Self {
        Self {
            podman_base_url: "http://d/v5.0.0",
            socket_path: socket_path.to_owned(),
        }
    }

    pub fn socket_path(&self) -> &str {
        &self.socket_path
    }
}