Documentation ¶
Index ¶
- func PidFromFile(pidFilePath string, timeout time.Duration) (int, error)
- type LinkSignaller
- type MsgSender
- type NamespacedSignaller
- type Process
- func (p *Process) Attach(processIO garden.ProcessIO)
- func (p *Process) ID() string
- func (p *Process) Link()
- func (p *Process) SetTTY(tty garden.TTYSpec) error
- func (p *Process) Signal(signal garden.Signal) error
- func (p *Process) Spawn(cmd *exec.Cmd, tty *garden.TTYSpec) (ready, active chan error)
- func (p *Process) Wait() (int, error)
- type ProcessTracker
- type SignalRequest
- type Signaller
- type UnknownProcessError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type LinkSignaller ¶
type LinkSignaller struct { }
func (*LinkSignaller) Signal ¶
func (e *LinkSignaller) Signal(signal *SignalRequest) error
type NamespacedSignaller ¶
type NamespacedSignaller struct { Runner command_runner.CommandRunner ContainerPath string Logger lager.Logger Timeout time.Duration }
Kills a process by invoking ./bin/wsh in the given container path using a PID read from the given pidFile
func (*NamespacedSignaller) Signal ¶
func (n *NamespacedSignaller) Signal(request *SignalRequest) error
type Process ¶
type Process struct {
// contains filtered or unexported fields
}
func NewProcess ¶
func NewProcess( logger lager.Logger, id string, containerPath string, runner command_runner.CommandRunner, signaller Signaller, ) *Process
type ProcessTracker ¶
type ProcessTracker interface { Run(processID string, cmd *exec.Cmd, io garden.ProcessIO, tty *garden.TTYSpec, signaller Signaller) (garden.Process, error) Attach(processID string, io garden.ProcessIO) (garden.Process, error) Restore(processID string, signaller Signaller) ActiveProcesses() []garden.Process }
func New ¶
func New(logger lager.Logger, containerPath string, runner command_runner.CommandRunner) ProcessTracker
type Signaller ¶
type Signaller interface {
Signal(*SignalRequest) error
}
type UnknownProcessError ¶
type UnknownProcessError struct {
ProcessID string
}
func (UnknownProcessError) Error ¶
func (e UnknownProcessError) Error() string
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
This file was generated by counterfeiter
|
This file was generated by counterfeiter |
This file was generated by counterfeiter
|
This file was generated by counterfeiter |
This file was generated by counterfeiter
|
This file was generated by counterfeiter |
Click to show internal directories.
Click to hide internal directories.