Documentation
¶
Overview ¶
Package hostinfo answers questions about the host environment that Tailscale is running on.
Index ¶
Constants ¶
Variables ¶
This section is empty.
Functions ¶
func DisabledEtcAptSource ¶ added in v1.18.0
func DisabledEtcAptSource() bool
DisabledEtcAptSource reports whether Ubuntu (or similar) has disabled the /etc/apt/sources.list.d/tailscale.list file contents upon upgrade to a new release of the distro.
func GetOSVersion ¶ added in v1.16.1
func GetOSVersion() string
GetOSVersion returns the OSVersion of current host if available.
func IsSELinuxEnforcing ¶ added in v1.44.0
func IsSELinuxEnforcing() bool
IsSELinuxEnforcing reports whether SELinux is in "Enforcing" mode.
func SetApp ¶ added in v1.38.0
func SetApp(v string)
SetApp sets the app type for the app. It is used by tsnet to specify what app is using it such as "golinks" and "k8s-operator".
func SetDeviceModel ¶ added in v1.14.0
func SetDeviceModel(model string)
SetDeviceModel sets the device model for use in Hostinfo updates.
func SetPackage ¶ added in v1.16.0
func SetPackage(v string)
SetPackage sets the packaging type for the app.
As of 2022-03-25, this is used by Android ("nogoogle" for the F-Droid build) and tsnet (set to "tsnet").
func SetPushDeviceToken ¶ added in v1.38.0
func SetPushDeviceToken(token string)
SetPushDeviceToken sets the device token for use in Hostinfo updates.