attach

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 14, 2026 License: Apache-2.0 Imports: 14 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 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

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 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.

Jump to

Keyboard shortcuts

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