Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetOrder ¶
func GetOrder() []string
GetOrder will return target connection history from Viper store.
func GetPrompts ¶
GetPrompts returns a slice of all prompts configs available.
func GetTargets ¶
GetTargets will return target connection history from Viper store.
Types ¶
type Prompts ¶
type Prompts struct { Name string `json:"name" mapstructure:"name"` Prompts map[string]string `json:"prompts" mapstructure:"prompts"` Files map[string]string `json:"files" mapstructure:"files"` }
Prompts represents a prompt config set that will get stored in viper.
type Target ¶
type Target struct { Address string `json:"address" mapstructure:"address"` Ca string `json:"ca" mapstructure:"ca"` CaKey string `json:"cakey" mapstructure:"cakey"` }
Target stores connection details of a target.
type Test ¶
type Test struct { Name string `json:"name" mapstructure:"name"` Args map[string]string `json:"args" mapstructure:"args"` MustFail bool `json:"mustfail" mapstructure:"mustfail"` Wait int `json:"wait" mapstructure:"wait"` Wants string `json:"wants" mapstructure:"wants"` DoesntWant string `json:"doesntwant" mapstructure:"doesntwant"` Prompt []string `json:"prompt" mapstructure:"prompt"` }
Test represents a single set of inputs and expected outputs.
Click to show internal directories.
Click to hide internal directories.