facts

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2026 License: Apache-2.0 Imports: 21 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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.

func Dir

func Dir(appDataPath string) string

Dir is the admin conditions directory under the app data path. It inherits the app data ACL, so only SYSTEM and Administrators can add scripts to it.

Types

This section is empty.

Jump to

Keyboard shortcuts

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