updater

package
v0.0.0-...-0ab5f93 Latest Latest
Warning

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

Go to latest
Published: May 13, 2026 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MaybeRunWindowsApply

func MaybeRunWindowsApply(stdout, stderr io.Writer) (handled bool, err error)

Types

type Asset

type Asset struct {
	Name string
	URL  string
}

type CheckResult

type CheckResult struct {
	Current string
	Latest  string
	Update  bool
}

type Config

type Config struct {
	Owner string
	Repo  string
	App   string
}

func DefaultConfig

func DefaultConfig() Config

func (Config) Check

func (c Config) Check(ctx context.Context, currentVersion string) (CheckResult, *Release, error)

func (Config) Update

func (c Config) Update(ctx context.Context, opts UpdateOptions) error

type Release

type Release struct {
	TagName string
	Assets  []Asset
}

type UpdateOptions

type UpdateOptions struct {
	CurrentVersion string
	Stdout         io.Writer
	Stderr         io.Writer
	CheckOnly      bool
}

Jump to

Keyboard shortcuts

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