hostinfo

package
v1.10.2 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2021 License: BSD-3-Clause Imports: 6 Imported by: 51

Documentation

Overview

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

TODO(bradfitz): move more of control/controlclient/hostinfo_* into this package.

Index

Constants

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

Variables

This section is empty.

Functions

func InContainer

func InContainer() bool

InContainer reports whether we're running in a container.

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