mirror of
https://github.com/logos-storage/logos-storage-nim-cs-dist-tests.git
synced 2026-01-02 13:33:07 +00:00
30 lines
839 B
C#
30 lines
839 B
C#
using Logging;
|
|
|
|
namespace CodexPlugin
|
|
{
|
|
public interface IProcessControl
|
|
{
|
|
void Stop(ICodexInstance instance, bool waitTillStopped);
|
|
IDownloadedLog DownloadLog(ICodexInstance instance, LogFile file);
|
|
void DeleteDataDirFolder(ICodexInstance instance);
|
|
}
|
|
|
|
|
|
//public void DeleteDataDirFolder()
|
|
//{
|
|
// try
|
|
// {
|
|
// var dataDirVar = container.Recipe.EnvVars.Single(e => e.Name == "CODEX_DATA_DIR");
|
|
// var dataDir = dataDirVar.Value;
|
|
// var workflow = tools.CreateWorkflow();
|
|
// workflow.ExecuteCommand(container, "rm", "-Rfv", $"/codex/{dataDir}/repo");
|
|
// log.Log("Deleted repo folder.");
|
|
// }
|
|
// catch (Exception e)
|
|
// {
|
|
// log.Log("Unable to delete repo folder: " + e);
|
|
// }
|
|
//}
|
|
|
|
}
|