enrichers

package
v0.24.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package enrichers provides helper functions for writing Dracon compatible enrichers that enrich dracon outputs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadData

func LoadData() ([]*draconV1.LaunchToolResponse, error)

LoadData returns the LaunchToolResponses meant for this enricher.

func LookupEnvOrString

func LookupEnvOrString(key string, defaultVal string) string

LookupEnvOrString will return the value of the environment variable if it exists, otherwise it will return the default value.

func ParseFlags

func ParseFlags() error

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

func SetReadPathForTests

func SetReadPathForTests(readFromPath string)

SetReadPathForTests sets the read path for tests.

func SetWritePathForTests

func SetWritePathForTests(writeToPath string)

SetWritePathForTests sets the write path for tests.

func WriteData

func WriteData(enrichedLaunchToolResponse *draconV1.EnrichedLaunchToolResponse, enricherName string) error

WriteData will write the enriched results to the write path.

Types

This section is empty.

Directories

Path Synopsis
Package main of the codeowners enricher handles enrichment of individual issues with the groups/usernames listed in the github repository CODEOWNERS files.
Package main of the codeowners enricher handles enrichment of individual issues with the groups/usernames listed in the github repository CODEOWNERS files.

Jump to

Keyboard shortcuts

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