util

package
v0.4.8 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2024 License: Apache-2.0 Imports: 9 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanIDs

func CleanIDs(list string) []string

CleanIDs cleans ids from provided list

func ExitWithError

func ExitWithError(err error)

ExitWithError takes terminates execution with error message.

func GetSubstitutionMap added in v0.4.2

func GetSubstitutionMap(substituData []byte) (map[string]string, error)

GetSubstitutionMap is building the key:value map

func MakeSubstitutions added in v0.4.2

func MakeSubstitutions(s string, ext string, m map[string]string) string

MakeSubstitutions will replace all $keys with values.

func PrettyPrint

func PrettyPrint(r *check.Controls, summary check.Summary, noRemediations, includeTestOutput bool)

PrettyPrint outputs the results to stdout in human-readable format

func PrintOutput

func PrintOutput(output string, outputFile string)

PrintOutput writes data to the specified file

Types

type SubstitutionList added in v0.4.2

type SubstitutionList struct {
	Name string `yaml:"value"`
}

SubstitutionList is a Config file for substitution

Jump to

Keyboard shortcuts

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