Documentation ¶
Overview ¶
Package clientupdate implements tailscale client update for all supported platforms. This package can be used from both tailscaled and tailscale binaries.
Index ¶
Constants ¶
View Source
const ( CurrentTrack = "" StableTrack = "stable" UnstableTrack = "unstable" )
Variables ¶
This section is empty.
Functions ¶
func CanAutoUpdate ¶ added in v1.56.0
func CanAutoUpdate() bool
CanAutoUpdate reports whether auto-updating via the clientupdate package is supported for the current os/distro.
func LatestTailscaleVersion ¶
LatestTailscaleVersion returns the latest released version for the given track from pkgs.tailscale.com.
Types ¶
type Arguments ¶ added in v1.50.0
type Arguments struct { // Version is the specific version to install. // Mutually exclusive with Track. Version string // 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. Track string // Logf is a logger for update progress messages. Logf logger.Logf // Stdout and Stderr should be used for output instead of os.Stdout and // os.Stderr. Stdout io.Writer Stderr io.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(newVer string) bool // PkgsAddr is the address of the pkgs server to fetch updates from. // Defaults to "https://pkgs.tailscale.com". PkgsAddr string // 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). ForAutoUpdate bool }
Arguments contains arguments needed to run an update.
Click to show internal directories.
Click to hide internal directories.