Documentation
¶
Overview ¶
Package attach implements the `kuke attach` thin sbsh client subcommand. The daemon validates the target's Attachable gate and returns the host path of the per-container sbsh control socket; this subcommand drives the interactive attach loop in-process via sbsh's pkg/attach library, so kuke needs no on-host `sb` binary. Bytes never traverse kukeond's RPC.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAttachCmd ¶
NewAttachCmd builds the `kuke attach` cobra command.
Types ¶
type MockControllerKey ¶
type MockControllerKey struct{}
MockControllerKey is used to inject a mock kukeonv1.Client via context in tests.
type MockRunKey ¶ added in v0.3.0
type MockRunKey struct{}
MockRunKey is used to inject a mock runFn via context in tests, so the real pkg/attach.Run (which would open a TTY and connect to a real control socket) is bypassed.