update

package
v0.8.22 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package update finds jokku releases and runs their update.sh, which backs up, swaps the binary, runs "jokku setup" and rolls back on failure: the one update path, whether "jokku update" starts it or the control node asks a node to update itself.

Index

Constants

View Source
const Unit = "jokku-update"

Unit is the systemd unit a node updates itself in. Its output stays in the journal: journalctl -u jokku-update.

Variables

This section is empty.

Functions

func Latest

func Latest(ctx context.Context) (string, error)

Latest is the newest release's version. GitHub's /releases/latest redirects to /releases/tag/<version>.

func Script

func Script(ctx context.Context, v string) ([]byte, error)

Script downloads release v's update.sh.

Types

type Systemd

type Systemd struct {
	DataDir string
}

Systemd updates this node in the background, as its own systemd unit: the update stops the jokku service, which would take anything it started with it.

func (*Systemd) Running

func (s *Systemd) Running(ctx context.Context) bool

Running reports whether an update is under way.

func (*Systemd) Start

func (s *Systemd) Start(ctx context.Context, v string) error

Start downloads release v's update.sh and starts it.

Jump to

Keyboard shortcuts

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