Documentation
¶
Index ¶
- func Int(i int) string
- func Str(s string) string
- type CELParser
- func (p *CELParser) CheckStepRunOutAgainstKnown(out *StepRunOut, knownType dbsqlc.StepExpressionKind) error
- func (p *CELParser) CheckStepRunOutAgainstKnownV1(out *StepRunOut, knownType sqlcv1.StepExpressionKind) error
- func (p *CELParser) EvaluateEventExpression(expr string, input Input) (bool, error)
- func (p *CELParser) EvaluateIncomingWebhookExpression(expr string, input Input) (string, error)
- func (p *CELParser) ParseAndEvalStepRun(stepRunExpr string, in Input) (*StepRunOut, error)
- func (p *CELParser) ParseAndEvalWorkflowString(workflowExp string, in Input) (string, error)
- func (p *CELParser) ParseStepRun(stepRunExpr string) (cel.Program, error)
- func (p *CELParser) ParseWorkflowString(workflowExp string) (cel.Program, error)
- type Input
- type InputOpts
- func WithAdditionalMetadata(metadata map[string]interface{}) InputOpts
- func WithEventID(eventID string) InputOpts
- func WithEventKey(key string) InputOpts
- func WithHeaders(headers map[string]string) InputOpts
- func WithInput(input map[string]interface{}) InputOpts
- func WithParents(parents any) InputOpts
- func WithPayload(payload map[string]interface{}) InputOpts
- func WithWorkflowRunID(workflowRunID string) InputOpts
- type StepRunOut
- type StepRunOutType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CELParser ¶
type CELParser struct {
// contains filtered or unexported fields
}
func NewCELParser ¶
func NewCELParser() *CELParser
func (*CELParser) CheckStepRunOutAgainstKnown ¶
func (p *CELParser) CheckStepRunOutAgainstKnown(out *StepRunOut, knownType dbsqlc.StepExpressionKind) error
func (*CELParser) CheckStepRunOutAgainstKnownV1 ¶
func (p *CELParser) CheckStepRunOutAgainstKnownV1(out *StepRunOut, knownType sqlcv1.StepExpressionKind) error
func (*CELParser) EvaluateEventExpression ¶
func (*CELParser) EvaluateIncomingWebhookExpression ¶ added in v0.70.0
func (*CELParser) ParseAndEvalStepRun ¶
func (p *CELParser) ParseAndEvalStepRun(stepRunExpr string, in Input) (*StepRunOut, error)
func (*CELParser) ParseAndEvalWorkflowString ¶
func (*CELParser) ParseStepRun ¶
type InputOpts ¶
type InputOpts func(Input)
func WithAdditionalMetadata ¶
func WithEventID ¶
func WithEventKey ¶
func WithHeaders ¶ added in v0.70.7
func WithParents ¶
func WithPayload ¶
func WithWorkflowRunID ¶
type StepRunOut ¶
type StepRunOut struct {
String *string
Int *int
Type StepRunOutType
}
type StepRunOutType ¶
type StepRunOutType string
const ( StepRunOutTypeString StepRunOutType = "string" StepRunOutTypeInt StepRunOutType = "int" )
Click to show internal directories.
Click to hide internal directories.