Documentation
¶
Overview ¶
Package logs implements `kuke daemon logs`, a shortcut that prints the kukeond container's stdout/stderr stream. The kukeond cell coordinates (realm=kuke-system, space=kukeon, stack=kukeon, cell=kukeond, container= kukeond) are static — set by `kuke init` and centralised in internal/consts — so this verb fills them in and dispatches through the same tail loop `kuke log` uses. The command runs in-process for the same reason the rest of `kuke daemon` does: it operates on the daemon cell and must keep working when the daemon socket is not reachable.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewLogsCmd ¶
NewLogsCmd builds the `kuke daemon logs` cobra command.
Types ¶
type MockTailKey ¶
type MockTailKey struct{}
MockTailKey injects a logcmd.TailFn via context for tests so the real follow loop (which would block on a real file) can be bypassed.