Interface IPackageManager
- Namespace
- ZeroInstall.Services.Native
- Assembly
- ZeroInstall.Services.dll
Handles packages provided by the operating system's native package managers rather than Zero Install itself.
public interface IPackageManager
Remarks
Implementations of this interface are immutable and thread-safe.
Methods
Lookup(ImplementationSelection)
Looks up the specific ExternalImplementation an ImplementationSelection was based on.
ExternalImplementation? Lookup(ImplementationSelection selection)
Parameters
selection
ImplementationSelectionThe implementation selection to look up.
Returns
- ExternalImplementation
The ExternalImplementation;
null
ifselection
does not refer to a package known to this package manager.
Query(PackageImplementation, params string[])
Queries the package manager for all ExternalImplementations that match a specific PackageImplementation definition.
IEnumerable<ExternalImplementation> Query(PackageImplementation package, params string[] distributions)
Parameters
package
PackageImplementationThe definition of the package to look for.
distributions
string[]Specifies the distributions to check for matching packages. Leave empty to check in all available distributions.