utils

package
v0.0.0-...-a3dbc15 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddRootProperty

func AddRootProperty(propertyName string, propertyValue interface{}) func(interface{}) interface{}

func ApplyFunctionToJSON

func ApplyFunctionToJSON(messageBody string, modifier func(interface{}) interface{}) (string, error)

func ColorizeJSON

func ColorizeJSON(jsonStr string) (string, error)

func ExpandEnvVarsInInterface

func ExpandEnvVarsInInterface(value interface{}) interface{}

func ExtractRootProperty

func ExtractRootProperty(propertyName string) func(interface{}) interface{}

func FileExists

func FileExists(filename string) bool

func IsEventMatchingStatus

func IsEventMatchingStatus(eventToSendMessage string, jobStatus string) bool

func IsPatternMatchingString

func IsPatternMatchingString(patternStr string, matchString string) (bool, error)

func IsPostConditionMet

func IsPostConditionMet(branchMatches bool, tagMatches bool, invertMatch bool) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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