software

package
v0.0.0-...-42f36b7 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2024 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDEBs

func GetDEBs(showDefaultPackages bool) ([]software.DEB, error)

func GetDefaultPackages

func GetDefaultPackages() ([]string, error)

GetDefaultPackages fetches and returns the default package list for a given OS type and version

func GetDockerContainers

func GetDockerContainers() ([]types.Container, error)

func GetPodmanContainers

func GetPodmanContainers() ([]types.Container, error)

func GetRPMs

func GetRPMs(showDefaultPackages bool) ([]software.RPM, error)

func GetSoftwareInfo

func GetSoftwareInfo(showDefaultPackages bool) (*software2.Software, error)

Types

type Group

type Group struct {
	ID          string       `xml:"id"`
	Name        string       `xml:"name"`
	PackageList []PackageReq `xml:"packagelist>packagereq"`
}

Group represents a group in comps.xml.xz

type Groups

type Groups struct {
	XMLName xml.Name `xml:"comps"`
	Groups  []Group  `xml:"group"`
}

Groups represents the structure that contains multiple Group elements

type PackageReq

type PackageReq struct {
	Type string `xml:"type,attr"`
	Name string `xml:",chardata"`
}

PackageReq represents a single package requirement in a group

type RepoMD

type RepoMD struct {
	XMLName xml.Name `xml:"repomd"`
	Data    []struct {
		Type     string `xml:"type,attr"`
		Location struct {
			Href string `xml:"href,attr"`
		} `xml:"location"`
	} `xml:"data"`
}

RepoMD represents the structure of repomd.xml for parsing

Jump to

Keyboard shortcuts

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