Blame internal/osbuild2/result.go

Packit Service 15f37d
package osbuild2
Packit Service 15f37d
Packit Service 15f37d
import (
Packit Service 15f37d
	"encoding/json"
Packit Service 15f37d
)
Packit Service 15f37d
Packit Service 15f37d
type PipelineResult []StageResult
Packit Service 15f37d
Packit Service 15f37d
type StageResult struct {
Packit Service 15f37d
	ID      string `json:"id"`
Packit Service 15f37d
	Type    string `json:"type"`
Packit Service 15f37d
	Output  string `json:"output"`
Packit Service 15f37d
	Success bool   `json:"success,omitempty"`
Packit Service 15f37d
	Error   string `json:"string,omitempty"`
Packit Service 15f37d
}
Packit Service 15f37d
Packit Service 15f37d
type Result struct {
Packit Service 15f37d
	Type    string                    `json:"type"`
Packit Service 15f37d
	Success bool                      `json:"success"`
Packit Service 15f37d
	Error   json.RawMessage           `json:"error"`
Packit Service 15f37d
	Log     map[string]PipelineResult `json:"log"`
Packit Service 15f37d
}