Name

@Serializable
enum Name : Enum<RestartPolicy.Name>
  • Empty string means not to restart - no Do not automatically restart - always Always restart - unless-stopped Restart always except when the user has manually stopped the container - on-failure Restart only when the container exit code is non-zero

Values: EMPTY,NO,ALWAYS,UNLESS_STOPPED,ON_FAILURE

Entries

Link copied to clipboard
@SerialName(value = "")
EMPTY
Link copied to clipboard
@SerialName(value = "no")
NO
Link copied to clipboard
@SerialName(value = "always")
ALWAYS
Link copied to clipboard
@SerialName(value = "unless-stopped")
UNLESS_STOPPED
Link copied to clipboard
@SerialName(value = "on-failure")
ON_FAILURE

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard

Functions

Link copied to clipboard

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.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.