pub enum Source {
Local,
DockerHub,
RegistryWithCredentials(RegistryCredentials),
RegistryWithDockerLogin(String),
}
Expand description
Represents the Source
of an Image
.
Variants§
Local
Use the local docker daemon storage.
DockerHub
Retrieve from hub.docker.com, the official registry.
RegistryWithCredentials(RegistryCredentials)
Provide the domain and credentials of the Docker Registry to authenticate with.
RegistryWithDockerLogin(String)
Use the existing credentials docker login
credentials active for the current user,
against the desired registry at the provided address.
This is useful when collaborating across developers with access to the same registry, as they will be required to login with their own credentials to access the image. It may also be useful in a CI circumstance, where you only login once.
Please note that the protocol portion of the address is not supplied. E.g.,
ghcr.io
myregistry.azurecr.io
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Source
impl RefUnwindSafe for Source
impl Send for Source
impl Sync for Source
impl Unpin for Source
impl UnwindSafe for Source
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