Package nl.lexemmens.podman.enumeration
Enum PullPolicy
- java.lang.Object
-
- java.lang.Enum<PullPolicy>
-
- nl.lexemmens.podman.enumeration.PullPolicy
-
- All Implemented Interfaces:
Serializable,Comparable<PullPolicy>
public enum PullPolicy extends Enum<PullPolicy>
Defines the pullpolicy of the built image's manifest and configuration data. Recognised values include oci and docker.- See Also:
- Manual of podman build
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALWAYSAlways pull the image and throw an error if the pull fails.FALSEMISSINGOnly pull the image when it does not exist in the local containers storage.NEVERNever pull the image but use the one from the local containers storage.NEWERPull if the image on the registry is newer than the one in the local containers storage.TRUE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetValue()Returns the selected pullpolicystatic PullPolicyvalueOf(String name)Returns the enum constant of this type with the specified name.static PullPolicy[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ALWAYS
public static final PullPolicy ALWAYS
Always pull the image and throw an error if the pull fails.
-
TRUE
public static final PullPolicy TRUE
-
MISSING
public static final PullPolicy MISSING
Only pull the image when it does not exist in the local containers storage. Throw an error if no image is found and the pull fails.
-
NEVER
public static final PullPolicy NEVER
Never pull the image but use the one from the local containers storage. Throw an error when no image is found.
-
FALSE
public static final PullPolicy FALSE
-
NEWER
public static final PullPolicy NEWER
Pull if the image on the registry is newer than the one in the local containers storage. An image is considered to be newer when the digests are different. Comparing the time stamps is prone to errors. Pull errors are suppressed if a local image was found.
-
-
Method Detail
-
values
public static PullPolicy[] 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 (PullPolicy c : PullPolicy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PullPolicy 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
-
getValue
public String getValue()
Returns the selected pullpolicy- Returns:
- the selected pullpolicy
-
-