repository

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2023 License: MIT Imports: 2 Imported by: 1

README

For enumerating metalinks from an external repository.

Assumptions

  • metalinks are named with the convention of v{semver}.meta4
    • metalinks may contain multiple files, but file nodes must have the same version

Usage

List all receipts...

$ metalink-repository list git+ssh://git@github.com/dpb587/upstream-metalinks.git//repository/wordpress.org/wordpress
wordpress-4.7.3.tar.gz.json
wordpress-4.7.2.tar.gz.json
wordpress-4.7.1.tar.gz.json
wordpress-4.7.tar.gz.json
wordpress-4.6.4.tar.gz.json

Or further configure the listing with...

  • filter(s) --filter=v:version:^4.7
  • sorting --sort=v:version:asc
  • limit results --limit=1
  • raw receipt JSON --raw

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

type Repository struct {
	XMLName   xml.Name             `xml:"https://dpb587.github.io/metalink-repository/schema-0.1.0.xsd repository" json:"-"`
	Metalinks []RepositoryMetalink `xml:"metalink" json:"metalink"`
}
type RepositoryMetalink struct {
	Reference RepositoryMetalinkReference `` /* 137-byte string literal not displayed */
	metalink.Metalink
}

type RepositoryMetalinkReference

type RepositoryMetalinkReference struct {
	Repository string `xml:"repository,,omitempty" json:"repository"`
	Path       string `xml:"path,,omitempty" json:"path"`
}

Jump to

Keyboard shortcuts

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