common

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 16, 2022 License: MPL-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Main

func Main(ctx context.Context, parseCtx *conflow.ParseContext, inputParams map[conflow.ID]interface{}) interface{}

func NewParseContext

func NewParseContext() *conflow.ParseContext

Types

type It

type It struct {
	// contains filtered or unexported fields
}

@block "configuration"

func (*It) ID

func (i *It) ID() conflow.ID

type ItInterpreter

type ItInterpreter struct {
}

ItInterpreter is the Conflow interpreter for the It block

func (ItInterpreter) CreateBlock

func (i ItInterpreter) CreateBlock(id conflow.ID, blockCtx *conflow.BlockContext) conflow.Block

Create creates a new It block

func (ItInterpreter) Param

func (i ItInterpreter) Param(b conflow.Block, name conflow.ID) interface{}

func (ItInterpreter) ParseContext

func (i ItInterpreter) ParseContext(ctx *conflow.ParseContext) *conflow.ParseContext

ParseContext returns with the parse context for the block

func (ItInterpreter) Schema

func (i ItInterpreter) Schema() schema.Schema

func (ItInterpreter) SetBlock

func (i ItInterpreter) SetBlock(block conflow.Block, name conflow.ID, key string, value interface{}) error

func (ItInterpreter) SetParam

func (i ItInterpreter) SetParam(block conflow.Block, name conflow.ID, value interface{}) error

func (ItInterpreter) ValueParamName

func (i ItInterpreter) ValueParamName() conflow.ID

ValueParamName returns the name of the parameter marked as value field, if there is one set

type Iterator

type Iterator struct {
	// contains filtered or unexported fields
}
@block {
   type = "generator"
}

func (*Iterator) ID

func (i *Iterator) ID() conflow.ID

func (*Iterator) ParseContextOverride

func (it *Iterator) ParseContextOverride() conflow.ParseContextOverride

func (*Iterator) Run

func (it *Iterator) Run(ctx context.Context) (conflow.Result, error)

type IteratorInterpreter

type IteratorInterpreter struct {
}

IteratorInterpreter is the Conflow interpreter for the Iterator block

func (IteratorInterpreter) CreateBlock

func (i IteratorInterpreter) CreateBlock(id conflow.ID, blockCtx *conflow.BlockContext) conflow.Block

Create creates a new Iterator block

func (IteratorInterpreter) Param

func (i IteratorInterpreter) Param(b conflow.Block, name conflow.ID) interface{}

func (IteratorInterpreter) ParseContext

ParseContext returns with the parse context for the block

func (IteratorInterpreter) Schema

func (i IteratorInterpreter) Schema() schema.Schema

func (IteratorInterpreter) SetBlock

func (i IteratorInterpreter) SetBlock(block conflow.Block, name conflow.ID, key string, value interface{}) error

func (IteratorInterpreter) SetParam

func (i IteratorInterpreter) SetParam(block conflow.Block, name conflow.ID, value interface{}) error

func (IteratorInterpreter) ValueParamName

func (i IteratorInterpreter) ValueParamName() conflow.ID

ValueParamName returns the name of the parameter marked as value field, if there is one set

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL