Documentation
¶
Index ¶
- Constants
- func ApplyRetentionPolicyOnWorkflow(ctx context.Context, store cache.Store, db *gorp.DbMap, wf sdk.Workflow, ...) error
- func DeleteArtifactsFromRepositoryManager(ctx context.Context, db gorp.SqlExecutor, wr *sdk.WorkflowRun) error
- func DeleteArtifactsFromRepositoryManagerV2(ctx context.Context, db gorp.SqlExecutor, run *sdk.V2WorkflowRun) error
- func GetRetentionPolicyVariables() []string
- func MarkRunsAsDelete(ctx context.Context, store cache.Store, DBFunc func() *gorp.DbMap, ...)
- func MarkWorkflowRuns(ctx context.Context, db *gorp.DbMap, ...) error
- func SetPurgeConfiguration(rule string, disableDeletionConf bool) error
- func Workflow(ctx context.Context, store cache.Store, DBFunc func() *gorp.DbMap, ...)
- func WorkflowRunV2(ctx context.Context, db *gorp.DbMap, id string) error
- func WorkflowRuns(ctx context.Context, DBFunc func() *gorp.DbMap, ...)
- func WorkflowRunsV2(ctx context.Context, DBFunc func() *gorp.DbMap, purgeRoutineTIcker int64)
- type MarkAsDeleteOptions
Constants ¶
View Source
const ( RunStatus = "run_status" RunDaysBefore = "run_days_before" RunHasGitBranch = "has_git_branch" RunGitBranchExist = "git_branch_exist" RunChangeExist = "gerrit_change_exist" RunChangeMerged = "gerrit_change_merged" RunChangeAbandoned = "gerrit_change_abandoned" RunChangeDayBefore = "gerrit_change_days_before" )
Variables ¶
This section is empty.
Functions ¶
func DeleteArtifactsFromRepositoryManager ¶
func DeleteArtifactsFromRepositoryManager(ctx context.Context, db gorp.SqlExecutor, wr *sdk.WorkflowRun) error
func DeleteArtifactsFromRepositoryManagerV2 ¶ added in v0.55.0
func DeleteArtifactsFromRepositoryManagerV2(ctx context.Context, db gorp.SqlExecutor, run *sdk.V2WorkflowRun) error
func GetRetentionPolicyVariables ¶
func GetRetentionPolicyVariables() []string
func MarkRunsAsDelete ¶
func MarkRunsAsDelete(ctx context.Context, store cache.Store, DBFunc func() *gorp.DbMap, workflowRunsMarkToDelete *stats.Int64Measure)
MarkRunsAsDelete mark workflow run as delete
func MarkWorkflowRuns ¶
func MarkWorkflowRuns(ctx context.Context, db *gorp.DbMap, workflowRunsMarkToDelete *stats.Int64Measure) error
MarkWorkflowRuns Deprecated: old method to mark runs to delete
func SetPurgeConfiguration ¶
func Workflow ¶
func Workflow(ctx context.Context, store cache.Store, DBFunc func() *gorp.DbMap, workflowRunsMarkToDelete *stats.Int64Measure)
Workflow deletes workflows marked as to delete
func WorkflowRunV2 ¶ added in v0.55.0
func WorkflowRuns ¶
func WorkflowRuns(ctx context.Context, DBFunc func() *gorp.DbMap, workflowRunsMarkToDelete, workflowRunsDeleted *stats.Int64Measure)
PurgeWorkflow deletes workflow runs marked as to delete
Types ¶
type MarkAsDeleteOptions ¶
type MarkAsDeleteOptions struct {
DryRun bool
}
Click to show internal directories.
Click to hide internal directories.