[−][src]Struct dkregistry::v2::Config
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
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,