podman-rest-client 0.13.0

Interface for querying the podman REST API. Supports connections over SSH.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use serde::{Deserialize, Serialize};
#[derive(Default, Debug, Serialize, Deserialize)]
/// LogConfig describes the logging characteristics for a container
pub struct LogConfigLibpod {
    /// LogDriver is the container's log driver.
    /// Optional.
    pub driver: Option<String>,
    /// A set of options to accompany the log driver.
    /// Optional.
    pub options: Option<std::collections::HashMap<String, String>>,
    /// LogPath is the path the container's logs will be stored at.
    /// Only available if LogDriver is set to "json-file" or "k8s-file".
    /// Optional.
    pub path: Option<String>,
    /// Size is the maximum size of the log file
    /// Optional.
    pub size: Option<i64>,
}