feature/featuretags, all: add build features, use existing ones in more places
Saves 270 KB. Updates #12614 Change-Id: I4c3fe06d32c49edb3a4bb0758a8617d83f291cf5 Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
committed by
Brad Fitzpatrick
parent
aa5b2ce83b
commit
c45f8813b4
@@ -0,0 +1,13 @@
|
||||
// Copyright (c) Tailscale Inc & AUTHORS
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
|
||||
// Code generated by gen.go; DO NOT EDIT.
|
||||
|
||||
//go:build ts_omit_bakedroots
|
||||
|
||||
package buildfeatures
|
||||
|
||||
// HasBakedRoots is whether the binary was built with support for modular feature "Embed CA (LetsEncrypt) x509 roots to use as fallback".
|
||||
// Specifically, it's whether the binary was NOT built with the "ts_omit_bakedroots" build tag.
|
||||
// It's a const so it can be used for dead code elimination.
|
||||
const HasBakedRoots = false
|
||||
@@ -0,0 +1,13 @@
|
||||
// Copyright (c) Tailscale Inc & AUTHORS
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
|
||||
// Code generated by gen.go; DO NOT EDIT.
|
||||
|
||||
//go:build !ts_omit_bakedroots
|
||||
|
||||
package buildfeatures
|
||||
|
||||
// HasBakedRoots is whether the binary was built with support for modular feature "Embed CA (LetsEncrypt) x509 roots to use as fallback".
|
||||
// Specifically, it's whether the binary was NOT built with the "ts_omit_bakedroots" build tag.
|
||||
// It's a const so it can be used for dead code elimination.
|
||||
const HasBakedRoots = true
|
||||
@@ -0,0 +1,13 @@
|
||||
// Copyright (c) Tailscale Inc & AUTHORS
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
|
||||
// Code generated by gen.go; DO NOT EDIT.
|
||||
|
||||
//go:build ts_omit_cloud
|
||||
|
||||
package buildfeatures
|
||||
|
||||
// HasCloud is whether the binary was built with support for modular feature "detect cloud environment to learn instances IPs and DNS servers".
|
||||
// Specifically, it's whether the binary was NOT built with the "ts_omit_cloud" build tag.
|
||||
// It's a const so it can be used for dead code elimination.
|
||||
const HasCloud = false
|
||||
@@ -0,0 +1,13 @@
|
||||
// Copyright (c) Tailscale Inc & AUTHORS
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
|
||||
// Code generated by gen.go; DO NOT EDIT.
|
||||
|
||||
//go:build !ts_omit_cloud
|
||||
|
||||
package buildfeatures
|
||||
|
||||
// HasCloud is whether the binary was built with support for modular feature "detect cloud environment to learn instances IPs and DNS servers".
|
||||
// Specifically, it's whether the binary was NOT built with the "ts_omit_cloud" build tag.
|
||||
// It's a const so it can be used for dead code elimination.
|
||||
const HasCloud = true
|
||||
@@ -0,0 +1,13 @@
|
||||
// Copyright (c) Tailscale Inc & AUTHORS
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
|
||||
// Code generated by gen.go; DO NOT EDIT.
|
||||
|
||||
//go:build ts_omit_listenrawdisco
|
||||
|
||||
package buildfeatures
|
||||
|
||||
// HasListenRawDisco is whether the binary was built with support for modular feature "Use raw sockets for more robust disco (NAT traversal) message receiving (Linux only)".
|
||||
// Specifically, it's whether the binary was NOT built with the "ts_omit_listenrawdisco" build tag.
|
||||
// It's a const so it can be used for dead code elimination.
|
||||
const HasListenRawDisco = false
|
||||
@@ -0,0 +1,13 @@
|
||||
// Copyright (c) Tailscale Inc & AUTHORS
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
|
||||
// Code generated by gen.go; DO NOT EDIT.
|
||||
|
||||
//go:build !ts_omit_listenrawdisco
|
||||
|
||||
package buildfeatures
|
||||
|
||||
// HasListenRawDisco is whether the binary was built with support for modular feature "Use raw sockets for more robust disco (NAT traversal) message receiving (Linux only)".
|
||||
// Specifically, it's whether the binary was NOT built with the "ts_omit_listenrawdisco" build tag.
|
||||
// It's a const so it can be used for dead code elimination.
|
||||
const HasListenRawDisco = true
|
||||
@@ -0,0 +1,13 @@
|
||||
// Copyright (c) Tailscale Inc & AUTHORS
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
|
||||
// Code generated by gen.go; DO NOT EDIT.
|
||||
|
||||
//go:build ts_omit_unixsocketidentity
|
||||
|
||||
package buildfeatures
|
||||
|
||||
// HasUnixSocketIdentity is whether the binary was built with support for modular feature "differentiate between users accessing the LocalAPI over unix sockets (if omitted, all users have full access)".
|
||||
// Specifically, it's whether the binary was NOT built with the "ts_omit_unixsocketidentity" build tag.
|
||||
// It's a const so it can be used for dead code elimination.
|
||||
const HasUnixSocketIdentity = false
|
||||
@@ -0,0 +1,13 @@
|
||||
// Copyright (c) Tailscale Inc & AUTHORS
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
|
||||
// Code generated by gen.go; DO NOT EDIT.
|
||||
|
||||
//go:build !ts_omit_unixsocketidentity
|
||||
|
||||
package buildfeatures
|
||||
|
||||
// HasUnixSocketIdentity is whether the binary was built with support for modular feature "differentiate between users accessing the LocalAPI over unix sockets (if omitted, all users have full access)".
|
||||
// Specifically, it's whether the binary was NOT built with the "ts_omit_unixsocketidentity" build tag.
|
||||
// It's a const so it can be used for dead code elimination.
|
||||
const HasUnixSocketIdentity = true
|
||||
Reference in New Issue
Block a user