Documentation ¶
Index ¶
- Constants
- func CmdFromString(cmdString string) (*exec.Cmd, error)
- func StartHeartbeat(conn net.Conn)
- type Controller
- func (c *Controller) AcceptConnection(conn net.Conn) error
- func (c *Controller) CloseSock() error
- func (c *Controller) InitSock() error
- func (c *Controller) LaunchProc(cmdString string) error
- func (c *Controller) ProcList() *[]Proc
- func (c *Controller) ReattachProc(pid int) error
- func (c *Controller) SignalProc(pid int, signal os.Signal) error
- func (c *Controller) Start() error
- type Proc
- type Wrapper
Constants ¶
View Source
const SIGCHECK = syscall.Signal(0x0)
View Source
const SIGRQFB = syscall.Signal(0x1f)
View Source
const SockAddr = "/tmp/spm/controller.sock"
Variables ¶
This section is empty.
Functions ¶
func StartHeartbeat ¶
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func (*Controller) AcceptConnection ¶
func (c *Controller) AcceptConnection(conn net.Conn) error
func (*Controller) CloseSock ¶
func (c *Controller) CloseSock() error
func (*Controller) InitSock ¶
func (c *Controller) InitSock() error
func (*Controller) LaunchProc ¶
func (c *Controller) LaunchProc(cmdString string) error
func (*Controller) ProcList ¶
func (c *Controller) ProcList() *[]Proc
func (*Controller) ReattachProc ¶
func (c *Controller) ReattachProc(pid int) error
func (*Controller) SignalProc ¶
func (c *Controller) SignalProc(pid int, signal os.Signal) error
func (*Controller) Start ¶
func (c *Controller) Start() error
type Wrapper ¶
type Wrapper struct {
// contains filtered or unexported fields
}
func NewWrapper ¶
func (*Wrapper) ReadStdout ¶
func (*Wrapper) WriteStdin ¶
Click to show internal directories.
Click to hide internal directories.