Documentation
¶
Overview ¶
Package bugreport collects the evidence a rotari bug report needs: the build, the host and filesystem, configuration, the supervisor log, and the state files of a run, with secrets removed. It reads state and runs only read-only scheduler commands.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Options ¶
type Options struct {
Version string
ExecutableSHA256 string
ExecutableModified time.Time
BaseDir string
// Project and RunID select the run to collect; either may be empty.
Project string
RunID string
// JobIDs selects jobs of the run; empty selects its jobs that did not
// succeed.
JobIDs []string
Output OutputMode
// Redact replaces paths and hostnames. Secrets are removed regardless.
Redact bool
// Facts are files the caller produced, such as `rotari info --json`.
Facts []File
Environ []string
// WebLogPath and RegisteredBaseDirs are master-directory evidence. When
// resolution fails, WebEvidenceError explains why neither is available.
WebLogPath string
RegisteredBaseDirs []string
RegisteredBaseDirsKnown bool
RegisteredBaseDirsError error
WebEvidenceError error
Now func() time.Time
}
Options select what Collect gathers.
type OutputMode ¶
type OutputMode int
OutputMode says how much of each included job's own output to collect.
const ( // OutputTail collects the last outputTailBytes of each output file. OutputTail OutputMode = iota // OutputFull collects each output file up to outputFullBytes. OutputFull // OutputNone collects no job output. OutputNone )