repolib

package
v0.0.0-...-12ff3c9 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadBundles

func DownloadBundles(clear_version int) error

func DownloadRepo

func DownloadRepo(version int, url string) error

func DownloadRepoInfo

func DownloadRepoInfo(path string, url string) error

func ExtractRpm

func ExtractRpm(archive string, target string) error

func GetBundle

func GetBundle(clear_version int, name string) (map[string]interface{}, error)

func GetPkgMap

func GetPkgMap(version int) (map[string]string, error)

func GetSrpmHashMap

func GetSrpmHashMap(version int) (map[string]string, error)

func QueryReqs

func QueryReqs(version int, requirements map[string]bool, field string) ([]string, error)

Types

type Checksum

type Checksum struct {
	XMLName xml.Name `xml:"checksum"`
	Type    string   `xml:"type,attr"`
	Value   string   `xml:",chardata"`
}

type Data

type Data struct {
	XMLName      xml.Name     `xml:"data"`
	Type         string       `xml:"type,attr"`
	Location     Location     `xml:"location"`
	Checksum     Checksum     `xml:"checksum"`
	OpenChecksum OpenChecksum `xml:"open-checksum"`
}

type Location

type Location struct {
	XMLName xml.Name `xml:"location"`
	Href    string   `xml:"href,attr"`
}

type OpenChecksum

type OpenChecksum struct {
	XMLName xml.Name `xml:"open-checksum"`
	Type    string   `xml:"type,attr"`
	Value   string   `xml:",chardata"`
}

type Repomd

type Repomd struct {
	XMLName xml.Name `xml:"repomd"`
	Data    []Data   `xml:"data"`
}

Jump to

Keyboard shortcuts

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