Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Auth ¶
type Auth struct { User string `json:"user" mapstructure:"user"` Password string `json:"password" mapstructure:"password"` AskPass bool `json:"ask-pass" mapstructure:"ask-pass"` PassFile string `json:"pass-file" mapstructure:"pass-file"` IdentityFiles []string `json:"identity-files" mapstructure:"identity-files"` Passphrase string `json:"passphrase" mapstructure:"passphrase"` VaultPassFile string `json:"vault-pass-file" mapstructure:"vault-pass-file"` }
Auth config.
type ConfigFlags ¶
type ConfigFlags struct { Auth *Auth `json:"auth" mapstructure:"auth"` Hosts *Hosts `json:"hosts" mapstructure:"hosts"` Run *Run `json:"run" mapstructure:"run"` Output *Output `json:"output" mapstructure:"output"` Proxy *Proxy `json:"proxy" mapstructure:"proxy"` Timeout *Timeout `json:"timeout" mapstructure:"timeout"` }
ConfigFlags is cli flags that also in config file.
var Config *ConfigFlags
Config instance.
func (*ConfigFlags) AddFlagsTo ¶
func (c *ConfigFlags) AddFlagsTo(flags *pflag.FlagSet)
AddFlagsTo flagset.
type Hosts ¶
type Hosts struct { Inventory string `json:"inventory" mapstructure:"inventory"` Port int `json:"port" mapstructure:"port"` List bool `json:"list" mapstructure:"list"` }
Hosts ...
type Output ¶
type Output struct { File string `json:"file" mapstructure:"file"` JSON bool `json:"json" mapstructure:"json"` Condense bool `json:"condense" mapstructure:"condense"` Quiet bool `json:"quiet" mapstructure:"quiet"` Verbose bool `json:"verbose" mapstructure:"verbose"` }
Output ...
type Proxy ¶
type Proxy struct { Server string `json:"server" mapstructure:"server"` Port int `json:"port" mapstructure:"port"` User string `json:"user" mapstructure:"user"` Password string `json:"password" mapstructure:"password"` IdentityFiles []string `json:"identity-files" mapstructure:"identity-files"` Passphrase string `json:"passphrase" mapstructure:"passphrase"` }
Proxy config.
type Run ¶
type Run struct { Sudo bool `json:"sudo" mapstructure:"sudo"` AsUser string `json:"as-user" mapstructure:"as-user"` Lang string `json:"lang" mapstructure:"lang"` Concurrency int `json:"concurrency" mapstructure:"concurrency"` }
Run ...
Source Files
¶
Click to show internal directories.
Click to hide internal directories.