DockerRegistrySpec Class — spring-boot Architecture
Architecture documentation for the DockerRegistrySpec class in DockerSpec.java from the spring-boot codebase.
Entity Profile
Relationship Graph
Source Code
build-plugin/spring-boot-gradle-plugin/src/main/java/org/springframework/boot/gradle/tasks/bundling/DockerSpec.java lines 178–250
public abstract static class DockerRegistrySpec {
/**
* Returns the username to use when authenticating to the Docker registry.
* @return the registry username
*/
@Input
@Optional
public abstract Property<String> getUsername();
/**
* Returns the password to use when authenticating to the Docker registry.
* @return the registry password
*/
@Input
@Optional
public abstract Property<String> getPassword();
/**
* Returns the Docker registry URL.
* @return the registry URL
*/
@Input
@Optional
public abstract Property<String> getUrl();
/**
* Returns the email address associated with the Docker registry username.
* @return the registry email address
*/
@Input
@Optional
public abstract Property<String> getEmail();
/**
* Returns the identity token to use when authenticating to the Docker registry.
* @return the registry identity token
*/
@Input
@Optional
public abstract Property<String> getToken();
boolean hasEmptyAuth() {
return nonePresent(getUsername(), getPassword(), getUrl(), getEmail(), getToken());
}
private boolean nonePresent(Property<?>... properties) {
for (Property<?> property : properties) {
if (property.isPresent()) {
return false;
}
}
return true;
}
boolean hasUserAuth() {
return allPresent(getUsername(), getPassword());
}
private boolean allPresent(Property<?>... properties) {
for (Property<?> property : properties) {
if (!property.isPresent()) {
return false;
}
}
return true;
}
boolean hasTokenAuth() {
return getToken().isPresent();
}
}
Domain
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free