Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NodePackageConfigSimple ¶
type Processor ¶
type Processor interface { // Current location of the artifacts folder. ArtifactsDir() string // Enumerate all files under a given root (used later on to tell the files // that were created during probing and the existed files appart). GetCurrentPaths(root string, excludes []string) (map[string]struct{}, error) // Create the artifacts folder, preserve some files, etc. PrepareEnv(cmd *command.StartMonitor) error // Dump the creport and the files to the artifacts folder. Process( cmd *command.StartMonitor, mountPoint string, peReport *report.PeMonitorReport, fanReport *report.FanMonitorReport, ptReport *report.PtMonitorReport, ) error // Archives commands.json, creport.json, events.json, sensor.log, etc // to a tar ball. Archive() error }
Needed mostly to be able to mock it in the sensor tests.
func NewProcessor ¶
func NewProcessor(seReport *report.SensorReport, artifactsDirName string, artifactsExtra []string) Processor
Click to show internal directories.
Click to hide internal directories.