[][src]Struct dkregistry::v2::Config

pub struct Config { /* fields omitted */ }

Configuration for a Client.

Implementations

impl Config[src]

pub fn default() -> Self[src]

Initialize Config with default values.

pub fn registry(self, reg: &str) -> Self[src]

Set registry service to use (vhost or IP).

pub fn insecure_registry(self, insecure: bool) -> Self[src]

Whether to use an insecure HTTP connection to the registry.

pub fn accept_invalid_certs(self, accept_invalid_certs: bool) -> Self[src]

Set whether or not to accept invalid certificates.

pub fn user_agent(self, user_agent: Option<String>) -> Self[src]

Set the user-agent to be used for registry authentication.

pub fn username(self, user: Option<String>) -> Self[src]

Set the username to be used for registry authentication.

pub fn password(self, password: Option<String>) -> Self[src]

Set the password to be used for registry authentication.

pub fn read_credentials<T: Read>(self, reader: T) -> Self[src]

Read credentials from a JSON config file

pub fn build(self) -> Result<Client>[src]

Return a Client to interact with a v2 registry.

Trait Implementations

impl Debug for Config[src]

Auto Trait Implementations

impl RefUnwindSafe for Config

impl Send for Config

impl Sync for Config

impl Unpin for Config

impl UnwindSafe for Config

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.