public static final class ImageRegistry.Builder
extends java.lang.Object
ImageRegistry
.Constructor and Description |
---|
Builder(java.lang.String hostname)
Constructor with parameters for the required properties of
ImageRegistry . |
Modifier and Type | Method and Description |
---|---|
ImageRegistry |
build() |
ImageRegistry.Builder |
setCertificateChain(java.lang.String certificateChain)
PEM-encoded CA chain which is used to verify x509 certificates received from the
server.
|
ImageRegistry.Builder |
setPassword(char[] password)
The password for the user.
|
ImageRegistry.Builder |
setPort(java.lang.Long port)
Port number of the container image registry.
|
ImageRegistry.Builder |
setUsername(java.lang.String username)
A username to be used for username/password authentication with this registry.
|
public Builder(java.lang.String hostname)
ImageRegistry
.public ImageRegistry.Builder setPort(java.lang.Long port)
null
, defaults to 443.port
- New value for the property.public ImageRegistry.Builder setUsername(java.lang.String username)
null
then the username/password authentication will not be used.username
- New value for the property.public ImageRegistry.Builder setPassword(char[] password)
null
then the password is unset, only for write operations. For read
operations (GET and LIST), this value is always nil.password
- New value for the property.public ImageRegistry.Builder setCertificateChain(java.lang.String certificateChain)
null
then the verification will be skipped.certificateChain
- New value for the property.public ImageRegistry build()