agent

package module
v0.0.0-...-ee278c2 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const StateUnknown = "Unknown"

Variables

This section is empty.

Functions

func Down

func Down(pid int) error

Down termination a process by pid

func Kill

func Kill(pid int) error

Kill kill a process by pid

func Signal

func Signal(pid int, signal int) error

Signal notify a process with signal

func Start

func Start(name string, args []string) (int, error)

Start start a binary with args

Types

type Process

type Process struct {
	Pid        int    `json:"pid"`
	PPid       int    `json:"ppid"`
	Executable string `json:"executable"`
	Path       string `json:"path"`
	State      string `json:"state"`
}

Process a process

func Inspect

func Inspect(pid int) (Process, error)

Inspect inspect a process

func List

func List() ([]Process, error)

List list processes

func (Process) String

func (p Process) String() string

Jump to

Keyboard shortcuts

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