results

package
v1.2.7 Latest Latest
Warning

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

Go to latest
Published: May 21, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Patch

func Patch(full *Entry, diff *Entry)

Patch updates an entry with non blank fields from another entry.

Types

type Entry

type Entry struct {
	ID             string
	LatestURL      string
	LatestVersion  version.Version // Latest version is most up-to-date
	CurrentURL     string
	CurrentVersion version.Version // Current version is installed on system.
	Dependencies   []string
	UpToDate       bool
}

Entry contains the information for a single package from the database.

func New

func New(id string, latest string, latestv version.Version, current string, currentv version.Version, up2date bool) *Entry

New creates a new Database Entry structure to store data in.

func (Entry) PrintEntry added in v1.1.0

func (e Entry) PrintEntry()

PrintEntry formats a result object correctly to print

Jump to

Keyboard shortcuts

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