Documentation ¶
Index ¶
- type Alerts
- type CountsBySeverity
- type ExportSettings
- type Filter
- type Tenable
- func (t *Tenable) DownloadExport() error
- func (t *Tenable) GetVulnerabilities() (*Alerts, error)
- func (t *Tenable) LaunchScan() error
- func (t *Tenable) SetTargets(targets []string) error
- func (t *Tenable) StartExport() error
- func (t *Tenable) WaitForExport() error
- func (t *Tenable) WaitForScanToComplete() error
- type Vulnerabilities
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 ExportSettings ¶
type ExportSettings struct {
// contains filtered or unexported fields
}
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 (*Tenable) GetVulnerabilities ¶
func (*Tenable) LaunchScan ¶
func (*Tenable) SetTargets ¶
func (*Tenable) StartExport ¶
func (*Tenable) WaitForExport ¶
func (*Tenable) WaitForScanToComplete ¶
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"` }
Click to show internal directories.
Click to hide internal directories.