updatechecker

package
v0.0.0-...-d5808ce Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2021 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckForUpdates

func CheckForUpdates(appID string, deploy bool, skipPreflights bool) (int64, error)

CheckForUpdates checks (and downloads) latest updates for a specific app if "deploy" is set to true, the latest version/update will be deployed returns the number of available updates

func Configure

func Configure(appID string) error

Configure will check if the app has scheduled update checks enabled and: if enabled, and cron job was NOT found: add a new cron job to check app updates if enabled, and a cron job was found, update the existing cron job with the latest cron spec if disabled: stop the current running cron job (if exists) no-op for airgap applications

func Start

func Start() error

Start will start the update checker the frequency of those update checks are app specific and can be modified by the user

func Stop

func Stop(appID string)

Stop will stop a running cron job (if exists) for a specific app

Types

This section is empty.

Jump to

Keyboard shortcuts

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