exec

package
v2.18.0 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultFetchTimeout = 2 * time.Minute
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigFetcher added in v2.14.0

type ConfigFetcher struct {
	Logger  *log.Logger
	Fetcher *resource.Fetcher
	State   *state.State
}

func (*ConfigFetcher) RenderConfig added in v2.14.0

func (f *ConfigFetcher) RenderConfig(cfg types.Config) (types.Config, error)

RenderConfig evaluates "ignition.config.replace" and "ignition.config.merge" in the given config and returns the result. If "ignition.config.replace" is set, the referenced and evaluted config will be returned. Otherwise, if "ignition.config.merge" is set, each of the referenced configs will be evaluated and merged into the provided config. If neither option is set, the provided config will be returned unmodified. An updated fetcher will be returned with any new timeouts set.

type Engine

type Engine struct {
	ConfigCache    string
	FetchTimeout   time.Duration
	Logger         *log.Logger
	NeedNet        string
	Root           string
	PlatformConfig platform.Config
	Fetcher        *resource.Fetcher
	State          *state.State
}

Engine represents the entity that fetches and executes a configuration.

func (Engine) Run

func (e Engine) Run(stageName string) error

Run executes the stage of the given name. It returns true if the stage successfully ran and false if there were any errors.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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