Class DockerSpec.DockerRegistrySpec
java.lang.Object
org.springframework.boot.gradle.tasks.bundling.DockerSpec.DockerRegistrySpec
- Enclosing class:
- DockerSpec
Encapsulates Docker registry authentication configuration options.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetEmail()
Returns the email address associated with the Docker registry username.Returns the password to use when authenticating to the Docker registry.getToken()
Returns the identity token to use when authenticating to the Docker registry.getUrl()
Returns the Docker registry URL.Returns the username to use when authenticating to the Docker registry.void
Sets the email address associated with the Docker registry username.void
setPassword
(String password) Sets the password to use when authenticating to the Docker registry.void
Sets the identity token to use when authenticating to the Docker registry.void
Sets the Docker registry URL.void
setUsername
(String username) Sets the username to use when authenticating to the Docker registry.
-
Constructor Details
-
DockerRegistrySpec
public DockerRegistrySpec()
-
-
Method Details
-
getUsername
Returns the username to use when authenticating to the Docker registry.- Returns:
- the registry username
-
setUsername
Sets the username to use when authenticating to the Docker registry.- Parameters:
username
- the registry username
-
getPassword
Returns the password to use when authenticating to the Docker registry.- Returns:
- the registry password
-
setPassword
Sets the password to use when authenticating to the Docker registry.- Parameters:
password
- the registry username
-
getUrl
Returns the Docker registry URL.- Returns:
- the registry URL
-
setUrl
Sets the Docker registry URL.- Parameters:
url
- the registry URL
-
getEmail
Returns the email address associated with the Docker registry username.- Returns:
- the registry email address
-
setEmail
Sets the email address associated with the Docker registry username.- Parameters:
email
- the registry email address
-
getToken
Returns the identity token to use when authenticating to the Docker registry.- Returns:
- the registry identity token
-
setToken
Sets the identity token to use when authenticating to the Docker registry.- Parameters:
token
- the registry identity token
-