Documentation ¶
Index ¶
- Constants
- func TransformNode(parseCtx interface{}, node parsley.Node, blockID conflow.ID, ...) (conflow.ParameterNode, parsley.Error)
- type Container
- func (c *Container) BlockContainer() conflow.BlockContainer
- func (c *Container) Cancel() bool
- func (c *Container) Close()
- func (c *Container) EvalStage() conflow.EvalStage
- func (c *Container) JobID() int
- func (c *Container) JobName() conflow.ID
- func (c *Container) Lightweight() bool
- func (c *Container) Node() conflow.Node
- func (c *Container) Pending() bool
- func (c *Container) Run()
- func (c *Container) SetJobID(id int)
- func (c *Container) Value() (interface{}, parsley.Error)
- func (c *Container) WaitGroups() []conflow.WaitGroup
- type Node
- func (n *Node) CreateContainer(ctx *conflow.EvalContext, _ conflow.RuntimeConfig, ...) conflow.JobContainer
- func (n *Node) Dependencies() conflow.Dependencies
- func (n *Node) Directives() []conflow.BlockNode
- func (n *Node) EvalStage() conflow.EvalStage
- func (n *Node) Generates() []conflow.ID
- func (n *Node) ID() conflow.ID
- func (n *Node) IsDeclaration() bool
- func (n *Node) Name() conflow.ID
- func (n *Node) Pos() parsley.Pos
- func (n *Node) Provides() []conflow.ID
- func (n *Node) ReaderPos() parsley.Pos
- func (n *Node) Schema() interface{}
- func (n *Node) SetSchema(s schema.Schema)
- func (n *Node) StaticCheck(ctx interface{}) parsley.Error
- func (n *Node) String() string
- func (n *Node) Token() string
- func (n *Node) Value(ctx interface{}) (interface{}, parsley.Error)
- func (n *Node) ValueNode() parsley.Node
- func (n *Node) Walk(f func(n parsley.Node) bool) bool
Constants ¶
View Source
const (
Token = "PARAMETER"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Container ¶
type Container struct {
// contains filtered or unexported fields
}
Container is a parameter container
func NewContainer ¶
func NewContainer( evalCtx *conflow.EvalContext, node conflow.ParameterNode, parent conflow.BlockContainer, value interface{}, wgs []conflow.WaitGroup, pending bool, ) *Container
NewContainer creates a new parameter container
func (*Container) BlockContainer ¶
func (c *Container) BlockContainer() conflow.BlockContainer
BlockContainer returns with the parent block container
func (*Container) Lightweight ¶
func (*Container) WaitGroups ¶
WaitGroups returns nil
type Node ¶
type Node struct {
// contains filtered or unexported fields
}
Node is a block parameter
func NewNode ¶
func NewNode( blockID conflow.ID, nameNode *conflow.IDNode, valueNode parsley.Node, isDeclaration bool, directives []conflow.BlockNode, ) *Node
NewNode creates a new block parameter node
func (*Node) CreateContainer ¶
func (n *Node) CreateContainer( ctx *conflow.EvalContext, _ conflow.RuntimeConfig, parent conflow.BlockContainer, value interface{}, wgs []conflow.WaitGroup, pending bool, ) conflow.JobContainer
func (*Node) Dependencies ¶
func (n *Node) Dependencies() conflow.Dependencies
Dependencies returns the blocks/parameters this parameter depends on
func (*Node) Directives ¶
Directives returns the parameter directives
func (*Node) Generates ¶
Generates returns with nil as a parameter node doesn't generate other nodes
func (*Node) IsDeclaration ¶
IsDeclaration returns true if the parameter was declared in the block
func (*Node) ReaderPos ¶
ReaderPos returns the position of the first character immediately after this node
func (*Node) Schema ¶
func (n *Node) Schema() interface{}
Schema returns the schema for the node's value
func (*Node) StaticCheck ¶
StaticCheck runs a static analysis on the value node
Click to show internal directories.
Click to hide internal directories.