clientupdate
package v1.92.2
Go to latest Published: Dec 10, 2025 License:BSD-3-Clause
Opens a new window with list of versions in this module.
Latest LatestThis package is not in the latest version of its module.
Opens a new window with license information.
Imports:27 Opens a new window with list of imports.
Imported by:6 Opens a new window with list of known importers.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
Documentation¶
Overview¶
Package clientupdate implements tailscale client update for all supportedplatforms. This package can be used from both tailscaled and tailscalebinaries.
Index¶
Constants¶
View Source
const (StableTrack = "stable"UnstableTrack = "unstable")
Variables¶
View Source
var CurrentTrack = func()string {ifversion.IsUnstableBuild() {returnUnstableTrack} else {returnStableTrack}}()
Functions¶
funcLatestTailscaleVersion¶
LatestTailscaleVersion returns the latest released version for the giventrack from pkgs.tailscale.com.
Types¶
typeArguments¶added inv1.50.0
type Arguments struct {// Version is the specific version to install.// Mutually exclusive with Track.Versionstring// Track is the release track to use://// - CurrentTrack will use the latest version from the same track as the// running binary// - StableTrack and UnstableTrack will use the latest versions of the// corresponding tracks//// Leaving this empty will use Version or fall back to CurrentTrack if both// Track and Version are empty.Trackstring// Logf is a logger for update progress messages.Logflogger.Logf// Stdout and Stderr should be used for output instead of os.Stdout and// os.Stderr.Stdoutio.WriterStderrio.Writer// Confirm is called when a new version is available and should return true// if this new version should be installed. When Confirm returns false, the// update is aborted.Confirm func(newVerstring)bool// PkgsAddr is the address of the pkgs server to fetch updates from.// Defaults to "https://pkgs.tailscale.com".PkgsAddrstring// ForAutoUpdate should be true when Updater is created in auto-update// context. When true, NewUpdater returns an error if it cannot be used for// auto-updates (even if Updater.Update field is non-nil).ForAutoUpdatebool}Arguments contains arguments needed to run an update.
Source Files¶
Click to show internal directories.
Click to hide internal directories.