Package org.mandas.docker.client.auth
Interface RegistryAuthSupplier
- All Known Implementing Classes:
ConfigFileRegistryAuthSupplier,ContainerRegistryAuthSupplier,FixedRegistryAuthSupplier,MultiRegistryAuthSupplier
public interface RegistryAuthSupplier
-
Method Summary
Modifier and TypeMethodDescriptionReturns a RegistryAuth object that works with a given registry's API [e.g.Authentication info to pass in the X-Registry-Config header when building an image.Returns a RegistryAuth object that is valid for a Docker Swarm context [i.e.
-
Method Details
-
authFor
Returns a RegistryAuth object that works with a given registry's API [e.g. GCR].- Parameters:
imageName-- Returns:
- the RegistryAuth to use when working with the image, or else
nullif no authentication info applies for this image - Throws:
DockerException
-
authForSwarm
Returns a RegistryAuth object that is valid for a Docker Swarm context [i.e. not tied to specific image]. It's unnecessary if it's not planned to use this AuthSupplier to pull images for Swarm.- Returns:
- the RegistryAuth to use in Swarn, or else
nullfor no authentication info - Throws:
DockerException
-
authForBuild
Authentication info to pass in the X-Registry-Config header when building an image.- Returns:
- the registry configs
- Throws:
DockerException
-