pub struct AuthResolver { /* private fields */ }Expand description
Authentication resolver that converts AuthConfig to oci_client RegistryAuth
Implementations§
Source§impl AuthResolver
impl AuthResolver
Sourcepub fn new(config: AuthConfig) -> Self
pub fn new(config: AuthConfig) -> Self
Create a new authentication resolver
Sourcepub fn resolve(&self, image: &str) -> RegistryAuth
pub fn resolve(&self, image: &str) -> RegistryAuth
Resolve authentication for an image reference
Extracts the registry from the image reference and returns the appropriate
oci_client::secrets::RegistryAuth.
Auto Trait Implementations§
impl Freeze for AuthResolver
impl RefUnwindSafe for AuthResolver
impl Send for AuthResolver
impl Sync for AuthResolver
impl Unpin for AuthResolver
impl UnsafeUnpin for AuthResolver
impl UnwindSafe for AuthResolver
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more