Skip to main content

apply

Function apply 

Source
pub fn apply(
    env: &mut HashMap<String, String>,
    endpoint: &Endpoint,
    config_dir: &str,
    resolve_vault: &dyn Fn(&str) -> Option<String>,
)
Expand description

Takes the account’s login out of env and gives the CLI the endpoint and the keys the agent’s own environment asked for. resolve_vault turns an entry id into its value, or None when the agent may not have it (the key is then left out: never a fallback to another key).