feat: confirm run deployment execution
This commit is contained in:
@@ -887,6 +887,16 @@ type ServerDeploymentDispatchEvidence struct {
|
||||
JobState JobState
|
||||
DeploymentRevision int
|
||||
DeploymentDefinitionIncluded bool
|
||||
RunConfirmed bool
|
||||
}
|
||||
|
||||
type ServerDeploymentExecutionReceipt struct {
|
||||
SchemaVersion string
|
||||
Revision int
|
||||
Action string
|
||||
Mode ServerDeploymentMode
|
||||
Shell ServerCommandShell
|
||||
UsedServerRoot bool
|
||||
}
|
||||
|
||||
type ConfigDiffLine struct {
|
||||
@@ -1087,6 +1097,7 @@ type JobExecutionResult struct {
|
||||
AuditSummary string
|
||||
Content string
|
||||
ServerDeploymentEvidence *ServerDeploymentEvidence
|
||||
DeploymentReceipt *ServerDeploymentExecutionReceipt
|
||||
}
|
||||
|
||||
type Job struct {
|
||||
@@ -1798,6 +1809,14 @@ func CopyServerDeploymentEvidence(evidence *ServerDeploymentEvidence) *ServerDep
|
||||
return ©
|
||||
}
|
||||
|
||||
func CopyServerDeploymentExecutionReceipt(receipt *ServerDeploymentExecutionReceipt) *ServerDeploymentExecutionReceipt {
|
||||
if receipt == nil {
|
||||
return nil
|
||||
}
|
||||
copy := *receipt
|
||||
return ©
|
||||
}
|
||||
|
||||
func CopyServerDeploymentDefinition(definition ServerDeploymentDefinition) ServerDeploymentDefinition {
|
||||
definition.RuntimeBindings = CopyStringMap(definition.RuntimeBindings)
|
||||
definition.CreateInputs = CopyStringMap(definition.CreateInputs)
|
||||
@@ -1877,6 +1896,7 @@ func CopyJob(job Job) Job {
|
||||
job.ExecutionInput.SourceRCON = CopyRuntimeSourceRCONPlan(job.ExecutionInput.SourceRCON)
|
||||
job.ExecutionInput.ServerDeploymentPlan = CopyServerDeploymentPlan(job.ExecutionInput.ServerDeploymentPlan)
|
||||
job.ExecutionResult.ServerDeploymentEvidence = CopyServerDeploymentEvidence(job.ExecutionResult.ServerDeploymentEvidence)
|
||||
job.ExecutionResult.DeploymentReceipt = CopyServerDeploymentExecutionReceipt(job.ExecutionResult.DeploymentReceipt)
|
||||
if job.ExecutionInput.Deployment != nil {
|
||||
copy := CopyServerDeploymentDefinition(*job.ExecutionInput.Deployment)
|
||||
job.ExecutionInput.Deployment = ©
|
||||
|
||||
Reference in New Issue
Block a user