Documentation
¶
Index ¶
- Constants
- func FindStatusPath(logDestination string, project string, reviewID string) (string, error)
- func NowString() string
- func ReviewDir(logDestination string, project string, reviewID string) string
- func StatusPath(reviewDir string) string
- func WriteStatus(path string, status ReviewStatus) error
- type QualityInfo
- type ReviewStatus
- type ReviewerInfo
Constants ¶
View Source
const ( StatusFileName = "status.json" StateRunning = "running" StateCompleted = "completed" StateFailed = "failed" )
Variables ¶
This section is empty.
Functions ¶
func FindStatusPath ¶
func StatusPath ¶
func WriteStatus ¶
func WriteStatus(path string, status ReviewStatus) error
Types ¶
type QualityInfo ¶
type ReviewStatus ¶
type ReviewStatus struct {
ReviewID string
Project string
Rubric string `dd:",+omitempty"`
State string
ChangesetKind string
Reviewer ReviewerInfo
StartedAt string
UpdatedAt string
CompletedAt string `dd:",+omitempty"`
StatusPath string
LogPath string `dd:",+omitempty"`
Error *errs.Info
Files []string `dd:",+omitempty"`
Qualities []QualityInfo `dd:",+omitempty"`
// ExcludedQualities records the rubric qualities territory narrowing
// dropped from this review, so the status of a running review shows what
// it covers before the verdict lands.
ExcludedQualities []QualityInfo `dd:",+omitempty"`
// Coverage is the territory-coverage assessment computed before the
// reviewer starts, carried unchanged from the first status write through
// completion or failure. nil on reviews recorded before coverage
// reporting existed: absence is unavailable, never an assessed empty
// gap list, and must not be filled in from the current canon.
Coverage *report.Coverage
}
func ReadStatus ¶
func ReadStatus(path string) (ReviewStatus, error)
type ReviewerInfo ¶
Click to show internal directories.
Click to hide internal directories.