Documentation
¶
Overview ¶
Package runtimeinv inventories language runtime installs (node, python, php, java, go, ruby, deno, bun, dotnet) on disk, independent of how they were installed: version managers, package managers, installers, zips and runtimes bundled inside other apps. Discovered binaries are never executed; versions come from files the install ships, the PE version resource, or the install path.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ScanResult ¶
func ScanResult(ctx context.Context, exec executor.Executor, skipper *tcc.Skipper) *model.RuntimeScanResult
ScanResult runs a scan for the logged-in user and packages it for telemetry.
Types ¶
type Scanner ¶
type Scanner struct {
// contains filtered or unexported fields
}
Scanner discovers runtime installs for the logged-in user and the machine.
func NewScanner ¶
NewScanner returns a scanner for the given user home ("" = resolve from the logged-in user).
func (*Scanner) Scan ¶
func (s *Scanner) Scan(ctx context.Context) (runtimes []model.RuntimeInstall, truncated bool, truncatedRoots []string)
Scan walks all roots and returns the inventory, sorted by runtime then path. truncated reports an incomplete walk. truncatedRoots is non-empty only when every truncation was a per-root budget hit, so installs outside those roots are known to be complete; on a deadline or the global cap it is nil.