Documentation
¶
Index ¶
- func SearchPackages(so *SearchOptions) ([]packages.Package, error)
- type Data
- type Entry
- type Location
- type Package
- type PackageFormat
- type PackageHeaderRange
- type PackageLocation
- type PackageProvides
- type PackageRequires
- type PackageSize
- type PackageTime
- type PackageVersion
- type PrimaryRepositoryMetadata
- type RepositoryMetadata
- type SearchOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SearchPackages ¶ added in v0.3.0
func SearchPackages(so *SearchOptions) ([]packages.Package, error)
SearchPackages crawls packages from the specified repositories, and returns a list of package of type Package with specified name. func SearchPackages(repositoryURLs []*url.URL, packageName string, packageFileNames ...string) ([]Package, error) {
Types ¶
type Data ¶
func (*Data) GetLocation ¶
type Package ¶
type Package struct { XMLName xml.Name `xml:"package"` Name string `xml:"name"` Arch string `xml:"arch"` Version PackageVersion `xml:"version"` Summary string `xml:"summary"` Description string `xml:"description"` Packager string `xml:"packager"` Time PackageTime `xml:"time"` Size PackageSize `xml:"size"` Location PackageLocation `xml:"location"` Format PackageFormat `xml:"format"` // contains filtered or unexported fields }
func (*Package) FileReaders ¶
func (*Package) GetLocation ¶
func (*Package) GetRelease ¶
func (*Package) GetVersion ¶
type PackageFormat ¶
type PackageFormat struct { XMLName xml.Name `xml:"format"` License string `xml:"license"` Vendor string `xml:"vendor"` Group string `xml:"group"` Buildhost string `xml:"buildhost"` HeaderRange PackageHeaderRange `xml:"header-range"` Requires PackageRequires `xml:"requires"` Provides PackageProvides `xml:"provides"` }
type PackageHeaderRange ¶
type PackageLocation ¶
type PackageProvides ¶
type PackageRequires ¶
type PackageSize ¶
type PackageTime ¶
type PackageVersion ¶
type RepositoryMetadata ¶
type SearchOptions ¶ added in v0.3.0
type SearchOptions struct {
*packages.SearchOptions
}
func NewSearchOptions ¶ added in v0.3.0
func NewSearchOptions(options *packages.SearchOptions, architectures []packages.Architecture, seedURLs []string) *SearchOptions
NewSearchOptions returns a pointer to a SearchOptions object from a pointer to a packages.SearchOptions, and overriding architectures and seedURLs.
Click to show internal directories.
Click to hide internal directories.