models

package
v0.1.0-rc0 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Package

type Package struct {
	Name         string
	Checksum     string
	ChecksumType string
	Size         uint64
}

type PrimaryMD

type PrimaryMD struct {
	XMLName  xml.Name           `xml:"metadata"`
	Text     string             `xml:",chardata"`
	Xmlns    string             `xml:"xmlns,attr"`
	Rpm      string             `xml:"rpm,attr"`
	Packages string             `xml:"packages,attr"`
	Package  []PrimaryMDPackage `xml:"package"`
}

type PrimaryMDPackage

type PrimaryMDPackage struct {
	Text        string                   `xml:",chardata"`
	Type        string                   `xml:"type,attr"`
	Name        string                   `xml:"name"`
	Arch        string                   `xml:"arch"`
	Version     PrimaryMDPackageVersion  `xml:"version"`
	Checksum    PrimaryMDPackageChecksum `xml:"checksum"`
	Summary     string                   `xml:"summary"`
	Description string                   `xml:"description"`
	Packager    string                   `xml:"packager"`
	URL         string                   `xml:"url"`
	Time        PrimaryMDPackageTime     `xml:"time"`
	Size        PrimaryMDPackageSize     `xml:"size"`
	Location    PrimaryMDPackageLocation `xml:"location"`
	Format      PrimaryMDPackageFormat   `xml:"format"`
}

type PrimaryMDPackageChecksum

type PrimaryMDPackageChecksum struct {
	Text  string `xml:",chardata"`
	Type  string `xml:"type,attr"`
	PkgID string `xml:"pkgid,attr"`
}

type PrimaryMDPackageFormat

type PrimaryMDPackageFormat struct {
	Text      string                       `xml:",chardata"`
	License   string                       `xml:"license"`
	Vendor    string                       `xml:"vendor"`
	Group     string                       `xml:"group"`
	BuildHost string                       `xml:"buildhost"`
	SourceRPM string                       `xml:"sourcerpm"`
	File      []PrimaryMDPackageFormatFile `xml:"file"`
}

type PrimaryMDPackageFormatFile

type PrimaryMDPackageFormatFile struct {
	Text string `xml:",chardata"`
	Type string `xml:"type,attr"`
}

type PrimaryMDPackageLocation

type PrimaryMDPackageLocation struct {
	Text string `xml:",chardata"`
	Href string `xml:"href,attr"`
}

type PrimaryMDPackageSize

type PrimaryMDPackageSize struct {
	Text      string `xml:",chardata"`
	Package   uint64 `xml:"package,attr"`
	Installed string `xml:"installed,attr"`
	Archive   string `xml:"archive,attr"`
}

type PrimaryMDPackageTime

type PrimaryMDPackageTime struct {
	Text  string `xml:",chardata"`
	File  string `xml:"file,attr"`
	Build string `xml:"build,attr"`
}

type PrimaryMDPackageVersion

type PrimaryMDPackageVersion struct {
	Text  string `xml:",chardata"`
	Epoch string `xml:"epoch,attr"`
	Ver   string `xml:"ver,attr"`
	Rel   string `xml:"rel,attr"`
}

type RepoMD

type RepoMD struct {
	XMLName  xml.Name     `xml:"repomd"`
	Text     string       `xml:",chardata"`
	Xmlns    string       `xml:"xmlns,attr"`
	Rpm      string       `xml:"rpm,attr"`
	Revision string       `xml:"revision"`
	Data     []RepoMDData `xml:"data"`
}

func (*RepoMD) GetPrimary

func (r *RepoMD) GetPrimary() (RepoMDData, error)

type RepoMDData

type RepoMDData struct {
	Text         string                 `xml:",chardata"`
	Type         string                 `xml:"type,attr"`
	Checksum     RepoMDDataChecksum     `xml:"checksum"`
	OpenChecksum RepoMDDataOpenChecksum `xml:"open-checksum"`
	Location     RepoMDDataLocation     `xml:"location"`
	Timestamp    string                 `xml:"timestamp"`
	Size         string                 `xml:"size"`
	OpenSize     string                 `xml:"open-size"`
}

type RepoMDDataChecksum

type RepoMDDataChecksum struct {
	Text string `xml:",chardata"`
	Type string `xml:"type,attr"`
}

type RepoMDDataLocation

type RepoMDDataLocation struct {
	Text string `xml:",chardata"`
	Href string `xml:"href,attr"`
}

type RepoMDDataOpenChecksum

type RepoMDDataOpenChecksum struct {
	Text string `xml:",chardata"`
	Type string `xml:"type,attr"`
}

Jump to

Keyboard shortcuts

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