consumers

package
v0.51.0 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2024 License: Apache-2.0 Imports: 7 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

This section is empty.

Variables

View Source
var (

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

Functions

func LoadEnrichedToolResponse

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

LoadEnrichedToolResponse loads enriched results from the enricher.

func LoadToolResponse

func LoadToolResponse() ([]*draconapiv1.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