Documentation ¶
Index ¶
- Variables
- func SortedConditionsKeys(conditions *map[string]condition.Condition) (result []string, err error)
- func SortedSourcesKeys(sources *map[string]source.Source) (result []string, err error)
- func SortedTargetsKeys(targets *map[string]target.Target) (result []string, err error)
- type Options
- type Pipeline
- func (p *Pipeline) GetTargetsIDByResult(targetIDs []string) (...)
- func (p *Pipeline) Init(config *config.Config, options Options) error
- func (p *Pipeline) Run() error
- func (p *Pipeline) RunActions() error
- func (p *Pipeline) RunConditions() (err error)
- func (p *Pipeline) RunSources() error
- func (p *Pipeline) RunTargets() error
- func (p *Pipeline) SearchAssociatedTargetsID(actionID string) ([]string, error)
- func (p *Pipeline) String() string
- func (p *Pipeline) Update() error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNotValidDependsOn is triggered when we define a nonexistent depends on value. ErrNotValidDependsOn = errors.New("no valid depends_on value") // ErrDependsOnLoopDetected is triggered when we define a dependency loop. ErrDependsOnLoopDetected = errors.New("dependency loop detected") )
View Source
var ( // ErrRunTargets is return when at least one error happened during targets execution ErrRunTargets error = errors.New("something went wrong during target execution") )
Functions ¶
func SortedConditionsKeys ¶
SortedConditionsKeys return a a list of resources by building a DAG
func SortedSourcesKeys ¶
SortedSourcesKeys return a a list of resources by building a DAG
Types ¶
type Pipeline ¶
type Pipeline struct { // Name defines a pipeline name, used to improve human visualization Name string // ID allows to identify a full pipeline run, this value is propagated into each target if not defined at that level ID string // Sources contains all sources defined in the configuration Sources map[string]source.Source // Conditions contains all conditions defined in the configuration Conditions map[string]condition.Condition // Targets contains all targets defined in the configuration Targets map[string]target.Target // SCMs contains all scms defined in the configuration SCMs map[string]scm.Scm // Actions contains all actions defined in the configuration Actions map[string]action.Action // Report contains the pipeline report Report reports.Report // Options contains all updatecli options for this specific pipeline Options Options // Config contains the pipeline configuration defined by the user Config *config.Config }
Pipeline represent an updatecli run for a specific configuration
func (*Pipeline) GetTargetsIDByResult ¶ added in v0.17.0
func (p *Pipeline) GetTargetsIDByResult(targetIDs []string) ( failedTargetsID, attentionTargetsID, successTargetsID, skippedTargetsID []string)
GetTargetsIDByResult return a list of target ID per result type
func (*Pipeline) RunActions ¶ added in v0.40.0
func (*Pipeline) RunConditions ¶
RunConditions run every conditions for a given configuration config.
func (*Pipeline) RunSources ¶
RunSources iterates on every source definition to retrieve every information.
func (*Pipeline) RunTargets ¶
RunTargets iterates on every target to update each of them.
func (*Pipeline) SearchAssociatedTargetsID ¶ added in v0.31.0
SearchAssociatedTargetsID search for targets related to an action based on a scm configuration
Source Files ¶
Click to show internal directories.
Click to hide internal directories.