Documentation
¶
Index ¶
- Constants
- func NewParser(cfg *ctrlcfgv1.ControllerConfig) (Parser, []Result)
- type ConfigExecutionContext
- type FOW
- type FOWEntry
- type GlobalVariable
- type Operation
- type OperationCtx
- type Origin
- type OriginContext
- type Parser
- type RTDAGCtx
- type Reference
- type ReferenceKind
- type References
- type Result
- type VariableContext
- type WalkConfig
Constants ¶
View Source
const ( ValueKey = "VALUE" IndexKey = "INDEX" KeyKey = "KEY" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ConfigExecutionContext ¶
type ConfigExecutionContext interface { GetName() string Add(oc *OriginContext) error AddBlock(oc *OriginContext) error GetDAG(oc *OriginContext) rtdag.RuntimeDAG GetDAGCtx(fow FOW, gvk *schema.GroupVersionKind, op Operation) *RTDAGCtx GetFOW(fow FOW) map[schema.GroupVersionKind]OperationCtx GetForGVK() *schema.GroupVersionKind Print() }
func NewConfigExecutionContext ¶
func NewConfigExecutionContext(n string) ConfigExecutionContext
type GlobalVariable ¶
type GlobalVariable interface { GetName() string Add(fe FOWEntry) GetDAG(fe FOWEntry) vardag.VarDAG Print() }
GlobalVariable stores the variable context in a global DAG for validating that the variables are globally unique. This is only used by the parser for resolving and connecting the runtime graph
func NewGlobalVariable ¶
func NewGlobalVariable(n string) GlobalVariable
type OperationCtx ¶
type OriginContext ¶
type OriginContext struct { //Index int FOW FOW `json:"fow,omitempty" yaml:"fow,omitempty"` RootVertexName string `json:"rootVertexName,omitempty" yaml:"rootVertexName,omitempty"` GVK *schema.GroupVersionKind `json:"gvk,omitempty" yaml:"gvk,omitempty"` Operation Operation `json:"operation,omitempty" yaml:"operation,omitempty"` Pipeline string `json:"pipeline,omitempty" yaml:"pipeline,omitempty"` Origin Origin `json:"origin,omitempty" yaml:"origin,omitempty"` Block bool `json:"block,omitempty" yaml:"block,omitempty"` BlockIndex int `json:"blockIdx,omitempty" yaml:"blockIdx,omitempty"` BlockVertexName string `json:"blockVertexName,omitempty" yaml:"blockVertexName,omitempty"` VertexName string `json:"vertexname,omitempty" yaml:"vertexname,omitempty"` LocalVarName string `json:"localvarName,omitempty" yaml:"localvarName,omitempty"` LocalVars map[string]string `json:"localVars,omitempty" yaml:"localvarName,omitempty"` }
func (*OriginContext) DeepCopy ¶
func (in *OriginContext) DeepCopy() *OriginContext
func (*OriginContext) DeepCopyInto ¶
func (in *OriginContext) DeepCopyInto(out *OriginContext)
type Parser ¶
type Parser interface { GetExternalResources() ([]*schema.GroupVersionKind, []Result) Parse() (ConfigExecutionContext, []Result) }
type RTDAGCtx ¶
type RTDAGCtx struct { DAG rtdag.RuntimeDAG RootVertexName string BlockDAGs map[string]rtdag.RuntimeDAG // contains filtered or unexported fields }
type Reference ¶
type Reference struct { Kind ReferenceKind Value string }
type ReferenceKind ¶
type ReferenceKind string
const ( RangeReferenceKind ReferenceKind = "range" // used for $KEY, $VALUE, $INDEX RegularReferenceKind ReferenceKind = "regular" )
type References ¶
func NewReferences ¶
func NewReferences() References
type Result ¶
type Result struct { OriginContext *OriginContext `json:"inline" yaml:"inline"` Error string `json:"error,omitempty" yaml:"error,omitempty"` }
type VariableContext ¶
type VariableContext struct {
// contains filtered or unexported fields
}
func (*VariableContext) Add ¶
func (r *VariableContext) Add(fe FOWEntry)
func (*VariableContext) GetName ¶
func (r *VariableContext) GetName() string
func (*VariableContext) Print ¶
func (r *VariableContext) Print()
type WalkConfig ¶
type WalkConfig struct {
// contains filtered or unexported fields
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.