scan

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 21, 2026 License: GPL-3.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

View Source
const ExitSuccess = "success"

ExitSuccess is nmap's Finished.Exit value (xml:"exit,attr") on a run that completed without error. Exit is a plain string field, not an enum — this const is the one authoritative spelling for the client-side live/history views to compare against instead of a bare "success" literal. Mirrors scan.ExitInterrupted (scan/scan.go), the server/scan-side counterpart that stamps and compares the same contract; that is the natural place to consolidate this const too if/when server/scan and scan/ingest are touched.

Variables

This section is empty.

Functions

func Commands

func Commands(con *client.Client) *cobra.Command

Commands returns all scan commands.

func CompleteByID

func CompleteByID(client *client.Client) carapace.Action

CompleteByID returns scan completions with their smallened IDs as keys. The live-DB read is wrapped in CacheCompletion (once, filter many); the per-invocation Filter(c.Args...) that drops already-selected IDs is applied OUTSIDE the cache, since the cache key is static.

func CompleteSeriesHead added in v0.2.0

func CompleteSeriesHead(client *client.Client) carapace.Action

CompleteSeriesHead completes only scans that head a collapsed series (FormerRuns > 0) — the meaningful arguments to `scan history`, since a run with no series has nothing to browse.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL