Package org.cdk8s.plus23
Enum HostPathVolumeType
- java.lang.Object
-
- java.lang.Enum<HostPathVolumeType>
-
- org.cdk8s.plus23.HostPathVolumeType
-
- All Implemented Interfaces:
Serializable,Comparable<HostPathVolumeType>
@Generated(value="jsii-pacmak/1.61.0 (build abf4039)", date="2022-07-06T20:17:23.591Z") @Stability(Stable) public enum HostPathVolumeType extends Enum<HostPathVolumeType>
Host path types.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BLOCK_DEVICEA block device must exist at the given path.CHAR_DEVICEA character device must exist at the given path.DEFAULTEmpty string (default) is for backward compatibility, which means that no checks will be performed before mounting the hostPath volume.DIRECTORYA directory must exist at the given path.DIRECTORY_OR_CREATEIf nothing exists at the given path, an empty directory will be created there as needed with permission set to 0755, having the same group and ownership with Kubelet.FILEA file must exist at the given path.FILE_OR_CREATEIf nothing exists at the given path, an empty file will be created there as needed with permission set to 0644, having the same group and ownership with Kubelet.SOCKETA UNIX socket must exist at the given path.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static HostPathVolumeTypevalueOf(String name)Returns the enum constant of this type with the specified name.static HostPathVolumeType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DEFAULT
@Stability(Stable) public static final HostPathVolumeType DEFAULT
Empty string (default) is for backward compatibility, which means that no checks will be performed before mounting the hostPath volume.
-
DIRECTORY_OR_CREATE
@Stability(Stable) public static final HostPathVolumeType DIRECTORY_OR_CREATE
If nothing exists at the given path, an empty directory will be created there as needed with permission set to 0755, having the same group and ownership with Kubelet.
-
DIRECTORY
@Stability(Stable) public static final HostPathVolumeType DIRECTORY
A directory must exist at the given path.
-
FILE_OR_CREATE
@Stability(Stable) public static final HostPathVolumeType FILE_OR_CREATE
If nothing exists at the given path, an empty file will be created there as needed with permission set to 0644, having the same group and ownership with Kubelet.
-
FILE
@Stability(Stable) public static final HostPathVolumeType FILE
A file must exist at the given path.
-
SOCKET
@Stability(Stable) public static final HostPathVolumeType SOCKET
A UNIX socket must exist at the given path.
-
CHAR_DEVICE
@Stability(Stable) public static final HostPathVolumeType CHAR_DEVICE
A character device must exist at the given path.
-
BLOCK_DEVICE
@Stability(Stable) public static final HostPathVolumeType BLOCK_DEVICE
A block device must exist at the given path.
-
-
Method Detail
-
values
public static HostPathVolumeType[] 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 (HostPathVolumeType c : HostPathVolumeType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static HostPathVolumeType 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
-
-