2020-04-12 20:01:46 +02:00
|
|
|
|
using Seenginx.Models;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace Seenginx.Services
|
|
|
|
|
{
|
|
|
|
|
public interface INginxService
|
|
|
|
|
{
|
2020-04-19 03:04:46 +02:00
|
|
|
|
Task<IEnumerable<ConfigFile>> GetFilesAsync();
|
2020-07-01 19:36:22 +02:00
|
|
|
|
Task<IEnumerable<Template>> GetTemplates();
|
2020-07-06 18:01:01 +02:00
|
|
|
|
|
2020-07-06 01:00:48 +02:00
|
|
|
|
Task<Result<string>> TestFileAsync(ConfigFile configFile);
|
2020-07-06 18:01:01 +02:00
|
|
|
|
|
|
|
|
|
Task<Result> ValidateForAddFileAsync(NewFileForm newFileForm);
|
2020-07-06 01:00:48 +02:00
|
|
|
|
Task<Result<ConfigFile>> AddFileAsync(NewFileForm newFileForm);
|
2020-07-06 18:01:01 +02:00
|
|
|
|
|
|
|
|
|
Task<Result> ValidateForSaveFileAsync(ConfigFile configFile);
|
2020-07-06 01:00:48 +02:00
|
|
|
|
Task<Result<ConfigFile>> SaveFileAsync(ConfigFile configFile);
|
2020-07-06 18:01:01 +02:00
|
|
|
|
|
|
|
|
|
Task<Result> ValidateForSaveDraftFileAsync(ConfigFile configFile);
|
2020-07-06 01:00:48 +02:00
|
|
|
|
Task<Result<ConfigFile>> SaveDraftFileAsync(ConfigFile configFile);
|
2020-07-06 18:01:01 +02:00
|
|
|
|
|
|
|
|
|
Task<Result> ValidateForRenameFileAsync(List<ConfigFile> configFiles, ConfigFile configFile, string newName);
|
2020-07-30 00:42:02 +02:00
|
|
|
|
Task<Result<ConfigFile>> RenameFileAsync(ConfigFile configFile, string newName);
|
2020-07-06 18:01:01 +02:00
|
|
|
|
|
|
|
|
|
Task<Result> ValidateForDeleteFileAsync(ConfigFile configFile);
|
|
|
|
|
Task<Result> DeleteFileAsync(ConfigFile configFile);
|
2020-04-12 20:01:46 +02:00
|
|
|
|
}
|
|
|
|
|
}
|