spm

package
v0.0.0-...-d0e5aed Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

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 CmdFromString

func CmdFromString(cmdString string) (*exec.Cmd, error)

func StartHeartbeat

func StartHeartbeat(conn net.Conn)

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 Proc

type Proc struct {
	Pid  int
	Conn net.Conn
}

type Wrapper

type Wrapper struct {
	// contains filtered or unexported fields
}

func NewWrapper

func NewWrapper(cmdString string) (*Wrapper, error)

func (*Wrapper) ReadStdout

func (w *Wrapper) ReadStdout() (string, error)

func (*Wrapper) ReadSterr

func (w *Wrapper) ReadSterr() (string, error)

func (*Wrapper) Run

func (w *Wrapper) Run() error

func (*Wrapper) Start

func (w *Wrapper) Start() error

func (*Wrapper) Wait

func (w *Wrapper) Wait() error

func (*Wrapper) WriteStdin

func (w *Wrapper) WriteStdin(input string) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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