update

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2026 License: MIT Imports: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ArchiveName

func ArchiveName() string

Types

type Asset

type Asset struct {
	ID   int64  `json:"id"`
	Name string `json:"name"`
}

type CheckResult

type CheckResult struct {
	Current  string
	Latest   string
	Outdated bool
}

type Options

type Options struct {
	Version string
}

type Release

type Release struct {
	TagName string  `json:"tag_name"`
	Assets  []Asset `json:"assets"`
}

type Updater

type Updater struct {
	BinaryPath     string
	CurrentVersion string
	HTTPClient     *http.Client
	VerifyBundle   func(context.Context, []byte, []byte, string) error
}

func (*Updater) Check

func (updater *Updater) Check(ctx context.Context) (*CheckResult, error)

func (*Updater) Update

func (updater *Updater) Update(ctx context.Context, opts Options) (string, error)

Jump to

Keyboard shortcuts

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