Class DockerSpec.DockerRegistrySpec

java.lang.Object
org.springframework.boot.gradle.tasks.bundling.DockerSpec.DockerRegistrySpec
Enclosing class:
DockerSpec

public static class DockerSpec.DockerRegistrySpec extends Object
Encapsulates Docker registry authentication configuration options.
  • Constructor Details

    • DockerRegistrySpec

      public DockerRegistrySpec()
  • Method Details

    • getUsername

      @Input @Optional public String getUsername()
      Returns the username to use when authenticating to the Docker registry.
      Returns:
      the registry username
    • setUsername

      public void setUsername(String username)
      Sets the username to use when authenticating to the Docker registry.
      Parameters:
      username - the registry username
    • getPassword

      @Input @Optional public String getPassword()
      Returns the password to use when authenticating to the Docker registry.
      Returns:
      the registry password
    • setPassword

      public void setPassword(String password)
      Sets the password to use when authenticating to the Docker registry.
      Parameters:
      password - the registry username
    • getUrl

      @Input @Optional public String getUrl()
      Returns the Docker registry URL.
      Returns:
      the registry URL
    • setUrl

      public void setUrl(String url)
      Sets the Docker registry URL.
      Parameters:
      url - the registry URL
    • getEmail

      @Input @Optional public String getEmail()
      Returns the email address associated with the Docker registry username.
      Returns:
      the registry email address
    • setEmail

      public void setEmail(String email)
      Sets the email address associated with the Docker registry username.
      Parameters:
      email - the registry email address
    • getToken

      @Input @Optional public String getToken()
      Returns the identity token to use when authenticating to the Docker registry.
      Returns:
      the registry identity token
    • setToken

      public void setToken(String token)
      Sets the identity token to use when authenticating to the Docker registry.
      Parameters:
      token - the registry identity token