Versions in this module Expand all Collapse all v0 v0.0.1 Apr 12, 2016 Changes in this version + type Agent struct + Distro string + ID int + IP string + LastScanned string + Name string + Platform string + Token string + UUID string + type Agents struct + Agents []Agent + type Client struct + func NewAccessTokenClient(host, port, accessKey, secretKey string, debug bool) *Client + func NewUsernameClient(host, port, username, password string, debug bool) *Client + func (c *Client) ChangeMailSettings(httpClient *http.Client, updatedMailSettings string) (bool, error) + func (c *Client) ChangePassword(httpClient *http.Client, newPassword string) (bool, error) + func (c *Client) ChangePermissions(httpClient *http.Client, objectType string, objectID int, ...) (bool, error) + func (c *Client) ChangeProxy(httpClient *http.Client, changeJSON string) (bool, error) + func (c *Client) ConfigurePolicy(httpClient *http.Client, policyID int, configurationJSON string) (bool, error) + func (c *Client) ConfigureScan(httpClient *http.Client, scanID int, configureScanJSON string) (CreateScanResponse, error) + func (c *Client) CopyPolicy(httpClient *http.Client, policyID int) (CopyPolicyResponse, error) + func (c *Client) CopyScan(httpClient *http.Client, scanID int, copyScanJSON string) (Scan, error) + func (c *Client) CreatePluginRule(httpClient *http.Client, pluginRuleJSON string) (bool, error) + func (c *Client) CreatePolicy(httpClient *http.Client, policyJSON string) (CreatePolicyResponse, error) + func (c *Client) CreateScan(httpClient *http.Client, newScanJSON string) (CreateScanResponse, error) + func (c *Client) CreateSession(httpClient *http.Client) (*Client, error) + func (c *Client) DeleteAgent(httpClient *http.Client, scannerID, agentID int) (bool, error) + func (c *Client) DeletePluginRule(httpClient *http.Client, ruleID int) (bool, error) + func (c *Client) DeletePolicy(httpClient *http.Client, policyID int) (bool, error) + func (c *Client) DeleteScan(httpClient *http.Client, scanID int) (bool, error) + func (c *Client) DeleteScanHistory(httpClient *http.Client, scanID, historyID int) (bool, error) + func (c *Client) DestroySession(httpClient *http.Client) (bool, error) + func (c *Client) DownloadScan(httpClient *http.Client, scanID, fileID int) (string, error) + func (c *Client) EditPluginRule(httpClient *http.Client, ruleID int, editJSON string) (bool, error) + func (c *Client) EditSession(httpClient *http.Client, updateJSON string) (SessionInfo, error) + func (c *Client) ExportPolicy(httpClient *http.Client, policyID int) (string, error) + func (c *Client) ExportScan(httpClient *http.Client, scanID int, exportSettingsJSON string) (ExportedScan, error) + func (c *Client) GenerateAPIKeys(httpClient *http.Client) (NewAPIKeys, error) + func (c *Client) GetSession(httpClient *http.Client) (SessionInfo, error) + func (c *Client) ImportPolicy(httpClient *http.Client, file string) (PolicyResponse, error) + func (c *Client) LaunchScan(httpClient *http.Client, scanID int) (LaunchedScan, error) + func (c *Client) ListAgents(httpClient *http.Client, scannerID int) (Agents, error) + func (c *Client) ListPermissions(httpClient *http.Client, objectType string, objectID int) (Permissions, error) + func (c *Client) ListPolicy(httpClient *http.Client) (ListPolicyResponse, error) + func (c *Client) ListScanTimezones(httpClient *http.Client) (ScanTimezones, error) + func (c *Client) ListScanners(httpClient *http.Client) (ListScannersResponse, error) + func (c *Client) ListScans(httpClient *http.Client) (ScanList, error) + func (c *Client) PauseScan(httpClient *http.Client, scanID int) (bool, error) + func (c *Client) PluginDetails(httpClient *http.Client, pluginID int) (PluginDetails, error) + func (c *Client) PluginFamilies(httpClient *http.Client) (PluginFamilies, error) + func (c *Client) PluginFamilyDetails(httpClient *http.Client, pluginFamilyID int) (PluginFamilyDetails, error) + func (c *Client) PluginRulesDetails(httpClient *http.Client, ruleID int) (PluginRuleResponse, error) + func (c *Client) PluginRulesList(httpClient *http.Client) (PluginRulesList, error) + func (c *Client) PolicyDetails(httpClient *http.Client, policyID int) (PolicyDetailsResponse, error) + func (c *Client) ResumeScan(httpClient *http.Client, scanID int) (bool, error) + func (c *Client) ScanDetails(httpClient *http.Client, scanID int) (ScanDetails, error) + func (c *Client) ScanExportStatus(httpClient *http.Client, scanID, fileID int) (ScanExportStatus, error) + func (c *Client) ServerProperties(httpClient *http.Client) (ServerPropertiesResponse, error) + func (c *Client) ServerStatus(httpClient *http.Client) (ServerStatusResponse, error) + func (c *Client) StopScan(httpClient *http.Client, scanID int) (bool, error) + func (c *Client) ToggleScanResultReadStatus(httpClient *http.Client, scanID int, read bool) (bool, error) + func (c *Client) ToggleScheduledScan(httpClient *http.Client, scanID int, enabled bool) (ToggleScheduledScan, error) + func (c *Client) ViewMailSettings(httpClient *http.Client) (MailSettings, error) + func (c *Client) ViewProxy(httpClient *http.Client) (ViewProxyResponse, error) + type CopyPolicyResponse struct + ID int + Name string + type CreatePolicyResponse struct + PolicyID int + PolicyName string + type CreateScan struct + Settings CreateScanSettings + UUID string + type CreateScanResponse struct + Scan struct{ ... } + type CreateScanSettings struct + Description string + Emails string + Enabled bool + FileTargets string + FolderID string + Launch string + LaunchNow bool + Name string + PolicyID string + ScannerID string + TextTargets string + type CreateSessionResponse struct + Token string + type ErrorResponse struct + Error string + type ExportedScan struct + File int + type Folder struct + Custom int + DefaultTag int + ID int + Name string + Type string + UnreadCount int + type LaunchedScan struct + ScanUUID string + type ListPolicyResponse struct + Policies []PolicyResponse + type ListScannersResponse struct + Scanners []struct{ ... } + type MailSettings struct + SMTPAuth string + SMTPEnc string + SMTPFrom string + SMTPHost string + SMTPPass string + SMTPPort string + SMTPUser string + SMTPWwwHost string + type NewAPIKeys struct + AccessKey string + SecretKey string + type Permission struct + DisplayName string + ID int + Name string + Owner int + Permissions int + Type string + type Permissions struct + Acls []Permission + type Plugin struct + ID int + Name string + type PluginAttributes struct + AttributeName string + AttributeValue string + type PluginDetails struct + Attributes []PluginAttributes + FamilyName string + ID int + Name string + type PluginFamilies struct + Families []PluginFamily + type PluginFamily struct + Count int + ID int + Name string + type PluginFamilyDetails struct + ID int + Name string + Plugins []Plugin + type PluginRuleResponse struct + Date string + Host string + ID int + Owner string + OwnerID int + PluginID int + Type string + type PluginRulesList struct + PluginRules []PluginRuleResponse + type PolicyDetailsResponse struct + Plugins interface{} + Settings interface{} + UUID string + type PolicyResponse struct + CreationDate int + Description string + ID int + LastModificationDate int + Name string + NoTarget string + Owner string + OwnerID int + Shared int + TemplateUUID string + UserPermissions int + Visibility string + type Scan struct + Control bool + CreationDate int + Enabled bool + FolderID int + ID int + LastModificationDate int + Name string + Owner string + Read bool + Rrules string + Shared bool + Starttime string + Status string + Timezone string + Type string + UUID string + UseDashboard bool + UserPermissions int + type ScanDetails struct + Comphosts []interface{} + Compliance []interface{} + Filters []struct{ ... } + History []struct{ ... } + Hosts []struct{ ... } + Info struct{ ... } + Notes interface{} + Remediations struct{ ... } + Vulnerabilities []struct{ ... } + type ScanExportStatus struct + Status string + type ScanList struct + Folders []Folder + Scans []Scan + Timestamp int + type ScanTimezone struct + Name string + Value string + type ScanTimezones struct + Timezones []ScanTimezone + type ServerPropertiesResponse struct + Capabilities struct{ ... } + Enterprise bool + Expiration int + ExpirationTime int + IdleTimeout int + License struct{ ... } + LoadedPluginSet string + LoginBanner bool + NessusType string + NessusUIVersion string + Notifications []struct{ ... } + PluginSet string + ScannerBoottime int + ServerUUID string + ServerVersion string + Update []struct{ ... } + type ServerStatusResponse struct + Code int + Progress int + Status string + type SessionInfo struct + Connectors interface{} + ContainerID int + Email string + Groups interface{} + ID int + Lastlogin int + Lockout bool + Name string + Permissions int + Type string + Username string + Whatsnew bool + WhatsnewVersion string + type ToggleScheduledScan struct + Control bool + Enabled bool + Rrules string + Starttime string + Timezone string + type ViewProxyResponse struct + Proxy string + ProxyPassword string + ProxyPort string + ProxyUsername string + UserAgent string