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 ¶
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)
Click to show internal directories.
Click to hide internal directories.