Documentation
¶
Overview ¶
Package reset implements `kuke daemon reset`, the lightweight dev-loop teardown for the kukeond cell. It composes stop (with the same SIGTERM → SIGKILL escalation as `kuke daemon stop`) plus delete, then clears the transient kukeond.{sock,pid} files under the socket dir (default /run/kukeon). User-realm data under /opt/kukeon/data/default/** is left untouched so a subsequent `kuke init` can re-bootstrap without wiping user workloads. `--purge-system` additionally removes /opt/kukeon/data/kuke-system for a fully clean re-bootstrap.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewResetCmd ¶
NewResetCmd builds the `kuke daemon reset` cobra command.
Types ¶
type MockClientKey ¶
type MockClientKey struct{}
MockClientKey injects a kukeonv1.Client (typically a fake) via the command context so unit tests can exercise runReset without a real controller.
type MockRunPathKey ¶
type MockRunPathKey struct{}
MockRunPathKey overrides the run-path the --purge-system step removes /opt/kukeon/kuke-system from. Tests use this to point at a tmpdir so the cleanup never touches the real /opt/kukeon.
type MockSocketDirKey ¶
type MockSocketDirKey struct{}
MockSocketDirKey overrides the directory containing kukeond.{sock,pid}. Tests use this to point the cleanup step at a tmpdir; production reads the path from KUKEOND_SOCKET viper config.