Package io.fabric8.maven.docker.config
Enum ImagePullPolicy
- java.lang.Object
-
- java.lang.Enum<ImagePullPolicy>
-
- io.fabric8.maven.docker.config.ImagePullPolicy
-
- All Implemented Interfaces:
Serializable,Comparable<ImagePullPolicy>
public enum ImagePullPolicy extends Enum<ImagePullPolicy>
- Since:
- 05.11.17
- Author:
- roland
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AlwaysPull always imagesIfNotPresentPull image only if not presentNeverDon't auto pull images
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ImagePullPolicyfromString(String imagePullPolicy)static ImagePullPolicyvalueOf(String name)Returns the enum constant of this type with the specified name.static ImagePullPolicy[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Always
public static final ImagePullPolicy Always
Pull always images
-
IfNotPresent
public static final ImagePullPolicy IfNotPresent
Pull image only if not present
-
Never
public static final ImagePullPolicy Never
Don't auto pull images
-
-
Method Detail
-
values
public static ImagePullPolicy[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ImagePullPolicy c : ImagePullPolicy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ImagePullPolicy valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
fromString
public static ImagePullPolicy fromString(String imagePullPolicy)
-
-