interactive

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleStream

func HandleStream(ctx context.Context, interactive bool, iStream Stream, exitCount int, printWorkloadID bool) (int, error)

HandleStream pumps an attach stream, optionally putting the terminal in raw mode.

Types

type Stream

type Stream struct {
	Send func(cmd []byte) error
	Recv func() (*corepb.AttachWorkloadMessage, error)
}

Stream carries the send and recv half of an attach stream.

func NewStream

func NewStream(send func(cmd []byte) error, recv func() (*corepb.AttachWorkloadMessage, error)) Stream

NewStream serializes send, which grpc forbids calling from several goroutines.

Jump to

Keyboard shortcuts

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