Skip to main content

Module secret

Module secret 

Source
Expand description

Configuration-secret storage and resolution helpers.

Secrets may come from files or inline configuration. The storage type does not redact output or erase memory when dropped.

Re-exportsยง

use std::fs::read_to_string; ๐Ÿ”’
use std::path::Path; ๐Ÿ”’
use crate::error; ๐Ÿ”’
use crate::error; ๐Ÿ”’
use crate::smallstr::SmallString; ๐Ÿ”’

Functionsยง

is_set
Whether a secret is configured at all.
resolve
Resolves a configured secret from a file or an inline value.

Type Aliasesยง

Secret
Owned string used for secret configuration values.