Documentation
¶
Index ¶
- type Config
- type OperatorNode
- type Params
- func (p Params) BuildConfigs(pluginRegistry operator.PluginRegistry, namespace string, ...) ([]operator.Config, error)
- func (p Params) ID() string
- func (p Params) NamespaceExclusions(namespace string) []string
- func (p Params) NamespacedID(namespace string) string
- func (p Params) NamespacedOutputs(namespace string) []string
- func (p Params) Outputs() []string
- func (p Params) TemplateInput(namespace string) string
- func (p Params) TemplateOutput(namespace string, defaultOutput []string) string
- func (p Params) Type() string
- func (p *Params) UnmarshalYAML(unmarshal func(interface{}) error) error
- func (p Params) Validate() error
- type Pipeline
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config []Params
Config is the configuration of a pipeline.
func (Config) BuildPipeline ¶
func (c Config) BuildPipeline(context operator.BuildContext, defaultOutput operator.Operator) (*Pipeline, error)
BuildPipeline will build a pipeline from the config.
type OperatorNode ¶
type OperatorNode struct {
// contains filtered or unexported fields
}
OperatorNode is a basic node that represents an operator in a pipeline.
func (OperatorNode) DOTID ¶
func (b OperatorNode) DOTID() string
DOTID returns the id used to represent this node in a dot graph.
func (OperatorNode) Operator ¶
func (b OperatorNode) Operator() operator.Operator
Operator returns the operator of the node.
func (OperatorNode) OutputIDs ¶
func (b OperatorNode) OutputIDs() map[string]int64
OutputIDs returns a map of output operator ids to node ids.
type Params ¶
type Params map[string]interface{}
Params is a raw params map that can be converted into an operator config.
func (Params) BuildConfigs ¶
func (p Params) BuildConfigs(pluginRegistry operator.PluginRegistry, namespace string, defaultOutput []string) ([]operator.Config, error)
BuildConfigs will build operator configs from a params map.
func (Params) NamespaceExclusions ¶
NamespaceExclusions will return all ids to exclude from namespacing.
func (Params) NamespacedID ¶
NamespacedID will return the id field with a namespace.
func (Params) NamespacedOutputs ¶
NamespacedOutputs will return the output field with a namespace.
func (Params) TemplateInput ¶
TemplateInput will return the template input.
func (Params) TemplateOutput ¶
TemplateOutput will return the template output.
func (*Params) UnmarshalYAML ¶
UnmarshalYAML will unmarshal yaml bytes into Params
type Pipeline ¶
type Pipeline struct { Graph *simple.DirectedGraph // contains filtered or unexported fields }
Pipeline is a directed graph of connected operators.
func NewPipeline ¶
NewPipeline creates a new pipeline of connected operators.
func (*Pipeline) MarshalDot ¶
MarshalDot will encode the pipeline as a dot graph.