Documentation
¶
Overview ¶
Package celllifecycle contains shared cell lifecycle orchestration used by the CLI and the local web interface. kukeond remains authoritative for the actual state transitions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PhaseError ¶
PhaseError preserves the daemon error while identifying the restart step. Error deliberately returns the original message so the CLI keeps its existing error text while HTTP clients can present the failure stage.
func (*PhaseError) Error ¶
func (e *PhaseError) Error() string
func (*PhaseError) Unwrap ¶
func (e *PhaseError) Unwrap() error
type RestartResult ¶
RestartResult describes the path taken by the CLI-compatible restart. StoppedFirst is true only when a Ready cell completed StopCell before the start step. Cell is the daemon's result from the final successful RPC.
func Restart ¶
func Restart(ctx context.Context, client kukeonv1.Client, doc v1beta1.CellDoc) (RestartResult, error)
Restart matches `kuke restart` for one fully scoped cell. Ready cells are stopped and then started. Stopped, Exited, Error, Failed, and Degraded cells go directly through StartCell so kukeond can choose the appropriate recovery path. Pending and Unknown cells are rejected.