Documentation ¶
Index ¶
- func AddOtherEmbeddedRunbooks(fs embed.FS)
- func AddRunbookFromYaml(yaml string) error
- func CreateMapForRunbookArgumentPointers(runbookAction *RunbookAction) map[string]*string
- func GetRunbookNames() []string
- func GetRunbooks() map[string]Runbook
- func InitializeBuiltInRunbooks()
- func LoadBuiltInRunbooks(fs embed.FS)
- func LoadRunbooksFromDirectory(dir string) uint32
- func RenderTemplates(templateName string, rawCmd string, stringVars map[string]*string, ...) ([]string, error)
- func Reset()
- func ValidateRunbook(runbook *Runbook) error
- type Runbook
- type RunbookAction
- type RunbookDescription
- type Variable
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddOtherEmbeddedRunbooks ¶ added in v0.11.0
func AddRunbookFromYaml ¶
func CreateMapForRunbookArgumentPointers ¶
func CreateMapForRunbookArgumentPointers(runbookAction *RunbookAction) map[string]*string
func GetRunbookNames ¶
func GetRunbookNames() []string
func GetRunbooks ¶
func InitializeBuiltInRunbooks ¶
func InitializeBuiltInRunbooks()
func LoadBuiltInRunbooks ¶
func RenderTemplates ¶
func ValidateRunbook ¶ added in v0.11.0
Types ¶
type Runbook ¶
type Runbook struct { // The name of the runbook Name string `yaml:"name"` Description *RunbookDescription `yaml:"description"` // The location of relevant documentation Docs string `yaml:"docs"` RunbookActions map[string]*RunbookAction `yaml:"actions"` }
type RunbookAction ¶
type RunbookDescription ¶
Click to show internal directories.
Click to hide internal directories.