public enum DockerType extends Enum<DockerType> implements HostIpResolver, EnvironmentValidator
Modifier and Type | Method and Description |
---|---|
static Optional<DockerType> |
getFirstValidDockerTypeForEnvironment(Map<String,String> environment) |
String |
resolveIp(String dockerHost) |
void |
validateEnvironmentVariables(Map<String,String> dockerEnvironment)
Validates that the entries in the provided map are valid for the current environment.
|
static DockerType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DockerType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DockerType DAEMON
public static final DockerType REMOTE
public static DockerType[] values()
for (DockerType c : DockerType.values()) System.out.println(c);
public static DockerType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic void validateEnvironmentVariables(Map<String,String> dockerEnvironment)
EnvironmentValidator
validateEnvironmentVariables
in interface EnvironmentValidator
dockerEnvironment
- A map representing the docker environmentpublic String resolveIp(String dockerHost)
resolveIp
in interface HostIpResolver
public static Optional<DockerType> getFirstValidDockerTypeForEnvironment(Map<String,String> environment)
Copyright © 2020 Pivotal Software, Inc.. All rights reserved.