Struct podman_api::api::Secrets [−][src]
pub struct Secrets<'podman> { /* fields omitted */ }
Expand description
Handle for Podman Secrets.
Implementations
List available secrets.
Examples:
let podman = Podman::unix("/run/user/1000/podman/podman.sock");
match podman.secrets().list().await {
Ok(info) => println!("{:?}", info),
Err(e) => eprintln!("{}", e);
}
Create a new secret.
Examples:
let podman = Podman::unix("/run/user/1000/podman/podman.sock");
match podman.secrets().create().await {
Ok(info) => println!("{:?}", info),
Err(e) => eprintln!("{}", e);
}
Trait Implementations
Auto Trait Implementations
impl<'podman> !RefUnwindSafe for Secrets<'podman>
impl<'podman> !UnwindSafe for Secrets<'podman>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more