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 (*Package) GetLocation ¶
func (*Package) GetRelease ¶
func (*Package) GetVersion ¶
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
Click to show internal directories.
Click to hide internal directories.