process

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Process

type Process struct {
	Cmd     *exec.Cmd
	Name    string
	Command string
	State   State
}

func (*Process) Stop

func (p *Process) Stop(force bool)

func (*Process) UpdateState

func (p *Process) UpdateState()

type State

type State uint8
const (
	Idle State = iota
	Failed
	Running
	Stopped
	Finished
)

func (State) String

func (i State) String() string

type Table

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

func NewTable

func NewTable(logsDir string, entries []baxsfile.Entry) *Table

func (*Table) Ps

func (t *Table) Ps() []ipc.PsResult

func (*Table) Start

func (t *Table) Start(name string) error

func (*Table) StartAll

func (t *Table) StartAll() error

try starting all procs, if one of them fails to start => exit

func (*Table) Stop

func (t *Table) Stop(name string, force bool) error

func (*Table) StopAll

func (t *Table) StopAll(force bool)

func (*Table) Wait

func (t *Table) Wait()

Jump to

Keyboard shortcuts

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