first with full handle over rpm
Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
parent
7948368573
commit
274ea454dd
50 changed files with 4309 additions and 0 deletions
26
internal/clone/rpm/repomd.go
Normal file
26
internal/clone/rpm/repomd.go
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
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"`
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue