Multi-Platform Package Manager for Stable Diffusion
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

33 lines
978 B

using DynamicData.Binding;
using StabilityMatrix.Core.Models;
using StabilityMatrix.Core.Models.Database;
using StabilityMatrix.Core.Models.FileInterfaces;
namespace StabilityMatrix.Core.Services;
public interface IImageIndexService
{
IndexCollection<LocalImageFile, string> InferenceImages { get; }
/// <summary>
/// Gets a list of local images that start with the given path prefix
/// </summary>
Task<IReadOnlyList<LocalImageFile>> GetLocalImagesByPrefix(string pathPrefix);
/// <summary>
/// Refresh index for all collections
/// </summary>
Task RefreshIndexForAllCollections();
Task RefreshIndex(IndexCollection<LocalImageFile, string> indexCollection);
/// <summary>
/// Refreshes the index of local images in the background
/// </summary>
void BackgroundRefreshIndex();
/// <summary>
/// Removes a local image from the database
/// </summary>
Task RemoveImage(LocalImageFile imageFile);
}