Add CanStartInstance method to check instance start conditions

This commit is contained in:
2025-08-30 22:47:15 +02:00
parent a9f1c1a619
commit 68253be3e8
2 changed files with 27 additions and 0 deletions

View File

@@ -21,6 +21,7 @@ type InstanceManager interface {
UpdateInstance(name string, options *instance.CreateInstanceOptions) (*instance.Process, error)
DeleteInstance(name string) error
StartInstance(name string) (*instance.Process, error)
CanStartInstance(inst *instance.Process) (bool, error)
StopInstance(name string) (*instance.Process, error)
RestartInstance(name string) (*instance.Process, error)
GetInstanceLogs(name string) (string, error)