cs-codex-dist-tests/Framework/KubernetesWorkflow/K8sHooks.cs

28 lines
639 B
C#
Raw Permalink Normal View History

using KubernetesWorkflow.Recipe;
using KubernetesWorkflow.Types;
namespace KubernetesWorkflow
{
public interface IK8sHooks
{
2024-04-13 14:09:17 +00:00
void OnContainersStarted(RunningPod runningPod);
void OnContainersStopped(RunningPod runningPod);
2023-09-13 14:06:05 +00:00
void OnContainerRecipeCreated(ContainerRecipe recipe);
}
public class DoNothingK8sHooks : IK8sHooks
{
2024-04-13 14:09:17 +00:00
public void OnContainersStarted(RunningPod runningPod)
{
}
2024-04-13 14:09:17 +00:00
public void OnContainersStopped(RunningPod runningPod)
{
}
2023-09-13 14:06:05 +00:00
public void OnContainerRecipeCreated(ContainerRecipe recipe)
{
}
}
}