yum

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build

func Build(ctx context.Context, c *Config) error

Types

type Checksum

type Checksum struct {
	Type  string `xml:"type,attr"`
	PkgID string `xml:"pkgid,attr,omitempty"`
	Value string `xml:",chardata"`
}

type Config

type Config struct {
	Source     *source.Source
	Version    string
	Prerelease bool
	Target     target.Target
	PGPKey     *pgp.PrivateKey
}

type Data

type Data struct {
	Type         string   `xml:"type,attr"`
	Checksum     Checksum `xml:"checksum"`
	OpenChecksum Checksum `xml:"open-checksum"`
	Location     Location `xml:"location"`
	Timestamp    int      `xml:"timestamp"`
	Size         int      `xml:"size,omitempty"`
	OpenSize     int      `xml:"open-size,omitempty"`
}

type Entries

type Entries struct {
	Entries []Entry `xml:"rpm:entry,omitempty"`
}

type Entry

type Entry struct {
	Name  string `xml:"name,attr"`
	Flags string `xml:"flags,attr,omitempty"`
	Epoch string `xml:"epoch,attr,omitempty"`
	Ver   string `xml:"ver,attr,omitempty"`
	Rel   string `xml:"rel,attr,omitempty"`
	Pre   string `xml:"pre,attr,omitempty"`
}

type File

type File struct {
	Type string `xml:"type,attr,omitempty"`
	Path string `xml:",chardata"`
}

type FileLists

type FileLists struct {
	Packages string             `xml:"packages,attr"`
	Package  []FileListsPackage `xml:"package"`
}

func (*FileLists) MarshalXML

func (r *FileLists) MarshalXML(enc *xml.Encoder, _ xml.StartElement) error

type FileListsPackage

type FileListsPackage struct {
	Name    string  `xml:"name,attr"`
	PkgID   string  `xml:"pkgid,attr"`
	Arch    string  `xml:"arch,attr"`
	Version Version `xml:"version"`
	Files   []File  `xml:"file"`
}

type Format

type Format struct {
	License     string      `xml:"rpm:license,omitempty"`
	Vendor      string      `xml:"rpm:vendor,omitempty"`
	Group       string      `xml:"rpm:group,omitempty"`
	BuildHost   string      `xml:"rpm:buildhost,omitempty"`
	SourceRPM   string      `xml:"rpm:sourcerpm,omitempty"`
	HeaderRange HeaderRange `xml:"rpm:header-range"`
	Provides    *Entries    `xml:"rpm:provides,omitempty"`
	Obsoletes   *Entries    `xml:"rpm:obsoletes,omitempty"`
	Requires    *Entries    `xml:"rpm:requires,omitempty"`
	Conflicts   *Entries    `xml:"rpm:conflicts,omitempty"`
	Files       []string    `xml:"file,omitempty"`
}

func (*Format) UnmarshalXML

func (f *Format) UnmarshalXML(dec *xml.Decoder, start xml.StartElement) error

type HeaderRange

type HeaderRange struct {
	Start int `xml:"start,attr"`
	End   int `xml:"end,attr"`
}

type Location

type Location struct {
	HREF string `xml:"href,attr"`
}

type MetaData

type MetaData struct {
	Package []Package `xml:"package"`
}

func (*MetaData) MarshalXML

func (r *MetaData) MarshalXML(enc *xml.Encoder, _ xml.StartElement) error

type Other

type Other struct {
	Package []OtherPackage `xml:"package"`
}

func (*Other) MarshalXML

func (r *Other) MarshalXML(enc *xml.Encoder, _ xml.StartElement) error

type OtherPackage

type OtherPackage struct {
	Name    string  `xml:"name,attr"`
	PkgID   string  `xml:"pkgid,attr"`
	Arch    string  `xml:"arch,attr"`
	Version Version `xml:"version"`
}

type Package

type Package struct {
	Type        string   `xml:"type,attr"`
	Name        string   `xml:"name"`
	Arch        string   `xml:"arch"`
	Version     Version  `xml:"version"`
	Checksum    Checksum `xml:"checksum"`
	Summary     string   `xml:"summary"`
	Description string   `xml:"description"`
	Packager    string   `xml:"packager,omitempty"`
	URL         string   `xml:"url,omitempty"`
	Time        Time     `xml:"time"`
	Size        Size     `xml:"size"`
	Location    Location `xml:"location"`
	Format      Format   `xml:"format"`
}

type RepoMD

type RepoMD struct {
	XMLName  xml.Name `xml:"http://linux.duke.edu/metadata/repo repomd"`
	Revision int      `xml:"revision,omitempty"`
	Data     []Data   `xml:"data"`
}

type Size

type Size struct {
	Package   int `xml:"package,attr"`
	Installed int `xml:"installed,attr"`
	Archive   int `xml:"archive,attr"`
}

type Time

type Time struct {
	File  int `xml:"file,attr"`
	Build int `xml:"build,attr"`
}

type Version

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

Jump to

Keyboard shortcuts

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