2023-11-12 09:07:23 +00:00
|
|
|
|
using KubernetesWorkflow.Recipe;
|
|
|
|
|
using KubernetesWorkflow.Types;
|
|
|
|
|
|
|
|
|
|
namespace KubernetesWorkflow
|
2023-09-13 13:10:19 +00:00
|
|
|
|
{
|
|
|
|
|
public interface IK8sHooks
|
|
|
|
|
{
|
|
|
|
|
void OnContainersStarted(RunningContainers runningContainers);
|
|
|
|
|
void OnContainersStopped(RunningContainers runningContainers);
|
2023-09-13 14:06:05 +00:00
|
|
|
|
void OnContainerRecipeCreated(ContainerRecipe recipe);
|
2023-09-13 13:10:19 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class DoNothingK8sHooks : IK8sHooks
|
|
|
|
|
{
|
|
|
|
|
public void OnContainersStarted(RunningContainers runningContainers)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void OnContainersStopped(RunningContainers runningContainers)
|
|
|
|
|
{
|
|
|
|
|
}
|
2023-09-13 14:06:05 +00:00
|
|
|
|
|
|
|
|
|
public void OnContainerRecipeCreated(ContainerRecipe recipe)
|
|
|
|
|
{
|
|
|
|
|
}
|
2023-09-13 13:10:19 +00:00
|
|
|
|
}
|
|
|
|
|
}
|