Documentation
¶
Index ¶
- func ExtractPath(value any, path string) (any, bool)
- func ExtractString(value any, path string) string
- func ExtractStringValue(value any, path string) (string, bool)
- func ResolveBindingRequest(binding spec.Binding, ctx ExecutionContext) (map[string]any, map[string]CaptureResult, error)
- func ResolveExpression(expr string, ctx ExecutionContext) (any, bool, error)
- func ResolveRequest(mapping map[string]string, ctx ExecutionContext) (map[string]any, error)
- func ResolveResourceBindingRequest(resource spec.ResourceSpec, binding spec.Binding, ctx ExecutionContext) (map[string]any, map[string]CaptureResult, error)
- func SetTimeScaleForTest(scale float64) func()
- func ShouldRun(when string, whenAny []string, execCtx ExecutionContext) (bool, error)
- func ShouldSkip(expr string, execCtx ExecutionContext) (bool, error)
- type Caller
- type CaptureResult
- type ExecutionContext
- type Executor
- type ProbeResult
- type Request
- type Result
- type TokenGenerator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractString ¶
func ResolveBindingRequest ¶
func ResolveBindingRequest(binding spec.Binding, ctx ExecutionContext) (map[string]any, map[string]CaptureResult, error)
func ResolveExpression ¶
func ResolveExpression(expr string, ctx ExecutionContext) (any, bool, error)
func ResolveRequest ¶
func ResolveResourceBindingRequest ¶
func ResolveResourceBindingRequest(resource spec.ResourceSpec, binding spec.Binding, ctx ExecutionContext) (map[string]any, map[string]CaptureResult, error)
func SetTimeScaleForTest ¶
func SetTimeScaleForTest(scale float64) func()
func ShouldRun ¶
func ShouldRun(when string, whenAny []string, execCtx ExecutionContext) (bool, error)
func ShouldSkip ¶
func ShouldSkip(expr string, execCtx ExecutionContext) (bool, error)
Types ¶
type ExecutionContext ¶
type Executor ¶
type Executor struct {
// contains filtered or unexported fields
}
func NewExecutor ¶
func NewExecutor(resource spec.ResourceSpec, caller Caller) *Executor
type ProbeResult ¶
Click to show internal directories.
Click to hide internal directories.