Struct podman_api::api::Secret
source · pub struct Secret { /* private fields */ }
Expand description
Interface for accessing and manipulating Podman Secret.
Implementations§
source§impl Secret
impl Secret
sourcepub async fn inspect(&self) -> Result<SecretInfoReport>
pub async fn inspect(&self) -> Result<SecretInfoReport>
Inspect this secret returning detailed information about it.
Examples:
async {
use podman_api::Podman;
let podman = Podman::unix("/run/user/1000/podman/podman.sock");
match podman.secrets().get("79c93f220e3e").inspect().await {
Ok(info) => println!("{:?}", info),
Err(e) => eprintln!("{}", e),
}
};