update

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package update implements the self updating mechanism

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Checker

type Checker struct {
}

Checker is a struct solely to prevent expose functions without setting up first

func NewUpdateChecker

func NewUpdateChecker() *Checker

NewUpdateChecker returns a new update checker

func (*Checker) CheckForAvailableUpdates

func (u *Checker) CheckForAvailableUpdates()

CheckForAvailableUpdates checks if any new releases exist and prints a notification if there is a new release

func (*Checker) UpdateApplication

func (u *Checker) UpdateApplication() (err error)

UpdateApplication downloads the update and directly updates the application

Jump to

Keyboard shortcuts

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