tailscale.comtailscale.com/util/syspolicy/internal Index | Files | Directories

package internal

import "tailscale.com/util/syspolicy/internal"

Package internal contains miscellaneous functions and types that are internal to the syspolicy packages.

Index

Variables

var Init lazy.DeferredInit

Init facilitates deferred invocation of initializers.

var OSForTesting lazy.SyncValue[string]

OSForTesting is the operating system override used for testing. It follows the same naming convention as version.OS.

Functions

func EqualJSONForTest

func EqualJSONForTest(tb testenv.TB, j1, j2 jsontext.Value) (s1, s2 string, equal bool)

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

PathSynopsis
util/syspolicy/internal/loggerxPackage loggerx provides logging functions to the rest of the syspolicy packages.
util/syspolicy/internal/metricsPackage 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.