MCPcopy
hub / github.com/tailscale/tailscale / CanAutoUpdate

Function CanAutoUpdate

feature/hooks.go:26–34  ·  view source on GitHub ↗

CanAutoUpdate reports whether the current binary is built with auto-update support and, if so, whether the current platform supports it.

()

Source from the content-addressed store, hash-verified

24// CanAutoUpdate reports whether the current binary is built with auto-update
25// support and, if so, whether the current platform supports it.
26func CanAutoUpdate() bool {
27 if testAllowAutoUpdate() {
28 return true
29 }
30 if f, ok := HookCanAutoUpdate.GetOk(); ok {
31 return f()
32 }
33 return false
34}
35
36// HookProxyFromEnvironment is a hook for feature/useproxy to register
37// a function to use as http.ProxyFromEnvironment.

Callers 9

availableFeaturesFunction · 0.92
loadSavedPrefsMethod · 0.92
TestEnableAutoUpdatesFunction · 0.92
TestProfileManagementFunction · 0.92
newC2NUpdateResponseMethod · 0.92

Calls 1

GetOkMethod · 0.45

Tested by 3

TestEnableAutoUpdatesFunction · 0.74
TestProfileManagementFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…