updater

package
v0.0.0-...-a37a9f3 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2018 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Arch386   = "386"
	ArchAmd64 = "amd64"
)
View Source
const (
	OSWindows = "windows"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DeltaPackage

type DeltaPackage struct {
	Package
	Version string `json:"version"`
}

DeltaPackage represents a file containing only the changes between two version.

type Manifest

type Manifest []*Version

Manifest represents a list of versions available for download.

func (Manifest) Len

func (m Manifest) Len() int

Len determines the number of versions in the manifest.

func (Manifest) Less

func (m Manifest) Less(i, j int) bool

Less determines if version i should be sorted before version j.

func (Manifest) Swap

func (m Manifest) Swap(i, j int)

Swap swaps the two versions.

type Package

type Package struct {
	URL  string `json:"url"`
	Size string `json:"size"`
	OS   string `json:"os"`
	Arch string `json:"arch"`
}

Package represents a file available for download.

type Version

type Version struct {
	Version       string          `json:"version"`
	ReleaseDate   string          `json:"release_date"`
	Changelog     string          `json:"changelog"`
	Packages      []*Package      `json:"packages"`
	DeltaPackages []*DeltaPackage `json:"delta_packages"`
}

Version represents a single version available for installation.

Jump to

Keyboard shortcuts

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