Documentation ¶
Index ¶
- type ProcessServer
- func (ps *ProcessServer) Exec(ctx context.Context, path string, args ...string) (uuid.UUID, error)
- func (ps *ProcessServer) GetProcessInfo(ctx context.Context, processID uuid.UUID) (rex.ProcessInfo, error)
- func (ps *ProcessServer) Kill(ctx context.Context, processID uuid.UUID, signal int) error
- func (ps *ProcessServer) ListProcessInfo(ctx context.Context) ([]rex.ProcessInfo, error)
- func (ps *ProcessServer) Read(ctx context.Context, processID uuid.UUID, target rex.OutputStream) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProcessServer ¶
type ProcessServer struct {
// contains filtered or unexported fields
}
ProcessServer implements rex.Service in the Linux environment
func NewServer ¶
func NewServer(dataDir string) *ProcessServer
NewServer creates a ProcessServer which is a concrete implementation of rex.Server.
func (*ProcessServer) GetProcessInfo ¶
func (ps *ProcessServer) GetProcessInfo(ctx context.Context, processID uuid.UUID) (rex.ProcessInfo, error)
GetProcessInfo returns the process info corresponding to the givne processID
func (*ProcessServer) ListProcessInfo ¶
func (ps *ProcessServer) ListProcessInfo(ctx context.Context) ([]rex.ProcessInfo, error)
ListProcessInfo returs a list of all processes that have ever been successfully Exec'd into the system, sorted by their creation time (newest first).
Click to show internal directories.
Click to hide internal directories.