isn/src/isnd/Interfaces/IPackageManager.cs

24 lines
950 B
C#
Raw Normal View History

2021-08-23 03:21:08 +01:00
using System.Collections.Generic;
2021-09-05 15:44:47 +01:00
using System.Threading.Tasks;
2021-08-23 03:21:08 +01:00
using isnd.Controllers;
using isnd.Data.Catalog;
using isnd.Services;
using isnd.ViewModels;
using NuGet.Versioning;
using Unleash;
namespace isnd.Interfaces
{
public interface IPackageManager
{
AutoCompleteResult AutoComplete(string id, int skip, int take, bool prerelease = false, string packageType = null);
2021-08-29 00:08:34 +01:00
2021-08-23 03:21:08 +01:00
CatalogIndex GetCatalogIndex();
string[] GetVersions(string id, NuGetVersion parsedVersion, bool prerelease = false, string packageType = null, int skip = 0, int take = 25);
PackageIndexViewModel SearchByName(string query, int skip, int take, bool prerelease = false, string packageType = null);
IEnumerable<Resource> GetResources(IUnleash unleashĈlient);
2021-08-29 00:51:43 +01:00
void ÛpdateCatalogFor(Commit commit);
2021-09-05 15:44:47 +01:00
Task<PackageDeletionReport> DeletePackageAsync(string pkgId, string fullVersion, string pkgType);
2021-08-23 03:21:08 +01:00
}
}