hostinfo

package
v1.16.0 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2021 License: BSD-3-Clause Imports: 16 Imported by: 44

Documentation

Overview

Package hostinfo answers questions about the host environment that Tailscale is running on.

Index

Constants

View Source
const (
	KNative         = EnvType("kn")
	AWSLambda       = EnvType("lm")
	Heroku          = EnvType("hr")
	AzureAppService = EnvType("az")
	AWSFargate      = EnvType("fg")
	FlyDotIo        = EnvType("fly")
)

Variables

This section is empty.

Functions

func New added in v1.14.0

func New() *tailcfg.Hostinfo

New returns a partially populated Hostinfo for the current host.

func SetDeviceModel added in v1.14.0

func SetDeviceModel(model string)

SetDeviceModel sets the device model for use in Hostinfo updates.

func SetOSVersion added in v1.16.0

func SetOSVersion(v string)

SetOSVersion sets the OS version.

func SetPackage added in v1.16.0

func SetPackage(v string)

SetPackage sets the packaging type for the app. This is currently (2021-10-05) only used by Android, set to "nogoogle" for the F-Droid build.

Types

type EnvType

type EnvType string

EnvType represents a known environment type. The empty string, the default, means unknown.

func GetEnvType

func GetEnvType() EnvType

Jump to

Keyboard shortcuts

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