Versions in this module Expand all Collapse all v0 v0.2.0 Oct 9, 2019 v0.1.0 Oct 1, 2019 Changes in this version + type CommandMaker interface + MakeCommand func(ctx context.Context, cmd string, args ...string) CommandRunner + type CommandRunner interface + RunCommand func(stdout io.Writer, stderr io.Writer) error + type Component struct + LogFn domain.LogFn + func NewComponent(logFN domain.LogFn) *Component + func (*Component) Settings() *Config + func (c *Component) New(ctx context.Context, conf *Config) (*NMAP, error) + type Config struct + BinArgs []string + BinPath string + ScriptArgs []string + Scripts []string + func (*Config) Name() string + type ExecCmd struct + Cmd *exec.Cmd + func (c *ExecCmd) RunCommand(stdout io.Writer, stderr io.Writer) error + type ExecMaker struct + func (*ExecMaker) MakeCommand(ctx context.Context, cmd string, args ...string) CommandRunner + type LoggingCmd struct + Args []string + Cmd string + CommandRunner CommandRunner + Ctx context.Context + LogFn domain.LogFn + func (c *LoggingCmd) RunCommand(stdout io.Writer, stderr io.Writer) error + type LoggingMaker struct + CommandMaker CommandMaker + LogFn domain.LogFn + func (m *LoggingMaker) MakeCommand(ctx context.Context, cmd string, args ...string) CommandRunner + type NMAP struct + BinArgs []string + BinPath string + CommandMaker CommandMaker + CommandStrings []string + ScriptArgs []string + Scripts []string + func NewNMAP(binPath string, binArgs []string, scripts []string, scriptArgs []string) *NMAP + func (s *NMAP) Scan(ctx context.Context, host string) ([]domain.Finding, error) + func (s *NMAP) ScanWithScripts(ctx context.Context, scripts []string, scriptArgs []string, host string) ([]domain.Finding, error) + func (s *NMAP) WithScriptArgs(args []string) *NMAP + func (s *NMAP) WithScripts(scripts []string) *NMAP