Documentation ¶
Index ¶
- func DefaultRegistry() block.InterpreterRegistry
- type Array
- type ArrayInterpreter
- func (i ArrayInterpreter) CreateBlock(id conflow.ID, blockCtx *conflow.BlockContext) conflow.Block
- func (i ArrayInterpreter) Param(b conflow.Block, name conflow.ID) interface{}
- func (i ArrayInterpreter) ParseContext(ctx *conflow.ParseContext) *conflow.ParseContext
- func (i ArrayInterpreter) Schema() schema.Schema
- func (i ArrayInterpreter) SetBlock(block conflow.Block, name conflow.ID, key string, value interface{}) error
- func (i ArrayInterpreter) SetParam(block conflow.Block, name conflow.ID, value interface{}) error
- func (i ArrayInterpreter) ValueParamName() conflow.ID
- type Boolean
- type BooleanInterpreter
- func (i BooleanInterpreter) CreateBlock(id conflow.ID, blockCtx *conflow.BlockContext) conflow.Block
- func (i BooleanInterpreter) Param(b conflow.Block, name conflow.ID) interface{}
- func (i BooleanInterpreter) ParseContext(ctx *conflow.ParseContext) *conflow.ParseContext
- func (i BooleanInterpreter) Schema() schema.Schema
- func (i BooleanInterpreter) SetBlock(block conflow.Block, name conflow.ID, key string, value interface{}) error
- func (i BooleanInterpreter) SetParam(block conflow.Block, name conflow.ID, value interface{}) error
- func (i BooleanInterpreter) ValueParamName() conflow.ID
- type Bug
- type BugInterpreter
- func (i BugInterpreter) CreateBlock(id conflow.ID, blockCtx *conflow.BlockContext) conflow.Block
- func (i BugInterpreter) Param(b conflow.Block, name conflow.ID) interface{}
- func (i BugInterpreter) ParseContext(ctx *conflow.ParseContext) *conflow.ParseContext
- func (i BugInterpreter) Schema() schema.Schema
- func (i BugInterpreter) SetBlock(block conflow.Block, name conflow.ID, key string, value interface{}) error
- func (i BugInterpreter) SetParam(block conflow.Block, name conflow.ID, value interface{}) error
- func (i BugInterpreter) ValueParamName() conflow.ID
- type Deprecated
- type DeprecatedInterpreter
- func (i DeprecatedInterpreter) CreateBlock(id conflow.ID, blockCtx *conflow.BlockContext) conflow.Block
- func (i DeprecatedInterpreter) Param(b conflow.Block, name conflow.ID) interface{}
- func (i DeprecatedInterpreter) ParseContext(ctx *conflow.ParseContext) *conflow.ParseContext
- func (i DeprecatedInterpreter) Schema() schema.Schema
- func (i DeprecatedInterpreter) SetBlock(block conflow.Block, name conflow.ID, key string, value interface{}) error
- func (i DeprecatedInterpreter) SetParam(block conflow.Block, name conflow.ID, value interface{}) error
- func (i DeprecatedInterpreter) ValueParamName() conflow.ID
- type Doc
- type DocInterpreter
- func (i DocInterpreter) CreateBlock(id conflow.ID, blockCtx *conflow.BlockContext) conflow.Block
- func (i DocInterpreter) Param(b conflow.Block, name conflow.ID) interface{}
- func (i DocInterpreter) ParseContext(ctx *conflow.ParseContext) *conflow.ParseContext
- func (i DocInterpreter) Schema() schema.Schema
- func (i DocInterpreter) SetBlock(block conflow.Block, name conflow.ID, key string, value interface{}) error
- func (i DocInterpreter) SetParam(block conflow.Block, name conflow.ID, value interface{}) error
- func (i DocInterpreter) ValueParamName() conflow.ID
- type Input
- type InputInterpreter
- func (i InputInterpreter) CreateBlock(id conflow.ID, blockCtx *conflow.BlockContext) conflow.Block
- func (i InputInterpreter) Param(b conflow.Block, name conflow.ID) interface{}
- func (i InputInterpreter) ParseContext(ctx *conflow.ParseContext) *conflow.ParseContext
- func (i InputInterpreter) Schema() schema.Schema
- func (i InputInterpreter) SetBlock(block conflow.Block, name conflow.ID, key string, value interface{}) error
- func (i InputInterpreter) SetParam(block conflow.Block, name conflow.ID, value interface{}) error
- func (i InputInterpreter) ValueParamName() conflow.ID
- type Integer
- type IntegerInterpreter
- func (i IntegerInterpreter) CreateBlock(id conflow.ID, blockCtx *conflow.BlockContext) conflow.Block
- func (i IntegerInterpreter) Param(b conflow.Block, name conflow.ID) interface{}
- func (i IntegerInterpreter) ParseContext(ctx *conflow.ParseContext) *conflow.ParseContext
- func (i IntegerInterpreter) Schema() schema.Schema
- func (i IntegerInterpreter) SetBlock(block conflow.Block, name conflow.ID, key string, value interface{}) error
- func (i IntegerInterpreter) SetParam(block conflow.Block, name conflow.ID, value interface{}) error
- func (i IntegerInterpreter) ValueParamName() conflow.ID
- type Map
- type MapInterpreter
- func (i MapInterpreter) CreateBlock(id conflow.ID, blockCtx *conflow.BlockContext) conflow.Block
- func (i MapInterpreter) Param(b conflow.Block, name conflow.ID) interface{}
- func (i MapInterpreter) ParseContext(ctx *conflow.ParseContext) *conflow.ParseContext
- func (i MapInterpreter) Schema() schema.Schema
- func (i MapInterpreter) SetBlock(block conflow.Block, name conflow.ID, key string, value interface{}) error
- func (i MapInterpreter) SetParam(block conflow.Block, name conflow.ID, value interface{}) error
- func (i MapInterpreter) ValueParamName() conflow.ID
- type Number
- type NumberInterpreter
- func (i NumberInterpreter) CreateBlock(id conflow.ID, blockCtx *conflow.BlockContext) conflow.Block
- func (i NumberInterpreter) Param(b conflow.Block, name conflow.ID) interface{}
- func (i NumberInterpreter) ParseContext(ctx *conflow.ParseContext) *conflow.ParseContext
- func (i NumberInterpreter) Schema() schema.Schema
- func (i NumberInterpreter) SetBlock(block conflow.Block, name conflow.ID, key string, value interface{}) error
- func (i NumberInterpreter) SetParam(block conflow.Block, name conflow.ID, value interface{}) error
- func (i NumberInterpreter) ValueParamName() conflow.ID
- type Object
- type ObjectInterpreter
- func (i ObjectInterpreter) CreateBlock(id conflow.ID, blockCtx *conflow.BlockContext) conflow.Block
- func (i ObjectInterpreter) Param(b conflow.Block, name conflow.ID) interface{}
- func (i ObjectInterpreter) ParseContext(ctx *conflow.ParseContext) *conflow.ParseContext
- func (i ObjectInterpreter) Schema() schema.Schema
- func (i ObjectInterpreter) SetBlock(block conflow.Block, name conflow.ID, key string, value interface{}) error
- func (i ObjectInterpreter) SetParam(block conflow.Block, name conflow.ID, value interface{}) error
- func (i ObjectInterpreter) ValueParamName() conflow.ID
- type Output
- type OutputInterpreter
- func (i OutputInterpreter) CreateBlock(id conflow.ID, blockCtx *conflow.BlockContext) conflow.Block
- func (i OutputInterpreter) Param(b conflow.Block, name conflow.ID) interface{}
- func (i OutputInterpreter) ParseContext(ctx *conflow.ParseContext) *conflow.ParseContext
- func (i OutputInterpreter) Schema() schema.Schema
- func (i OutputInterpreter) SetBlock(block conflow.Block, name conflow.ID, key string, value interface{}) error
- func (i OutputInterpreter) SetParam(block conflow.Block, name conflow.ID, value interface{}) error
- func (i OutputInterpreter) ValueParamName() conflow.ID
- type Retry
- type RetryInterpreter
- func (i RetryInterpreter) CreateBlock(id conflow.ID, blockCtx *conflow.BlockContext) conflow.Block
- func (i RetryInterpreter) Param(b conflow.Block, name conflow.ID) interface{}
- func (i RetryInterpreter) ParseContext(ctx *conflow.ParseContext) *conflow.ParseContext
- func (i RetryInterpreter) Schema() schema.Schema
- func (i RetryInterpreter) SetBlock(block conflow.Block, name conflow.ID, key string, value interface{}) error
- func (i RetryInterpreter) SetParam(block conflow.Block, name conflow.ID, value interface{}) error
- func (i RetryInterpreter) ValueParamName() conflow.ID
- type Run
- type RunInterpreter
- func (i RunInterpreter) CreateBlock(id conflow.ID, blockCtx *conflow.BlockContext) conflow.Block
- func (i RunInterpreter) Param(b conflow.Block, name conflow.ID) interface{}
- func (i RunInterpreter) ParseContext(ctx *conflow.ParseContext) *conflow.ParseContext
- func (i RunInterpreter) Schema() schema.Schema
- func (i RunInterpreter) SetBlock(block conflow.Block, name conflow.ID, key string, value interface{}) error
- func (i RunInterpreter) SetParam(block conflow.Block, name conflow.ID, value interface{}) error
- func (i RunInterpreter) ValueParamName() conflow.ID
- type Skip
- type SkipInterpreter
- func (i SkipInterpreter) CreateBlock(id conflow.ID, blockCtx *conflow.BlockContext) conflow.Block
- func (i SkipInterpreter) Param(b conflow.Block, name conflow.ID) interface{}
- func (i SkipInterpreter) ParseContext(ctx *conflow.ParseContext) *conflow.ParseContext
- func (i SkipInterpreter) Schema() schema.Schema
- func (i SkipInterpreter) SetBlock(block conflow.Block, name conflow.ID, key string, value interface{}) error
- func (i SkipInterpreter) SetParam(block conflow.Block, name conflow.ID, value interface{}) error
- func (i SkipInterpreter) ValueParamName() conflow.ID
- type String
- type StringInterpreter
- func (i StringInterpreter) CreateBlock(id conflow.ID, blockCtx *conflow.BlockContext) conflow.Block
- func (i StringInterpreter) Param(b conflow.Block, name conflow.ID) interface{}
- func (i StringInterpreter) ParseContext(ctx *conflow.ParseContext) *conflow.ParseContext
- func (i StringInterpreter) Schema() schema.Schema
- func (i StringInterpreter) SetBlock(block conflow.Block, name conflow.ID, key string, value interface{}) error
- func (i StringInterpreter) SetParam(block conflow.Block, name conflow.ID, value interface{}) error
- func (i StringInterpreter) ValueParamName() conflow.ID
- type Timeout
- type TimeoutInterpreter
- func (i TimeoutInterpreter) CreateBlock(id conflow.ID, blockCtx *conflow.BlockContext) conflow.Block
- func (i TimeoutInterpreter) Param(b conflow.Block, name conflow.ID) interface{}
- func (i TimeoutInterpreter) ParseContext(ctx *conflow.ParseContext) *conflow.ParseContext
- func (i TimeoutInterpreter) Schema() schema.Schema
- func (i TimeoutInterpreter) SetBlock(block conflow.Block, name conflow.ID, key string, value interface{}) error
- func (i TimeoutInterpreter) SetParam(block conflow.Block, name conflow.ID, value interface{}) error
- func (i TimeoutInterpreter) ValueParamName() conflow.ID
- type Todo
- type TodoInterpreter
- func (i TodoInterpreter) CreateBlock(id conflow.ID, blockCtx *conflow.BlockContext) conflow.Block
- func (i TodoInterpreter) Param(b conflow.Block, name conflow.ID) interface{}
- func (i TodoInterpreter) ParseContext(ctx *conflow.ParseContext) *conflow.ParseContext
- func (i TodoInterpreter) Schema() schema.Schema
- func (i TodoInterpreter) SetBlock(block conflow.Block, name conflow.ID, key string, value interface{}) error
- func (i TodoInterpreter) SetParam(block conflow.Block, name conflow.ID, value interface{}) error
- func (i TodoInterpreter) ValueParamName() conflow.ID
- type Triggers
- type TriggersInterpreter
- func (i TriggersInterpreter) CreateBlock(id conflow.ID, blockCtx *conflow.BlockContext) conflow.Block
- func (i TriggersInterpreter) Param(b conflow.Block, name conflow.ID) interface{}
- func (i TriggersInterpreter) ParseContext(ctx *conflow.ParseContext) *conflow.ParseContext
- func (i TriggersInterpreter) Schema() schema.Schema
- func (i TriggersInterpreter) SetBlock(block conflow.Block, name conflow.ID, key string, value interface{}) error
- func (i TriggersInterpreter) SetParam(block conflow.Block, name conflow.ID, value interface{}) error
- func (i TriggersInterpreter) ValueParamName() conflow.ID
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultRegistry ¶
func DefaultRegistry() block.InterpreterRegistry
Types ¶
type Array ¶
@block { type = "directive" eval_stage = "parse" }
func (*Array) ApplyToParameterConfig ¶
func (a *Array) ApplyToParameterConfig(config *conflow.ParameterConfig)
func (*Array) ParseContextOverride ¶
func (a *Array) ParseContextOverride() conflow.ParseContextOverride
type ArrayInterpreter ¶
type ArrayInterpreter struct { }
ArrayInterpreter is the Conflow interpreter for the Array block
func (ArrayInterpreter) CreateBlock ¶
func (i ArrayInterpreter) CreateBlock(id conflow.ID, blockCtx *conflow.BlockContext) conflow.Block
Create creates a new Array block
func (ArrayInterpreter) Param ¶
func (i ArrayInterpreter) Param(b conflow.Block, name conflow.ID) interface{}
func (ArrayInterpreter) ParseContext ¶
func (i ArrayInterpreter) ParseContext(ctx *conflow.ParseContext) *conflow.ParseContext
ParseContext returns with the parse context for the block
func (ArrayInterpreter) Schema ¶
func (i ArrayInterpreter) Schema() schema.Schema
func (ArrayInterpreter) ValueParamName ¶
func (i ArrayInterpreter) ValueParamName() conflow.ID
ValueParamName returns the name of the parameter marked as value field, if there is one set
type Boolean ¶
@block { type = "directive" eval_stage = "parse" }
func (*Boolean) ApplyToParameterConfig ¶
func (b *Boolean) ApplyToParameterConfig(config *conflow.ParameterConfig)
type BooleanInterpreter ¶
type BooleanInterpreter struct { }
BooleanInterpreter is the Conflow interpreter for the Boolean block
func (BooleanInterpreter) CreateBlock ¶
func (i BooleanInterpreter) CreateBlock(id conflow.ID, blockCtx *conflow.BlockContext) conflow.Block
Create creates a new Boolean block
func (BooleanInterpreter) Param ¶
func (i BooleanInterpreter) Param(b conflow.Block, name conflow.ID) interface{}
func (BooleanInterpreter) ParseContext ¶
func (i BooleanInterpreter) ParseContext(ctx *conflow.ParseContext) *conflow.ParseContext
ParseContext returns with the parse context for the block
func (BooleanInterpreter) Schema ¶
func (i BooleanInterpreter) Schema() schema.Schema
func (BooleanInterpreter) ValueParamName ¶
func (i BooleanInterpreter) ValueParamName() conflow.ID
ValueParamName returns the name of the parameter marked as value field, if there is one set
type Bug ¶
type Bug struct {
// contains filtered or unexported fields
}
@block { type = "directive" eval_stage = "ignore" }
Example ¶
eval(` @bug "There is a typo here" println "Hlelo World!" `)
Output: Hlelo World!
func (*Bug) ApplyToParameterConfig ¶
func (b *Bug) ApplyToParameterConfig(*conflow.ParameterConfig)
func (*Bug) ApplyToRuntimeConfig ¶
func (b *Bug) ApplyToRuntimeConfig(*conflow.RuntimeConfig)
type BugInterpreter ¶
type BugInterpreter struct { }
BugInterpreter is the Conflow interpreter for the Bug block
func (BugInterpreter) CreateBlock ¶
func (i BugInterpreter) CreateBlock(id conflow.ID, blockCtx *conflow.BlockContext) conflow.Block
Create creates a new Bug block
func (BugInterpreter) Param ¶
func (i BugInterpreter) Param(b conflow.Block, name conflow.ID) interface{}
func (BugInterpreter) ParseContext ¶
func (i BugInterpreter) ParseContext(ctx *conflow.ParseContext) *conflow.ParseContext
ParseContext returns with the parse context for the block
func (BugInterpreter) Schema ¶
func (i BugInterpreter) Schema() schema.Schema
func (BugInterpreter) ValueParamName ¶
func (i BugInterpreter) ValueParamName() conflow.ID
ValueParamName returns the name of the parameter marked as value field, if there is one set
type Deprecated ¶
type Deprecated struct {
// contains filtered or unexported fields
}
@block { type = "directive" eval_stage = "ignore" }
Example ¶
eval(` @deprecated "This should not be used" println "What, I'm deprecated?!" `)
Output: What, I'm deprecated?!
func (*Deprecated) ApplyToParameterConfig ¶
func (d *Deprecated) ApplyToParameterConfig(*conflow.ParameterConfig)
func (*Deprecated) ApplyToRuntimeConfig ¶
func (d *Deprecated) ApplyToRuntimeConfig(*conflow.RuntimeConfig)
func (*Deprecated) ID ¶
func (d *Deprecated) ID() conflow.ID
type DeprecatedInterpreter ¶
type DeprecatedInterpreter struct { }
DeprecatedInterpreter is the Conflow interpreter for the Deprecated block
func (DeprecatedInterpreter) CreateBlock ¶
func (i DeprecatedInterpreter) CreateBlock(id conflow.ID, blockCtx *conflow.BlockContext) conflow.Block
Create creates a new Deprecated block
func (DeprecatedInterpreter) Param ¶
func (i DeprecatedInterpreter) Param(b conflow.Block, name conflow.ID) interface{}
func (DeprecatedInterpreter) ParseContext ¶
func (i DeprecatedInterpreter) ParseContext(ctx *conflow.ParseContext) *conflow.ParseContext
ParseContext returns with the parse context for the block
func (DeprecatedInterpreter) Schema ¶
func (i DeprecatedInterpreter) Schema() schema.Schema
func (DeprecatedInterpreter) ValueParamName ¶
func (i DeprecatedInterpreter) ValueParamName() conflow.ID
ValueParamName returns the name of the parameter marked as value field, if there is one set
type Doc ¶
type Doc struct {
// contains filtered or unexported fields
}
@block { type = "directive" eval_stage = "ignore" }
func (*Doc) ApplyToParameterConfig ¶
func (d *Doc) ApplyToParameterConfig(*conflow.ParameterConfig)
func (*Doc) ApplyToRuntimeConfig ¶
func (d *Doc) ApplyToRuntimeConfig(*conflow.RuntimeConfig)
type DocInterpreter ¶
type DocInterpreter struct { }
DocInterpreter is the Conflow interpreter for the Doc block
func (DocInterpreter) CreateBlock ¶
func (i DocInterpreter) CreateBlock(id conflow.ID, blockCtx *conflow.BlockContext) conflow.Block
Create creates a new Doc block
func (DocInterpreter) Param ¶
func (i DocInterpreter) Param(b conflow.Block, name conflow.ID) interface{}
func (DocInterpreter) ParseContext ¶
func (i DocInterpreter) ParseContext(ctx *conflow.ParseContext) *conflow.ParseContext
ParseContext returns with the parse context for the block
func (DocInterpreter) Schema ¶
func (i DocInterpreter) Schema() schema.Schema
func (DocInterpreter) ValueParamName ¶
func (i DocInterpreter) ValueParamName() conflow.ID
ValueParamName returns the name of the parameter marked as value field, if there is one set
type Input ¶
type Input struct {
// contains filtered or unexported fields
}
@block { type = "directive" eval_stage = "parse" }
func (*Input) ApplyToParameterConfig ¶
func (i *Input) ApplyToParameterConfig(config *conflow.ParameterConfig)
func (*Input) ParseContextOverride ¶
func (i *Input) ParseContextOverride() conflow.ParseContextOverride
type InputInterpreter ¶
type InputInterpreter struct { }
InputInterpreter is the Conflow interpreter for the Input block
func (InputInterpreter) CreateBlock ¶
func (i InputInterpreter) CreateBlock(id conflow.ID, blockCtx *conflow.BlockContext) conflow.Block
Create creates a new Input block
func (InputInterpreter) Param ¶
func (i InputInterpreter) Param(b conflow.Block, name conflow.ID) interface{}
func (InputInterpreter) ParseContext ¶
func (i InputInterpreter) ParseContext(ctx *conflow.ParseContext) *conflow.ParseContext
ParseContext returns with the parse context for the block
func (InputInterpreter) Schema ¶
func (i InputInterpreter) Schema() schema.Schema
func (InputInterpreter) ValueParamName ¶
func (i InputInterpreter) ValueParamName() conflow.ID
ValueParamName returns the name of the parameter marked as value field, if there is one set
type Integer ¶
@block { type = "directive" eval_stage = "parse" }
func (*Integer) ApplyToParameterConfig ¶
func (i *Integer) ApplyToParameterConfig(config *conflow.ParameterConfig)
type IntegerInterpreter ¶
type IntegerInterpreter struct { }
IntegerInterpreter is the Conflow interpreter for the Integer block
func (IntegerInterpreter) CreateBlock ¶
func (i IntegerInterpreter) CreateBlock(id conflow.ID, blockCtx *conflow.BlockContext) conflow.Block
Create creates a new Integer block
func (IntegerInterpreter) Param ¶
func (i IntegerInterpreter) Param(b conflow.Block, name conflow.ID) interface{}
func (IntegerInterpreter) ParseContext ¶
func (i IntegerInterpreter) ParseContext(ctx *conflow.ParseContext) *conflow.ParseContext
ParseContext returns with the parse context for the block
func (IntegerInterpreter) Schema ¶
func (i IntegerInterpreter) Schema() schema.Schema
func (IntegerInterpreter) ValueParamName ¶
func (i IntegerInterpreter) ValueParamName() conflow.ID
ValueParamName returns the name of the parameter marked as value field, if there is one set
type Map ¶
@block { type = "directive" eval_stage = "parse" }
func (*Map) ApplyToParameterConfig ¶
func (m *Map) ApplyToParameterConfig(config *conflow.ParameterConfig)
func (*Map) ParseContextOverride ¶
func (m *Map) ParseContextOverride() conflow.ParseContextOverride
type MapInterpreter ¶
type MapInterpreter struct { }
MapInterpreter is the Conflow interpreter for the Map block
func (MapInterpreter) CreateBlock ¶
func (i MapInterpreter) CreateBlock(id conflow.ID, blockCtx *conflow.BlockContext) conflow.Block
Create creates a new Map block
func (MapInterpreter) Param ¶
func (i MapInterpreter) Param(b conflow.Block, name conflow.ID) interface{}
func (MapInterpreter) ParseContext ¶
func (i MapInterpreter) ParseContext(ctx *conflow.ParseContext) *conflow.ParseContext
ParseContext returns with the parse context for the block
func (MapInterpreter) Schema ¶
func (i MapInterpreter) Schema() schema.Schema
func (MapInterpreter) ValueParamName ¶
func (i MapInterpreter) ValueParamName() conflow.ID
ValueParamName returns the name of the parameter marked as value field, if there is one set
type Number ¶
@block { type = "directive" eval_stage = "parse" }
func (*Number) ApplyToParameterConfig ¶
func (n *Number) ApplyToParameterConfig(config *conflow.ParameterConfig)
type NumberInterpreter ¶
type NumberInterpreter struct { }
NumberInterpreter is the Conflow interpreter for the Number block
func (NumberInterpreter) CreateBlock ¶
func (i NumberInterpreter) CreateBlock(id conflow.ID, blockCtx *conflow.BlockContext) conflow.Block
Create creates a new Number block
func (NumberInterpreter) Param ¶
func (i NumberInterpreter) Param(b conflow.Block, name conflow.ID) interface{}
func (NumberInterpreter) ParseContext ¶
func (i NumberInterpreter) ParseContext(ctx *conflow.ParseContext) *conflow.ParseContext
ParseContext returns with the parse context for the block
func (NumberInterpreter) Schema ¶
func (i NumberInterpreter) Schema() schema.Schema
func (NumberInterpreter) ValueParamName ¶
func (i NumberInterpreter) ValueParamName() conflow.ID
ValueParamName returns the name of the parameter marked as value field, if there is one set
type Object ¶
@block { type = "directive" eval_stage = "parse" }
func (*Object) ApplyToParameterConfig ¶
func (o *Object) ApplyToParameterConfig(config *conflow.ParameterConfig)
func (*Object) ParseContextOverride ¶
func (o *Object) ParseContextOverride() conflow.ParseContextOverride
type ObjectInterpreter ¶
type ObjectInterpreter struct { }
ObjectInterpreter is the Conflow interpreter for the Object block
func (ObjectInterpreter) CreateBlock ¶
func (i ObjectInterpreter) CreateBlock(id conflow.ID, blockCtx *conflow.BlockContext) conflow.Block
Create creates a new Object block
func (ObjectInterpreter) Param ¶
func (i ObjectInterpreter) Param(b conflow.Block, name conflow.ID) interface{}
func (ObjectInterpreter) ParseContext ¶
func (i ObjectInterpreter) ParseContext(ctx *conflow.ParseContext) *conflow.ParseContext
ParseContext returns with the parse context for the block
func (ObjectInterpreter) Schema ¶
func (i ObjectInterpreter) Schema() schema.Schema
func (ObjectInterpreter) ValueParamName ¶
func (i ObjectInterpreter) ValueParamName() conflow.ID
ValueParamName returns the name of the parameter marked as value field, if there is one set
type Output ¶
type Output struct {
// contains filtered or unexported fields
}
@block { type = "directive" eval_stage = "parse" }
func (*Output) ApplyToParameterConfig ¶
func (o *Output) ApplyToParameterConfig(config *conflow.ParameterConfig)
func (*Output) ParseContextOverride ¶
func (o *Output) ParseContextOverride() conflow.ParseContextOverride
type OutputInterpreter ¶
type OutputInterpreter struct { }
OutputInterpreter is the Conflow interpreter for the Output block
func (OutputInterpreter) CreateBlock ¶
func (i OutputInterpreter) CreateBlock(id conflow.ID, blockCtx *conflow.BlockContext) conflow.Block
Create creates a new Output block
func (OutputInterpreter) Param ¶
func (i OutputInterpreter) Param(b conflow.Block, name conflow.ID) interface{}
func (OutputInterpreter) ParseContext ¶
func (i OutputInterpreter) ParseContext(ctx *conflow.ParseContext) *conflow.ParseContext
ParseContext returns with the parse context for the block
func (OutputInterpreter) Schema ¶
func (i OutputInterpreter) Schema() schema.Schema
func (OutputInterpreter) ValueParamName ¶
func (i OutputInterpreter) ValueParamName() conflow.ID
ValueParamName returns the name of the parameter marked as value field, if there is one set
type Retry ¶
type Retry struct {
// contains filtered or unexported fields
}
@block { type = "directive" eval_stage = "init" }
func (*Retry) ApplyToRuntimeConfig ¶
func (r *Retry) ApplyToRuntimeConfig(config *conflow.RuntimeConfig)
type RetryInterpreter ¶
type RetryInterpreter struct { }
RetryInterpreter is the Conflow interpreter for the Retry block
func (RetryInterpreter) CreateBlock ¶
func (i RetryInterpreter) CreateBlock(id conflow.ID, blockCtx *conflow.BlockContext) conflow.Block
Create creates a new Retry block
func (RetryInterpreter) Param ¶
func (i RetryInterpreter) Param(b conflow.Block, name conflow.ID) interface{}
func (RetryInterpreter) ParseContext ¶
func (i RetryInterpreter) ParseContext(ctx *conflow.ParseContext) *conflow.ParseContext
ParseContext returns with the parse context for the block
func (RetryInterpreter) Schema ¶
func (i RetryInterpreter) Schema() schema.Schema
func (RetryInterpreter) ValueParamName ¶
func (i RetryInterpreter) ValueParamName() conflow.ID
ValueParamName returns the name of the parameter marked as value field, if there is one set
type Run ¶
type Run struct {
// contains filtered or unexported fields
}
@block { type = "directive" eval_stage = "init" }
func (*Run) ApplyToRuntimeConfig ¶
func (r *Run) ApplyToRuntimeConfig(config *conflow.RuntimeConfig)
type RunInterpreter ¶
type RunInterpreter struct { }
RunInterpreter is the Conflow interpreter for the Run block
func (RunInterpreter) CreateBlock ¶
func (i RunInterpreter) CreateBlock(id conflow.ID, blockCtx *conflow.BlockContext) conflow.Block
Create creates a new Run block
func (RunInterpreter) Param ¶
func (i RunInterpreter) Param(b conflow.Block, name conflow.ID) interface{}
func (RunInterpreter) ParseContext ¶
func (i RunInterpreter) ParseContext(ctx *conflow.ParseContext) *conflow.ParseContext
ParseContext returns with the parse context for the block
func (RunInterpreter) Schema ¶
func (i RunInterpreter) Schema() schema.Schema
func (RunInterpreter) ValueParamName ¶
func (i RunInterpreter) ValueParamName() conflow.ID
ValueParamName returns the name of the parameter marked as value field, if there is one set
type Skip ¶
type Skip struct {
// contains filtered or unexported fields
}
@block { type = "directive" eval_stage = "init" }
func (*Skip) ApplyToRuntimeConfig ¶
func (s *Skip) ApplyToRuntimeConfig(config *conflow.RuntimeConfig)
type SkipInterpreter ¶
type SkipInterpreter struct { }
SkipInterpreter is the Conflow interpreter for the Skip block
func (SkipInterpreter) CreateBlock ¶
func (i SkipInterpreter) CreateBlock(id conflow.ID, blockCtx *conflow.BlockContext) conflow.Block
Create creates a new Skip block
func (SkipInterpreter) Param ¶
func (i SkipInterpreter) Param(b conflow.Block, name conflow.ID) interface{}
func (SkipInterpreter) ParseContext ¶
func (i SkipInterpreter) ParseContext(ctx *conflow.ParseContext) *conflow.ParseContext
ParseContext returns with the parse context for the block
func (SkipInterpreter) Schema ¶
func (i SkipInterpreter) Schema() schema.Schema
func (SkipInterpreter) ValueParamName ¶
func (i SkipInterpreter) ValueParamName() conflow.ID
ValueParamName returns the name of the parameter marked as value field, if there is one set
type String ¶
@block { type = "directive" eval_stage = "parse" }
func (*String) ApplyToParameterConfig ¶
func (s *String) ApplyToParameterConfig(config *conflow.ParameterConfig)
type StringInterpreter ¶
type StringInterpreter struct { }
StringInterpreter is the Conflow interpreter for the String block
func (StringInterpreter) CreateBlock ¶
func (i StringInterpreter) CreateBlock(id conflow.ID, blockCtx *conflow.BlockContext) conflow.Block
Create creates a new String block
func (StringInterpreter) Param ¶
func (i StringInterpreter) Param(b conflow.Block, name conflow.ID) interface{}
func (StringInterpreter) ParseContext ¶
func (i StringInterpreter) ParseContext(ctx *conflow.ParseContext) *conflow.ParseContext
ParseContext returns with the parse context for the block
func (StringInterpreter) Schema ¶
func (i StringInterpreter) Schema() schema.Schema
func (StringInterpreter) ValueParamName ¶
func (i StringInterpreter) ValueParamName() conflow.ID
ValueParamName returns the name of the parameter marked as value field, if there is one set
type Timeout ¶
type Timeout struct {
// contains filtered or unexported fields
}
@block { type = "directive" eval_stage = "init" }
Example ¶
eval(` @timeout 10ms s sleep { duration = 20ms } `)
Output: Example errored: timeout reached in sleep.s at 3:3
func (*Timeout) ApplyToRuntimeConfig ¶
func (t *Timeout) ApplyToRuntimeConfig(config *conflow.RuntimeConfig)
type TimeoutInterpreter ¶
type TimeoutInterpreter struct { }
TimeoutInterpreter is the Conflow interpreter for the Timeout block
func (TimeoutInterpreter) CreateBlock ¶
func (i TimeoutInterpreter) CreateBlock(id conflow.ID, blockCtx *conflow.BlockContext) conflow.Block
Create creates a new Timeout block
func (TimeoutInterpreter) Param ¶
func (i TimeoutInterpreter) Param(b conflow.Block, name conflow.ID) interface{}
func (TimeoutInterpreter) ParseContext ¶
func (i TimeoutInterpreter) ParseContext(ctx *conflow.ParseContext) *conflow.ParseContext
ParseContext returns with the parse context for the block
func (TimeoutInterpreter) Schema ¶
func (i TimeoutInterpreter) Schema() schema.Schema
func (TimeoutInterpreter) ValueParamName ¶
func (i TimeoutInterpreter) ValueParamName() conflow.ID
ValueParamName returns the name of the parameter marked as value field, if there is one set
type Todo ¶
type Todo struct {
// contains filtered or unexported fields
}
@block { type = "directive" eval_stage = "ignore" }
Example ¶
eval(` @todo "This needs more world" println "Hello ..." `)
Output: Hello ...
func (*Todo) ApplyToParameterConfig ¶
func (t *Todo) ApplyToParameterConfig(*conflow.ParameterConfig)
func (*Todo) ApplyToRuntimeConfig ¶
func (t *Todo) ApplyToRuntimeConfig(*conflow.RuntimeConfig)
type TodoInterpreter ¶
type TodoInterpreter struct { }
TodoInterpreter is the Conflow interpreter for the Todo block
func (TodoInterpreter) CreateBlock ¶
func (i TodoInterpreter) CreateBlock(id conflow.ID, blockCtx *conflow.BlockContext) conflow.Block
Create creates a new Todo block
func (TodoInterpreter) Param ¶
func (i TodoInterpreter) Param(b conflow.Block, name conflow.ID) interface{}
func (TodoInterpreter) ParseContext ¶
func (i TodoInterpreter) ParseContext(ctx *conflow.ParseContext) *conflow.ParseContext
ParseContext returns with the parse context for the block
func (TodoInterpreter) Schema ¶
func (i TodoInterpreter) Schema() schema.Schema
func (TodoInterpreter) ValueParamName ¶
func (i TodoInterpreter) ValueParamName() conflow.ID
ValueParamName returns the name of the parameter marked as value field, if there is one set
type Triggers ¶
type Triggers struct {
// contains filtered or unexported fields
}
@block { type = "directive" eval_stage = "resolve" }
Example ¶
eval(` iterator { value = [1, 2, 3] a it } iterator { value = [1, 2, 3] b it } delayed_b sleep { duration = 10ms value := b.value } @triggers ["a"] println { value = "a = " + string(a.value) + ", b = " + string(delayed_b.value) } `)
Output: a = 1, b = 1 a = 2, b = 1 a = 3, b = 1
func (*Triggers) ApplyToRuntimeConfig ¶
func (t *Triggers) ApplyToRuntimeConfig(config *conflow.RuntimeConfig)
type TriggersInterpreter ¶
type TriggersInterpreter struct { }
TriggersInterpreter is the Conflow interpreter for the Triggers block
func (TriggersInterpreter) CreateBlock ¶
func (i TriggersInterpreter) CreateBlock(id conflow.ID, blockCtx *conflow.BlockContext) conflow.Block
Create creates a new Triggers block
func (TriggersInterpreter) Param ¶
func (i TriggersInterpreter) Param(b conflow.Block, name conflow.ID) interface{}
func (TriggersInterpreter) ParseContext ¶
func (i TriggersInterpreter) ParseContext(ctx *conflow.ParseContext) *conflow.ParseContext
ParseContext returns with the parse context for the block
func (TriggersInterpreter) Schema ¶
func (i TriggersInterpreter) Schema() schema.Schema
func (TriggersInterpreter) ValueParamName ¶
func (i TriggersInterpreter) ValueParamName() conflow.ID
ValueParamName returns the name of the parameter marked as value field, if there is one set
Source Files ¶
- array.cf.go
- array.go
- boolean.cf.go
- boolean.go
- bug.cf.go
- bug.go
- deprecated.cf.go
- deprecated.go
- directives.go
- doc.cf.go
- doc.go
- input.cf.go
- input.go
- integer.cf.go
- integer.go
- map.cf.go
- map.go
- number.cf.go
- number.go
- object.cf.go
- object.go
- output.cf.go
- output.go
- retry.cf.go
- retry.go
- run.cf.go
- run.go
- skip.cf.go
- skip.go
- string.cf.go
- string.go
- timeout.cf.go
- timeout.go
- todo.cf.go
- todo.go
- triggers.cf.go
- triggers.go