parsecfg

package
v0.0.0-...-237971a Latest Latest
Warning

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

Go to latest
Published: May 25, 2023 License: MPL-2.0 Imports: 19 Imported by: 0

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
}

func NewDefaultParser

func NewDefaultParser(workingDir string, varFile string, version string) Parser

Jump to

Keyboard shortcuts

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