LifecycleHandler 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

LifecycleHandler({Input<ExecAction>? exec, Input<HTTPGetAction>? httpGet, Input<SleepAction>? sleep, Input<TCPSocketAction>? tcpSocket})
Creates a new LifecycleHandler. 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
LifecycleHandler.fromMap(Map<String, dynamic> map)
factory

Properties

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