Documentation
¶
Index ¶
- Variables
- func BuildMetadata(workflow *ast.Workflow) map[string]interface{}
- func CopyMap(src map[string]interface{}) map[string]interface{}
- func FormatDuration(d time.Duration) string
- func GenerateRunID() string
- func GetEnvironmentVars() map[string]string
- func GetMapValue(m map[string]interface{}, path string) (interface{}, bool)
- func IsValidVariableName(name string) bool
- func MergeMap(dst, src map[string]interface{})
- func SafeBool(v interface{}) bool
- func SafeInt(v interface{}) int
- func SafeString(v interface{}) string
- func SetMapValue(m map[string]interface{}, path string, value interface{})
Constants ¶
This section is empty.
Variables ¶
View Source
var ( LacquerRootDir string LacquerCacheDir string )
Functions ¶
func BuildMetadata ¶
buildMetadata creates metadata map from workflow
func FormatDuration ¶
FormatDuration formats a duration in a human-readable way
func GenerateRunID ¶
func GenerateRunID() string
generateRunID creates a unique identifier for a workflow execution
func GetEnvironmentVars ¶
getEnvironmentVars returns a map of environment variables
func GetMapValue ¶
GetMapValue safely gets a value from a nested map using dot notation
func IsValidVariableName ¶
IsValidVariableName checks if a string is a valid variable name
func MergeMap ¶
func MergeMap(dst, src map[string]interface{})
MergeMap merges source map into destination map
func SafeString ¶
func SafeString(v interface{}) string
SafeString safely converts an interface to string
func SetMapValue ¶
SetMapValue safely sets a value in a nested map using dot notation
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.