pkgidx

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Diff

type Diff struct {
	Name              string
	UpstreamVersion   string
	DownstreamVersion string
}

type Package

type Package struct {
	Name    string
	Version string
}

Package represents a single package entry.

type PackageMap added in v0.1.1

type PackageMap map[string]string

func LoadFromManifest

func LoadFromManifest(r io.Reader) (PackageMap, error)

func LoadFromURL

func LoadFromURL(ctx context.Context, url string) (PackageMap, error)

LoadFromURL loads package information from a given HTTP URL.

func Parse

func Parse(r io.Reader) (PackageMap, error)

Parse parses package information from an io.Reader.

func (PackageMap) Equals added in v0.1.1

func (a PackageMap) Equals(b PackageMap) ([]Diff, []Diff)

Equals - compares two Package slices for equality wrt versions. you run this on the downstream with the upstream as the argument

Jump to

Keyboard shortcuts

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