Documentation ¶
Index ¶
Constants ¶
View Source
const HandleCurrentPipelines = "/api/v1/controller/pipelines"
Variables ¶
View Source
var ( ErrPipeNameUniq = errors.New("pipeline name is duplicated") ErrIgnoreAllFile = errors.New("ignore all the file") )
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) AddPipelines ¶
func (c *PipelineConfig) AddPipelines(cfg []pipeline.Config)
func (*PipelineConfig) DeepCopy ¶ added in v1.4.0
func (c *PipelineConfig) DeepCopy() *PipelineConfig
func (*PipelineConfig) RemovePipelines ¶
func (c *PipelineConfig) RemovePipelines(cfg []pipeline.Config)
func (*PipelineConfig) Validate ¶ added in v1.3.0
func (c *PipelineConfig) Validate() error
func (*PipelineConfig) ValidateUniquePipeName ¶ added in v1.3.0
func (c *PipelineConfig) ValidateUniquePipeName() error
Click to show internal directories.
Click to hide internal directories.