alpm

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2023 License: MPL-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ALPMDBVersionFile = "ALPM_DB_VERSION"
	ALPMDBVersion     = 9
)

Variables

View Source
var (
	ErrDirEmpty = errors.New("directory is empty")
)

Functions

func SearchPackages

func SearchPackages(so *SearchOptions) ([]packages.Package, error)

Types

type Package

type Package struct {
	Name         string
	Version      string
	Release      string
	Architecture string
	Location     string

	Files []string
	// contains filtered or unexported fields
}

func (*Package) FileReaders

func (p *Package) FileReaders() []io.Reader

func (*Package) GetArch

func (p *Package) GetArch() string

func (*Package) GetLocation

func (p *Package) GetLocation() string

func (*Package) GetName

func (p *Package) GetName() string

func (*Package) GetRelease

func (p *Package) GetRelease() string

func (*Package) GetVersion

func (p *Package) GetVersion() string

func (*Package) URL

func (p *Package) URL() string

type SearchOptions

type SearchOptions struct {
	*packages.SearchOptions
	// contains filtered or unexported fields
}

func NewSearchOptions

func NewSearchOptions(options *packages.SearchOptions, seedURLs []string, packageNames []string) *SearchOptions

NewSearchOptions returns a pointer to a SearchOptions object from a pointer to a packages.SearchOptions, and overriding architectures and seedURLs.

func (*SearchOptions) PackageNames

func (o *SearchOptions) PackageNames() []string

Jump to

Keyboard shortcuts

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