update

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2018 License: AGPL-3.0 Imports: 21 Imported by: 0

Documentation

Overview

Package update provides connection to a remote update server for upgrading cells binary

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyUpdate

func ApplyUpdate(ctx context.Context, p *update.Package, conf config.Map, dryRun bool) error

ApplyUpdate uses the info of an update.Package to download the binary and replace the current running binary. A restart is necessary afterward. The dryRun option will download the binary and just put it in the /tmp folder

func LoadUpdates

func LoadUpdates(ctx context.Context, config config.Map) ([]*update.Package, error)

LoadUpdates will post a Json query to the update server to detect if there are any updates available

Types

This section is empty.

Directories

Path Synopsis
Package grpc is in charge of detecting updates and applying them
Package grpc is in charge of detecting updates and applying them
Package lang provides update-related i18n strings
Package lang provides update-related i18n strings
Package rest provides a REST gateway to the update service
Package rest provides a REST gateway to the update service

Jump to

Keyboard shortcuts

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