Package nl.lexemmens.podman.enumeration
Enum ContainerFormat
- java.lang.Object
-
- java.lang.Enum<ContainerFormat>
-
- nl.lexemmens.podman.enumeration.ContainerFormat
-
- All Implemented Interfaces:
Serializable,Comparable<ContainerFormat>
public enum ContainerFormat extends Enum<ContainerFormat>
Defines the format 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 DOCKERSets the format of the built image's manifest and configuration data to 'docker' (version 2, using schema format 2 for the manifest).OCISets the format of the built image's manifest and configuration data to 'oci' (OCI image-spec v1.0).
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetValue()Returns the selected formatstatic ContainerFormatvalueOf(String name)Returns the enum constant of this type with the specified name.static ContainerFormat[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
OCI
public static final ContainerFormat OCI
Sets the format of the built image's manifest and configuration data to 'oci' (OCI image-spec v1.0). This is the default.
-
DOCKER
public static final ContainerFormat DOCKER
Sets the format of the built image's manifest and configuration data to 'docker' (version 2, using schema format 2 for the manifest).
-
-
Method Detail
-
values
public static ContainerFormat[] 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 (ContainerFormat c : ContainerFormat.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ContainerFormat 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 format- Returns:
- the selected format
-
-