18 lines
805 B
C#

using meilisearch.NET.Interfaces;
namespace meilisearch.NET.Services.IndexManagement;
public interface IIndexManager
{
Task<List<string>> GetAllIndexes();
Task CreateIndexAsync<T>(string indexName) where T : IDocument;
void CreateIndex<T>(string indexName) where T : IDocument;
Task DeleteIndexAsync(string indexName);
void DeleteIndex(string indexName);
Task SetIndexEnabledAsync(string indexName, bool enabled);
void SetIndexEnabled(string indexName, bool enabled);
Task<long> GetIndexStorageUsageAsync(string indexName, bool useCompressedSize = true);
Task<long> GetTotalStorageUsageAsync(bool useCompressedSize = true);
long GetIndexStorageUsage(string indexName, bool useCompressedSize = true);
long GetTotalStorageUsage(bool useCompressedSize = true);
}