proc

package
v0.0.0-...-e60c870 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2020 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreatePidFile

func CreatePidFile(name string)

Types

type Process

type Process struct {
	Cmd string
	// contains filtered or unexported fields
}

func NewProcess

func NewProcess(cmd string, args ...string) *Process

func (*Process) FireAndForget

func (p *Process) FireAndForget() error

func (*Process) FireAndWait

func (p *Process) FireAndWait() error

func (*Process) FireAndWaitForOutput

func (p *Process) FireAndWaitForOutput() (string, error)

func (*Process) State

func (p *Process) State() State

func (*Process) Stop

func (p *Process) Stop()

type State

type State string
const (
	NotStarted State = "not_started"
	Running    State = "running"
	Success    State = "success"
	Failed     State = "failed"
)

Jump to

Keyboard shortcuts

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