Documentation ¶
Index ¶
- Variables
- type Controller
- type FileIgnore
- type PipelineConfig
- type PipelineRawConfig
- func (pr *PipelineRawConfig) DeepCopy() (dest *PipelineRawConfig, err error)
- func (pr *PipelineRawConfig) SetDefaults()
- func (pr *PipelineRawConfig) ToConfig() (*PipelineConfig, error)
- func (pr *PipelineRawConfig) Validate() error
- func (pr *PipelineRawConfig) ValidateAndRemove() (*PipelineConfig, error)
- func (pr *PipelineRawConfig) ValidateUniquePipeName() error
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrPipeNameUniq = errors.New("pipeline name is duplicated")
)
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct { CurrentConfig *PipelineConfig // contains filtered or unexported fields }
func NewController ¶
func NewController() *Controller
func (*Controller) RetryNotRunningPipeline ¶ added in v1.1.0
func (c *Controller) RetryNotRunningPipeline()
func (*Controller) Start ¶
func (c *Controller) Start(config *PipelineConfig)
func (*Controller) StartPipelines ¶
func (c *Controller) StartPipelines(configs []pipeline.Config)
func (*Controller) StopPipelines ¶
func (c *Controller) StopPipelines(configs []pipeline.Config)
type FileIgnore ¶
type PipelineConfig ¶
type PipelineConfig struct {
Pipelines []pipeline.Config `yaml:"pipelines" validate:"dive,required"`
}
func ReadPipelineConfig ¶
func ReadPipelineConfig(path string, configType string, ignore FileIgnore) (*PipelineConfig, error)
func ReadPipelineConfigFromEnv ¶ added in v1.1.0
func ReadPipelineConfigFromEnv(key string, _ FileIgnore) (*PipelineConfig, error)
func ReadPipelineConfigFromFile ¶ added in v1.1.0
func ReadPipelineConfigFromFile(path string, ignore FileIgnore) (*PipelineConfig, error)
func (*PipelineConfig) AddPipeline ¶
func (c *PipelineConfig) AddPipeline(cfg pipeline.Config)
func (*PipelineConfig) AddPipelines ¶
func (c *PipelineConfig) AddPipelines(cfg []pipeline.Config)
func (*PipelineConfig) RemovePipelines ¶
func (c *PipelineConfig) RemovePipelines(cfg []pipeline.Config)
type PipelineRawConfig ¶
type PipelineRawConfig struct {
Pipelines []pipeline.ConfigRaw `yaml:"pipelines" validate:"dive,required"`
}
func (*PipelineRawConfig) DeepCopy ¶
func (pr *PipelineRawConfig) DeepCopy() (dest *PipelineRawConfig, err error)
func (*PipelineRawConfig) SetDefaults ¶
func (pr *PipelineRawConfig) SetDefaults()
func (*PipelineRawConfig) ToConfig ¶
func (pr *PipelineRawConfig) ToConfig() (*PipelineConfig, error)
func (*PipelineRawConfig) Validate ¶
func (pr *PipelineRawConfig) Validate() error
func (*PipelineRawConfig) ValidateAndRemove ¶
func (pr *PipelineRawConfig) ValidateAndRemove() (*PipelineConfig, error)
func (*PipelineRawConfig) ValidateUniquePipeName ¶
func (pr *PipelineRawConfig) ValidateUniquePipeName() error
Click to show internal directories.
Click to hide internal directories.