Retrieve current process from leader, clone metadata, introduce new state 'deploying'

This commit is contained in:
Ingo Oppermann
2024-07-22 16:58:57 +02:00
parent 9e52f19a66
commit 879819f10f
19 changed files with 282 additions and 192 deletions

View File

@@ -9,6 +9,7 @@ import (
"strings"
"time"
"github.com/datarhei/core/v16/cluster/store"
"github.com/datarhei/core/v16/config"
"github.com/datarhei/core/v16/encoding/json"
"github.com/datarhei/core/v16/ffmpeg/skills"
@@ -26,6 +27,11 @@ type AddProcessRequest struct {
Config app.Config `json:"config"`
}
type GetProcessResponse struct {
Process store.Process `json:"process"`
NodeID string `json:"nodeid"`
}
type UpdateProcessRequest struct {
Config app.Config `json:"config"`
}