Documentation ¶
Index ¶
Constants ¶
View Source
const ( ExecutionStatusInProgress string = "InProgress" ExecutionStatusSucceed string = "Succeed" ExecutionStatusFailed string = "Failed" ExecutionStatusStopped string = "Stopped" )
const definitions
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RetentionExecution ¶
type RetentionExecution struct { ID int64 `orm:"pk;auto;column(id)" json:"id"` PolicyID int64 `orm:"column(policy_id)"` DryRun bool // manual, scheduled Trigger string StartTime time.Time EndTime time.Time `orm:"-"` Status string `orm:"-"` }
RetentionExecution Retention Execution
type RetentionPolicy ¶
type RetentionPolicy struct { ID int64 `orm:"pk;auto;column(id)" json:"id"` // 'system', 'project' and 'repository' ScopeLevel string ScopeReference int64 TriggerKind string // json format, include algorithm, rules, exclusions Data string CreateTime time.Time UpdateTime time.Time }
RetentionPolicy Retention Policy
type RetentionTask ¶
type RetentionTask struct { ID int64 `orm:"pk;auto;column(id)"` ExecutionID int64 `orm:"column(execution_id)"` Repository string `orm:"column(repository)"` JobID string `orm:"column(job_id)"` Status string `orm:"column(status)"` StatusCode int `orm:"column(status_code)"` // For order the different statuses StatusRevision int64 `orm:"column(status_revision)"` // For differentiating the each retry of the same job StartTime time.Time `orm:"column(start_time)"` EndTime time.Time `orm:"column(end_time)"` Total int `orm:"column(total)"` Retained int `orm:"column(retained)"` }
RetentionTask ...
Click to show internal directories.
Click to hide internal directories.