engine

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2021 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clone added in v0.0.31

func Clone(
	SCM *map[string]interface{},
	hashes *[]uint64,
	channel chan int,
	wg *sync.WaitGroup) error

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

func GetFiles

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

GetFiles return an array with every valid files.

func RunConditions

func RunConditions(conf *config.Config) (bool, error)

RunConditions run every conditions for a given configuration config.

func RunTargets

func RunTargets(config *config.Config, options *target.Options, report *reports.Report) (targetsChanged bool, err error)

RunTargets iterate on every targets then call target on each of them.

Types

type Engine

type Engine struct {
	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) Prepare

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

Prepare run every actions needed before going further.

func (*Engine) ReadConfigurations

func (e *Engine) ReadConfigurations() error

ReadConfigurations read every strategies configuration.

func (*Engine) Run

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

Run run the full process one yaml file.

func (*Engine) Show

func (e *Engine) Show() error

Show displays configurations that should be apply.

type Options

type Options struct {
	File         string
	ValuesFiles  []string
	SecretsFiles []string
	Target       target.Options
}

Options defines application specific behaviors

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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