Documentation ¶
Overview ¶
Package parsecfg provides the methods needed to parse and decode workflows used by the runner for initializing, processing, and running workflows, based on their provided configurations
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DefaultParser ¶
type DefaultParser struct {
// contains filtered or unexported fields
}
func (*DefaultParser) Init ¶
func (p *DefaultParser) Init() hcl.Diagnostics
Init is responsible for pulling down any required providers for the CLI to use, and anything else that needs to be setup before parsing can be done
func (*DefaultParser) Parse ¶
func (p *DefaultParser) Parse() (*internal.RootSwitchboardConfig, hcl.Diagnostics)
Parse runs through the user provided config & calculates any expressions, returning a near completely decoded config struct. Some values will remain expressions as they are only known in a separate process. It will short circuit with any errors and return to the caller if necessary.
type Parser ¶
type Parser interface { Parse() (*internal.RootSwitchboardConfig, hcl.Diagnostics) Init() hcl.Diagnostics }
Click to show internal directories.
Click to hide internal directories.