Skip to content

Commit

Permalink
feat: change shutdown and teardown
Browse files Browse the repository at this point in the history
  • Loading branch information
Zygimantass committed Jan 10, 2025
1 parent a63ac86 commit 2c73a07
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,15 @@ 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 {
CreateTask(context.Context, TaskDefinition) (TaskI, error) // should this create a TaskI or the resources behind it?
SerializeTask(context.Context, TaskI) ([]byte, error)
DeserializeTask(context.Context, []byte) (TaskI, error)

Teardown(context.Context) error

SerializeProvider(context.Context) ([]byte, error)
}

Expand Down

0 comments on commit 2c73a07

Please sign in to comment.