Documentation ¶
Index ¶
- func DeleteArtifacts(ctx context.Context, client *gitlab.Client, job models.Job, ...) pooling.PoolerFunc
- func ReadJobs(ctx context.Context, client *gitlab.Client, project models.Project, ...) pooling.PoolerFunc
- func ReadProjects(ctx context.Context, client *gitlab.Client, runOptions engine.RunOptions) <-chan pooling.PoolerFunc
- func Run(parent context.Context, client *gitlab.Client, opts ...engine.RunOption) error
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.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.