Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Meta ¶
type Meta struct {
Name string `xml:"name"`
Arch string `xml:"arch"`
Version Entry `xml:"version"`
Sum string `xml:"checksum"`
Href struct {
Href string `xml:"href,attr"`
} `xml:"location"`
Size struct {
Package int `xml:"package,attr"`
} `xml:"size"`
Provides []Entry `xml:"format>provides>entry"`
Requires []Entry `xml:"format>requires>entry"`
Recommends []Entry `xml:"format>recommends>entry"`
Conflicts []Entry `xml:"format>conflicts>entry"`
Obsoletes []Entry `xml:"format>obsoletes>entry"`
Files []string `xml:"format>file"`
// contains filtered or unexported fields
}
func Fetch ¶
func Fetch(ctx context.Context, c *http.Client, keyring openpgp.EntityList, base, arch string, sums ...string) ([]*Meta, error)
Fetch reads repomd.xml, checked by repomd.xml.asc when keyring is set and by sha256 when sums are given, then primary.
func ParsePrimary ¶
ParsePrimary reads repodata primary.xml packages built for arch or noarch; repo tags each package.