Struct dkregistry::v2::Config
[−]
[src]
pub struct Config { /* fields omitted */ }
Configuration for a Client
.
Methods
impl Config
[src]
fn default(handle: &Handle) -> Self
Initialize Config
with default values.
fn registry(self, reg: &str) -> Self
Set registry service to use (vhost or IP).
fn insecure_registry(self, insecure: bool) -> Self
Whether to use an insecure HTTP connection to the registry.
fn user_agent(self, user_agent: Option<String>) -> Self
Set the user-agent to be used for registry authentication.
fn username(self, user: Option<String>) -> Self
Set the username to be used for registry authentication.
fn password(self, password: Option<String>) -> Self
Set the password to be used for registry authentication.
fn read_credentials<T: Read>(self, reader: T) -> Self
Read credentials from a JSON config file
fn build(self) -> Result<Client>
Return a Client
to interact with a v2 registry.