deb

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: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	InRelease           = "InRelease"
	PackagesIndexFormat = ".xz"
)

Variables

This section is empty.

Functions

func SearchPackages

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

SearchPackages returns a slice of pault.ag/go/archive.Package objects, filtering as for search options. The function crawls the repositories with asynchronous and parallel workers.

Types

type Package

type Package struct {
	Name     string
	Arch     string
	Version  string
	Release  string
	Location string
	//nolint:stylecheck,revive
	Url 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 PackageLocation

type PackageLocation struct {
	Href string
}

type SearchOptions

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

func NewSearchOptions

func NewSearchOptions(options *packages.SearchOptions, architectures []packages.Architecture, seedURLs []string, components []string) *SearchOptions

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

func (*SearchOptions) Components

func (s *SearchOptions) Components() []string

Jump to

Keyboard shortcuts

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