Documentation
¶
Overview ¶
Package facts gathers what installable_condition expressions are evaluated against: built-in facts about this machine and the ones admin scripts in the conditions directory print. See site/src/content/docs/guides/conditions.md. It is separate from pkg/conditions so makecatalogs can check expressions without the Windows fact code.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Collect ¶
func Collect(dir string, refresh bool) conditions.Facts
Collect returns this machine's facts. Built-in facts are gathered every call and override admin facts of the same name, so a script cannot spoof them. refresh runs the admin scripts in dir again; otherwise the admin facts from the last refresh are reused, so a self-service list call does not run scripts. The first call runs them either way.
Types ¶
This section is empty.