package internal
import "tailscale.com/util/syspolicy/internal"
Package internal contains miscellaneous functions and types that are internal to the syspolicy packages.
Index ¶
- Variables
- func EqualJSONForTest(tb testenv.TB, j1, j2 jsontext.Value) (s1, s2 string, equal bool)
- func OS() string
Variables ¶
var Init lazy.DeferredInit
Init facilitates deferred invocation of initializers.
OSForTesting is the operating system override used for testing. It follows the same naming convention as version.OS.
Functions ¶
func EqualJSONForTest ¶
EqualJSONForTest compares the JSON in j1 and j2 for semantic equality. It returns "", "", true if j1 and j2 are equal. Otherwise, it returns indented versions of j1 and j2 and false.
func OS ¶
func OS() string
OS is like version.OS, but supports a test hook.
Source Files ¶
internal.go
Directories ¶
Path | Synopsis |
---|---|
util/syspolicy/internal/loggerx | Package loggerx provides logging functions to the rest of the syspolicy packages. |
util/syspolicy/internal/metrics | Package metrics provides logging and reporting for policy settings and scopes. |
- Version
- v1.84.0 (latest)
- Published
- May 21, 2025
- Platform
- linux/amd64
- Imports
- 5 packages
- Last checked
- 1 day ago –
Tools for package owners.