Versions in this module Expand all Collapse all v1 v1.1.0 Nov 9, 2022 Changes in this version + type Asset struct + Created time.Time + DisplayFqdn string + FirstObserved time.Time + Fqdns []string + ID string + IsDeleted bool + IsLicensed bool + LastObserved time.Time + Name string + Network struct{ ... } + ObservationSources []struct{ ... } + Sources []string + Tags []struct{ ... } + Types []string + Updated time.Time type Client + GetAssetByName func(name string) (*Asset, error) + GetFindingsByAssetName func(name string) ([]Finding, error) + type Finding struct + Definition struct{ ... } + ID string + Output string + Port int + Protocol string + Service string + Severity int type NessusClient + func (c *NessusClient) GetAssetByName(ctx context.Context, name string) (*Asset, error) + func (c *NessusClient) GetFindingsByAssetName(ctx context.Context, name string) ([]Finding, error) + type Pagination struct + Limit int + Next string + Total int v1.1.0-rc.4 Oct 17, 2022 v1.1.0-rc.3 Oct 17, 2022 v1.1.0-rc.2 Sep 14, 2022 v1.1.0-rc.1 Sep 12, 2022 v1.0.0 Jun 7, 2022 Changes in this version + type AuthProvider interface + AddAuthHeaders func(*http.Request) + Prepare func(url string, client *http.Client) error + type BasicAuthProvider struct + func NewBasicAuthProvider(username string, password string) *BasicAuthProvider + func (b *BasicAuthProvider) AddAuthHeaders(r *http.Request) + func (b *BasicAuthProvider) Prepare(url string, c *http.Client) error + type Client interface + CreateScan func(scan *Scan) (*PersistedScan, error) + DeleteScan func(scanID int64) error + GetPluginByID func(id int64) (*Plugin, error) + GetPluginOutput func(scanID, hostID, pluginID int64) (*PluginOutputResponse, error) + GetScanByID func(id int64) (*ScanDetail, error) + GetScanTemplates func() ([]*ScanTemplate, error) + GetScans func(lastModificationDate int64) ([]*PersistedScan, error) + LaunchScan func(scanID int64) error + StopScan func(scanID int64) error + type Host struct + Hostname string + ID int64 + type Info struct + Status string + type KeyAuthProvider struct + func NewKeyAuthProvider(accessKey string, secretKey string) *KeyAuthProvider + func (k *KeyAuthProvider) AddAuthHeaders(r *http.Request) + func (k *KeyAuthProvider) Prepare(_ string, _ *http.Client) error + type NessusClient struct + func NewClient(auth AuthProvider, url string, allowInsecureConnection bool) (*NessusClient, error) + func (c *NessusClient) CreateScan(scan *Scan) (*PersistedScan, error) + func (c *NessusClient) CreateScanContext(ctx context.Context, scan *Scan) (*PersistedScan, error) + func (c *NessusClient) DeleteScan(scanID int64) error + func (c *NessusClient) DeleteScanContext(ctx context.Context, scanID int64) error + func (c *NessusClient) GetPluginByID(ID int64) (*Plugin, error) + func (c *NessusClient) GetPluginByIDContext(ctx context.Context, ID int64) (*Plugin, error) + func (c *NessusClient) GetPluginOutput(scanID, hostID, pluginID int64) (*PluginOutputResponse, error) + func (c *NessusClient) GetPluginOutputContext(ctx context.Context, scanID, hostID, pluginID int64) (*PluginOutputResponse, error) + func (c *NessusClient) GetPolicyByID(ID int64) (*Policy, error) + func (c *NessusClient) GetPolicyByIDContext(ctx context.Context, ID int64) (*Policy, error) + func (c *NessusClient) GetScanByID(ID int64) (*ScanDetail, error) + func (c *NessusClient) GetScanByIDContext(ctx context.Context, ID int64) (*ScanDetail, error) + func (c *NessusClient) GetScanTemplates() ([]*ScanTemplate, error) + func (c *NessusClient) GetScanTemplatesContext(ctx context.Context) ([]*ScanTemplate, error) + func (c *NessusClient) GetScans(lastModificationDate int64) ([]*PersistedScan, error) + func (c *NessusClient) GetScansContext(ctx context.Context, lastModificationDate int64) ([]*PersistedScan, error) + func (c *NessusClient) LaunchScan(scanID int64) error + func (c *NessusClient) LaunchScanContext(ctx context.Context, scanID int64) error + func (c *NessusClient) StopScan(scanID int64) error + func (c *NessusClient) StopScanContext(ctx context.Context, scanID int64) error + type PersistedScan struct + CreationDate int64 + ID int64 + LastModificationDate int64 + Name string + Owner string + Status string + UUID string + type Plugin struct + Attributes []PluginAttribute + FamilyName string + ID int64 + Name string + type PluginAttribute struct + Name string + Value string + type PluginOutput struct + Hosts string + Output string + Ports interface{} + Severity int + type PluginOutputResponse struct + Output []PluginOutput + type Policy struct + ID int64 + Settings PolicySettings + UUID string + type PolicySettings struct + Name string + type Scan struct + Settings ScanSettings + TemplateUUID string + type ScanDetail struct + Hosts []Host + ID int64 + Info Info + Vulnerabilities []Vulnerability + type ScanSettings struct + Enabled bool + Name string + PolicyID int64 + Targets string + type ScanTemplate struct + CloudOnly bool + Description string + Info string + IsAgent bool + Name string + SubscriptionOnly bool + Title string + UUID string + type Vulnerability struct + Count int64 + PluginFamily string + PluginID int64 + PluginName string + Severity int64 + VulnerabilityIndex int64