Help us shape the future of Go! Take the 2026 Go Developer Survey

purge

package
v0.52.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 26, 2022 License: BSD-3-Clause Imports: 24 Imported by: 0

Documentation

Index

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 ApplyRetentionPolicyOnWorkflow

func ApplyRetentionPolicyOnWorkflow(ctx context.Context, store cache.Store, db *gorp.DbMap, wf sdk.Workflow, opts MarkAsDeleteOptions, u *sdk.AuthentifiedUser) error

func DeleteArtifactsFromRepositoryManager

func DeleteArtifactsFromRepositoryManager(ctx context.Context, db gorp.SqlExecutor, wr *sdk.WorkflowRun) 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 SetPurgeConfiguration(rule string, disableDeletionConf bool) error

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 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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL