package
Version:
v0.3.0
Opens a new window with list of versions in this module.
Published: Oct 2, 2018
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
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
¶
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 RepositoryMetalinkReference struct {
Repository string `xml:"repository,,omitempty" json:"repository"`
Path string `xml:"path,,omitempty" json:"path"`
Version string `xml:"version,,omitempty" json:"version"`
}
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.