Documentation
¶
Overview ¶
Package runner abstracts command execution so scans can run for real or in dry-run mode without sending any network traffic.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendCommandLog ¶
AppendCommandLog records the command line of every executed step. The file holds full command lines including auth headers (Cookie/Authorization), so it is created 0600 to keep credentials away from other local users.
Types ¶
type CommandResult ¶
type DryRunExecutor ¶
type DryRunExecutor struct {
// contains filtered or unexported fields
}
func NewDryRunExecutor ¶
func NewDryRunExecutor(verbose bool) *DryRunExecutor
func (*DryRunExecutor) Run ¶
func (e *DryRunExecutor) Run(ctx context.Context, command Command) (*CommandResult, error)
type Executor ¶
type Executor interface {
Run(ctx context.Context, command Command) (*CommandResult, error)
}
type RealExecutor ¶
type RealExecutor struct {
// contains filtered or unexported fields
}
func NewRealExecutor ¶
func NewRealExecutor(verbose bool) *RealExecutor
func (*RealExecutor) Run ¶
func (e *RealExecutor) Run(ctx context.Context, command Command) (*CommandResult, error)
Click to show internal directories.
Click to hide internal directories.