parser

package
v0.0.0-...-d99f4a2 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetWizardFacts

func GetWizardFacts() map[string]interface{}

func MergeFuncMap

func MergeFuncMap(funcMap, facts map[string]interface{}) map[string]interface{}

func ParseWizardFacts

func ParseWizardFacts() (facts map[string]interface{}, err error)

ParseWizardFacts populated the yaml data into the TemplateConfig structure

func SetEnv

func SetEnv()

SetEnv gets all the env in the system and assign it to Env Global var

Types

type Action

type Action struct {
	Action          string                 `json:"action" validate:"required"`
	Name            string                 `json:"name" validate:"required"`
	When            *when                  `json:"when"`
	Command         []string               `json:"command"`
	ExitCode        float64                `json:"exit_code"`
	IgnoreError     bool                   `json:"ignore_error"`
	ActionVariables map[string]interface{} `json:"action_var"`
	Timeout         int                    `json:"timeout"`
	Register        string                 `json:"register"`
	BackupSrc       string
}

type TaskList

type TaskList struct {
	Tasks    map[string][]*Action `json:"tasks"`
	Priority []string             `json:"priority"`
}

func ParseConfig

func ParseConfig(Config []byte) (config TaskList, err error)

ParseConfig populates the json data into the Tasks structure

Jump to

Keyboard shortcuts

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