aur

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2024 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClonePackage

func ClonePackage(pkgbase string, version string) error

func PackageExists

func PackageExists(pkgbase string) (bool, error)

Types

type Package

type Package struct {
	ID            int64  `yaml:"ID,omitempty"`
	Name          string `yaml:"Name,omitempty"`
	Version       string `yaml:"Version,omitempty"`
	PackageBase   string `yaml:"PackageBase,omitempty"`
	PackageBaseID int64  `yaml:"PackageBaseID,omitempty"`

	Description string   `yaml:"Description,omitempty"`
	URL         string   `yaml:"URL,omitempty"`
	URLPath     string   `yaml:"URLPath,omitempty"`
	Keywords    []string `yaml:"Keywords,omitempty"`
	License     []string `yaml:"License,omitempty"`

	Depends      []string `yaml:"Depends,omitempty"`
	CheckDepends []string `yaml:"CheckDepends,omitempty"`
	MakeDepends  []string `yaml:"MakeDepends,omitempty"`
	OptDepends   []string `yaml:"OptDepends,omitempty"`

	Provides  []string `yaml:"Provides,omitempty"`
	Conflicts []string `yaml:"Conflicts,omitempty"`
	Replaces  []string `yaml:"Replaces,omitempty"`

	Submitter     string   `yaml:"Submitter,omitempty"`
	Maintainer    string   `yaml:"Maintainer,omitempty"`
	CoMaintainers []string `yaml:"CoMaintainers,omitempty"`

	FirstSubmitted int64 `yaml:"FirstSubmitted,omitempty"`
	LastModified   int64 `yaml:"LastModified,omitempty"`

	NumVotes   int64   `yaml:"NumVotes,omitempty"`
	Popularity float32 `yaml:"Popularity,omitempty"`

	OutOfDate int64 `yaml:"OutOfDate,omitempty"`
}

func GetPackageInfos

func GetPackageInfos(pkgbase []string) ([]Package, error)

func (*Package) GetEpoch

func (pkg *Package) GetEpoch() int

func (*Package) GetPkgrel

func (pkg *Package) GetPkgrel() int

func (*Package) GetPkgver

func (pkg *Package) GetPkgver() string

type PackageSearchResults

type PackageSearchResults struct {
	ResultCount int       `yaml:"resultcount,omitempty"`
	Results     []Package `yaml:"results,omitempty"`
	Type        string    `yaml:"type,omitempty"`
	Version     int       `yaml:"version,omitempty"`
}

Jump to

Keyboard shortcuts

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