clonepack/internal/clone/rpm/repomd.go
GnomeZworc 274ea454dd
first with full handle over rpm
Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
2026-04-25 14:50:08 +02:00

26 lines
600 B
Go

package rpm
import "encoding/xml"
type RepoMD struct {
XMLName xml.Name `xml:"repomd"`
Data []RepoMDEntry `xml:"data"`
}
type RepoMDEntry struct {
Type string `xml:"type,attr"`
Location RepoMDLocation `xml:"location"`
Checksum RepoMDChecksum `xml:"checksum"`
Size int64 `xml:"size"`
OpenChecksum RepoMDChecksum `xml:"open-checksum"`
OpenSize int64 `xml:"open-size"`
}
type RepoMDLocation struct {
Href string `xml:"href,attr"`
}
type RepoMDChecksum struct {
Type string `xml:"type,attr"`
Value string `xml:",chardata"`
}