process

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2023 License: Apache-2.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Process

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

func NewProcess

func NewProcess(id string) *Process

func (*Process) Attach

func (p *Process) Attach(processIO garden.ProcessIO)

func (*Process) ID

func (p *Process) ID() string

func (*Process) SetTTY

func (p *Process) SetTTY(tty garden.TTYSpec) error

func (*Process) Signal

func (p *Process) Signal(signal garden.Signal) error

func (*Process) Start

func (p *Process) Start(cmd *exec.Cmd, tty *garden.TTYSpec) error

func (*Process) Wait

func (p *Process) Wait() (int, error)

type ProcessTracker

type ProcessTracker interface {
	Run(string, *exec.Cmd, garden.ProcessIO, *garden.TTYSpec) (garden.Process, error)
	Attach(string, garden.ProcessIO) (garden.Process, error)
	Restore(processID string)
	ActiveProcesses() []garden.Process
	Stop(kill bool) error
}

func NewTracker

func NewTracker() ProcessTracker

type UnknownProcessError

type UnknownProcessError struct {
	ProcessID string
}

func (UnknownProcessError) Error

func (e UnknownProcessError) Error() string

Jump to

Keyboard shortcuts

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