exec

package
v0.1.51 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2025 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Session

type Session struct {
	ID         string
	Reader     *bufio.Reader
	Conn       *net.Conn
	ClientConn *websocket.Conn
	// contains filtered or unexported fields
}

func Create

func Create(c context.Context, cancel context.CancelFunc, clientConn *websocket.Conn, container platforms.IContainer, command []string, interactive bool) (*Session, error)

func (*Session) Exec

func (s *Session) Exec() error

func (*Session) Output

func (s *Session) Output(container platforms.IContainer) (types.ExecResult, error)

Jump to

Keyboard shortcuts

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