selfupdate

package
v1.0.12 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultRepo = "ApostolDm/vpner"

Variables

This section is empty.

Functions

func CompareVersions

func CompareVersions(a, b string) int

func ParseOpkgArchitectures

func ParseOpkgArchitectures(output string) []string

Types

type ArchPriority

type ArchPriority struct {
	Name     string
	Priority int
}

type Asset

type Asset struct {
	Name        string `json:"name"`
	DownloadURL string `json:"browser_download_url"`
	Size        int64  `json:"size"`
	Digest      string `json:"digest"`
}

type Release

type Release struct {
	TagName    string  `json:"tag_name"`
	Name       string  `json:"name"`
	Prerelease bool    `json:"prerelease"`
	Draft      bool    `json:"draft"`
	HTMLURL    string  `json:"html_url"`
	Assets     []Asset `json:"assets"`
}

func FetchReleases

func FetchReleases(ctx context.Context, client *http.Client, repo string) ([]Release, error)

func PickLatest

func PickLatest(releases []Release, includePrerelease bool) (Release, bool)

func (Release) FindAsset

func (r Release) FindAsset(name string) (Asset, bool)

func (Release) SelectIPK

func (r Release) SelectIPK(pkgName string, archTags []string, preferKN bool) (Asset, bool)

Jump to

Keyboard shortcuts

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