Documentation ¶
Overview ¶
Package enrichers provides helper functions for writing Smithy compatible enrichers that enrich smithy outputs.
Index ¶
- func GetEmptyLaunchToolResponse(_ *testing.T) []*smithyv1.LaunchToolResponse
- func GetLaunchToolResponse(_ *testing.T) []*smithyv1.LaunchToolResponse
- func LoadData() ([]*smithyV1.LaunchToolResponse, error)
- func LookupEnvOrString(key string, defaultVal string) string
- func ParseFlags() error
- func SetReadPathForTests(readFromPath string)
- func SetWritePathForTests(writeToPath string)
- func SetupIODirs(t *testing.T) (indir, outdir string)
- func WriteData(enrichedLaunchToolResponse *smithyV1.EnrichedLaunchToolResponse, ...) error
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 ¶
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 ¶
SetupIODirs creates temporary directories for input and output files
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. |