helper

package
v0.0.0-...-c0cbf50 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ToolVersion string

Functions

func CollectNonEmtpyMaps

func CollectNonEmtpyMaps(maps ...map[string]string) []map[string]string

func Contains

func Contains(arr []string, s string) bool

func ContainsEntry

func ContainsEntry(list []string, entry string) bool

func CopyStringMap

func CopyStringMap(m map[string]string) map[string]string
func CreateSymlinks(src string, dst string, names []string) error

func GenerateCheckResultIdHash

func GenerateCheckResultIdHash(hashFields HashFields) string

func GetOsEnv

func GetOsEnv() map[string]string

func GoldenValue

func GoldenValue(t *testing.T, goldenFile string, actual []byte, update bool) []byte

func HideSecretsInArrayOfLines

func HideSecretsInArrayOfLines(lines []string, secrets map[string]string) []string

func HideSecretsInArrayOfStrings

func HideSecretsInArrayOfStrings(array []string, secrets map[string]string) []string

func HideSecretsInJsonObject

func HideSecretsInJsonObject(content, secretsContent []byte) ([]byte, error)

func HideSecretsInMap

func HideSecretsInMap(m *map[string]string, secrets map[string]string)

func HideSecretsInString

func HideSecretsInString(content string, secrets map[string]string) string

func HideValuesInJsonObject

func HideValuesInJsonObject(content []byte) ([]byte, error)

func HideValuesInMap

func HideValuesInMap(m *map[string]string)

func Join

func Join(errs ...error) error

func MapsEqual

func MapsEqual(m1, m2 map[string]interface{}, ignoreKeys []string, ignorePattern string) bool

func MergeMaps

func MergeMaps(maps ...map[string]string) map[string]string

func ParseJsonMap

func ParseJsonMap(content []byte) (map[string]string, error)

func SlicesEqual

func SlicesEqual(s1, s2 []interface{}, ignoreKeys []string, ignorePattern string) bool

func StringsEqual

func StringsEqual(s1, s2, ignorePattern string) bool

func ValuesEqual

func ValuesEqual(v1, v2 interface{}, ignoreKeys []string, ignorePattern string) bool

Types

type HashFields

type HashFields struct {
	Chapter       string
	Requirement   string
	Check         string
	Criterion     string
	Justification string
}

Jump to

Keyboard shortcuts

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