Documentation
¶
Overview ¶
Package eval encapsulates the manner in which components and parameters are evaluated for qbec.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Components ¶
func Components(components []model.Component, ctx Context, lop LocalObjectProducer) (_ []model.K8sLocalObject, finalErr error)
Components evaluates the specified components using the specific runtime parameters file and returns the result.
Types ¶
type Context ¶
type Context struct { VMConfig VMConfigFunc // the base VM config to use for eval Verbose bool // show generated code Concurrency int // concurrent components to evaluate, default 5 PreProcessFiles []string // preprocessor files that are evaluated if present PostProcessFiles []string // files that contains post-processing code for all objects }
Context is the evaluation context
type LocalObjectProducer ¶ added in v0.13.4
type LocalObjectProducer func(component string, data map[string]interface{}) model.K8sLocalObject
LocalObjectProducer converts a data object that has basic Kubernetes attributes to a local model object.
type VMConfigFunc ¶ added in v0.6.2
VMConfigFunc is a function that returns a VM configuration containing only the specified top-level variables of interest.
Click to show internal directories.
Click to hide internal directories.