Documentation
¶
Overview ¶
Package uninstaller performs a complete one-command uninstall of vmflow: it removes the native service, deletes the binary, and purges owned config, logs, owned certificate caches, and the self-update cache. External TLS certificate and key files referenced by config are deliberately preserved.
The flow is plan → confirm → execute. Plan probes the system and returns the ordered list of items to remove (service first, the running binary last). Confirm asks for interactive consent. Execute removes everything, tolerating already-absent paths so the command is idempotent.
Style follows internal/service and internal/updater: error-return, progress streamed to an io.Writer, no logging inside the package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Confirm ¶
Confirm prompts on w and reads a yes/no answer from r. Returns true only for an explicit y/yes.
Types ¶
type Item ¶
type Item struct {
Path string // filesystem path; empty for the service item
Kind string // service, binary, file, directory, owned config, or stats file
Note string // human-readable description shown in the plan
Self bool // marks the running binary; removed last
}
Item describes one artifact the uninstall removes.