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 opens the socket via the on-host `sb` binary using syscall.Exec, so TTY/signal handling falls through to sb directly. 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 MockExecKey ¶
type MockExecKey struct{}
MockExecKey is used to inject a mock execFn via context in tests, so the real syscall.Exec (which would replace the test binary) is bypassed.
Click to show internal directories.
Click to hide internal directories.