engine

package
v0.31.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 26, 2022 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clone

func Clone(
	s *scm.ScmHandler,
	channel chan int,
	hashes *[]uint64,
	wg *sync.WaitGroup) error

Clone parses a scm configuration then clone the git repository if needed.

func GenerateSchema added in v0.23.0

func GenerateSchema(baseSchemaID, schemaDir string) error

func GetFiles

func GetFiles(root string) (files []string)

GetFiles return an array with every valid files.

Types

type Engine

type Engine struct {
	Pipelines []pipeline.Pipeline
	Options   Options
	Reports   reports.Reports
	// contains filtered or unexported fields
}

Engine defined parameters for a specific engine run.

func (*Engine) Clean

func (e *Engine) Clean() (err error)

Clean remove every traces from an updatecli run.

func (*Engine) InitSCM

func (e *Engine) InitSCM() (err error)

InitSCM search and clone only once SCM configurations found.

func (*Engine) LoadAutoDiscovery added in v0.31.0

func (e *Engine) LoadAutoDiscovery() error

LoadAutoDiscovery will try to guess available pipelines based on specific directory

func (*Engine) LoadConfigurations added in v0.17.0

func (e *Engine) LoadConfigurations() error

ReadConfigurations read every strategies configuration.

func (*Engine) ManifestUpgrade added in v0.27.0

func (e *Engine) ManifestUpgrade(saveToDisk bool) (err error)

ManifestUpgrade load Updatecli Manifest to update them then written them back on disk

func (*Engine) Prepare

func (e *Engine) Prepare() (err error)

Prepare run every actions needed before going further.

func (*Engine) Run

func (e *Engine) Run() (err error)

Run runs the full process for one yaml file.

func (*Engine) Show

func (e *Engine) Show() error

Show displays configurations that should be apply.

type Options

type Options struct {
	Config   config.Option
	Pipeline pipeline.Options
}

Options defines application specific behaviors

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL