LifecycleHandler

data class LifecycleHandler(val exec: ExecAction? = null, val httpGet: HTTPGetAction? = null, val sleep: SleepAction? = null, val tcpSocket: TCPSocketAction? = null)

LifecycleHandler defines a specific action that should be taken in a lifecycle hook. One and only one of the fields, except TCPSocket must be specified.

Constructors

Link copied to clipboard
constructor(exec: ExecAction? = null, httpGet: HTTPGetAction? = null, sleep: SleepAction? = null, tcpSocket: TCPSocketAction? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val exec: ExecAction? = null

Exec specifies a command to execute in the container.

Link copied to clipboard
val httpGet: HTTPGetAction? = null

HTTPGet specifies an HTTP GET request to perform.

Link copied to clipboard
val sleep: SleepAction? = null

Sleep represents a duration that the container should sleep.

Link copied to clipboard

Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept for backward compatibility. There is no validation of this field and lifecycle hooks will fail at runtime when it is specified.