autoupdate

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const TrigAutoUpdate common.TriggerName = "Automatically check for application update."

TrigAutoUpdate is our auto update trigger identifier.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

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

Action contains the exported methods for this package.

func New

func New(config *common.Config, autoUpdate, configFile string, unstable bool) *Action

New configures the library.

func (*Action) CheckForUpdate

func (a *Action) CheckForUpdate(ctx context.Context, unstable bool)

CheckForUpdate is called by a user clicking in the menu/tray icon.

func (*Action) Create

func (a *Action) Create()

Create initializes the library.

func (*Action) Run

func (a *Action) Run(ctx context.Context)

Run checks for an update a few minutes after the app starts up.

func (*Action) Stop

func (a *Action) Stop()

Stop satisfies an interface.

Jump to

Keyboard shortcuts

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