types

package
v1.12.4 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Checksum

type Checksum struct {
	Hash string `xml:",chardata"`
	Type string `xml:"type,attr"`
}

type Location

type Location struct {
	Href string `xml:"href,attr"`
}
type MetaLink struct {
	Files MetaLinkFiles `xml:"files"`
}

type MetaLinkFile

type MetaLinkFile struct {
	Name      string                `xml:"name,attr"`
	Resources MetaLinkFileResources `xml:"resources"`
}

type MetaLinkFileResourceURL

type MetaLinkFileResourceURL struct {
	Protocol   string `xml:"protocol,attr"`
	Preference int    `xml:"preference,attr"`
	URL        string `xml:",chardata"`
}

type MetaLinkFileResources

type MetaLinkFileResources struct {
	Urls []MetaLinkFileResourceURL `xml:"url"`
}

type MetaLinkFiles

type MetaLinkFiles struct {
	Files []MetaLinkFile `xml:"file"`
}

type Metadata

type Metadata struct {
	Packages []*Package `xml:"package"`
}

type Package

type Package struct {
	Type     string     `xml:"type,attr"`
	Name     string     `xml:"name"`
	Arch     string     `xml:"arch"`
	Checksum Checksum   `xml:"checksum"`
	Location Location   `xml:"location"`
	Provides []Provides `xml:"format>provides>entry"`
}

type Provides

type Provides struct {
	Name string `xml:"name,attr"`
	Version
}

type Repomd

type Repomd struct {
	Data []RepomdData `xml:"data"`
}

type RepomdData

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

type Version

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

Jump to

Keyboard shortcuts

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