reset

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 14, 2026 License: Apache-2.0 Imports: 18 Imported by: 0

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

func NewResetCmd() *cobra.Command

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL