LifecycleHandlerPatch class

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

LifecycleHandlerPatch({Input<ExecActionPatch>? exec, Input<HTTPGetActionPatch>? httpGet, Input<SleepActionPatch>? sleep, 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.
const
LifecycleHandlerPatch.fromMap(Map<String, dynamic> map)
factory

Properties

exec → Input<ExecActionPatch>?
Exec specifies a command to execute in the container.
final
hashCode → int
The hash code for this object.
no setterinherited
httpGet → Input<HTTPGetActionPatch>?
HTTPGet specifies an HTTP GET request to perform.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sleep → Input<SleepActionPatch>?
Sleep represents a duration that the container should sleep.
final
tcpSocket → Input<TCPSocketActionPatch>?
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.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited