update

package
v4.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: AGPL-3.0 Imports: 32 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 configx.Values, dryRun bool, pgChan chan float64, doneChan chan bool, errorChan chan 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, conf configx.Values, request *update.UpdateRequest) ([]*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