selfupdate

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: May 26, 2025 License: Apache-2.0, BSD-2-Clause-Views, BSD-3-Clause, + 4 more Imports: 20 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(httpClient httpClient, policy cfg.UpdatePolicyType) (*SelfUpdater, error)

func (*SelfUpdater) ApplyUpdate

func (su *SelfUpdater) ApplyUpdate(ctx context.Context) error

Jump to

Keyboard shortcuts

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