artifacts

package
v1.2.4 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteArtifacts

func DeleteArtifacts(ctx context.Context, client *gitlab.Client, job models.Job, runOptions engine.RunOptions) pooling.PoolerFunc

DeleteArtifacts returns a pooling PoolerFunc to be executed in a specific pool to delete job's artifacts.

func ReadJobs

func ReadJobs(ctx context.Context, client *gitlab.Client, project models.Project, runOptions engine.RunOptions) pooling.PoolerFunc

ReadJobs returns the function to clean artifacts a specific project.

This function retrieves all project's jobs and send them into pooling PoolerFunc input channel.

func ReadProjects

func ReadProjects(ctx context.Context, client *gitlab.Client, runOptions engine.RunOptions) <-chan pooling.PoolerFunc

ReadProjects reads all projects from gitlab api and send them into the output channel.

The output channel is closed once all projects were sent into it.

func Run

func Run(parent context.Context, client *gitlab.Client, opts ...engine.RunOption) error

Run retrieves gitlab projects and filters the one not appropriate with options (paths regexps).

For every appropriate project, it will retrieve jobs and delete outdated artifacts according to input option threshold.

Types

This section is empty.

Jump to

Keyboard shortcuts

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