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.

27 lines
719 B

using StabilityMatrix.Core.Models.Database;
namespace StabilityMatrix.Core.Services;
public interface IImageIndexService
{
/// <summary>
/// Gets a list of local images that start with the given path prefix
/// </summary>
Task<IReadOnlyList<LocalImageFile>> GetLocalImagesByPrefix(string pathPrefix);
/// <summary>
/// Refreshes the index of local images
/// </summary>
Task RefreshIndex(string subPath = "");
/// <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);
}