Documentation ¶
Index ¶
Constants ¶
View Source
const ( StatusRunning = "running" StatusStopped = "stopped" TypeConnector = "source" TypeDestination = "destination" )
View Source
const ParserVersion = "1.0"
Variables ¶
View Source
var ( ErrMandatoryField = cerrors.New("mandatory field not specified") ErrInvalidField = cerrors.New("invalid field value") )
View Source
var ErrUnsupportedVersion = cerrors.New("unsupported parser version")
Functions ¶
func EnrichPipelinesConfig ¶
func EnrichPipelinesConfig(mp map[string]PipelineConfig) map[string]PipelineConfig
EnrichPipelinesConfig sets default values for pipeline config fields
func ValidatePipelinesConfig ¶
func ValidatePipelinesConfig(cfg PipelineConfig) error
ValidatePipelinesConfig validates config field values for a pipeline
Types ¶
type ConnectorConfig ¶
type PipelineConfig ¶
type PipelineConfig struct { Status string `yaml:"status"` Name string `yaml:"name"` Description string `yaml:"description"` Connectors map[string]ConnectorConfig `yaml:"connectors,omitempty"` Processors map[string]ProcessorConfig `yaml:"processors,omitempty"` }
type PipelinesConfig ¶
type PipelinesConfig struct { Version string `yaml:"version"` Pipelines map[string]PipelineConfig `yaml:"pipelines"` }
type ProcessorConfig ¶
Click to show internal directories.
Click to hide internal directories.