update

package
v0.2.0-alpha.9 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2022 License: MPL-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package update provides facilities for checking for available pkgs updates.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LatestInfo

type LatestInfo struct {
	// BaseURL may contain base URL for releases.
	BaseURL string
	// LatestURL may contain URL for the latest asset.
	LatestURL string
	// HasUpdate is true if there seems to be an update available.
	HasUpdate bool
}

LatestInfo represents information about available update.

func Latest

func Latest(ctx context.Context, source string) (*LatestInfo, error)

Latest returns information about available update.

Jump to

Keyboard shortcuts

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