consumers

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package consumers provides helper functions for working with Dracon compatible outputs as a Consumer. Subdirectories in this package have more complete example usages of this package.

Index

Constants

View Source
const (
	// EnvDraconStartTime Start Time of Dracon Scan in RFC3339.
	EnvDraconStartTime = "DRACON_SCAN_TIME"
	// EnvDraconScanID the ID of the dracon scan.
	EnvDraconScanID = "DRACON_SCAN_ID"
	// EnvDraconScanTags the tags of the dracon scan.
	EnvDraconScanTags = "DRACON_SCAN_TAGS"
)

Variables

View Source
var (

	// Raw represents if the non-enriched results should be used.
	Raw bool
)

Functions

func LoadEnrichedToolResponse

func LoadEnrichedToolResponse() ([]*v1.EnrichedLaunchToolResponse, error)

LoadEnrichedToolResponse loads enriched results from the enricher.

func LoadToolResponse

func LoadToolResponse() ([]*v1.LaunchToolResponse, error)

LoadToolResponse loads raw results from producers.

func ParseFlags

func ParseFlags() error

ParseFlags will parse the input flags for the consumer and perform simple validation.

Types

This section is empty.

Directories

Path Synopsis
Package main of the aws-s3 consumer implements a simple consumer for uploading dracon results to the S3 bucket passed as an argument the consumer expects the environment variables AWS_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY to be set
Package main of the aws-s3 consumer implements a simple consumer for uploading dracon results to the S3 bucket passed as an argument the consumer expects the environment variables AWS_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY to be set
Package main of the bigquery consumer puts dracon issues into the target bigquery dataset, it will create teh dataset and the schema if one does not exist
Package main of the bigquery consumer puts dracon issues into the target bigquery dataset, it will create teh dataset and the schema if one does not exist
Package main of the pdf consumer implements a simple consumer for applying a go-template to a dracon scan, converting the result to pdf and then uploading the result to the S3 bucket passed as an argument the consumer expects the environment variables AWS_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY to be set along with the "bucket" and "region" arguments to be passed
Package main of the pdf consumer implements a simple consumer for applying a go-template to a dracon scan, converting the result to pdf and then uploading the result to the S3 bucket passed as an argument the consumer expects the environment variables AWS_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY to be set along with the "bucket" and "region" arguments to be passed

Jump to

Keyboard shortcuts

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