attach

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

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

func NewAttachCmd() *cobra.Command

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.

Jump to

Keyboard shortcuts

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