artifact

package
v0.0.0-...-35d34bf Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NodePackageConfigSimple

type NodePackageConfigSimple struct {
	Name         string            `json:"name"`
	Version      string            `json:"version"`
	Dependencies map[string]string `json:"dependencies"`
}

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

Jump to

Keyboard shortcuts

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