util

package
v0.0.0-...-4addfbe Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

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

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

GetSubstitutionMap is building the key:value map

func MakeSubstitutions

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

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