Stream live server logs over SSE
This commit is contained in:
@@ -1109,6 +1109,8 @@ type JobExecutionInput struct {
|
||||
LifecycleOperation string
|
||||
TargetVersion string
|
||||
Inputs map[string]string
|
||||
LogSource *RuntimeLogSource
|
||||
LogSources []RuntimeLogSource
|
||||
DLLExtensions []RuntimeDLLExtensionPlan
|
||||
SourceRCON *RuntimeSourceRCONPlan
|
||||
Deployment *ServerDeploymentDefinition
|
||||
@@ -1988,6 +1990,8 @@ func CopyRunEndpoint(endpoint RunEndpoint) RunEndpoint {
|
||||
|
||||
func CopyJob(job Job) Job {
|
||||
job.ExecutionInput.Inputs = CopyStringMap(job.ExecutionInput.Inputs)
|
||||
job.ExecutionInput.LogSource = CopyRuntimeLogSourcePtr(job.ExecutionInput.LogSource)
|
||||
job.ExecutionInput.LogSources = CopyRuntimeLogSources(job.ExecutionInput.LogSources)
|
||||
job.ExecutionInput.DLLExtensions = append([]RuntimeDLLExtensionPlan(nil), job.ExecutionInput.DLLExtensions...)
|
||||
job.ExecutionInput.SourceRCON = CopyRuntimeSourceRCONPlan(job.ExecutionInput.SourceRCON)
|
||||
job.ExecutionInput.ServerDeploymentPlan = CopyServerDeploymentPlan(job.ExecutionInput.ServerDeploymentPlan)
|
||||
@@ -2000,6 +2004,21 @@ func CopyJob(job Job) Job {
|
||||
return job
|
||||
}
|
||||
|
||||
func CopyRuntimeLogSourcePtr(source *RuntimeLogSource) *RuntimeLogSource {
|
||||
if source == nil {
|
||||
return nil
|
||||
}
|
||||
copy := *source
|
||||
return ©
|
||||
}
|
||||
|
||||
func CopyRuntimeLogSources(sources []RuntimeLogSource) []RuntimeLogSource {
|
||||
if sources == nil {
|
||||
return nil
|
||||
}
|
||||
return append([]RuntimeLogSource(nil), sources...)
|
||||
}
|
||||
|
||||
func CopyRuntimeSourceRCONPlan(plan *RuntimeSourceRCONPlan) *RuntimeSourceRCONPlan {
|
||||
if plan == nil {
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user