Include new method in SchedulerManager interface
@@ -25,6 +25,8 @@ package interfaces
import (
"context"
+ "github.com/topfreegames/maestro/internal/core/entities/operation"
+
"github.com/topfreegames/maestro/internal/core/entities"
)
@@ -33,4 +35,6 @@ type SchedulerManager interface {
SwitchActiveScheduler(ctx context.Context, scheduler *entities.Scheduler) error
GetActiveScheduler(ctx context.Context, schedulerName string) (*entities.Scheduler, error)
IsMajorVersionUpdate(currentScheduler, newScheduler *entities.Scheduler) bool
+ CreateNewSchedulerVersion(ctx context.Context, scheduler *entities.Scheduler) error
+ EnqueueSwitchActiveVersionOperation(ctx context.Context, newScheduler *entities.Scheduler) (*operation.Operation, error)
}
