tenable

package
v0.0.0-...-6006eb2 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Alerts

type Alerts struct {
	Vulnerabilities         []Vulnerabilities `json:"vulnerabilities"`
	TotalVulnerabilityCount int               `json:"total_vulnerability_count"`
	TotalAssetCount         int               `json:"total_asset_count"`
}

type CountsBySeverity

type CountsBySeverity struct {
	Count int `json:"count"`
	Value int `json:"value"`
}

type ExportSettings

type ExportSettings struct {
	// contains filtered or unexported fields
}

type Filter

type Filter struct {
	// contains filtered or unexported fields
}

func CreateFilter

func CreateFilter(filter string, quality string, value string) (*Filter, error)

type Tenable

type Tenable struct {
	Targets []string
	// contains filtered or unexported fields
}

TODO: Find a Better Name

func SetupTenable

func SetupTenable(tenableConfig *config.TenableConfig) (*Tenable, error)

func (*Tenable) DownloadExport

func (t *Tenable) DownloadExport() error

func (*Tenable) GetVulnerabilities

func (t *Tenable) GetVulnerabilities() (*Alerts, error)

func (*Tenable) LaunchScan

func (t *Tenable) LaunchScan() error

func (*Tenable) SetTargets

func (t *Tenable) SetTargets(targets []string) error

func (*Tenable) StartExport

func (t *Tenable) StartExport() error

func (*Tenable) WaitForExport

func (t *Tenable) WaitForExport() error

func (*Tenable) WaitForScanToComplete

func (t *Tenable) WaitForScanToComplete() error

type Vulnerabilities

type Vulnerabilities struct {
	Count              int                `json:"count"`
	PluginFamily       string             `json:"plugin_family"`
	PluginID           int                `json:"plugin_id"`
	PluginName         string             `json:"plugin_name"`
	VulnerabilityState string             `json:"vulnerability_state"`
	VprState           string             `json:"vpr_state"`
	VprScore           float32            `json:"vpr_score"`
	AcceptedCount      int                `json:"accepted_count"`
	RecastedCount      int                `json:"recasted_count"`
	CountsBySeverity   []CountsBySeverity `json:"counts_by_severity"`
}

Jump to

Keyboard shortcuts

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