pipelines

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2025 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Overview

Package pipelines implements the logic to run a pipeline for a target using a profile. It will accept a target to scan, the name of the downloader that should pull the target down, and a profile. It will then create a job to run the downloader first, then all scanners in the given profile. After it will start a job with the uploaders from the profile, with the resulting artifacts from the scanners.

Index

Constants

View Source
const (
	TargetDir  = "/mnt/target"
	ResultsDir = "/mnt/results"
)

Variables

This section is empty.

Functions

func Stop

func Stop(
	ctx context.Context,
	jobInterface typedBatchV1.JobInterface,
	id schemas.ExecutionID,
) error

Types

type Pipeline

type Pipeline schemas.Pipeline

func Get

func Get(
	ctx context.Context,
	jobInterface typedBatchV1.JobInterface,
	id schemas.ExecutionID,
) (Pipeline, error)

func List

func List(ctx context.Context, jobInterface typedBatchV1.JobInterface) ([]Pipeline, error)

func Run

func Run(
	ctx context.Context,
	jobInterface typedBatchV1.JobInterface,
	serviceInterface typedV1.ServiceInterface,
	svcNamespace string,
	target schemas.Target,
	dl resources.Downloader,
	profileName string,
	profile resources.Profile,
	uploaderStorage resources.UploaderStorageBackend,
) (Pipeline, error)

Jump to

Keyboard shortcuts

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