Movatterモバイル変換


[0]ホーム

URL:


clientupdate

package
v1.92.2Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2025 License:BSD-3-ClauseImports:27Imported by:6

Details

Repository

github.com/tailscale/tailscale

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

func LatestTailscaleVersion(trackstring) (string,error)

LatestTailscaleVersion returns the latest released version for the giventrack from pkgs.tailscale.com.

funcUpdate

func Update(argsArguments)error

Update runs a single update attempt using the platform-specific mechanism.

On Windows, this copies the calling binary and re-executes it to apply theupdate. The calling binary should handle an "update" subcommand and callthis function again for the re-executed binary to proceed.

Types

typeArgumentsadded 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.

typeUpdateradded inv1.50.0

type Updater struct {Arguments// Update is a platform-specific method that updates the installation. May be// nil (not all platforms support updates from within Tailscale).Update func()error// contains filtered or unexported fields}

funcNewUpdateradded inv1.50.0

func NewUpdater(argsArguments) (*Updater,error)

Source Files

View all Source files

Directories

PathSynopsis
Package distsign implements signature and validation of arbitrary distributable files.
Package distsign implements signature and validation of arbitrary distributable files.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp