interactive

package
v0.0.0-...-1afc026 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleStream

func HandleStream(interactive bool, iStream Stream, exitCount int, printWorkloadID bool) (code int, err error)

HandleStream will handle a stream with send and recv method with or without interactive mode

Types

type Stream

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

Stream is a wrapper for send and recv method

Jump to

Keyboard shortcuts

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