Function dkregistry::get_credentials [] [src]

pub fn get_credentials<T: Read>(
    reader: T,
    index: &str
) -> Result<(Option<String>, Option<String>)>

Get registry credentials from a JSON config reader.

This is a convenience decoder for docker-client credentials typically stored under ~/.docker/config.json.