From 2c73a0745099b14f03a3449a02fb7658283f200d Mon Sep 17 00:00:00 2001 From: Zygimantas Date: Fri, 10 Jan 2025 11:24:53 +0100 Subject: [PATCH] feat: change shutdown and teardown --- core/provider/provider.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/provider/provider.go b/core/provider/provider.go index 24bd235..2e3321b 100644 --- a/core/provider/provider.go +++ b/core/provider/provider.go @@ -49,7 +49,6 @@ type TaskI interface { GetExternalAddress(context.Context, string) (string, error) RunCommand(context.Context, []string) (string, string, int, error) - RunCommandWhileStopped(context.Context, []string) (string, string, int, error) } type ProviderI interface { @@ -57,6 +56,8 @@ type ProviderI interface { SerializeTask(context.Context, TaskI) ([]byte, error) DeserializeTask(context.Context, []byte) (TaskI, error) + Teardown(context.Context) error + SerializeProvider(context.Context) ([]byte, error) }