github

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2025 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Asset

type Asset struct {
	Name               string `json:"name"`
	ContentType        string `json:"content_type"`
	BrowserDownloadURL string `json:"browser_download_url"`
}

Asset contains downloadable resource files.

func (Asset) IsCompressedFile

func (a Asset) IsCompressedFile() bool

IsCompressedFile checks if the file is in compressed format.

type Release

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

Release represents a software version release.

type ReleaseUpdater

type ReleaseUpdater struct {
}

ReleaseUpdater handles version update checks and operations.

func NewReleaseUpdater

func NewReleaseUpdater() *ReleaseUpdater

NewReleaseUpdater creates a release update handler instance.

func (ReleaseUpdater) Apply

func (up ReleaseUpdater) Apply(rel *Release,
	findAsset func([]Asset) (idx int),
	findChecksum func([]Asset) (algo checksum.Algorithm, expectedChecksum string, err error),
) error

Apply performs version update to specified release.

func (ReleaseUpdater) CheckForUpdates

func (up ReleaseUpdater) CheckForUpdates(current *semver.Version, owner, repo string) (rel *Release, yes bool, err error)

CheckForUpdates verifies if newer version exists.

Jump to

Keyboard shortcuts

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