Documentation ¶
Overview ¶
Package hostinfo answers questions about the host environment that Tailscale is running on.
Index ¶
- Constants
- func DisabledEtcAptSource() bool
- func FirewallMode() string
- func GetOSVersion() string
- func IsSELinuxEnforcing() bool
- func New() *tailcfg.Hostinfo
- func SetApp(v string)
- func SetDeviceModel(model string)
- func SetFirewallMode(v string)
- func SetOSVersion(v string)
- func SetPackage(v string)
- type EnvType
Constants ¶
const ( KNative = EnvType("kn") AWSLambda = EnvType("lm") Heroku = EnvType("hr") AzureAppService = EnvType("az") AWSFargate = EnvType("fg") FlyDotIo = EnvType("fly") Kubernetes = EnvType("k8s") DockerDesktop = EnvType("dde") Replit = EnvType("repl") HomeAssistantAddOn = EnvType("haao") )
Variables ¶
This section is empty.
Functions ¶
func DisabledEtcAptSource ¶
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 FirewallMode ¶
func FirewallMode() string
FirewallMode returns the firewall mode for the app. It is empty if unset.
func GetOSVersion ¶
func GetOSVersion() string
GetOSVersion returns the OSVersion of current host if available.
func IsSELinuxEnforcing ¶
func IsSELinuxEnforcing() bool
IsSELinuxEnforcing reports whether SELinux is in "Enforcing" mode.
func SetApp ¶
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 ¶
func SetDeviceModel(model string)
SetDeviceModel sets the device model for use in Hostinfo updates.
func SetFirewallMode ¶
func SetFirewallMode(v string)
SetFirewallMode sets the firewall mode for the app.
func SetPackage ¶
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").