selfupdate

package
v0.18.1 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2026 License: Apache-2.0, BSD-2-Clause-Views, BSD-3-Clause, + 4 more Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NoSelfUpdate = "false"

NoSelfUpdate is set to "true" for builds distributed to package managers to prevent auto-updating. It is typed as a string because the linker allows only setting string variables at compile time (see https://pkg.go.dev/cmd/link). Set at compile time using ldflags (see the prod-noupdate task in the /tasks/build directory).

Functions

This section is empty.

Types

type SelfUpdater

type SelfUpdater struct {
	// contains filtered or unexported fields
}

func NewSelfUpdater

func NewSelfUpdater(config *cfg.Config, eventsEmitter eventsEmitter) (*SelfUpdater, error)

NewSelfUpdater returns nil if the app should not self-update.

func (*SelfUpdater) RunScheduledUpdateChecks added in v0.18.1

func (su *SelfUpdater) RunScheduledUpdateChecks()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL