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