updater

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2026 License: MIT Imports: 20 Imported by: 0

Documentation

Overview

Package updater provides binary self-update capabilities for standalone (non-Docker) installs of altmount. It fetches release assets from GitHub, verifies their SHA-512 checksum, extracts the binary, and applies the update in-place using github.com/minio/selfupdate.

Index

Constants

View Source
const (

	// Channel identifiers.
	ChannelLatest = "latest"
	ChannelDev    = "dev"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Updater

type Updater interface {
	CanSelfUpdate() bool
	ApplyBinaryUpdate(ctx context.Context, channel string) error
}

Updater applies binary updates in-place using assets from GitHub releases. It exists as an interface so callers (and tests) can swap in a fake implementation.

func Default

func Default() Updater

Default returns a Updater backed by the real GitHub API and minio/selfupdate.

Jump to

Keyboard shortcuts

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