public static class RegistryClient.Factory extends Object
RegistryClients.| Modifier and Type | Method and Description |
|---|---|
RegistryClient |
newRegistryClient()
Creates a new
RegistryClient. |
RegistryClient.Factory |
setAllowInsecureRegistries(boolean allowInsecureRegistries)
Sets whether or not to allow insecure registries (ignoring certificate validation failure or
communicating over HTTP if all else fail).
|
RegistryClient.Factory |
setAuthorization(Authorization authorization)
Sets the authentication credentials to use to authenticate with the registry.
|
RegistryClient.Factory |
setUserAgentSuffix(String userAgentSuffix)
Sets a suffix to append to
User-Agent headers. |
public RegistryClient.Factory setAllowInsecureRegistries(boolean allowInsecureRegistries)
allowInsecureRegistries - if true, insecure connections will be allowedpublic RegistryClient.Factory setAuthorization(@Nullable Authorization authorization)
authorization - the Authorization to access the registry/repositorypublic RegistryClient.Factory setUserAgentSuffix(@Nullable String userAgentSuffix)
User-Agent headers.userAgentSuffix - the suffix to appendpublic RegistryClient newRegistryClient()
RegistryClient.RegistryClientCopyright © 2019. All rights reserved.