Documentation ¶
Index ¶
- func Open(name string) (io.ReadCloser, error)
- type Checksum
- type ChecksumType
- type Comps
- type EVR
- type File
- type Format
- type Group
- type Location
- type Metadata
- type Package
- type PackageReq
- type RPMConflicts
- type RPMEntry
- type RPMHeaderRange
- type RPMObsoletes
- type RPMProvides
- type RPMRequires
- type RawBytes
- type ReqType
- type Size
- type Time
- type Version
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Checksum ¶
type Checksum struct { XMLName xml.Name `xml:"checksum"` Type ChecksumType `xml:"type,attr"` Pkgid string `xml:"pkgid,attr"` Value string `xml:",innerxml"` }
type ChecksumType ¶
type ChecksumType int
const (
SHA256 ChecksumType = iota
)
func (ChecksumType) MarshalText ¶
func (ct ChecksumType) MarshalText() (text []byte, err error)
func (*ChecksumType) UnmarshalText ¶
func (ct *ChecksumType) UnmarshalText(text []byte) error
type Format ¶
type Format struct { XMLName xml.Name `xml:"format"` License string `xml:"http://linux.duke.edu/metadata/rpm license"` Vendor string `xml:"http://linux.duke.edu/metadata/rpm vendor,selfclose"` Group string `xml:"http://linux.duke.edu/metadata/rpm group"` BuildHost string `xml:"http://linux.duke.edu/metadata/rpm buildhost"` SourceRPM string `xml:"http://linux.duke.edu/metadata/rpm sourcerpm"` HeaderRange RPMHeaderRange `xml:"http://linux.duke.edu/metadata/rpm header-range,selfclose"` Provides RPMProvides `xml:"http://linux.duke.edu/metadata/rpm provides,omitempty"` Requires RPMRequires `xml:"http://linux.duke.edu/metadata/rpm requires,omitempty"` Conflicts RPMConflicts `xml:"http://linux.duke.edu/metadata/rpm conflicts,omitempty"` Obsoletes RPMObsoletes `xml:"http://linux.duke.edu/metadata/rpm obsoletes,omitempty"` Files []File `xml:"file"` }
type Metadata ¶
type Metadata struct { XMLName xml.Name `xml:"http://linux.duke.edu/metadata/common metadata"` XMLNSRPM string `xml:"xmlns:rpm,attr"` Count int `xml:"packages,attr"` Packages []Package `xml:"package"` }
func NewMetadata ¶
func NewMetadata() *Metadata
type Package ¶
type Package struct { XMLName xml.Name `xml:"package"` Type string `xml:"type,attr"` Name string `xml:"name"` Arch string `xml:"arch"` Version Version `xml:"version,selfclose"` Checksum Checksum `xml:"checksum"` Summary RawBytes `xml:"summary"` Description RawBytes `xml:"description"` Packager string `xml:"packager"` URL string `xml:"url"` Time Time `xml:"time,selfclose"` Size Size `xml:"size,selfclose"` Location Location `xml:"location,selfclose"` Format Format `xml:"format"` }
type PackageReq ¶
type RPMConflicts ¶
type RPMHeaderRange ¶
type RPMObsoletes ¶
type RPMProvides ¶
type RPMRequires ¶
Click to show internal directories.
Click to hide internal directories.