Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithCompiler ¶ added in v0.6.0
func WithCompiler(ctx context.Context, c PipelineCompiler) context.Context
WithCompiler attaches a PipelineCompiler to ctx.
Types ¶
type PipelineCompiler ¶
type PipelineCompiler interface {
CompilePipeline(expr string) (action.Executable, error)
}
PipelineCompiler compiles a DSL string into an executable action. Used by supervisor, which spawns and runs child pipelines on the fly.
func CompilerFromContext ¶ added in v0.6.0
func CompilerFromContext(ctx context.Context) PipelineCompiler
CompilerFromContext returns the PipelineCompiler attached by WithCompiler, or nil.
type Registry ¶
Registry is the read-only view of the action set that the compiler exposes to nodes that need to look up other actions by name (bench.run, distribute.map).
func RegistryFromContext ¶ added in v0.6.0
RegistryFromContext returns the Registry attached by WithRegistry, or nil when the action is running outside a flow.
Click to show internal directories.
Click to hide internal directories.