mirror of
https://github.com/harness/drone.git
synced 2025-05-05 00:11:43 +08:00
26 lines
974 B
Go
26 lines
974 B
Go
// Copyright 2022 Harness Inc. All rights reserved.
|
|
// Use of this source code is governed by the Polyform Free Trial License
|
|
// that can be found in the LICENSE.md file for this repository.
|
|
|
|
package types
|
|
|
|
import "github.com/harness/gitness/types/enum"
|
|
|
|
type Step struct {
|
|
ID int64 `json:"-"`
|
|
StageID int64 `json:"-"`
|
|
Number int64 `json:"number"`
|
|
Name string `json:"name"`
|
|
Status enum.CIStatus `json:"status"`
|
|
Error string `json:"error,omitempty"`
|
|
ErrIgnore bool `json:"errignore,omitempty"`
|
|
ExitCode int `json:"exit_code"`
|
|
Started int64 `json:"started,omitempty"`
|
|
Stopped int64 `json:"stopped,omitempty"`
|
|
Version int64 `json:"-" db:"step_version"`
|
|
DependsOn []string `json:"depends_on,omitempty"`
|
|
Image string `json:"image,omitempty"`
|
|
Detached bool `json:"detached"`
|
|
Schema string `json:"schema,omitempty"`
|
|
}
|