forked from PowerShell/PowerShell
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIPackageRepository.cs
More file actions
38 lines (33 loc) · 1.29 KB
/
Copy pathIPackageRepository.cs
File metadata and controls
38 lines (33 loc) · 1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
namespace Microsoft.PackageManagement.NuGetProvider
{
using System.Collections.Generic;
using System.Linq;
using Microsoft.PackageManagement.Provider.Utility;
public interface IPackageRepository
{
/// <summary>
/// Package source location
/// </summary>
string Source { get; }
/// <summary>
/// True if a file repository.
/// </summary>
bool IsFile { get; }
/// <summary>
/// Finds packages that match the exact Id and version.
/// </summary>
/// <returns>The package if found, null otherwise.</returns>
IPackage FindPackage(string packageId, SemanticVersion version, NuGetRequest request);
/// <summary>
/// Returns a sequence of packages with the specified id.
/// </summary>
IEnumerable<IPackage> FindPackagesById(string packageId, NuGetRequest request);
/// <summary>
/// Nuget V2 metadata supports a method 'Search'. It takes three parameters, searchTerm, targetFramework, and includePrerelease.
/// </summary>
/// <param name="searchTerm">search uri</param>
/// <param name="request"></param>
/// <returns></returns>
IEnumerable<IPackage> Search(string searchTerm, NuGetRequest request);
}
}