case class Lifecycle(postStart: Optional[LifecycleHandler] = Optional.Absent, preStop: Optional[LifecycleHandler] = Optional.Absent) extends Product with Serializable
Lifecycle describes actions that the management system should take in response to container lifecycle events. For the PostStart and PreStop lifecycle handlers, management of the container blocks until the action is complete, unless the container process fails, in which case the handler is aborted.
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Lifecycle
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new Lifecycle(postStart: Optional[LifecycleHandler] = Optional.Absent, preStop: Optional[LifecycleHandler] = Optional.Absent)
Value Members
-
def
getPostStart: IO[K8sFailure, LifecycleHandler]
Gets postStart.
Gets postStart.
If the field is not present, fails with com.coralogix.zio.k8s.client.UndefinedField.
-
def
getPreStop: IO[K8sFailure, LifecycleHandler]
Gets preStop.
Gets preStop.
If the field is not present, fails with com.coralogix.zio.k8s.client.UndefinedField.
- val postStart: Optional[LifecycleHandler]
- val preStop: Optional[LifecycleHandler]