mirror of
https://github.com/usual2970/certimate.git
synced 2025-06-08 13:39:53 +00:00
34 lines
642 B
Go
34 lines
642 B
Go
package domain
|
|
|
|
type RunLogOutput struct {
|
|
Time string `json:"time"`
|
|
Title string `json:"title"`
|
|
Content string `json:"content"`
|
|
Error string `json:"error"`
|
|
}
|
|
|
|
type RunLog struct {
|
|
NodeName string `json:"nodeName"`
|
|
Error string `json:"error"`
|
|
Outputs []RunLogOutput `json:"outputs"`
|
|
}
|
|
|
|
type WorkflowRunLog struct {
|
|
Meta
|
|
Workflow string `json:"workflow"`
|
|
Log []RunLog `json:"log"`
|
|
Succeed bool `json:"succeed"`
|
|
Error string `json:"error"`
|
|
}
|
|
|
|
type RunLogs []RunLog
|
|
|
|
func (r RunLogs) Error() string {
|
|
for _, log := range r {
|
|
if log.Error != "" {
|
|
return log.Error
|
|
}
|
|
}
|
|
return ""
|
|
}
|