Documentation
¶
Overview ¶
Package vmconsole attaches a local terminal to a live VM serial stream.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Run ¶
func Run(ctx context.Context, client machine.HypervisorServiceClient, name string, input *os.File, output io.Writer) (result error)
Run attaches to name and forwards raw bytes until Ctrl-], stdin EOF, cancellation, or a remote failure. It never sends a guest power or shutdown request. Input must be a pollable file descriptor with no other readers. Output must not block forever. Run joins its workers and restores terminal settings before returning, including on SIGTERM and SIGHUP. Ctrl-C is forwarded to the guest in raw mode.
Types ¶
This section is empty.