cli

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2025 License: MIT Imports: 24 Imported by: 0

Documentation

Overview

Package cli provides command-line interface commands for the Scanorama network scanner. This file implements the API server command for running a standalone API server without the full daemon functionality.

Package cli provides command-line interface commands for the Scanorama network scanner. This package implements the Cobra-based CLI structure with commands for scanning, discovery, host management, scheduling, and daemon operations.

Package cli provides command-line interface commands for the Scanorama network scanner. This package implements the Cobra-based CLI structure with commands for scanning, discovery, host management, scheduling, and daemon operations.

Package cli provides command-line interface commands for the Scanorama network scanner. This package implements the Cobra-based CLI structure with commands for scanning, discovery, host management, scheduling, and daemon operations.

Package cli provides command-line interface commands for the Scanorama network scanner. This package implements the Cobra-based CLI structure with commands for scanning, discovery, host management, scheduling, and daemon operations.

Package cli provides command-line interface commands for the Scanorama network scanner. This package implements the Cobra-based CLI structure with commands for scanning, discovery, host management, scheduling, and daemon operations.

Package cli provides command-line interface commands for the Scanorama network scanner. This package implements the Cobra-based CLI structure with commands for scanning, discovery, host management, scheduling, and daemon operations.

Package cli provides command-line interface commands for the Scanorama network scanner. This package implements the Cobra-based CLI structure with commands for scanning, discovery, host management, scheduling, and daemon operations.

Package cli provides command-line interface commands for the Scanorama network scanner. This package implements the Cobra-based CLI structure with commands for scanning, discovery, host management, scheduling, and daemon operations.

Package cli provides command-line interface commands for the Scanorama network scanner. This package implements the Cobra-based CLI structure with commands for scanning, discovery, host management, scheduling, and daemon operations.

Package cli provides command-line interface commands for the Scanorama network scanner. This file implements the server command with lifecycle management.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func SetVersion

func SetVersion(v, c, bt string)

SetVersion sets the version information (called from main).

Types

type DatabaseOperation

type DatabaseOperation func(*db.DB) error

DatabaseOperation represents a function that operates on a database connection.

type DiscoveryJob

type DiscoveryJob struct {
	Name     string
	CronExpr string
	Network  string
	Method   string
	DetectOS bool
}

DiscoveryJob represents a discovery job configuration.

type Host

type Host struct {
	IP              string
	Status          string
	OSFamily        string
	OSName          string
	LastSeen        time.Time
	FirstSeen       time.Time
	IsIgnored       bool
	OpenPorts       int
	TotalScans      int
	DiscoveryMethod string
}

Host represents a discovered host.

type HostFilters

type HostFilters struct {
	Status      string
	OSFamily    string
	LastSeenDur time.Duration
	ShowIgnored bool
}

HostFilters represents the filters for querying hosts.

type ScanJob

type ScanJob struct {
	Name      string
	CronExpr  string
	Targets   string
	LiveHosts bool
	Ports     string
	ScanType  string
	Profile   string
	Timeout   int
	OSFamily  string
}

ScanJob represents a scan job configuration.

type ScheduledJob

type ScheduledJob struct {
	ID        string
	Name      string
	JobType   string
	CronExpr  string
	IsActive  bool
	CreatedAt time.Time
	LastRun   *time.Time
	NextRun   time.Time
	RunCount  int
	Config    map[string]interface{}
}

ScheduledJob represents a scheduled job.

Jump to

Keyboard shortcuts

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