LifecycleHandlerPatch constructor

const LifecycleHandlerPatch({
  1. Input<ExecActionPatch>? exec,
  2. Input<HTTPGetActionPatch>? httpGet,
  3. Input<SleepActionPatch>? sleep,
  4. Input<TCPSocketActionPatch>? tcpSocket,
})

Creates a new LifecycleHandlerPatch. exec Exec specifies a command to execute in the container. httpGet HTTPGet specifies an HTTP GET request to perform. sleep Sleep represents a duration that the container should sleep. tcpSocket 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.

Implementation

const LifecycleHandlerPatch({
  this.exec,
  this.httpGet,
  this.sleep,
  this.tcpSocket,
});