Refactor instance management: replace CanStartInstance with IsMaxRunningInstancesReached method

This commit is contained in:
2025-08-30 23:12:58 +02:00
parent 68253be3e8
commit 58cb36bd18
2 changed files with 5 additions and 20 deletions

View File

@@ -21,7 +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)
IsMaxRunningInstancesReached() bool
StopInstance(name string) (*instance.Process, error)
RestartInstance(name string) (*instance.Process, error)
GetInstanceLogs(name string) (string, error)