upgrade

package
Version: v11.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2021 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetVersionDiff

func GetVersionDiff(oldVersion, newVersion string) (left, right string)

func StylizedNameWithRepository

func StylizedNameWithRepository(u Upgrade) string

Types

type Filter

type Filter func(Upgrade) bool

Filter decides if specific package should be included in theincluded in the results.

type UpSlice

type UpSlice struct {
	Up    []Upgrade
	Repos []string
}

upSlice is a slice of Upgrades.

func UpAUR

func UpAUR(remote []db.IPackage, aurdata map[string]*query.Pkg, timeUpdate bool) UpSlice

UpAUR gathers foreign packages and checks if they have new versions. Output: Upgrade type package list.

func UpDevel

func UpDevel(
	ctx context.Context,
	remote []db.IPackage,
	aurdata map[string]*query.Pkg,
	localCache *vcs.InfoStore) UpSlice

func (UpSlice) Len

func (u UpSlice) Len() int

func (UpSlice) Less

func (u UpSlice) Less(i, j int) bool

func (UpSlice) Print

func (u UpSlice) Print()

Print prints the details of the packages to upgrade.

func (UpSlice) Swap

func (u UpSlice) Swap(i, j int)

type Upgrade

type Upgrade = db.Upgrade

Upgrade type describes a system upgrade.

Jump to

Keyboard shortcuts

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