Documentation ¶
Index ¶
- type FlagApp
- type StandardOptions
- func (o *StandardOptions) AddFilterFlags(app FlagApp)
- func (o *StandardOptions) AddFlatFileFlags(app FlagApp)
- func (o *StandardOptions) AddSelectionFlags(app FlagApp)
- func (o *StandardOptions) Discover(ctx context.Context, fw client.ChoriaFramework, agent string, ...) ([]string, time.Duration, error)
- func (o *StandardOptions) NewFilter(agent string) (*protocol.Filter, error)
- func (o *StandardOptions) SetDefaultsFromChoria(fw client.ChoriaFramework)
- func (o *StandardOptions) SetDefaultsFromConfig(cfg *config.Config)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StandardOptions ¶
type StandardOptions struct { Collective string FactFilter []string AgentFilter []string ClassFilter []string IdentityFilter []string CombinedFilter []string CompoundFilter string DiscoveryMethod string DiscoveryTimeout int DynamicDiscoveryTimeout bool NodesFile string DiscoveryOptions map[string]string // contains filtered or unexported fields }
func NewStandardOptions ¶
func NewStandardOptions() *StandardOptions
NewStandardOptions creates a new CLI options helper
func (*StandardOptions) AddFilterFlags ¶
func (o *StandardOptions) AddFilterFlags(app FlagApp)
AddFilterFlags adds the various flags like -W, -S, -T etc
func (*StandardOptions) AddFlatFileFlags ¶
func (o *StandardOptions) AddFlatFileFlags(app FlagApp)
AddFlatFileFlags adds the flags to select nodes using --nodes in text, json and yaml formats
func (*StandardOptions) AddSelectionFlags ¶
func (o *StandardOptions) AddSelectionFlags(app FlagApp)
AddSelectionFlags adds the --dm and --discovery-timeout options
func (*StandardOptions) NewFilter ¶
func (o *StandardOptions) NewFilter(agent string) (*protocol.Filter, error)
NewFilter creates a new filter based on the options supplied, additionally agent will be added to the list
func (*StandardOptions) SetDefaultsFromChoria ¶
func (o *StandardOptions) SetDefaultsFromChoria(fw client.ChoriaFramework)
SetDefaultsFromChoria sets the defaults based on cfg
func (*StandardOptions) SetDefaultsFromConfig ¶
func (o *StandardOptions) SetDefaultsFromConfig(cfg *config.Config)
SetDefaultsFromConfig sets the defaults based on cfg
Click to show internal directories.
Click to hide internal directories.