Documentation
¶
Overview ¶
Package discover runs the host discovery pipeline end to end:
sensors -> evidence graph -> derived capability
and returns the graph. Turning the graph into a CBOM is the cbom package's job; this package never touches CycloneDX, and never touches the operating system itself: sensors do, through sense.Env.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrivilegeNote ¶
PrivilegeNote is the warning for a run below the highest privilege tier: full results may need Administrator (Windows) or root (Linux). It is empty at admin. When the run counted locations it could not read, it says how many.
Types ¶
type Options ¶
type Options struct {
FS fs.FS // the host's root filesystem
OS string // the host's OS family: "linux" or "windows"
Tier string // the privilege tier of this run: "user" or "admin"
HostName string // the host name to record
// Live says FS is this machine's own root, so sensors that ask the operating
// system may run. It must be false for any other root.
Live bool
// RedactHost replaces the host name with a stable label derived from the
// platform machine id (ADR-0009). The run fails if no machine id is available,
// rather than emit an unstable label.
RedactHost bool
Enabled []string
Disabled []string
Timeout time.Duration
}
Options configures a discovery run.
type Result ¶
type Result struct {
Graph *evidence.Graph
Run sense.Result
// PrivilegeNote is the warning to show when the run had less than the highest
// privilege tier; empty at admin.
PrivilegeNote string
}
Result is the outcome of a discovery run.