version

package
v1.0.4-0...-1a35cd8 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadTar

func DownloadTar(ctx context.Context, v Version) bytes.Buffer

func GetMostRecentExistingVersion

func GetMostRecentExistingVersion(ctx context.Context, existingVersions []string, npmVersions []Version) (*Version, []Version)

GetMostRecentExistingVersion gets the most recent npm.Version based on time stamp that is currently downloaded as well as all existing versions in npm.Version form.

func IsVersionIgnored

func IsVersionIgnored(config *packages.Autoupdate, version string) bool

Types

type ByDate

type ByDate []Version

ByTimeStamp implements the sort.Interface for []Version, ordering from most recent to least recent time stamps.

func (ByDate) Len

func (a ByDate) Len() int

func (ByDate) Less

func (a ByDate) Less(i, j int) bool

func (ByDate) Swap

func (a ByDate) Swap(i, j int)

type Version

type Version struct {
	Version string
	Tarball string
	Date    time.Time
	Source  string // npm or git
}

Version represents a version of a git repo or npm.

func VersionDiff

func VersionDiff(a []Version, b []string) []Version

Jump to

Keyboard shortcuts

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