Documentation ¶
Overview ¶
Package interactive provides a way to run an interactive shell in a task.
Index ¶
Constants ¶
View Source
const ( MsgStdin = 1 MsgResize = 2 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Interactive ¶
func New ¶
func New(port uint16, cmd CreateInteractiveProcess, ctx context.Context) (it *Interactive, err error)
func (*Interactive) Handler ¶
func (it *Interactive) Handler(w http.ResponseWriter, r *http.Request)
func (*Interactive) ListenAndServe ¶
func (it *Interactive) ListenAndServe(ctx context.Context) error
type InteractiveJob ¶
type InteractiveJob struct {
// contains filtered or unexported fields
}
func CreateInteractiveJob ¶
func CreateInteractiveJob(createCmd CreateInteractiveProcess, conn *websocket.Conn, ctx context.Context) (itj *InteractiveJob, err error)
func (*InteractiveJob) Terminate ¶
func (itj *InteractiveJob) Terminate() (err error)
Click to show internal directories.
Click to hide internal directories.