update

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package update provides the update functionality for the server.

Index

Constants

View Source
const (
	DefaultUpdateURL = "https://pkg.gpud.dev/"
)

Variables

This section is empty.

Functions

func DisableSystemdUnit

func DisableSystemdUnit() error

func EnableSystemdUnit

func EnableSystemdUnit() error

func PackageUpdate added in v0.1.0

func PackageUpdate(targetPackage, ver, baseUrl string) error

func RequireRoot

func RequireRoot() error

func RestartSystemdUnit

func RestartSystemdUnit() error

func StopSystemdUnit

func StopSystemdUnit() error

func Update

func Update(ver, url string) error

func UpdateOnlyBinary added in v0.0.5

func UpdateOnlyBinary(ver, url string) error

Updates the gpud binary by only downloading the tarball and unpacking it, without restarting the service or requiring root.

Types

This section is empty.

Jump to

Keyboard shortcuts

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