{"modulePath":"github.com/AliceO2Group/Control","version":"v1.51.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package callable\n\nPackage callable provides utility functions for workflow callable operations, including timeout handling and trigger expression parsing.\n\n## Functions\n\n```go\nfunc AcquireTimeout(defaultTimeout time.Duration, varStack map[string]string, callName string, envId string) time.Duration\n```\n\n## Types\n\n```go\ntype Call struct {\n\tFunc     string\n\tReturn   string\n\tVarStack map[string]string\n\tTraits   task.Traits\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewCall(funcCall string, returnVar string, parent ParentRole) (call *Call)\n```\n\n```go\nfunc (c *Call) Await() error\n```\n\n```go\nfunc (c *Call) Call() error\n```\n\n```go\nfunc (c *Call) Cancel() bool\n```\n\n```go\nfunc (c *Call) GetName() string\n```\n\n```go\nfunc (c *Call) GetParentRole() interface{}\n```\n\n```go\nfunc (c *Call) GetParentRolePath() string\n```\n\n```go\nfunc (c *Call) GetTraits() task.Traits\n```\n\n```go\nfunc (c *Call) Start()\n```\n\n```go\ntype Calls []*Call\n```\n\n```go\nfunc (s Calls) AwaitAll() map[*Call]error\n```\n\n```go\nfunc (s Calls) CallAll() map[*Call]error\n```\n\n```go\nfunc (s Calls) StartAll()\n```\n\n```go\ntype CallsMap map[HookWeight]Calls\n```\n\n```go\nfunc (m CallsMap) GetWeights() []HookWeight\n```\n\n```go\ntype Hook interface {\n\tGetParentRole() interface{}\n\tGetParentRolePath() string\n\tGetName() string\n\tGetTraits() task.Traits\n}\n```\n\n```go\ntype HookWeight int\n```\n\n```go\nfunc ParseTriggerExpression(triggerExpr string) (triggerName string, triggerWeight HookWeight)\n```\n\n```go\ntype Hooks []Hook\n```\n\n```go\nfunc (s Hooks) FilterCalls() (calls Calls)\n```\n\n```go\nfunc (s Hooks) FilterTasks() (tasks task.Tasks)\n```\n\n```go\ntype HooksMap map[HookWeight]Hooks\n```\n\n```go\nfunc (m HooksMap) GetWeights() []HookWeight\n```\n\n```go\ntype ParentRole interface {\n\tGetPath() string\n\tGetTaskTraits() task.Traits\n\tGetEnvironmentId() uid.ID\n\tConsolidatedVarStack() (varStack map[string]string, err error)\n\tSendEvent(event.Event)\n\tSetRuntimeVar(key string, value string)\n\tSetRuntimeVars(kv map[string]string)\n\tDeleteRuntimeVar(key string)\n\tDeleteRuntimeVars(keys []string)\n\tSetGlobalRuntimeVar(key string, value string)\n\tSetGlobalRuntimeVars(kv map[string]string)\n\tDeleteGlobalRuntimeVar(key string)\n\tDeleteGlobalRuntimeVars(keys []string)\n\tGetCurrentRunNumber() uint32\n}\n```\n\n","path":"github.com/AliceO2Group/Control/core/workflow/callable","name":"callable","synopsis":"Package callable provides utility functions for workflow callable operations, including timeout handling and trigger expression parsing.","isRedistributable":true}
