Documentation
¶
Overview ¶
Package processowner defines the small lifecycle contract shared by the test client and its platform-specific descendant supervisor.
Index ¶
Constants ¶
const ( MaximumDocumentBytes = 1 << 20 MaximumDeadlineMilliseconds = 3_600_000 MaximumTerminationGraceMilliseconds = 60_000 )
const ( StatusStarted = "started" StatusFinished = "finished" ReasonNatural = "natural" ReasonInterrupt = "interrupt" ReasonStop = "stop" ReasonDeadline = "deadline" ReasonParentLost = "parent_lost" ReasonSpawnFailed = "spawn_failed" )
const ( ControlInterrupt byte = 'i' ControlStop byte = 's' )
Variables ¶
This section is empty.
Functions ¶
func EncodeConfig ¶
func ValidateConfig ¶
func ValidateStatus ¶
Types ¶
type Config ¶
type Config struct {
Executable string `json:"executable"`
Arguments []string `json:"arguments"`
WorkingDirectory string `json:"working_directory"`
Environment []string `json:"environment"`
DeadlineMilliseconds int64 `json:"deadline_milliseconds"`
TerminationGraceMilliseconds int64 `json:"termination_grace_milliseconds"`
}
Config contains only inputs required to launch and retire a process tree. Correlation remains in the ordinary child environment and testrun events.
type Result ¶
type Result struct {
ExitCode *int64 `json:"exit_code,omitempty"`
Signal string `json:"signal,omitempty"`
Reason string `json:"reason"`
Error string `json:"error,omitempty"`
CleanupError string `json:"cleanup_error,omitempty"`
}
Result reports the target's observable terminal state after descendant cleanup has completed. It is diagnostic state, not an authenticated proof.
type StatusDecoder ¶
type StatusDecoder struct {
// contains filtered or unexported fields
}
func NewStatusDecoder ¶
func NewStatusDecoder(reader io.Reader) *StatusDecoder
func (*StatusDecoder) Next ¶
func (decoder *StatusDecoder) Next() (Status, error)
Directories
¶
| Path | Synopsis |
|---|---|
|
Package linuxsubreaper owns one test process tree behind a Linux subreaper.
|
Package linuxsubreaper owns one test process tree behind a Linux subreaper. |
|
Package windowsjob owns one test process tree in a kill-on-close Job Object.
|
Package windowsjob owns one test process tree in a kill-on-close Job Object. |