Documentation ¶
Overview ¶
Package enrichers provides helper functions for writing Dracon compatible enrichers that enrich dracon outputs.
Index ¶
- func LoadData() ([]*draconV1.LaunchToolResponse, error)
- func LookupEnvOrString(key string, defaultVal string) string
- func ParseFlags() error
- func SetReadPathForTests(readFromPath string)
- func SetWritePathForTests(writeToPath string)
- func WriteData(enrichedLaunchToolResponse *draconV1.EnrichedLaunchToolResponse, ...) error
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 ¶
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.
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. |
Click to show internal directories.
Click to hide internal directories.