Package com.spotify.docker.client
Class DockerConfigReader
java.lang.Object
com.spotify.docker.client.DockerConfigReader
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate com.fasterxml.jackson.databind.node.ObjectNode
extractAuthJson
(Path configPath) fromConfig
(Path configPath) Returns all RegistryConfig instances from the configuration file.fromConfig
(Path configPath, String serverAddress) Returns the RegistryAuth for the config file for the given registry server name.fromFirstConfig
(Path configPath) Deprecated.do not use - only exists for backwards compatibility.private RegistryConfigs
parseDockerConfig
(Path configPath) private RegistryAuth
parseDockerConfig
(Path configPath, String serverAddress)
-
Field Details
-
LOG
private static final org.slf4j.Logger LOG -
MAPPER
private static final com.fasterxml.jackson.databind.ObjectMapper MAPPER -
AUTHS_ENTRY
- See Also:
-
CREDS_STORE
- See Also:
-
-
Constructor Details
-
DockerConfigReader
public DockerConfigReader()
-
-
Method Details
-
fromConfig
Returns all RegistryConfig instances from the configuration file.- Throws:
IOException
-
fromConfig
Returns the RegistryAuth for the config file for the given registry server name.- Throws:
IllegalArgumentException
- if the config file does not contain registry auth info for the registryIOException
-
fromFirstConfig
Deprecated.do not use - only exists for backwards compatibility. UsefromConfig(Path)
instead.- Throws:
IOException
-
parseDockerConfig
- Throws:
IOException
-
parseDockerConfig
- Throws:
IOException
-
defaultConfigPath
-
extractAuthJson
private com.fasterxml.jackson.databind.node.ObjectNode extractAuthJson(Path configPath) throws IOException - Throws:
IOException
-