enrichers

package
v0.59.1 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package enrichers provides helper functions for writing Smithy compatible enrichers that enrich smithy outputs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEmptyLaunchToolResponse

func GetEmptyLaunchToolResponse(_ *testing.T) []*smithyv1.LaunchToolResponse

GetEmptyLaunchToolResponse returns a slice of LaunchToolResponse with no issues

func GetLaunchToolResponse

func GetLaunchToolResponse(_ *testing.T) []*smithyv1.LaunchToolResponse

GetEmptyLaunchToolResponse returns a slice of LaunchToolResponse with no issues

func LoadData

func LoadData() ([]*smithyV1.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 SetupIODirs

func SetupIODirs(t *testing.T) (indir, outdir string)

SetupIODirs creates temporary directories for input and output files

func WriteData

func WriteData(enrichedLaunchToolResponse *smithyV1.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.
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