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()
Click to show internal directories.
Click to hide internal directories.