Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Task ¶
type Task struct {
// contains filtered or unexported fields
}
Task is used for performing tasks/actions
func New ¶
New parses the input config and returns a Task, log chan, error if any function parameters: config -> is the user defined task list JSON packageFiles -> embedded file system that the wizard will use to perform actions on tmplOptions -> for template action
func NewWithLog ¶
func NewWithLog(config []byte, packageFiles embed.FS, tmplOptions TemplateOptions) (*Task, chan interface{}, error)
NewWithLog parses the config and returns task struct
type TemplateOptions ¶
type TemplateOptions struct { EnableWizardFacts bool TemplateConfig interface{} }
TemplateOptions are used for the template action If EnableWizardFacts is set to 'true' then the wizard can use all the ENV variables and some predefined facts in the template TemplateConfig is the user defined structure to use in the template
Click to show internal directories.
Click to hide internal directories.