Documentation
¶
Index ¶
- type Agent
- type Aggregate
- type AggregateColumn
- type AggregateColumnInfo
- type AggregateGroup
- type Alert
- type AlertCondition
- type AlertCount
- type AlertData
- type AlertEvent
- type AlertFilter
- type AlertFilterInfo
- type AlertFilterKeyword
- type AlertFilters
- type AlertInfo
- type AlertMethod
- type AlertOwner
- type AlertPermission
- type AlertSort
- type AlertSortField
- type AlertTask
- type AlertUserTag
- type AlertUserTags
- type Asset
- type AssetAssets
- type AssetCount
- type AssetDetailSource
- type AssetFilter
- type AssetFilters
- type AssetHost
- type AssetHostDetail
- type AssetHostRoute
- type AssetHostRoutes
- type AssetHostSeverity
- type AssetHosts
- type AssetIdentifier
- type AssetIdentifierOS
- type AssetIdentifierSource
- type AssetIdentifiers
- type AssetInput
- type AssetKeyword
- type AssetKeywords
- type AssetOS
- type AssetOSHost
- type AssetOwner
- type AssetPermission
- type AssetReport
- type AssetRouteHost
- type AssetSeverity
- type AssetSort
- type AssetSortField
- type AssetTask
- type AssetTasks
- type AssetUserTag
- type AssetUserTags
- type AuthGroup
- type AuthSetting
- type Authenticate
- type AuthenticateCredentials
- type AuthenticateResponse
- type Config
- type ConfigConfigs
- type ConfigCount
- type ConfigFamilies
- type ConfigFamily
- type ConfigFamilyCount
- type ConfigFilters
- type ConfigKeyword
- type ConfigKeywords
- type ConfigNVTCount
- type ConfigNVTSelector
- type ConfigNVTSelectors
- type ConfigOwner
- type ConfigPermission
- type ConfigPermissions
- type ConfigPreference
- type ConfigPreferenceNVT
- type ConfigPreferences
- type ConfigScanner
- type ConfigSort
- type ConfigSortField
- type ConfigTask
- type ConfigTasks
- type ConfigUserTags
- type CreateAlert
- type CreateAlertResponse
- type CreateAsset
- type CreateAssetResponse
- type CreateConfig
- type CreateConfigResponse
- type CreateCredential
- type CreateCredentialKDCs
- type CreateCredentialKey
- type CreateCredentialPrivacy
- type CreateCredentialResponse
- type CreateFilter
- type CreateFilterResponse
- type CreateGroup
- type CreateGroupResponse
- type CreateNote
- type CreateNoteResponse
- type CreateNoteResult
- type CreateNoteTask
- type CreateOverride
- type CreateOverrideResponse
- type CreatePermission
- type CreatePermissionResponse
- type CreatePortList
- type CreatePortListResponse
- type CreatePortRange
- type CreatePortRangeResponse
- type CreateReport
- type CreateReportConfig
- type CreateReportConfigResponse
- type CreateReportFormat
- type CreateReportFormatResponse
- type CreateReportResponse
- type CreateRole
- type CreateRoleResponse
- type CreateScanner
- type CreateScannerResponse
- type CreateSchedule
- type CreateScheduleResponse
- type CreateTLSCertificate
- type CreateTLSCertificateResponse
- type CreateTag
- type CreateTagResources
- type CreateTagResponse
- type CreateTarget
- type CreateTargetResponse
- type CreateTask
- type CreateTaskResponse
- type CreateTicket
- type CreateTicketResponse
- type CreateUser
- type CreateUserResponse
- type Credential
- type CredentialAuthAlgorithm
- type CredentialCertificateInfo
- type CredentialCount
- type CredentialFilterKeyword
- type CredentialFilters
- type CredentialFiltersKeywords
- type CredentialFormats
- type CredentialInfo
- type CredentialKDCS
- type CredentialOwner
- type CredentialPackage
- type CredentialPermission
- type CredentialPermissions
- type CredentialPrivacy
- type CredentialScanner
- type CredentialScanners
- type CredentialSort
- type CredentialSortField
- type CredentialTarget
- type CredentialTargets
- type CredentialUserTag
- type CredentialUserTags
- type DeleteAgents
- type DeleteAgentsResponse
- type DeleteAlert
- type DeleteAlertResponse
- type DeleteAsset
- type DeleteAssetResponse
- type DeleteConfig
- type DeleteConfigResponse
- type DeleteCredential
- type DeleteCredentialResponse
- type DeleteFilter
- type DeleteFilterResponse
- type DeleteGroup
- type DeleteGroupResponse
- type DeleteNote
- type DeleteNoteResponse
- type DeleteOverride
- type DeleteOverrideResponse
- type DeletePermission
- type DeletePermissionResponse
- type DeletePortList
- type DeletePortListResponse
- type DeletePortRange
- type DeletePortRangeResponse
- type DeleteReport
- type DeleteReportConfig
- type DeleteReportConfigResponse
- type DeleteReportFormat
- type DeleteReportFormatResponse
- type DeleteReportResponse
- type DeleteRole
- type DeleteRoleResponse
- type DeleteScanner
- type DeleteScannerResponse
- type DeleteSchedule
- type DeleteScheduleResponse
- type DeleteTag
- type DeleteTagResponse
- type DeleteTarget
- type DeleteTargetResponse
- type DeleteTask
- type DeleteTaskResponse
- type DeleteTicket
- type DeleteTicketResponse
- type DeleteUser
- type DeleteUserResponse
- type DescribeAuth
- type DescribeAuthResponse
- type EmptyTrashcan
- type EmptyTrashcanResponse
- type Feature
- type Feed
- type FeedCurrentlySyncing
- type FeedSyncNotAvailable
- type Filter
- type FilterAlert
- type FilterAlerts
- type FilterCount
- type FilterInfo
- type FilterInfo2
- type FilterKeyword
- type FilterKeywords
- type FilterOwner
- type FilterPermission
- type FilterPermissions
- type FilterSort
- type FilterSortField
- type FilterUserTag
- type FilterUserTags
- type GetAgents
- type GetAgentsResponse
- type GetAggregates
- type GetAggregatesResponse
- type GetAlerts
- type GetAlertsResponse
- type GetAssets
- type GetAssetsResponse
- type GetConfigs
- type GetConfigsResponse
- type GetCredentials
- type GetCredentialsResponse
- type GetFeatures
- type GetFeaturesResponse
- type GetFeeds
- type GetFeedsResponse
- type GetFilters
- type GetFiltersResponse
- type GetGroups
- type GetGroupsResponse
- type GetInfo
- type GetInfoResponse
- type GetLicense
- type GetLicenseResponse
- type GetNVTFamilies
- type GetNVTFamiliesResponse
- type GetNVTs
- type GetNVTsResponse
- type GetNotes
- type GetNotesResponse
- type GetOverrides
- type GetOverridesResponse
- type GetPermissions
- type GetPermissionsResponse
- type GetPortLists
- type GetPortListsResponse
- type GetPreferences
- type GetPreferencesResponse
- type GetReportConfigs
- type GetReportConfigsResponse
- type GetReportFormats
- type GetReportFormatsResponse
- type GetReports
- type GetReportsResponse
- type GetResourceNames
- type GetResourceNamesResponse
- type GetResults
- type GetResultsResponse
- type GetRoles
- type GetRolesResponse
- type GetScanners
- type GetScannersResponse
- type GetSchedules
- type GetSchedulesResponse
- type GetSettings
- type GetSettingsResponse
- type GetSystemReports
- type GetSystemReportsResponse
- type GetTLSCertificates
- type GetTLSCertificatesResponse
- type GetTags
- type GetTagsResponse
- type GetTargets
- type GetTargetsResponse
- type GetTasks
- type GetTasksResponse
- type GetTasksResponseFilters
- type GetTasksResponseFiltersKeywords
- type GetTasksResponseFiltersKeywordsKeyword
- type GetTasksResponseSort
- type GetTasksResponseSortField
- type GetTasksResponseTask
- type GetTasksResponseTaskCount
- type GetTasksResponseTasks
- type GetTickets
- type GetTicketsResponse
- type GetUsers
- type GetUsersResponse
- type GetVersion
- type GetVersionResponse
- type GetVulns
- type GetVulnsResponse
- type Group
- type GroupCount
- type GroupFilters
- type GroupInfo
- type GroupKeyword
- type GroupKeywords
- type GroupOwner
- type GroupPermission
- type GroupPermissions
- type GroupSort
- type GroupSortField
- type GroupUserTag
- type GroupUserTags
- type Help
- type HelpResponse
- type Info
- type InfoCERT
- type InfoCERTBundAdv
- type InfoCPE
- type InfoCVE
- type InfoCVEs
- type InfoConfigurationNodes
- type InfoCount
- type InfoDeprecatedBy
- type InfoEPSS
- type InfoFilters
- type InfoKeyword
- type InfoKeywords
- type InfoNVTs
- type InfoOwner
- type InfoPermission
- type InfoPermissions
- type InfoReference
- type InfoReferences
- type InfoSort
- type InfoSortField
- type InfoUserTag
- type InfoUserTags
- type License
- type LicenseAppliance
- type LicenseContent
- type LicenseKey
- type LicenseKeys
- type LicenseMeta
- type LicenseSignature
- type LicenseSignatures
- type ModifyAgents
- type ModifyAgentsResponse
- type ModifyAlert
- type ModifyAlertResponse
- type ModifyAsset
- type ModifyAssetResponse
- type ModifyAuth
- type ModifyAuthResponse
- type ModifyConfig
- type ModifyConfigFamily
- type ModifyConfigFamilySelection
- type ModifyConfigNVT
- type ModifyConfigNVTSelection
- type ModifyConfigResponse
- type ModifyCredential
- type ModifyCredentialResponse
- type ModifyFilter
- type ModifyFilterResponse
- type ModifyGroup
- type ModifyGroupResponse
- type ModifyLicense
- type ModifyLicenseResponse
- type ModifyNote
- type ModifyNoteResponse
- type ModifyNoteResult
- type ModifyNoteTask
- type ModifyOverride
- type ModifyOverrideResponse
- type ModifyPermission
- type ModifyPermissionResponse
- type ModifyPortList
- type ModifyPortListResponse
- type ModifyReportConfig
- type ModifyReportConfigResponse
- type ModifyReportFormat
- type ModifyReportFormatResponse
- type ModifyRole
- type ModifyRoleResponse
- type ModifyScanner
- type ModifyScannerResponse
- type ModifySchedule
- type ModifyScheduleResponse
- type ModifySetting
- type ModifySettingResponse
- type ModifyTLSCertificate
- type ModifyTLSCertificateResponse
- type ModifyTag
- type ModifyTagResponse
- type ModifyTarget
- type ModifyTargetResponse
- type ModifyTask
- type ModifyTaskResponse
- type ModifyTicket
- type ModifyTicketResponse
- type ModifyUser
- type ModifyUserResponse
- type MoveTask
- type MoveTaskResponse
- type NVT
- type NVTFamily
- type NVTPreference
- type NVTPreferenceNVT
- type NVTPreferences
- type NVTSeverities
- type NVTSeverity
- type Note
- type NoteCount
- type NoteFilters
- type NoteKeyword
- type NoteKeywords
- type NoteNVT
- type NoteSort
- type NoteSortField
- type ObserverGroup
- type ObserverRole
- type Override
- type OverrideCount
- type OverrideFilters
- type OverrideFiltersKeyword
- type OverrideNVT
- type OverrideOwner
- type OverridePagination
- type OverridePermission
- type OverridePermissions
- type OverrideResult
- type OverrideResultHost
- type OverrideResultHostAsset
- type OverrideResultNVT
- type OverrideResultQOD
- type OverrideSort
- type OverrideSortField
- type OverrideTask
- type OverrideText
- type OverrideUserTag
- type OverrideUserTags
- type Permission
- type PermissionCount
- type PermissionFilters
- type PermissionFiltersKeyword
- type PermissionItem
- type PermissionList
- type PermissionOwner
- type PermissionPagination
- type PermissionResource
- type PermissionSort
- type PermissionSortField
- type PermissionSubject
- type PermissionUserTag
- type PermissionUserTags
- type PortList
- type PortListCount
- type PortListFilters
- type PortListOwner
- type PortListPagination
- type PortListPermission
- type PortListPermissions
- type PortListPortCount
- type PortListPortRange
- type PortListPortRanges
- type PortListSort
- type PortListTarget
- type PortListTargets
- type PortListUserTag
- type PortListUserTags
- type Preference
- type PreferenceNVT
- type Report
- type ReportCompliance
- type ReportComplianceCount
- type ReportConfig
- type ReportConfigCount
- type ReportConfigFilters
- type ReportConfigOwner
- type ReportConfigPagination
- type ReportConfigParam
- type ReportConfigPermission
- type ReportConfigPermissions
- type ReportConfigRef
- type ReportConfigReportFormat
- type ReportConfigSort
- type ReportContent
- type ReportCount
- type ReportDelta
- type ReportDeltaStates
- type ReportError
- type ReportErrors
- type ReportFilters
- type ReportFormat
- type ReportFormatFile
- type ReportFormatParam
- type ReportFormatParams
- type ReportFormatRef
- type ReportFormatSignature
- type ReportFormatTrust
- type ReportFormatsCount
- type ReportFormatsFilters
- type ReportFormatsPagination
- type ReportFormatsSort
- type ReportGMP
- type ReportHost
- type ReportHostDetail
- type ReportHostRef
- type ReportHosts
- type ReportNVT
- type ReportOwner
- type ReportPermission
- type ReportPermissions
- type ReportPort
- type ReportPorts
- type ReportRef
- type ReportResult
- type ReportResultCount
- type ReportResults
- type ReportSeverity
- type ReportSort
- type ReportSortField
- type ReportTLSCertificate
- type ReportTLSCertificates
- type ReportTag
- type ReportTask
- type ReportTaskDetail
- type ReportTaskRef
- type ReportTaskTarget
- type ReportUserTags
- type Resource
- type Restore
- type RestoreResponse
- type Result
- type ResultDelta
- type ResultDeltaNotes
- type ResultDeltaOverrides
- type ResultDetection
- type ResultDetectionDetail
- type ResultDetectionDetails
- type ResultDetectionResult
- type ResultHost
- type ResultHostAsset
- type ResultNVT
- type ResultNVTEPSS
- type ResultNVTEPSSCVE
- type ResultNVTEPSSInfo
- type ResultNVTRef
- type ResultNVTRefs
- type ResultNVTSeverities
- type ResultNote
- type ResultNoteAsset
- type ResultNoteHost
- type ResultNoteNVT
- type ResultNoteOwner
- type ResultNotePerm
- type ResultNotePerms
- type ResultNoteQOD
- type ResultNoteResult
- type ResultNoteTag
- type ResultNoteTask
- type ResultNoteText
- type ResultNoteUserTags
- type ResultNotes
- type ResultOverride
- type ResultOverrideAsset
- type ResultOverrideHost
- type ResultOverrideNVT
- type ResultOverrideOwner
- type ResultOverridePerm
- type ResultOverridePerms
- type ResultOverrideQOD
- type ResultOverrideResult
- type ResultOverrideTag
- type ResultOverrideTask
- type ResultOverrideText
- type ResultOverrideUserTags
- type ResultOverrides
- type ResultOwner
- type ResultQOD
- type ResultReportRef
- type ResultTag
- type ResultTaskRef
- type ResultTicketRef
- type ResultTickets
- type ResultUserTags
- type ResultsCount
- type ResultsFilterKeyword
- type ResultsFilters
- type ResultsMeta
- type ResultsSort
- type ResultsSortField
- type ResumeTask
- type ResumeTaskResponse
- type Role
- type RunWizard
- type RunWizardResponse
- type Scanner
- type ScannerCertificateInfo
- type ScannerConfig
- type ScannerConfigs
- type ScannerCount
- type ScannerCredential
- type ScannerFilters
- type ScannerFiltersKeyword
- type ScannerFiltersKeywords
- type ScannerInfo
- type ScannerInfoDaemon
- type ScannerInfoParams
- type ScannerInfoProtocol
- type ScannerInfoScanner
- type ScannerOwner
- type ScannerPermission
- type ScannerPermissions
- type ScannerScanners
- type ScannerSort
- type ScannerSortField
- type ScannerTag
- type ScannerTask
- type ScannerTasks
- type ScannerUserTags
- type Schedule
- type ScheduleOwner
- type SchedulePermission
- type ScheduleTask
- type ScheduleUserTag
- type ScheduleUserTags
- type Setting
- type Settings
- type Specials
- type StartTask
- type StartTaskResponse
- type StopTask
- type StopTaskResponse
- type SyncConfig
- type SyncConfigResponse
- type SystemReport
- type SystemReportReport
- type TLSCertificate
- type TLSCertificateData
- type TLSCertificateOwner
- type TLSCertificatePermission
- type TLSCertificatePermissions
- type Tag
- type TagResource
- type Target
- type TargetCount
- type TargetCredential
- type TargetFilters
- type TargetOwner
- type TargetPermission
- type TargetPermissions
- type TargetPortList
- type TargetPortRange
- type TargetSort
- type TargetTargets
- type TargetTask
- type TargetTasks
- type TargetUserTag
- type TargetUserTags
- type TaskAlert
- type TaskConfig
- type TaskLastReport
- type TaskObservers
- type TaskOwner
- type TaskPermission
- type TaskPermissions
- type TaskPreference
- type TaskPreferences
- type TaskReport
- type TaskReports
- type TaskScanner
- type TaskSchedule
- type TaskTarget
- type TestAlert
- type TestAlertResponse
- type Ticket
- type TicketAssignedTo
- type TicketOwner
- type TicketPermission
- type TicketPermissions
- type TicketResult
- type TicketUser
- type User
- type UserGroup
- type UserGroups
- type UserHosts
- type UserPassword
- type UserPermission
- type UserPermissions
- type UserRole
- type UserSources
- type UserTag
- type UserTags
- type VerifyReportFormat
- type VerifyReportFormatResponse
- type VerifyScanner
- type VerifyScannerResponse
- type Vuln
- type VulnCount
- type VulnHosts
- type VulnResults
- type VulnsFilters
- type VulnsKeyword
- type VulnsKeywords
- type VulnsMeta
- type VulnsSort
- type VulnsSortField
- type WizardParam
- type WizardParams
- type WizardResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Aggregate ¶
type Aggregate struct { DataType string `xml:"data_type,omitempty"` DataColumn string `xml:"data_column,omitempty"` GroupColumn string `xml:"group_column,omitempty"` Groups []AggregateGroup `xml:"group"` ColumnInfo *AggregateColumnInfo `xml:"column_info,omitempty"` }
Aggregate represents an aggregate block containing grouped data.
type AggregateColumn ¶
type AggregateColumn struct { Name string `xml:"name,omitempty"` Stat string `xml:"stat,omitempty"` Type string `xml:"type,omitempty"` Column string `xml:"column,omitempty"` DataType string `xml:"data_type,omitempty"` }
AggregateColumn represents information about a single aggregate column.
type AggregateColumnInfo ¶
type AggregateColumnInfo struct {
Columns []AggregateColumn `xml:"aggregate_column"`
}
AggregateColumnInfo represents information about aggregate columns.
type AggregateGroup ¶
type AggregateGroup struct { Value string `xml:"value,omitempty"` Count int `xml:"count,omitempty"` CCount int `xml:"c_count,omitempty"` Min float64 `xml:"min,omitempty"` Max float64 `xml:"max,omitempty"` Mean float64 `xml:"mean,omitempty"` Sum float64 `xml:"sum,omitempty"` CSum float64 `xml:"c_sum,omitempty"` }
AggregateGroup represents a group within an aggregate with statistical data.
type Alert ¶
type Alert struct { ID string `xml:"id,attr"` Owner AlertOwner `xml:"owner"` Name string `xml:"name"` Comment string `xml:"comment"` CreationTime string `xml:"creation_time"` ModificationTime string `xml:"modification_time"` InUse *bool `xml:"in_use"` Writable *bool `xml:"writable"` Permissions []AlertPermission `xml:"permissions>permission,omitempty"` UserTags *AlertUserTags `xml:"user_tags,omitempty"` Condition AlertCondition `xml:"condition"` Event AlertEvent `xml:"event"` Method AlertMethod `xml:"method"` Filter AlertFilterInfo `xml:"filter"` Tasks []AlertTask `xml:"tasks>task,omitempty"` Active *bool `xml:"active"` }
Alert represents a single alert in the response.
type AlertCondition ¶
type AlertCondition struct { Text string `xml:",chardata"` Data []AlertData `xml:"data,omitempty"` }
AlertCondition represents the condition that must be satisfied for the alert to occur.
type AlertCount ¶
AlertCount represents count information in the response.
type AlertEvent ¶
AlertEvent represents the event that must happen for the alert to occur.
type AlertFilter ¶
type AlertFilter struct {
ID string `xml:"id,attr"`
}
AlertFilter represents a filter to apply when executing alert.
type AlertFilterInfo ¶
type AlertFilterInfo struct { ID string `xml:"id,attr"` Name string `xml:"name"` Permissions string `xml:"permissions,omitempty"` Trash *bool `xml:"trash,omitempty"` }
AlertFilterInfo represents a filter applied to an alert.
type AlertFilterKeyword ¶
type AlertFilterKeyword struct { Column string `xml:"column"` Relation string `xml:"relation"` Value string `xml:"value"` }
AlertFilterKeyword represents a keyword in a filter.
type AlertFilters ¶
type AlertFilters struct { ID string `xml:"id,attr"` Term string `xml:"term"` Name string `xml:"name,omitempty"` Keywords []AlertFilterKeyword `xml:"keywords>keyword,omitempty"` }
AlertFilters represents filter information in the response.
type AlertMethod ¶
AlertMethod represents the method by which the user is alerted.
type AlertOwner ¶
type AlertOwner struct {
Name string `xml:"name"`
}
AlertOwner represents the owner of an alert.
type AlertPermission ¶
type AlertPermission struct {
Name string `xml:"name"`
}
AlertPermission represents a permission on an alert.
type AlertSort ¶
type AlertSort struct { Text string `xml:",chardata"` Field AlertSortField `xml:"field"` }
AlertSort represents sorting information in the response.
type AlertSortField ¶
type AlertSortField struct {
Order string `xml:"order"`
}
AlertSortField represents the field element in sort.
type AlertTask ¶
type AlertTask struct { ID string `xml:"id,attr"` Name string `xml:"name"` Permissions string `xml:"permissions,omitempty"` }
AlertTask represents a task using an alert.
type AlertUserTag ¶
type AlertUserTag struct { ID string `xml:"id,attr"` Name string `xml:"name"` Value string `xml:"value"` Comment string `xml:"comment"` }
AlertUserTag represents a tag attached to an alert.
type AlertUserTags ¶
type AlertUserTags struct { Count int `xml:"count"` Tags []AlertUserTag `xml:"tag,omitempty"` }
AlertUserTags represents user tags attached to an alert.
type Asset ¶
type Asset struct { ID string `xml:"id,attr"` Owner AssetOwner `xml:"owner"` Name string `xml:"name"` Comment string `xml:"comment"` CreationTime string `xml:"creation_time"` ModificationTime string `xml:"modification_time"` Writable string `xml:"writable,omitempty"` InUse string `xml:"in_use,omitempty"` Permissions []AssetPermission `xml:"permissions>permission,omitempty"` UserTags *AssetUserTags `xml:"user_tags,omitempty"` Identifiers *AssetIdentifiers `xml:"identifiers,omitempty"` Type string `xml:"type"` Host *AssetHost `xml:"host,omitempty"` OS *AssetOS `xml:"os,omitempty"` Tasks *AssetTasks `xml:"tasks,omitempty"` }
Asset represents a single asset in the response.
type AssetAssets ¶
AssetAssets represents the assets container in the response.
type AssetCount ¶
AssetCount represents count information in the response.
type AssetDetailSource ¶
AssetDetailSource represents the source of a detail.
type AssetFilter ¶
type AssetFilter struct {
Term string `xml:"term"`
}
CreateAssetFilter represents the <filter> element for create_asset report.
type AssetFilters ¶
type AssetFilters struct { ID string `xml:"id,attr"` Term string `xml:"term"` Name string `xml:"name,omitempty"` Keywords AssetKeywords `xml:"keywords"` }
AssetFilters represents filter information in the response.
type AssetHost ¶
type AssetHost struct { Severity AssetHostSeverity `xml:"severity"` Details []AssetHostDetail `xml:"detail,omitempty"` Routes *AssetHostRoutes `xml:"routes,omitempty"` }
AssetHost represents a host asset.
type AssetHostDetail ¶
type AssetHostDetail struct { Name string `xml:"name"` Value string `xml:"value"` Source AssetDetailSource `xml:"source"` }
AssetHostDetail represents a detail of a host.
type AssetHostRoute ¶
type AssetHostRoute struct {
Hosts []AssetRouteHost `xml:"host,omitempty"`
}
AssetHostRoute represents a route to a host.
type AssetHostRoutes ¶
type AssetHostRoutes struct {
Routes []AssetHostRoute `xml:"route,omitempty"`
}
AssetHostRoutes represents routes to a host.
type AssetHostSeverity ¶
type AssetHostSeverity struct {
Value string `xml:"value"`
}
AssetHostSeverity represents the severity of a host.
type AssetHosts ¶
type AssetHosts struct {
Filter string `xml:"filter,attr,omitempty"`
}
AssetHosts is the <asset_hosts> element for create_target.
type AssetIdentifier ¶
type AssetIdentifier struct { Name string `xml:"name"` Value string `xml:"value"` CreationTime string `xml:"creation_time"` ModificationTime string `xml:"modification_time"` Source AssetIdentifierSource `xml:"source"` OS *AssetIdentifierOS `xml:"os,omitempty"` }
AssetIdentifier represents a single identifier in an asset.
type AssetIdentifierOS ¶
AssetIdentifierOS represents an OS in an identifier.
type AssetIdentifierSource ¶
type AssetIdentifierSource struct { ID string `xml:"id,attr"` Type string `xml:"type"` Data string `xml:"data"` Deleted string `xml:"deleted"` Name string `xml:"name"` }
AssetIdentifierSource represents the source of an identifier.
type AssetIdentifiers ¶
type AssetIdentifiers struct {
Identifier []AssetIdentifier `xml:"identifier"`
}
AssetIdentifiers represents identifiers in an asset.
type AssetInput ¶
type AssetInput struct { Name string `xml:"name"` Comment string `xml:"comment,omitempty"` Type string `xml:"type"` }
AssetInput represents the <asset> element for create_asset.
type AssetKeyword ¶
type AssetKeyword struct { Column string `xml:"column"` Relation string `xml:"relation"` Value string `xml:"value"` }
AssetKeyword represents a keyword in filters.
type AssetKeywords ¶
type AssetKeywords struct {
Keyword []AssetKeyword `xml:"keyword"`
}
AssetKeywords represents keywords in filters.
type AssetOS ¶
type AssetOS struct { Title string `xml:"title"` Installs int `xml:"installs"` AllInstalls int `xml:"all_installs"` LatestSeverity AssetSeverity `xml:"latest_severity"` HighestSeverity AssetSeverity `xml:"highest_severity"` AverageSeverity AssetSeverity `xml:"average_severity"` Hosts []AssetOSHost `xml:"hosts>asset,omitempty"` }
AssetOS represents an OS asset.
type AssetOSHost ¶
type AssetOSHost struct { ID string `xml:"id,attr"` Name string `xml:"name"` Severity AssetSeverity `xml:"severity"` }
AssetOSHost represents a host in an OS asset.
type AssetOwner ¶
type AssetOwner struct {
Name string `xml:"name"`
}
AssetOwner represents the owner of an asset.
type AssetPermission ¶
type AssetPermission struct {
Name string `xml:"name"`
}
AssetPermission represents a permission on an asset.
type AssetReport ¶
type AssetReport struct { ID string `xml:"id,attr"` Filter *AssetFilter `xml:"filter,omitempty"` }
AssetReport represents the <report> element for create_asset.
type AssetRouteHost ¶
type AssetRouteHost struct { ID string `xml:"id,attr"` Distance string `xml:"distance,attr"` SameSource string `xml:"same_source,attr"` IP string `xml:"ip"` }
AssetRouteHost represents a host on a route.
type AssetSeverity ¶
type AssetSeverity struct {
Value string `xml:"value"`
}
AssetSeverity represents a severity value.
type AssetSort ¶
type AssetSort struct { Text string `xml:",chardata"` Field AssetSortField `xml:"field"` }
AssetSort represents sorting information in the response.
type AssetSortField ¶
type AssetSortField struct {
Order string `xml:"order"`
}
AssetSortField represents the field element in sort.
type AssetTasks ¶
type AssetTasks struct {
Tasks []AssetTask `xml:"task,omitempty"`
}
AssetTasks represents tasks using an asset.
type AssetUserTag ¶
type AssetUserTag struct { ID string `xml:"id,attr"` Name string `xml:"name"` Value string `xml:"value"` Comment string `xml:"comment"` }
AssetUserTag represents a tag attached to an asset.
type AssetUserTags ¶
type AssetUserTags struct { Count int `xml:"count"` Tags []AssetUserTag `xml:"tag,omitempty"` }
AssetUserTags represents user tags attached to an asset.
type AuthGroup ¶
type AuthGroup struct { Name string `xml:"name,attr"` Settings []AuthSetting `xml:"auth_conf_setting"` }
AuthGroup represents a group of authentication configuration settings.
type AuthSetting ¶
AuthSetting represents a single authentication configuration setting.
type Authenticate ¶
type Authenticate struct { XMLName xml.Name `xml:"authenticate"` Credentials *AuthenticateCredentials `xml:"credentials"` }
Authenticate represents an authenticate command request.
type AuthenticateCredentials ¶
type AuthenticateCredentials struct { Username string `xml:"username"` Password string `xml:"password"` }
AuthenticateCredentials contains the username and password for authentication.
type AuthenticateResponse ¶
type AuthenticateResponse struct { XMLName xml.Name `xml:"authenticate_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` Role string `xml:"role,omitempty"` Timezone string `xml:"timezone,omitempty"` }
AuthenticateResponse represents an authenticate command response.
type Config ¶
type Config struct { ID string `xml:"id,attr"` Owner ConfigOwner `xml:"owner"` Name string `xml:"name"` Comment string `xml:"comment"` CreationTime string `xml:"creation_time"` ModificationTime string `xml:"modification_time"` FamilyCount ConfigFamilyCount `xml:"family_count"` NVTCount ConfigNVTCount `xml:"nvt_count"` Type string `xml:"type"` UsageType string `xml:"usage_type"` MaxNVTCount int `xml:"max_nvt_count"` KnownNVTCount int `xml:"known_nvt_count"` Scanner *ConfigScanner `xml:"scanner,omitempty"` InUse string `xml:"in_use"` Writable string `xml:"writable"` Permissions ConfigPermissions `xml:"permissions"` UserTags ConfigUserTags `xml:"user_tags"` Tasks *ConfigTasks `xml:"tasks,omitempty"` Families *ConfigFamilies `xml:"families,omitempty"` Preferences *ConfigPreferences `xml:"preferences,omitempty"` NVTSelectors *ConfigNVTSelectors `xml:"nvt_selectors,omitempty"` Predefined string `xml:"predefined"` Deprecated *string `xml:"deprecated,omitempty"` }
Config represents a config element in the get_configs response.
type ConfigConfigs ¶
Configs represents the configs element in the response.
type ConfigCount ¶
ConfigCount represents the config count element in the response.
type ConfigFamilies ¶
type ConfigFamilies struct {
Family []ConfigFamily `xml:"family"`
}
ConfigFamilies represents the families element in a config.
type ConfigFamily ¶
type ConfigFamily struct { Name string `xml:"name"` Type int `xml:"type"` NVTCount int `xml:"nvt_count"` MaxNVTCount int `xml:"max_nvt_count"` Growing string `xml:"growing"` }
ConfigFamily represents a family element in config families.
type ConfigFamilyCount ¶
ConfigFamilyCount represents the family count element in a config.
type ConfigFilters ¶
type ConfigFilters struct { ID string `xml:"id,attr"` Term string `xml:"term"` Name string `xml:"name"` Keywords ConfigKeywords `xml:"keywords"` }
ConfigFilters represents the filters element in the response.
type ConfigKeyword ¶
type ConfigKeyword struct { Column string `xml:"column"` Relation string `xml:"relation"` Value string `xml:"value"` }
ConfigKeyword represents a keyword element in filters keywords.
type ConfigKeywords ¶
type ConfigKeywords struct {
Keyword []ConfigKeyword `xml:"keyword"`
}
ConfigKeywords represents the keywords element in filters.
type ConfigNVTCount ¶
ConfigNVTCount represents the NVT count element in a config.
type ConfigNVTSelector ¶
type ConfigNVTSelector struct { Name string `xml:"name"` Include string `xml:"include"` Type int `xml:"type"` FamilyOrNVT string `xml:"family_or_nvt"` }
ConfigNVTSelector represents an NVT selector element in config NVT selectors.
type ConfigNVTSelectors ¶
type ConfigNVTSelectors struct {
NVTSelector []ConfigNVTSelector `xml:"nvt_selector"`
}
ConfigNVTSelectors represents the NVT selectors element in a config.
type ConfigOwner ¶
type ConfigOwner struct {
Name string `xml:"name"`
}
ConfigOwner represents the owner element in a config.
type ConfigPermission ¶
type ConfigPermission struct {
Name string `xml:"name"`
}
ConfigPermission represents a permission element in config permissions.
type ConfigPermissions ¶
type ConfigPermissions struct {
Permission []ConfigPermission `xml:"permission"`
}
ConfigPermissions represents the permissions element in a config.
type ConfigPreference ¶
type ConfigPreference struct { NVT ConfigPreferenceNVT `xml:"nvt"` Name string `xml:"name"` HRName string `xml:"hr_name,omitempty"` ID string `xml:"id"` Type string `xml:"type"` Value string `xml:"value"` Default string `xml:"default,omitempty"` Alt []string `xml:"alt,omitempty"` }
ConfigPreference represents a preference element in config preferences.
type ConfigPreferenceNVT ¶
ConfigPreferenceNVT represents the NVT element in a config preference.
type ConfigPreferences ¶
type ConfigPreferences struct {
Preference []ConfigPreference `xml:"preference"`
}
ConfigPreferences represents the preferences element in a config.
type ConfigScanner ¶
ConfigScanner represents the scanner element in a config.
type ConfigSort ¶
type ConfigSort struct { Value string `xml:",chardata"` Field ConfigSortField `xml:"field"` }
ConfigSort represents the sort element in the response.
type ConfigSortField ¶
type ConfigSortField struct {
Order string `xml:"order"`
}
ConfigSortField represents the field element in sort.
type ConfigTask ¶
type ConfigTask struct { ID string `xml:"id,attr"` Name string `xml:"name"` Permissions string `xml:"permissions,omitempty"` }
ConfigTask represents a task element in config tasks.
type ConfigTasks ¶
type ConfigTasks struct {
Task []ConfigTask `xml:"task"`
}
ConfigTasks represents the tasks element in a config.
type ConfigUserTags ¶
type ConfigUserTags struct {
Count int `xml:"count"`
}
ConfigUserTags represents the user tags element in a config.
type CreateAlert ¶
type CreateAlert struct { XMLName xml.Name `xml:"create_alert"` Name string `xml:"name"` Comment string `xml:"comment,omitempty"` Copy string `xml:"copy,omitempty"` Condition AlertCondition `xml:"condition"` Event AlertEvent `xml:"event"` Method AlertMethod `xml:"method"` Filter *AlertFilter `xml:"filter,omitempty"` Active string `xml:"active,omitempty"` }
CreateAlert represents a create_alert command request.
type CreateAlertResponse ¶
type CreateAlertResponse struct { XMLName xml.Name `xml:"create_alert_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` ID string `xml:"id,attr"` }
CreateAlertResponse represents a create_alert command response.
type CreateAsset ¶
type CreateAsset struct { XMLName xml.Name `xml:"create_asset"` Asset *AssetInput `xml:"asset,omitempty"` Report *AssetReport `xml:"report,omitempty"` }
CreateAsset represents a create_asset command request.
type CreateAssetResponse ¶
type CreateAssetResponse struct { XMLName xml.Name `xml:"create_asset_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` ID string `xml:"id,attr"` }
CreateAssetResponse represents a create_asset command response.
type CreateConfig ¶
type CreateConfig struct { XMLName xml.Name `xml:"create_config"` Comment string `xml:"comment,omitempty"` Copy string `xml:"copy,omitempty"` GetConfigsResponse *GetConfigsResponse `xml:"get_configs_response,omitempty"` Name string `xml:"name,omitempty"` UsageType string `xml:"usage_type,omitempty"` }
CreateConfig represents a create_config command request.
type CreateConfigResponse ¶
type CreateConfigResponse struct { XMLName xml.Name `xml:"create_config_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` ID string `xml:"id,attr"` }
CreateConfigResponse represents a create_config command response.
type CreateCredential ¶
type CreateCredential struct { XMLName xml.Name `xml:"create_credential"` Name string `xml:"name"` Comment string `xml:"comment,omitempty"` Copy string `xml:"copy,omitempty"` AllowInsecure string `xml:"allow_insecure,omitempty"` Certificate string `xml:"certificate,omitempty"` KDC string `xml:"kdc,omitempty"` KDCs *CreateCredentialKDCs `xml:"kdcs,omitempty"` Key *CreateCredentialKey `xml:"key,omitempty"` Login string `xml:"login,omitempty"` Password string `xml:"password,omitempty"` AuthAlgorithm string `xml:"auth_algorithm,omitempty"` Community string `xml:"community,omitempty"` Privacy *CreateCredentialPrivacy `xml:"privacy,omitempty"` Realm string `xml:"realm,omitempty"` Type string `xml:"type,omitempty"` }
CreateCredential represents a GMP create_credential command request.
type CreateCredentialKDCs ¶
type CreateCredentialKDCs struct {
KDC []string `xml:"kdc"`
}
CreateCredentialKDCs represents a list of Kerberos Key Distribution Centers (KDCs).
type CreateCredentialKey ¶
type CreateCredentialKey struct { Phrase string `xml:"phrase,omitempty"` Private string `xml:"private,omitempty"` Public string `xml:"public,omitempty"` }
CredentialKey represents the key element for key-based credentials.
type CreateCredentialPrivacy ¶
type CreateCredentialPrivacy struct { Algorithm string `xml:"algorithm,omitempty"` Password string `xml:"password,omitempty"` }
CreateCredentialPrivacy represents SNMP privacy settings.
type CreateCredentialResponse ¶
type CreateCredentialResponse struct { XMLName xml.Name `xml:"create_credential_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` ID string `xml:"id,attr"` }
CreateCredentialResponse represents a GMP create_credential command response.
type CreateFilter ¶
type CreateFilter struct { XMLName xml.Name `xml:"create_filter"` Name string `xml:"name"` Comment string `xml:"comment,omitempty"` Copy string `xml:"copy,omitempty"` Term string `xml:"term,omitempty"` Type string `xml:"type,omitempty"` }
CreateFilter represents a create_filter command request.
type CreateFilterResponse ¶
type CreateFilterResponse struct { XMLName xml.Name `xml:"create_filter_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` ID string `xml:"id,attr"` }
CreateFilterResponse represents a create_filter command response.
type CreateGroup ¶
type CreateGroup struct { XMLName xml.Name `xml:"create_group"` Name string `xml:"name"` Comment string `xml:"comment,omitempty"` Copy string `xml:"copy,omitempty"` Specials *Specials `xml:"specials,omitempty"` Users string `xml:"users,omitempty"` }
CreateGroup is a create_group command request.
type CreateGroupResponse ¶
type CreateGroupResponse struct { XMLName xml.Name `xml:"create_group_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` ID string `xml:"id,attr"` }
CreateGroupResponse is a create_group command response.
type CreateNote ¶
type CreateNote struct { XMLName xml.Name `xml:"create_note"` Text string `xml:"text"` NVT *NoteNVT `xml:"nvt"` Result *CreateNoteResult `xml:"result,omitempty"` Active string `xml:"active,omitempty"` Copy string `xml:"copy,omitempty"` Hosts string `xml:"hosts,omitempty"` Port string `xml:"port,omitempty"` Severity string `xml:"severity,omitempty"` Task *CreateNoteTask `xml:"task,omitempty"` Threat string `xml:"threat,omitempty"` }
CreateNote is a create_note command request.
type CreateNoteResponse ¶
type CreateNoteResponse struct { XMLName xml.Name `xml:"create_note_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` ID string `xml:"id,attr"` }
CreateNoteResponse is a create_note command response.
type CreateNoteResult ¶
type CreateNoteResult struct {
ID string `xml:"id,attr"`
}
CreateNoteResult is the <result> element for create_note.
type CreateNoteTask ¶
type CreateNoteTask struct {
ID string `xml:"id,attr"`
}
CreateNoteTask is the <task> element for create_note.
type CreateOverride ¶
type CreateOverride struct { XMLName xml.Name `xml:"create_override"` Text string `xml:"text"` NVT *OverrideNVT `xml:"nvt"` Active *int `xml:"active,omitempty"` Copy string `xml:"copy,omitempty"` Hosts string `xml:"hosts,omitempty"` NewSeverity string `xml:"new_severity,omitempty"` NewThreat string `xml:"new_threat,omitempty"` Port string `xml:"port,omitempty"` Result string `xml:"result,omitempty"` Severity string `xml:"severity,omitempty"` Task string `xml:"task,omitempty"` Threat string `xml:"threat,omitempty"` }
CreateOverride is a create_override command request.
type CreateOverrideResponse ¶
type CreateOverrideResponse struct { XMLName xml.Name `xml:"create_override_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` ID string `xml:"id,attr"` }
CreateOverrideResponse is a create_override command response.
type CreatePermission ¶
type CreatePermission struct { XMLName xml.Name `xml:"create_permission"` Name string `xml:"name"` Subject *PermissionSubject `xml:"subject"` Resource *PermissionResource `xml:"resource,omitempty"` Copy string `xml:"copy,omitempty"` Comment string `xml:"comment,omitempty"` }
CreatePermission is a create_permission command request.
type CreatePermissionResponse ¶
type CreatePermissionResponse struct { XMLName xml.Name `xml:"create_permission_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` ID string `xml:"id,attr,omitempty"` }
CreatePermissionResponse is a create_permission command response.
type CreatePortList ¶
type CreatePortList struct { XMLName xml.Name `xml:"create_port_list"` Name string `xml:"name"` Comment string `xml:"comment,omitempty"` Copy string `xml:"copy,omitempty"` PortRange string `xml:"port_range"` }
CreatePortList is a create_port_list command request.
type CreatePortListResponse ¶
type CreatePortListResponse struct { XMLName xml.Name `xml:"create_port_list_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` ID string `xml:"id,attr"` }
CreatePortListResponse is a create_port_list command response.
type CreatePortRange ¶
type CreatePortRange struct { XMLName xml.Name `xml:"create_port_range"` Comment string `xml:"comment,omitempty"` PortListID string `xml:"port_list"` Start string `xml:"start"` End string `xml:"end"` Type string `xml:"type"` }
CreatePortRange is a create_port_range command request.
type CreatePortRangeResponse ¶
type CreatePortRangeResponse struct { XMLName xml.Name `xml:"create_port_range_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` ID string `xml:"id,attr"` }
CreatePortRangeResponse is a create_port_range command response.
type CreateReport ¶
type CreateReport struct { XMLName xml.Name `xml:"create_report"` Report *Report `xml:"report"` Task *ReportTask `xml:"task,omitempty"` InAssets *bool `xml:"in_assets,omitempty"` }
CreateReport represents a create_report command request.
type CreateReportConfig ¶
type CreateReportConfig struct { XMLName xml.Name `xml:"create_report_config"` Name string `xml:"name"` Comment string `xml:"comment,omitempty"` Copy string `xml:"copy,omitempty"` ReportFormat ReportConfigReportFormat `xml:"report_format"` Params []ReportConfigParam `xml:"param,omitempty"` }
CreateReportConfig is a create_report_config command request.
type CreateReportConfigResponse ¶
type CreateReportConfigResponse struct { XMLName xml.Name `xml:"create_report_config_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` ID string `xml:"id,attr"` }
CreateReportConfigResponse is a create_report_config command response.
type CreateReportFormat ¶
type CreateReportFormat struct { XMLName xml.Name `xml:"create_report_format"` Name string `xml:"name,omitempty"` Copy string `xml:"copy,omitempty"` }
CreateReportFormat represents a create_report_format command request.
type CreateReportFormatResponse ¶
type CreateReportFormatResponse struct { XMLName xml.Name `xml:"create_report_format_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` ID string `xml:"id,attr"` }
CreateReportFormatResponse represents a create_report_format command response.
type CreateReportResponse ¶
type CreateReportResponse struct { XMLName xml.Name `xml:"create_report_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` ID string `xml:"id,attr"` }
CreateReportResponse represents a create_report command response.
type CreateRole ¶
type CreateRole struct { XMLName xml.Name `xml:"create_role"` Name string `xml:"name"` Comment string `xml:"comment,omitempty"` Copy string `xml:"copy,omitempty"` Users string `xml:"users,omitempty"` }
CreateRole represents a create_role command request.
type CreateRoleResponse ¶
type CreateRoleResponse struct { XMLName xml.Name `xml:"create_role_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` ID string `xml:"id,attr"` }
CreateRoleResponse represents a create_role command response.
type CreateScanner ¶
type CreateScanner struct { XMLName xml.Name `xml:"create_scanner"` Name string `xml:"name"` Comment string `xml:"comment,omitempty"` Copy string `xml:"copy,omitempty"` Host string `xml:"host"` Port string `xml:"port"` Type string `xml:"type"` CAPub string `xml:"ca_pub"` Credential *ScannerCredential `xml:"credential"` RelayHost string `xml:"relay_host,omitempty"` RelayPort string `xml:"relay_port,omitempty"` }
CreateScanner is a request to create a scanner.
type CreateScannerResponse ¶
type CreateScannerResponse struct { XMLName xml.Name `xml:"create_scanner_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` ID string `xml:"id,attr"` }
ScannerCredential is reused from get_scanners.go for both create and get scanner commands.
type CreateSchedule ¶
type CreateSchedule struct { XMLName xml.Name `xml:"create_schedule"` Name string `xml:"name"` Comment string `xml:"comment,omitempty"` Copy string `xml:"copy,omitempty"` ICalendar string `xml:"icalendar,omitempty"` Timezone string `xml:"timezone,omitempty"` }
CreateSchedule represents a create_schedule command request.
type CreateScheduleResponse ¶
type CreateScheduleResponse struct { XMLName xml.Name `xml:"create_schedule_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` ID string `xml:"id,attr"` }
CreateScheduleResponse represents a create_schedule command response.
type CreateTLSCertificate ¶
type CreateTLSCertificate struct { XMLName xml.Name `xml:"create_tls_certificate"` Comment string `xml:"comment,omitempty"` Copy string `xml:"copy,omitempty"` Name string `xml:"name,omitempty"` Trust string `xml:"trust,omitempty"` Certificate string `xml:"certificate"` }
CreateTLSCertificate represents a create_tls_certificate command request.
type CreateTLSCertificateResponse ¶
type CreateTLSCertificateResponse struct { XMLName xml.Name `xml:"create_tls_certificate_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` ID string `xml:"id,attr"` }
CreateTLSCertificateResponse represents a create_tls_certificate command response.
type CreateTag ¶
type CreateTag struct { XMLName xml.Name `xml:"create_tag"` Name string `xml:"name"` Resources *CreateTagResources `xml:"resources,omitempty"` Copy string `xml:"copy,omitempty"` Value string `xml:"value,omitempty"` Comment string `xml:"comment,omitempty"` Active bool `xml:"active,omitempty"` }
CreateTag represents a create_tag command request.
type CreateTagResources ¶
type CreateTagResources struct { Filter string `xml:"filter,attr,omitempty"` Resources []TagResource `xml:"resource,omitempty"` Type string `xml:"type"` }
CreateTagResources represents the <resources> element for create_tag.
type CreateTagResponse ¶
type CreateTagResponse struct { XMLName xml.Name `xml:"create_tag_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` ID string `xml:"id,attr"` }
CreateTagResponse represents a create_tag command response.
type CreateTarget ¶
type CreateTarget struct { XMLName xml.Name `xml:"create_target"` Name string `xml:"name,omitempty"` Comment string `xml:"comment,omitempty"` Copy string `xml:"copy,omitempty"` AssetHosts *AssetHosts `xml:"asset_hosts,omitempty"` Hosts string `xml:"hosts,omitempty"` ExcludeHosts string `xml:"exclude_hosts,omitempty"` SSHCredential *TargetCredential `xml:"ssh_credential,omitempty"` SMBCredential *TargetCredential `xml:"smb_credential,omitempty"` ESXICredential *TargetCredential `xml:"esxi_credential,omitempty"` SNMPCredential *TargetCredential `xml:"snmp_credential,omitempty"` SSHLSCCredential *TargetCredential `xml:"ssh_lsc_credential,omitempty"` SMBLSCCredential *TargetCredential `xml:"smb_lsc_credential,omitempty"` ESXILSCCredential *TargetCredential `xml:"esxi_lsc_credential,omitempty"` AliveTests string `xml:"alive_tests,omitempty"` ReverseLookupOnly bool `xml:"reverse_lookup_only,omitempty"` ReverseLookupUnify bool `xml:"reverse_lookup_unify,omitempty"` PortRange string `xml:"port_range,omitempty"` PortList *TargetPortList `xml:"port_list,omitempty"` Krb5Credential *TargetCredential `xml:"krb5_credential,omitempty"` SSHElevateCredential *TargetCredential `xml:"ssh_elevate_credential,omitempty"` AllowSimultaneousIPs bool `xml:"allow_simultaneous_ips,omitempty"` }
CreateTarget is a create_target command request.
type CreateTargetResponse ¶
type CreateTargetResponse struct { XMLName xml.Name `xml:"create_target_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` ID string `xml:"id,attr"` }
CreateTargetResponse is a create_target command response.
type CreateTask ¶
type CreateTask struct { XMLName xml.Name `xml:"create_task"` Name string `xml:"name,omitempty"` Comment string `xml:"comment,omitempty"` Copy string `xml:"copy,omitempty"` Alterable bool `xml:"alterable,omitempty"` UsageType string `xml:"usage_type,omitempty"` Config *TaskConfig `xml:"config,omitempty"` Target *TaskTarget `xml:"target,omitempty"` HostsOrdering string `xml:"hosts_ordering,omitempty"` Scanner *TaskScanner `xml:"scanner,omitempty"` Alert *TaskAlert `xml:"alert,omitempty"` Schedule *TaskSchedule `xml:"schedule,omitempty"` SchedulePeriods int `xml:"schedule_periods,omitempty"` Observers *TaskObservers `xml:"observers,omitempty"` Preferences *TaskPreferences `xml:"preferences,omitempty"` }
CreateTask represents a create_task command request.
type CreateTaskResponse ¶
type CreateTaskResponse struct { XMLName xml.Name `xml:"create_task_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` ID string `xml:"id,attr"` }
CreateTaskResponse represents a create_task command response.
type CreateTicket ¶
type CreateTicket struct { XMLName xml.Name `xml:"create_ticket"` Comment string `xml:"comment,omitempty"` Copy string `xml:"copy,omitempty"` Result TicketResult `xml:"result"` Assigned TicketAssignedTo `xml:"assigned_to"` OpenNote string `xml:"open_note"` }
CreateTicket represents a create_ticket command request.
type CreateTicketResponse ¶
type CreateTicketResponse struct { XMLName xml.Name `xml:"create_ticket_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` ID string `xml:"id,attr"` }
CreateTicketResponse represents a create_ticket command response.
type CreateUser ¶
type CreateUser struct { XMLName xml.Name `xml:"create_user"` Name string `xml:"name"` Copy string `xml:"copy,omitempty"` Comment string `xml:"comment,omitempty"` Hosts *UserHosts `xml:"hosts,omitempty"` Password string `xml:"password,omitempty"` Roles []*UserRole `xml:"role,omitempty"` Groups *UserGroups `xml:"groups,omitempty"` Sources *UserSources `xml:"sources,omitempty"` }
CreateUser represents a create_user command request.
type CreateUserResponse ¶
type CreateUserResponse struct { XMLName xml.Name `xml:"create_user_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` ID string `xml:"id,attr"` }
CreateUserResponse represents a create_user command response.
type Credential ¶
type Credential struct { ID string `xml:"id,attr"` Owner CredentialOwner `xml:"owner"` Name string `xml:"name"` AllowInsecure string `xml:"allow_insecure"` Login string `xml:"login"` Comment string `xml:"comment"` CreationTime string `xml:"creation_time"` ModificationTime string `xml:"modification_time"` Writable string `xml:"writable"` InUse string `xml:"in_use"` Permissions CredentialPermissions `xml:"permissions"` UserTags *CredentialUserTags `xml:"user_tags,omitempty"` Type string `xml:"type"` FullType string `xml:"full_type"` Formats *CredentialFormats `xml:"formats,omitempty"` AuthAlgorithm *CredentialAuthAlgorithm `xml:"auth_algorithm,omitempty"` Privacy *CredentialPrivacy `xml:"privacy,omitempty"` CertificateInfo *CredentialCertificateInfo `xml:"certificate_info,omitempty"` Scanners *CredentialScanners `xml:"scanners,omitempty"` Targets *CredentialTargets `xml:"targets,omitempty"` PublicKey string `xml:"public_key,omitempty"` Package *CredentialPackage `xml:"package,omitempty"` Certificate string `xml:"certificate,omitempty"` KDC string `xml:"kdc,omitempty"` KDCS *CredentialKDCS `xml:"kdcs,omitempty"` Realm string `xml:"realm,omitempty"` }
Credential represents a <credential> element in the get_credentials response.
type CredentialAuthAlgorithm ¶
type CredentialAuthAlgorithm struct {
Value string `xml:",chardata"`
}
CredentialAuthAlgorithm represents the auth_algorithm element in a credential.
type CredentialCertificateInfo ¶
type CredentialCertificateInfo struct {
Value string `xml:",chardata"`
}
CredentialCertificateInfo represents the certificate_info element in a credential.
type CredentialCount ¶
CredentialCount represents the credential count element in the response.
type CredentialFilterKeyword ¶
type CredentialFilterKeyword struct { Column string `xml:"column"` Relation string `xml:"relation"` Value string `xml:"value"` }
CredentialFilterKeyword represents a keyword element in filters keywords.
type CredentialFilters ¶
type CredentialFilters struct { ID string `xml:"id,attr"` Term string `xml:"term"` Name string `xml:"name"` Keywords CredentialFiltersKeywords `xml:"keywords"` }
CredentialFilters represents the filters element in the response.
type CredentialFiltersKeywords ¶
type CredentialFiltersKeywords struct {
Keyword []CredentialFilterKeyword `xml:"keyword"`
}
CredentialFiltersKeywords represents the keywords element in filters.
type CredentialFormats ¶
type CredentialFormats struct {
Formats []string `xml:"format"`
}
CredentialFormats represents the formats element in a credential.
type CredentialInfo ¶
CredentialInfo represents the credentials element in the response.
type CredentialKDCS ¶
type CredentialKDCS struct {
KDC []string `xml:"kdc"`
}
CredentialKDCS represents the kdcs element in a credential.
type CredentialOwner ¶
type CredentialOwner struct {
Name string `xml:"name"`
}
CredentialOwner represents the owner element in a credential.
type CredentialPackage ¶
CredentialPackage represents the package element in a credential.
type CredentialPermission ¶
type CredentialPermission struct {
Name string `xml:"name"`
}
CredentialPermission represents a permission element in credential permissions.
type CredentialPermissions ¶
type CredentialPermissions struct {
Permission []CredentialPermission `xml:"permission"`
}
CredentialPermissions represents the permissions element in a credential.
type CredentialPrivacy ¶
type CredentialPrivacy struct {
Value string `xml:",chardata"`
}
CredentialPrivacy represents the privacy element in a credential.
type CredentialScanner ¶
CredentialScanner represents a scanner element in credential scanners.
type CredentialScanners ¶
type CredentialScanners struct {
Scanner []CredentialScanner `xml:"scanner"`
}
CredentialScanners represents the scanners element in a credential.
type CredentialSort ¶
type CredentialSort struct { Value string `xml:",chardata"` Field CredentialSortField `xml:"field"` }
CredentialSort represents the sort element in the response.
type CredentialSortField ¶
type CredentialSortField struct {
Order string `xml:"order"`
}
CredentialSortField represents the field element in sort.
type CredentialTarget ¶
CredentialTarget represents a target element in credential targets.
type CredentialTargets ¶
type CredentialTargets struct {
Target []CredentialTarget `xml:"target"`
}
CredentialTargets represents the targets element in a credential.
type CredentialUserTag ¶
type CredentialUserTag struct { ID string `xml:"id,attr"` Name string `xml:"name"` Value string `xml:"value"` Comment string `xml:"comment"` }
CredentialUserTag represents a tag element in credential user tags.
type CredentialUserTags ¶
type CredentialUserTags struct { Count int `xml:"count"` Tags []CredentialUserTag `xml:"tag,omitempty"` }
CredentialUserTags represents the user tags element in a credential.
type DeleteAgents ¶
type DeleteAgents struct { XMLName xml.Name `xml:"delete_agents"` Agents []Agent `xml:"agents>agent"` }
DeleteAgents represents a delete_agents command request.
type DeleteAgentsResponse ¶
type DeleteAgentsResponse struct { XMLName xml.Name `xml:"delete_agents_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` }
DeleteAgentsResponse represents a delete_agents command response.
type DeleteAlert ¶
type DeleteAlert struct { XMLName xml.Name `xml:"delete_alert"` AlertID string `xml:"alert_id,attr"` Ultimate string `xml:"ultimate,attr"` }
DeleteAlert represents a delete_alert command request.
type DeleteAlertResponse ¶
type DeleteAlertResponse struct { XMLName xml.Name `xml:"delete_alert_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` }
DeleteAlertResponse represents a delete_alert command response.
type DeleteAsset ¶
type DeleteAsset struct { XMLName xml.Name `xml:"delete_asset"` AssetID string `xml:"asset_id,attr,omitempty"` ReportID string `xml:"report_id,attr,omitempty"` }
DeleteAsset represents a delete_asset command request.
type DeleteAssetResponse ¶
type DeleteAssetResponse struct { XMLName xml.Name `xml:"delete_asset_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` }
DeleteAssetResponse represents a delete_asset command response.
type DeleteConfig ¶
type DeleteConfig struct { XMLName xml.Name `xml:"delete_config"` ConfigID string `xml:"config_id,attr"` Ultimate string `xml:"ultimate,attr"` }
DeleteConfig represents a delete_config command request.
type DeleteConfigResponse ¶
type DeleteConfigResponse struct { XMLName xml.Name `xml:"delete_config_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` }
DeleteConfigResponse represents a delete_config command response.
type DeleteCredential ¶
type DeleteCredential struct { XMLName xml.Name `xml:"delete_credential"` CredentialID string `xml:"credential_id,attr"` Ultimate string `xml:"ultimate,attr"` }
DeleteCredential represents a delete_credential command request.
type DeleteCredentialResponse ¶
type DeleteCredentialResponse struct { XMLName xml.Name `xml:"delete_credential_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` }
DeleteCredentialResponse represents a delete_credential command response.
type DeleteFilter ¶
type DeleteFilter struct { XMLName xml.Name `xml:"delete_filter"` FilterID string `xml:"filter_id,attr"` Ultimate string `xml:"ultimate,attr"` }
DeleteFilter represents a delete_filter command request.
type DeleteFilterResponse ¶
type DeleteFilterResponse struct { XMLName xml.Name `xml:"delete_filter_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` }
DeleteFilterResponse represents a delete_filter command response.
type DeleteGroup ¶
type DeleteGroup struct { XMLName xml.Name `xml:"delete_group"` GroupID string `xml:"group_id,attr"` Ultimate string `xml:"ultimate,attr"` }
DeleteGroup represents a delete_group command request.
type DeleteGroupResponse ¶
type DeleteGroupResponse struct { XMLName xml.Name `xml:"delete_group_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` }
DeleteGroupResponse represents a delete_group command response.
type DeleteNote ¶
type DeleteNote struct { XMLName xml.Name `xml:"delete_note"` NoteID string `xml:"note_id,attr"` Ultimate string `xml:"ultimate,attr"` }
DeleteNote represents a delete_note command request.
type DeleteNoteResponse ¶
type DeleteNoteResponse struct { XMLName xml.Name `xml:"delete_note_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` }
DeleteNoteResponse represents a delete_note command response.
type DeleteOverride ¶
type DeleteOverride struct { XMLName xml.Name `xml:"delete_override"` OverrideID string `xml:"override_id,attr"` Ultimate string `xml:"ultimate,attr"` }
DeleteOverride represents a delete_override command request.
type DeleteOverrideResponse ¶
type DeleteOverrideResponse struct { XMLName xml.Name `xml:"delete_override_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` }
DeleteOverrideResponse represents a delete_override command response.
type DeletePermission ¶
type DeletePermission struct { XMLName xml.Name `xml:"delete_permission"` PermissionID string `xml:"permission_id,attr"` Ultimate string `xml:"ultimate,attr"` }
DeletePermission represents a delete_permission command request.
type DeletePermissionResponse ¶
type DeletePermissionResponse struct { XMLName xml.Name `xml:"delete_permission_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` }
DeletePermissionResponse represents a delete_permission command response.
type DeletePortList ¶
type DeletePortList struct { XMLName xml.Name `xml:"delete_port_list"` PortListID string `xml:"port_list_id,attr"` Ultimate string `xml:"ultimate,attr"` }
DeletePortList represents a delete_port_list command request.
type DeletePortListResponse ¶
type DeletePortListResponse struct { XMLName xml.Name `xml:"delete_port_list_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` }
DeletePortListResponse represents a delete_port_list command response.
type DeletePortRange ¶
type DeletePortRange struct { XMLName xml.Name `xml:"delete_port_range"` PortRangeID string `xml:"port_range_id,attr"` }
DeletePortRange represents a delete_port_range command request.
type DeletePortRangeResponse ¶
type DeletePortRangeResponse struct { XMLName xml.Name `xml:"delete_port_range_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` }
DeletePortRangeResponse represents a delete_port_range command response.
type DeleteReport ¶
type DeleteReport struct { XMLName xml.Name `xml:"delete_report"` ReportID string `xml:"report_id,attr"` }
DeleteReport represents a delete_report command request.
type DeleteReportConfig ¶
type DeleteReportConfig struct { XMLName xml.Name `xml:"delete_report_config"` ReportConfigID string `xml:"report_config_id,attr"` Ultimate string `xml:"ultimate,attr"` }
DeleteReportConfig represents a delete_report_config command request.
type DeleteReportConfigResponse ¶
type DeleteReportConfigResponse struct { XMLName xml.Name `xml:"delete_report_config_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` }
DeleteReportConfigResponse represents a delete_report_config command response.
type DeleteReportFormat ¶
type DeleteReportFormat struct { XMLName xml.Name `xml:"delete_report_format"` ReportFormatID string `xml:"report_format_id,attr"` Ultimate string `xml:"ultimate,attr"` }
DeleteReportFormat represents a delete_report_format command request.
type DeleteReportFormatResponse ¶
type DeleteReportFormatResponse struct { XMLName xml.Name `xml:"delete_report_format_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` }
DeleteReportFormatResponse represents a delete_report_format command response.
type DeleteReportResponse ¶
type DeleteReportResponse struct { XMLName xml.Name `xml:"delete_report_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` }
DeleteReportResponse represents a delete_report command response.
type DeleteRole ¶
type DeleteRole struct { XMLName xml.Name `xml:"delete_role"` RoleID string `xml:"role_id,attr"` Ultimate string `xml:"ultimate,attr"` }
DeleteRole represents a delete_role command request.
type DeleteRoleResponse ¶
type DeleteRoleResponse struct { XMLName xml.Name `xml:"delete_role_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` }
DeleteRoleResponse represents a delete_role command response.
type DeleteScanner ¶
type DeleteScanner struct { XMLName xml.Name `xml:"delete_scanner"` ScannerID string `xml:"scanner_id,attr"` Ultimate string `xml:"ultimate,attr"` }
DeleteScanner represents a delete_scanner command request.
type DeleteScannerResponse ¶
type DeleteScannerResponse struct { XMLName xml.Name `xml:"delete_scanner_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` }
DeleteScannerResponse represents a delete_scanner command response.
type DeleteSchedule ¶
type DeleteSchedule struct { XMLName xml.Name `xml:"delete_schedule"` ScheduleID string `xml:"schedule_id,attr"` Ultimate string `xml:"ultimate,attr"` }
DeleteSchedule represents a delete_schedule command request.
type DeleteScheduleResponse ¶
type DeleteScheduleResponse struct { XMLName xml.Name `xml:"delete_schedule_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` }
DeleteScheduleResponse represents a delete_schedule command response.
type DeleteTag ¶
type DeleteTag struct { XMLName xml.Name `xml:"delete_tag"` TagID string `xml:"tag_id,attr"` Ultimate string `xml:"ultimate,attr"` }
DeleteTag represents a delete_tag command request.
type DeleteTagResponse ¶
type DeleteTagResponse struct { XMLName xml.Name `xml:"delete_tag_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` }
DeleteTagResponse represents a delete_tag command response.
type DeleteTarget ¶
type DeleteTarget struct { XMLName xml.Name `xml:"delete_target"` TargetID string `xml:"target_id,attr,omitempty"` Ultimate bool `xml:"ultimate,attr,omitempty"` }
DeleteTarget represents a delete_target command request.
type DeleteTargetResponse ¶
type DeleteTargetResponse struct { XMLName xml.Name `xml:"delete_target_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` }
DeleteTargetResponse represents a delete_target command response.
type DeleteTask ¶
type DeleteTask struct { XMLName xml.Name `xml:"delete_task"` TaskID string `xml:"task_id,attr,omitempty"` Ultimate bool `xml:"ultimate,attr,omitempty"` }
DeleteTask represents a delete_task command request.
type DeleteTaskResponse ¶
type DeleteTaskResponse struct { XMLName xml.Name `xml:"delete_task_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` }
DeleteTaskResponse represents a delete_task command response.
type DeleteTicket ¶
type DeleteTicket struct { XMLName xml.Name `xml:"delete_ticket"` TicketID string `xml:"ticket_id,attr"` Ultimate string `xml:"ultimate,attr"` }
DeleteTicket represents a delete_ticket command request.
type DeleteTicketResponse ¶
type DeleteTicketResponse struct { XMLName xml.Name `xml:"delete_ticket_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` }
DeleteTicketResponse represents a delete_ticket command response.
type DeleteUser ¶
type DeleteUser struct { XMLName xml.Name `xml:"delete_user"` UserID string `xml:"user_id,attr,omitempty"` Name string `xml:"name,attr,omitempty"` InheritorID string `xml:"inheritor_id,attr,omitempty"` InheritorName string `xml:"inheritor_name,attr,omitempty"` }
DeleteUser represents a delete_user command request.
type DeleteUserResponse ¶
type DeleteUserResponse struct { XMLName xml.Name `xml:"delete_user_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` }
DeleteUserResponse represents a delete_user command response.
type DescribeAuth ¶
DescribeAuth represents a describe_auth command request.
type DescribeAuthResponse ¶
type DescribeAuthResponse struct { XMLName xml.Name `xml:"describe_auth_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` Groups []AuthGroup `xml:"group"` }
DescribeAuthResponse represents a describe_auth command response.
type EmptyTrashcan ¶
EmptyTrashcan represents an empty_trashcan command request.
type EmptyTrashcanResponse ¶
type EmptyTrashcanResponse struct { XMLName xml.Name `xml:"empty_trashcan_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` }
EmptyTrashcanResponse represents an empty_trashcan command response.
type Feed ¶
type Feed struct { Type string `xml:"type,omitempty"` Name string `xml:"name,omitempty"` Version string `xml:"version,omitempty"` Description string `xml:"description,omitempty"` SyncNotAvailable *FeedSyncNotAvailable `xml:"sync_not_available,omitempty"` CurrentlySyncing *FeedCurrentlySyncing `xml:"currently_syncing,omitempty"` }
Feed represents a <feed> element in the get_feeds response.
type FeedCurrentlySyncing ¶
type FeedCurrentlySyncing struct {
Timestamp string `xml:"timestamp"`
}
FeedCurrentlySyncing represents the <currently_syncing> element in a feed.
type FeedSyncNotAvailable ¶
type FeedSyncNotAvailable struct {
Error string `xml:"error"`
}
FeedSyncNotAvailable represents the <sync_not_available> element in a feed.
type Filter ¶
type Filter struct { ID string `xml:"id,attr"` Owner FilterOwner `xml:"owner"` Name string `xml:"name"` Comment string `xml:"comment"` Term string `xml:"term"` Type string `xml:"type"` CreationTime string `xml:"creation_time"` ModificationTime string `xml:"modification_time"` InUse bool `xml:"in_use"` Writable bool `xml:"writable"` Permissions FilterPermissions `xml:"permissions"` UserTags *FilterUserTags `xml:"user_tags,omitempty"` Alerts *FilterAlerts `xml:"alerts,omitempty"` }
Filter represents a <filter> element in the get_filters response.
type FilterAlert ¶
FilterAlert represents an alert element in filter alerts.
type FilterAlerts ¶
type FilterAlerts struct {
Alert []FilterAlert `xml:"alert"`
}
FilterAlerts represents the alerts element in a filter.
type FilterCount ¶
FilterCount represents the filter count element in the response.
type FilterInfo ¶
type FilterInfo struct { ID string `xml:"id,attr"` Term string `xml:"term"` Name string `xml:"name"` Keywords FilterKeywords `xml:"keywords"` }
FilterInfo represents the filters element in the response.
type FilterInfo2 ¶
FilterInfo2 represents the filters2 element in the response.
type FilterKeyword ¶
type FilterKeyword struct { Column string `xml:"column"` Relation string `xml:"relation"` Value string `xml:"value"` }
FilterKeyword represents a keyword element in filters keywords.
type FilterKeywords ¶
type FilterKeywords struct {
Keyword []FilterKeyword `xml:"keyword"`
}
FilterKeywords represents the keywords element in filters.
type FilterOwner ¶
type FilterOwner struct {
Name string `xml:"name"`
}
FilterOwner represents the owner element in a filter.
type FilterPermission ¶
type FilterPermission struct {
Name string `xml:"name"`
}
FilterPermission represents a permission element in filter permissions.
type FilterPermissions ¶
type FilterPermissions struct {
Permission []FilterPermission `xml:"permission"`
}
FilterPermissions represents the permissions element in a filter.
type FilterSort ¶
type FilterSort struct { Value string `xml:",chardata"` Field FilterSortField `xml:"field"` }
FilterSort represents the sort element in the response.
type FilterSortField ¶
type FilterSortField struct {
Order string `xml:"order"`
}
FilterSortField represents the field element in sort.
type FilterUserTag ¶
type FilterUserTag struct { ID string `xml:"id,attr"` Name string `xml:"name"` Value string `xml:"value"` Comment string `xml:"comment"` }
FilterUserTag represents a tag element in filter user tags.
type FilterUserTags ¶
type FilterUserTags struct { Count int `xml:"count"` Tags []FilterUserTag `xml:"tag,omitempty"` }
FilterUserTags represents the user tags element in a filter.
type GetAgentsResponse ¶
type GetAgentsResponse struct { XMLName xml.Name `xml:"get_agents_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` Agents []Agent `xml:"agent"` }
GetAgentsResponse represents a get_agents command response.
type GetAggregates ¶
type GetAggregates struct { XMLName xml.Name `xml:"get_aggregates"` Type string `xml:"type,attr"` Filter string `xml:"filter,attr,omitempty"` FiltID string `xml:"filt_id,attr,omitempty"` DataColumn string `xml:"data_column,attr,omitempty"` GroupColumn string `xml:"group_column,attr,omitempty"` SubgroupColumn string `xml:"subgroup_column,attr,omitempty"` SortField string `xml:"sort_field,attr,omitempty"` SortOrder string `xml:"sort_order,attr,omitempty"` SortStat string `xml:"sort_stat,attr,omitempty"` FirstGroup int `xml:"first_group,attr,omitempty"` MaxGroups int `xml:"max_groups,attr,omitempty"` Mode string `xml:"mode,attr,omitempty"` UsageType string `xml:"usage_type,attr,omitempty"` }
GetAggregates represents a get_aggregates command request.
type GetAggregatesResponse ¶
type GetAggregatesResponse struct { XMLName xml.Name `xml:"get_aggregates_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` Aggregate *Aggregate `xml:"aggregate,omitempty"` }
GetAggregatesResponse represents a get_aggregates command response.
type GetAlerts ¶
type GetAlerts struct { XMLName xml.Name `xml:"get_alerts"` AlertID string `xml:"alert_id,attr,omitempty"` Filter string `xml:"filter,attr,omitempty"` FiltID string `xml:"filt_id,attr,omitempty"` Trash *bool `xml:"trash,attr,omitempty"` Tasks *bool `xml:"tasks,attr,omitempty"` }
GetAlerts represents a get_alerts command request.
type GetAlertsResponse ¶
type GetAlertsResponse struct { XMLName xml.Name `xml:"get_alerts_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` Alerts []Alert `xml:"alert,omitempty"` Filters *AlertFilters `xml:"filters,omitempty"` Sort *AlertSort `xml:"sort,omitempty"` AlertsInfo *AlertInfo `xml:"alerts,omitempty"` AlertCount *AlertCount `xml:"alert_count,omitempty"` }
GetAlertsResponse represents a get_alerts command response.
type GetAssets ¶
type GetAssets struct { XMLName xml.Name `xml:"get_assets"` AssetID string `xml:"asset_id,attr,omitempty"` Filter string `xml:"filter,attr,omitempty"` FiltID string `xml:"filt_id,attr,omitempty"` IgnorePagination string `xml:"ignore_pagination,attr,omitempty"` Type string `xml:"type,attr,omitempty"` Details string `xml:"details,attr,omitempty"` }
GetAssets represents a get_assets command request.
type GetAssetsResponse ¶
type GetAssetsResponse struct { XMLName xml.Name `xml:"get_assets_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` Assets []Asset `xml:"asset,omitempty"` Filters *AssetFilters `xml:"filters,omitempty"` Sort *AssetSort `xml:"sort,omitempty"` AssetsInfo *AssetAssets `xml:"assets,omitempty"` AssetCount *AssetCount `xml:"asset_count,omitempty"` }
GetAssetsResponse represents a get_assets command response.
type GetConfigs ¶
type GetConfigs struct { XMLName xml.Name `xml:"get_configs"` ConfigID string `xml:"config_id,attr,omitempty"` Filter string `xml:"filter,attr,omitempty"` FiltID string `xml:"filt_id,attr,omitempty"` Trash string `xml:"trash,attr,omitempty"` Details string `xml:"details,attr,omitempty"` Families string `xml:"families,attr,omitempty"` Preferences string `xml:"preferences,attr,omitempty"` Tasks string `xml:"tasks,attr,omitempty"` UsageType string `xml:"usage_type,attr,omitempty"` }
GetConfigs represents a get_configs command request.
type GetConfigsResponse ¶
type GetConfigsResponse struct { XMLName xml.Name `xml:"get_configs_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` Config []Config `xml:"config"` Filters ConfigFilters `xml:"filters"` Sort ConfigSort `xml:"sort"` Configs ConfigConfigs `xml:"configs"` ConfigCount ConfigCount `xml:"config_count"` }
GetConfigsResponse represents a get_configs command response.
type GetCredentials ¶
type GetCredentials struct { XMLName xml.Name `xml:"get_credentials"` CredentialID string `xml:"credential_id,attr,omitempty"` Filter string `xml:"filter,attr,omitempty"` FiltID string `xml:"filt_id,attr,omitempty"` Details bool `xml:"details,attr,omitempty"` Scanners bool `xml:"scanners,attr,omitempty"` Trash bool `xml:"trash,attr,omitempty"` Targets bool `xml:"targets,attr,omitempty"` Format string `xml:"format,attr,omitempty"` }
GetCredentials represents a get_credentials command request to GMP.
type GetCredentialsResponse ¶
type GetCredentialsResponse struct { XMLName xml.Name `xml:"get_credentials_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` Credentials []Credential `xml:"credential"` Filters CredentialFilters `xml:"filters"` Sort CredentialSort `xml:"sort"` CredentialsInfo CredentialInfo `xml:"credentials"` CredentialCount CredentialCount `xml:"credential_count"` Truncated string `xml:"truncated,omitempty"` }
GetCredentialsResponse represents a get_credentials command response from GMP.
type GetFeatures ¶
GetFeatures represents a get_features command request.
type GetFeaturesResponse ¶
type GetFeaturesResponse struct { XMLName xml.Name `xml:"get_features_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` Features []Feature `xml:"feature"` }
GetFeaturesResponse represents a get_features command response.
type GetFeedsResponse ¶
type GetFeedsResponse struct { XMLName xml.Name `xml:"get_feeds_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` FeedOwnerSet string `xml:"feed_owner_set,omitempty"` FeedRolesSet string `xml:"feed_roles_set,omitempty"` FeedResourcesAccess string `xml:"feed_resources_access,omitempty"` Feeds []Feed `xml:"feed,omitempty"` }
GetFeedsResponse represents a get_feeds command response.
type GetFilters ¶
type GetFilters struct { XMLName xml.Name `xml:"get_filters"` FilterID string `xml:"filter_id,attr,omitempty"` Filter string `xml:"filter,attr,omitempty"` FiltID string `xml:"filt_id,attr,omitempty"` Trash bool `xml:"trash,attr,omitempty"` Alerts bool `xml:"alerts,attr,omitempty"` }
GetFilters represents a get_filters command request.
type GetFiltersResponse ¶
type GetFiltersResponse struct { XMLName xml.Name `xml:"get_filters_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` Filters []Filter `xml:"filter"` FiltersInfo FilterInfo `xml:"filters"` Sort FilterSort `xml:"sort"` Filters2 FilterInfo2 `xml:"filters2"` FilterCount FilterCount `xml:"filter_count"` }
GetFiltersResponse represents a get_filters command response.
type GetGroups ¶
type GetGroups struct { XMLName xml.Name `xml:"get_groups"` GroupID string `xml:"group_id,attr,omitempty"` Filter string `xml:"filter,attr,omitempty"` FiltID string `xml:"filt_id,attr,omitempty"` Trash bool `xml:"trash,attr,omitempty"` }
GetGroups represents a get_groups command request.
type GetGroupsResponse ¶
type GetGroupsResponse struct { XMLName xml.Name `xml:"get_groups_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` Groups []Group `xml:"group"` Filters GroupFilters `xml:"filters"` Sort GroupSort `xml:"sort"` GroupsInfo GroupInfo `xml:"groups"` GroupCount GroupCount `xml:"group_count"` }
GetGroupsResponse represents a get_groups command response.
type GetInfo ¶
type GetInfo struct { XMLName xml.Name `xml:"get_info"` Type string `xml:"type,attr"` Name string `xml:"name,attr,omitempty"` InfoID string `xml:"info_id,attr,omitempty"` Details string `xml:"details,attr,omitempty"` }
GetInfo represents a get_info command request.
type GetInfoResponse ¶
type GetInfoResponse struct { XMLName xml.Name `xml:"get_info_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` Infos []Info `xml:"info"` Filters InfoFilters `xml:"filters"` Sort InfoSort `xml:"sort"` InfoCount InfoCount `xml:"info_count"` Details bool `xml:"details"` }
GetInfoResponse represents a get_info command response.
type GetLicense ¶
GetLicense represents a get_license command request.
type GetLicenseResponse ¶
type GetLicenseResponse struct { XMLName xml.Name `xml:"get_license_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` License *License `xml:"license,omitempty"` }
GetLicenseResponse represents a get_license command response.
type GetNVTFamilies ¶
type GetNVTFamilies struct { XMLName xml.Name `xml:"get_nvt_families"` SortOrder string `xml:"sort_order,attr,omitempty"` }
GetNVTFamilies represents a get_nvt_families command request.
type GetNVTFamiliesResponse ¶
type GetNVTFamiliesResponse struct { XMLName xml.Name `xml:"get_nvt_families_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` Families []NVTFamily `xml:"families>family,omitempty"` }
GetNVTFamiliesResponse represents a get_nvt_families command response.
type GetNVTs ¶
type GetNVTs struct { XMLName xml.Name `xml:"get_nvts"` NvtOID string `xml:"nvt_oid,attr,omitempty"` Details string `xml:"details,attr,omitempty"` Lean string `xml:"lean,attr,omitempty"` Preferences string `xml:"preferences,attr,omitempty"` PreferenceCount string `xml:"preference_count,attr,omitempty"` SkipCertRefs string `xml:"skip_cert_refs,attr,omitempty"` SkipTags string `xml:"skip_tags,attr,omitempty"` Timeout string `xml:"timeout,attr,omitempty"` ConfigID string `xml:"config_id,attr,omitempty"` PreferencesConfigID string `xml:"preferences_config_id,attr,omitempty"` Family string `xml:"family,attr,omitempty"` SortOrder string `xml:"sort_order,attr,omitempty"` SortField string `xml:"sort_field,attr,omitempty"` }
GetNVTs represents a get_nvts command request.
type GetNVTsResponse ¶
type GetNVTsResponse struct { XMLName xml.Name `xml:"get_nvts_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` NVTs []NVT `xml:"nvt,omitempty"` }
GetNVTsResponse represents a get_nvts command response.
type GetNotesResponse ¶
type GetNotesResponse struct { XMLName xml.Name `xml:"get_notes_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` Notes []Note `xml:"note,omitempty"` Filters *NoteFilters `xml:"filters,omitempty"` Sort *NoteSort `xml:"sort,omitempty"` NoteCount *NoteCount `xml:"note_count,omitempty"` }
GetNotesResponse represents a get_notes command response.
type GetOverrides ¶
type GetOverrides struct { XMLName xml.Name `xml:"get_overrides"` OverrideID string `xml:"override_id,attr,omitempty"` Filter string `xml:"filter,attr,omitempty"` FiltID string `xml:"filt_id,attr,omitempty"` Trash string `xml:"trash,attr,omitempty"` Details string `xml:"details,attr,omitempty"` Result string `xml:"result,attr,omitempty"` }
GetOverrides represents a get_overrides command request.
type GetOverridesResponse ¶
type GetOverridesResponse struct { XMLName xml.Name `xml:"get_overrides_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` Overrides []Override `xml:"override,omitempty"` Filters *OverrideFilters `xml:"filters,omitempty"` Sort *OverrideSort `xml:"sort,omitempty"` Pagination *OverridePagination `xml:"overrides,omitempty"` Count *OverrideCount `xml:"override_count,omitempty"` }
GetOverridesResponse represents a get_overrides command response.
type GetPermissions ¶
type GetPermissions struct { XMLName xml.Name `xml:"get_permissions"` PermissionID string `xml:"permission_id,attr,omitempty"` Filter string `xml:"filter,attr,omitempty"` FiltID string `xml:"filt_id,attr,omitempty"` Trash string `xml:"trash,attr,omitempty"` }
GetPermissions represents a get_permissions command request.
type GetPermissionsResponse ¶
type GetPermissionsResponse struct { XMLName xml.Name `xml:"get_permissions_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` Permissions []Permission `xml:"permission,omitempty"` Filters *PermissionFilters `xml:"filters,omitempty"` Sort *PermissionSort `xml:"sort,omitempty"` Pagination *PermissionPagination `xml:"permissions,omitempty"` Count *PermissionCount `xml:"permission_count,omitempty"` }
GetPermissionsResponse represents a get_permissions command response.
type GetPortLists ¶
type GetPortLists struct { XMLName xml.Name `xml:"get_port_lists"` PortListID string `xml:"port_list_id,attr,omitempty"` Filter string `xml:"filter,attr,omitempty"` FiltID string `xml:"filt_id,attr,omitempty"` Details string `xml:"details,attr,omitempty"` Targets string `xml:"targets,attr,omitempty"` Trash string `xml:"trash,attr,omitempty"` }
GetPortLists represents a get_port_lists command request.
type GetPortListsResponse ¶
type GetPortListsResponse struct { XMLName xml.Name `xml:"get_port_lists_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` PortLists []PortList `xml:"port_list,omitempty"` Filters *PortListFilters `xml:"filters,omitempty"` Sort *PortListSort `xml:"sort,omitempty"` Pagination *PortListPagination `xml:"port_lists,omitempty"` Count *PortListCount `xml:"port_list_count,omitempty"` }
GetPortListsResponse represents a get_port_lists command response.
type GetPreferences ¶
type GetPreferences struct { XMLName xml.Name `xml:"get_preferences"` NVTOID string `xml:"nvt_oid,attr,omitempty"` ConfigID string `xml:"config_id,attr,omitempty"` Preference string `xml:"preference,attr,omitempty"` }
GetPreferences represents a get_preferences command request.
type GetPreferencesResponse ¶
type GetPreferencesResponse struct { XMLName xml.Name `xml:"get_preferences_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` Preference []Preference `xml:"preference"` }
GetPreferencesResponse represents a get_preferences command response.
type GetReportConfigs ¶
type GetReportConfigs struct { XMLName xml.Name `xml:"get_report_configs"` ReportConfigID string `xml:"report_config_id,attr,omitempty"` }
GetReportConfigs represents a get_report_configs command request.
type GetReportConfigsResponse ¶
type GetReportConfigsResponse struct { XMLName xml.Name `xml:"get_report_configs_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` ReportConfigs []ReportConfig `xml:"report_config"` Filters *ReportConfigFilters `xml:"filters,omitempty"` Sort *ReportConfigSort `xml:"sort,omitempty"` Pagination *ReportConfigPagination `xml:"report_configs,omitempty"` Count *ReportConfigCount `xml:"report_config_count,omitempty"` }
GetReportConfigsResponse represents a get_report_configs command response.
type GetReportFormats ¶
type GetReportFormats struct { XMLName xml.Name `xml:"get_report_formats"` ReportFormatID string `xml:"report_format_id,attr,omitempty"` Details *int `xml:"details,attr,omitempty"` }
GetReportFormats represents a get_report_formats command request.
type GetReportFormatsResponse ¶
type GetReportFormatsResponse struct { XMLName xml.Name `xml:"get_report_formats_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` ReportFormats []ReportFormat `xml:"report_format"` Filters *ReportFormatsFilters `xml:"filters,omitempty"` Sort *ReportFormatsSort `xml:"sort,omitempty"` Pagination *ReportFormatsPagination `xml:"report_formats,omitempty"` Count *ReportFormatsCount `xml:"report_format_count,omitempty"` }
GetReportFormatsResponse represents a get_report_formats command response.
type GetReports ¶
type GetReports struct { XMLName xml.Name `xml:"get_reports"` ReportID string `xml:"report_id,attr,omitempty"` FormatID string `xml:"format_id,attr,omitempty"` Extension string `xml:"extension,attr,omitempty"` ContentType string `xml:"content_type,attr,omitempty"` }
GetReports represents a get_reports command request.
type GetReportsResponse ¶
type GetReportsResponse struct { XMLName xml.Name `xml:"get_reports_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` Reports []Report `xml:"report"` }
GetReportsResponse represents a get_reports command response.
type GetResourceNames ¶
type GetResourceNames struct { XMLName xml.Name `xml:"get_resource_names"` Type string `xml:"type,attr"` ResourceID string `xml:"resource_id,attr,omitempty"` Filter string `xml:"filter,attr,omitempty"` }
GetResourceNames represents a get_resource_names command request.
type GetResourceNamesResponse ¶
type GetResourceNamesResponse struct { XMLName xml.Name `xml:"get_resource_names_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` Type string `xml:"type,omitempty"` Resources []Resource `xml:"resource"` }
GetResourceNamesResponse represents a get_resource_names command response.
type GetResults ¶
type GetResults struct { XMLName xml.Name `xml:"get_results"` ResultID string `xml:"result_id,attr,omitempty"` Filter string `xml:"filter,attr,omitempty"` FiltID string `xml:"filt_id,attr,omitempty"` TaskID string `xml:"task_id,attr,omitempty"` NotesDetails bool `xml:"notes_details,attr,omitempty"` OverridesDetails bool `xml:"overrides_details,attr,omitempty"` Details bool `xml:"details,attr,omitempty"` GetCounts bool `xml:"get_counts,attr,omitempty"` }
GetResults represents a get_results command request.
type GetResultsResponse ¶
type GetResultsResponse struct { XMLName xml.Name `xml:"get_results_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` Results []Result `xml:"result"` Filters ResultsFilters `xml:"filters"` Sort ResultsSort `xml:"sort"` Meta ResultsMeta `xml:"results"` Count *ResultsCount `xml:"result_count,omitempty"` }
GetResultsResponse represents a get_results command response.
type GetRolesResponse ¶
type GetRolesResponse struct { XMLName xml.Name `xml:"get_roles_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` Roles []Role `xml:"role,omitempty"` }
GetRolesResponse represents a get_roles command response.
type GetScanners ¶
type GetScanners struct { XMLName xml.Name `xml:"get_scanners"` ScannerID string `xml:"scanner_id,attr,omitempty"` Filter string `xml:"filter,attr,omitempty"` FiltID string `xml:"filt_id,attr,omitempty"` Trash string `xml:"trash,attr,omitempty"` Details string `xml:"details,attr,omitempty"` }
GetScanners represents a get_scanners command request.
type GetScannersResponse ¶
type GetScannersResponse struct { XMLName xml.Name `xml:"get_scanners_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` Scanner []Scanner `xml:"scanner"` Filters ScannerFilters `xml:"filters"` Sort ScannerSort `xml:"sort"` Scanners ScannerScanners `xml:"scanners"` Count ScannerCount `xml:"scanner_count"` Truncate string `xml:"truncate,omitempty"` }
GetScannersResponse represents a get_scanners command response.
type GetSchedules ¶
type GetSchedules struct { XMLName xml.Name `xml:"get_schedules"` ScheduleID string `xml:"schedule_id,attr,omitempty"` Filter string `xml:"filter,attr,omitempty"` FiltID string `xml:"filt_id,attr,omitempty"` Trash string `xml:"trash,attr,omitempty"` Tasks string `xml:"tasks,attr,omitempty"` }
GetSchedules represents a get_schedules command request.
type GetSchedulesResponse ¶
type GetSchedulesResponse struct { XMLName xml.Name `xml:"get_schedules_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` Schedules []Schedule `xml:"schedule,omitempty"` Filters string `xml:"filters,omitempty"` Sort string `xml:"sort,omitempty"` ScheduleInfo string `xml:"schedules,omitempty"` ScheduleCount string `xml:"schedule_count,omitempty"` }
GetSchedulesResponse represents a get_schedules command response.
type GetSettings ¶
type GetSettings struct { XMLName xml.Name `xml:"get_settings"` SettingID string `xml:"setting_id,attr,omitempty"` Filter string `xml:"filter,attr,omitempty"` First int `xml:"first,attr,omitempty"` Max int `xml:"max,attr,omitempty"` SortOrder string `xml:"sort_order,attr,omitempty"` SortField string `xml:"sort_field,attr,omitempty"` }
GetSettings represents a get_settings command request.
type GetSettingsResponse ¶
type GetSettingsResponse struct { XMLName xml.Name `xml:"get_settings_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` Settings *Settings `xml:"settings,omitempty"` SettingsList []Setting `xml:"setting,omitempty"` }
GetSettingsResponse represents a get_settings command response.
type GetSystemReports ¶
type GetSystemReports struct { XMLName xml.Name `xml:"get_system_reports"` Name string `xml:"name,attr,omitempty"` Duration string `xml:"duration,attr,omitempty"` StartTime string `xml:"start_time,attr,omitempty"` EndTime string `xml:"end_time,attr,omitempty"` Brief string `xml:"brief,attr,omitempty"` SlaveID string `xml:"slave_id,attr,omitempty"` }
GetSystemReports represents a get_system_reports command request.
type GetSystemReportsResponse ¶
type GetSystemReportsResponse struct { XMLName xml.Name `xml:"get_system_reports_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` SystemReports []SystemReport `xml:"system_report"` }
GetSystemReportsResponse represents a get_system_reports command response.
type GetTLSCertificates ¶
type GetTLSCertificates struct { XMLName xml.Name `xml:"get_tls_certificates"` IncludeCertificateData string `xml:"include_certificate_data,attr,omitempty"` // protocol: boolean as string }
GetTLSCertificates represents a get_tls_certificates command request.
type GetTLSCertificatesResponse ¶
type GetTLSCertificatesResponse struct { XMLName xml.Name `xml:"get_tls_certificates_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` TLSCertificates []TLSCertificate `xml:"tls_certificate"` }
GetTLSCertificatesResponse represents a get_tls_certificates command response.
type GetTagsResponse ¶
type GetTagsResponse struct { XMLName xml.Name `xml:"get_tags_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` Tags []Tag `xml:"tag,omitempty"` }
GetTagsResponse represents a get_tags command response.
type GetTargets ¶
type GetTargets struct { XMLName xml.Name `xml:"get_targets"` TargetID string `xml:"target_id,attr,omitempty"` Filter string `xml:"filter,attr,omitempty"` FiltID string `xml:"filt_id,attr,omitempty"` Trash string `xml:"trash,attr,omitempty"` // "0"/"1" Tasks string `xml:"tasks,attr,omitempty"` // "0"/"1" Details string `xml:"details,attr,omitempty"` // "0"/"1" }
GetTargets represents a get_targets command request.
type GetTargetsResponse ¶
type GetTargetsResponse struct { XMLName xml.Name `xml:"get_targets_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` Target []Target `xml:"target,omitempty"` Filters *TargetFilters `xml:"filters,omitempty"` Sort *TargetSort `xml:"sort,omitempty"` Targets *TargetTargets `xml:"targets,omitempty"` TargetCount *TargetCount `xml:"target_count,omitempty"` }
GetTargetsResponse represents a get_targets command response.
type GetTasks ¶
type GetTasks struct { XMLName xml.Name `xml:"get_tasks"` TaskID string `xml:"task_id,attr,omitempty"` Filter string `xml:"filter,attr,omitempty"` FiltID string `xml:"filt_id,attr,omitempty"` Trash bool `xml:"trash,attr,omitempty"` Details bool `xml:"details,attr,omitempty"` IgnorePagination bool `xml:"ignore_pagination,attr,omitempty"` SchedulesOnly bool `xml:"schedules_only,attr,omitempty"` UsageType string `xml:"usage_type,attr,omitempty"` }
GetTasks represents a get_tasks command request.
type GetTasksResponse ¶
type GetTasksResponse struct { XMLName xml.Name `xml:"get_tasks_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` ApplyOverrides string `xml:"apply_overrides"` Task []GetTasksResponseTask `xml:"task"` Filters GetTasksResponseFilters `xml:"filters"` Sort GetTasksResponseSort `xml:"sort"` Tasks GetTasksResponseTasks `xml:"tasks"` TaskCount GetTasksResponseTaskCount `xml:"task_count"` }
GetTasksResponse represents a get_tasks command response.
type GetTasksResponseFilters ¶
type GetTasksResponseFilters struct { ID string `xml:"id,attr"` Term string `xml:"term"` Name string `xml:"name"` Keywords GetTasksResponseFiltersKeywords `xml:"keywords"` }
type GetTasksResponseFiltersKeywords ¶
type GetTasksResponseFiltersKeywords struct {
Keyword []GetTasksResponseFiltersKeywordsKeyword `xml:"keyword"`
}
type GetTasksResponseSort ¶
type GetTasksResponseSort struct { Value string `xml:",chardata"` Field GetTasksResponseSortField `xml:"field"` }
type GetTasksResponseSortField ¶
type GetTasksResponseSortField struct {
Order string `xml:"order"`
}
type GetTasksResponseTask ¶
type GetTasksResponseTask struct { ID string `xml:"id,attr"` Owner *TaskOwner `xml:"owner,omitempty"` Name string `xml:"name"` Comment string `xml:"comment,omitempty"` CreationTime string `xml:"creation_time,omitempty"` ModificationTime string `xml:"modification_time,omitempty"` Writable string `xml:"writable,omitempty"` InUse string `xml:"in_use,omitempty"` Permissions *TaskPermissions `xml:"permissions,omitempty"` Alterable string `xml:"alterable,omitempty"` UsageType string `xml:"usage_type,omitempty"` Config *TaskConfig `xml:"config,omitempty"` Target *TaskTarget `xml:"target,omitempty"` HostsOrdering string `xml:"hosts_ordering,omitempty"` Scanner *TaskScanner `xml:"scanner,omitempty"` Alert *TaskAlert `xml:"alert,omitempty"` Observers *TaskObservers `xml:"observers,omitempty"` Schedule *TaskSchedule `xml:"schedule,omitempty"` ReportCount string `xml:"report_count,omitempty"` Trend string `xml:"trend,omitempty"` Status string `xml:"status,omitempty"` Progress string `xml:"progress,omitempty"` LastReport *TaskLastReport `xml:"last_report,omitempty"` Reports *TaskReports `xml:"reports,omitempty"` Preferences *TaskPreferences `xml:"preferences,omitempty"` }
GetTasksResponseTask represents a task element in the get_tasks response.
type GetTasksResponseTasks ¶
type GetTickets ¶
GetTickets represents a get_tickets command request.
type GetTicketsResponse ¶
type GetTicketsResponse struct { XMLName xml.Name `xml:"get_tickets_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` Tickets []Ticket `xml:"ticket"` }
GetTicketsResponse represents a get_tickets command response.
type GetUsersResponse ¶
type GetUsersResponse struct { XMLName xml.Name `xml:"get_users_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` Users []User `xml:"user,omitempty"` }
GetUsersResponse represents a get_users command response.
type GetVersion ¶
GetVersion represents a get_version command request.
type GetVersionResponse ¶
type GetVersionResponse struct { XMLName xml.Name `xml:"get_version_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` Version string `xml:"version"` }
GetVersionResponse represents a get_version command response.
type GetVulns ¶
type GetVulns struct { XMLName xml.Name `xml:"get_vulns"` VulnID string `xml:"vuln_id,attr,omitempty"` Filter string `xml:"filter,attr,omitempty"` FiltID string `xml:"filt_id,attr,omitempty"` Trash string `xml:"trash,attr,omitempty"` }
GetVulns represents a get_vulns command request.
type GetVulnsResponse ¶
type GetVulnsResponse struct { XMLName xml.Name `xml:"get_vulns_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` Vulns []Vuln `xml:"vuln,omitempty"` Filters *VulnsFilters `xml:"filters,omitempty"` Sort *VulnsSort `xml:"sort,omitempty"` VulnsMeta *VulnsMeta `xml:"vulns,omitempty"` VulnCount *VulnCount `xml:"vuln_count,omitempty"` }
GetVulnsResponse represents a get_vulns command response.
type Group ¶
type Group struct { ID string `xml:"id,attr"` Owner GroupOwner `xml:"owner"` Name string `xml:"name"` Comment string `xml:"comment"` CreationTime string `xml:"creation_time"` ModificationTime string `xml:"modification_time"` Writable bool `xml:"writable"` InUse bool `xml:"in_use"` Permissions GroupPermissions `xml:"permissions"` UserTags *GroupUserTags `xml:"user_tags,omitempty"` Users string `xml:"users"` }
Group represents a <group> element in the get_groups response.
type GroupCount ¶
GroupCount represents the group count element in the response.
type GroupFilters ¶
type GroupFilters struct { ID string `xml:"id,attr"` Term string `xml:"term"` Name string `xml:"name"` Keywords GroupKeywords `xml:"keywords"` }
GroupFilters represents the filters element in the response.
type GroupKeyword ¶
type GroupKeyword struct { Column string `xml:"column"` Relation string `xml:"relation"` Value string `xml:"value"` }
GroupKeyword represents a keyword element in filters keywords.
type GroupKeywords ¶
type GroupKeywords struct {
Keyword []GroupKeyword `xml:"keyword"`
}
GroupKeywords represents the keywords element in filters.
type GroupOwner ¶
type GroupOwner struct {
Name string `xml:"name"`
}
GroupOwner represents the owner element in a group.
type GroupPermission ¶
type GroupPermission struct {
Name string `xml:"name"`
}
GroupPermission represents a permission element in group permissions.
type GroupPermissions ¶
type GroupPermissions struct {
Permission []GroupPermission `xml:"permission"`
}
GroupPermissions represents the permissions element in a group.
type GroupSort ¶
type GroupSort struct { Value string `xml:",chardata"` Field GroupSortField `xml:"field"` }
GroupSort represents the sort element in the response.
type GroupSortField ¶
type GroupSortField struct {
Order string `xml:"order"`
}
GroupSortField represents the field element in sort.
type GroupUserTag ¶
type GroupUserTag struct { ID string `xml:"id,attr"` Name string `xml:"name"` Value string `xml:"value"` Comment string `xml:"comment"` }
GroupUserTag represents a tag element in group user tags.
type GroupUserTags ¶
type GroupUserTags struct { Count int `xml:"count"` Tags []GroupUserTag `xml:"tag,omitempty"` }
GroupUserTags represents the user tags element in a group.
type Help ¶
type Help struct { XMLName xml.Name `xml:"help"` Format string `xml:"format,attr,omitempty"` Type string `xml:"type,attr,omitempty"` }
Help represents a help command request.
type HelpResponse ¶
type HelpResponse struct { XMLName xml.Name `xml:"help_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` Text string `xml:",chardata"` }
HelpResponse represents a help command response.
type Info ¶
type Info struct { ID string `xml:"id,attr"` Name string `xml:"name"` Comment string `xml:"comment"` CreationTime string `xml:"creation_time"` ModificationTime string `xml:"modification_time"` Writable bool `xml:"writable"` InUse bool `xml:"in_use"` UpdateTime string `xml:"update_time"` Owner *InfoOwner `xml:"owner,omitempty"` Permissions *InfoPermissions `xml:"permissions,omitempty"` UserTags *InfoUserTags `xml:"user_tags,omitempty"` CPE *InfoCPE `xml:"cpe,omitempty"` CVE *InfoCVE `xml:"cve,omitempty"` CERTBundAdv *InfoCERTBundAdv `xml:"cert_bund_adv,omitempty"` NVT string `xml:"nvt,omitempty"` }
Info represents an <info> element in the get_info response.
type InfoCERT ¶
type InfoCERT struct {
Value string `xml:",chardata"`
}
InfoCERT represents the cert element in CVE.
type InfoCERTBundAdv ¶
type InfoCERTBundAdv struct { Title string `xml:"title"` Summary string `xml:"summary"` Severity string `xml:"severity"` CVERefs int `xml:"cve_refs"` RawData string `xml:"raw_data,omitempty"` }
InfoCERTBundAdv represents the cert_bund_adv element in an info.
type InfoCPE ¶
type InfoCPE struct { Title string `xml:"title"` Score string `xml:"score"` CVERefs int `xml:"cve_refs"` Status string `xml:"status"` Deprecated bool `xml:"deprecated"` DeprecatedBy []InfoDeprecatedBy `xml:"deprecated_by,omitempty"` CVEs *InfoCVEs `xml:"cves,omitempty"` References *InfoReferences `xml:"references,omitempty"` RawData string `xml:"raw_data,omitempty"` }
InfoCPE represents the cpe element in an info.
type InfoCVE ¶
type InfoCVE struct { Score string `xml:"score"` CVSSVector string `xml:"cvss_vector"` Description string `xml:"description"` Products string `xml:"products"` EPSS *InfoEPSS `xml:"epss,omitempty"` NVTs *InfoNVTs `xml:"nvts,omitempty"` CERT *InfoCERT `xml:"cert,omitempty"` ConfigurationNodes *InfoConfigurationNodes `xml:"configuration_nodes,omitempty"` References *InfoReferences `xml:"references,omitempty"` RawData string `xml:"raw_data,omitempty"` }
InfoCVE represents the cve element in an info.
type InfoCVEs ¶
type InfoCVEs struct {
CVE []string `xml:"cve"`
}
InfoCVEs represents the cves element in CPE.
type InfoConfigurationNodes ¶
type InfoConfigurationNodes struct {
Value string `xml:",chardata"`
}
InfoConfigurationNodes represents the configuration_nodes element in CVE.
type InfoDeprecatedBy ¶
type InfoDeprecatedBy struct {
CPEID string `xml:"cpe_id,attr"`
}
InfoDeprecatedBy represents a deprecated_by element in CPE.
type InfoEPSS ¶
type InfoEPSS struct {
Value string `xml:",chardata"`
}
InfoEPSS represents the epss element in CVE.
type InfoFilters ¶
type InfoFilters struct { ID string `xml:"id,attr"` Term string `xml:"term"` Name string `xml:"name"` Keywords InfoKeywords `xml:"keywords"` }
InfoFilters represents the filters element in the response.
type InfoKeyword ¶
type InfoKeyword struct { Column string `xml:"column"` Relation string `xml:"relation"` Value string `xml:"value"` }
InfoKeyword represents a keyword element in filters keywords.
type InfoKeywords ¶
type InfoKeywords struct {
Keyword []InfoKeyword `xml:"keyword"`
}
InfoKeywords represents the keywords element in filters.
type InfoNVTs ¶
type InfoNVTs struct {
NVT []string `xml:"nvt"`
}
InfoNVTs represents the nvts element in CVE.
type InfoOwner ¶
type InfoOwner struct {
Name string `xml:"name"`
}
InfoOwner represents the owner element in an info.
type InfoPermission ¶
type InfoPermission struct {
Name string `xml:"name"`
}
InfoPermission represents a permission element in info permissions.
type InfoPermissions ¶
type InfoPermissions struct {
Permission []InfoPermission `xml:"permission"`
}
InfoPermissions represents the permissions element in an info.
type InfoReference ¶
InfoReference represents a reference element in CPE references.
type InfoReferences ¶
type InfoReferences struct {
Reference []InfoReference `xml:"reference"`
}
InfoReferences represents the references element in CPE.
type InfoSort ¶
type InfoSort struct { Value string `xml:",chardata"` Field InfoSortField `xml:"field"` }
InfoSort represents the sort element in the response.
type InfoSortField ¶
type InfoSortField struct {
Order string `xml:"order"`
}
InfoSortField represents the field element in sort.
type InfoUserTag ¶
type InfoUserTag struct { ID string `xml:"id,attr"` Name string `xml:"name"` Value string `xml:"value"` Comment string `xml:"comment"` }
InfoUserTag represents a tag element in info user tags.
type InfoUserTags ¶
type InfoUserTags struct { Count int `xml:"count"` Tags []InfoUserTag `xml:"tag,omitempty"` }
InfoUserTags represents the user tags element in an info.
type License ¶
type License struct { Status string `xml:"status"` Content *LicenseContent `xml:"content"` }
License represents the license element in the response.
type LicenseAppliance ¶
type LicenseAppliance struct { Model string `xml:"model"` ModelType string `xml:"model_type"` Sensor bool `xml:"sensor"` }
LicenseAppliance represents the appliance element in license content.
type LicenseContent ¶
type LicenseContent struct { Meta *LicenseMeta `xml:"meta"` Appliance *LicenseAppliance `xml:"appliance"` Keys *LicenseKeys `xml:"keys"` Signatures *LicenseSignatures `xml:"signatures"` }
LicenseContent represents the content element in the license.
type LicenseKey ¶
LicenseKey represents a key element in license keys.
type LicenseKeys ¶
type LicenseKeys struct {
Keys []LicenseKey `xml:"key"`
}
LicenseKeys represents the keys element in license content.
type LicenseMeta ¶
type LicenseMeta struct { Version string `xml:"version"` ID string `xml:"id"` Comment string `xml:"comment"` Type string `xml:"type"` CustomerName string `xml:"customer_name"` Created string `xml:"created"` Begins string `xml:"begins"` Expires string `xml:"expires"` }
LicenseMeta represents the meta element in license content.
type LicenseSignature ¶
LicenseSignature represents a signature element in license signatures.
type LicenseSignatures ¶
type LicenseSignatures struct {
Signatures []LicenseSignature `xml:"signature"`
}
LicenseSignatures represents the signatures element in license content.
type ModifyAgents ¶
type ModifyAgents struct { XMLName xml.Name `xml:"modify_agents"` Agents []Agent `xml:"agents>agent"` Authorized string `xml:"authorized,omitempty"` MinInterval string `xml:"min_interval,omitempty"` HeartbeatInterval string `xml:"heartbeat_interval,omitempty"` Schedule string `xml:"schedule,omitempty"` Comment string `xml:"comment,omitempty"` }
ModifyAgents represents a modify_agents command request.
type ModifyAgentsResponse ¶
type ModifyAgentsResponse struct { XMLName xml.Name `xml:"modify_agents_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` }
ModifyAgentsResponse represents a modify_agents command response.
type ModifyAlert ¶
type ModifyAlert struct { XMLName xml.Name `xml:"modify_alert"` AlertID string `xml:"alert_id,attr"` Name *string `xml:"name,omitempty"` Comment *string `xml:"comment,omitempty"` Filter *AlertFilter `xml:"filter,omitempty"` Event *AlertEvent `xml:"event,omitempty"` Condition *AlertCondition `xml:"condition,omitempty"` Method *AlertMethod `xml:"method,omitempty"` }
ModifyAlert represents a modify_alert command request.
type ModifyAlertResponse ¶
type ModifyAlertResponse struct { XMLName xml.Name `xml:"modify_alert_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` }
ModifyAlertResponse represents a modify_alert command response.
type ModifyAsset ¶
type ModifyAsset struct { XMLName xml.Name `xml:"modify_asset"` AssetID string `xml:"asset_id,attr"` Comment string `xml:"comment,omitempty"` }
ModifyAsset represents a modify_asset command request.
type ModifyAssetResponse ¶
type ModifyAssetResponse struct { XMLName xml.Name `xml:"modify_asset_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` }
ModifyAssetResponse represents a modify_asset command response.
type ModifyAuth ¶
ModifyAuth represents a modify_auth command request.
type ModifyAuthResponse ¶
type ModifyAuthResponse struct { XMLName xml.Name `xml:"modify_auth_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` }
ModifyAuthResponse represents a modify_auth command response.
type ModifyConfig ¶
type ModifyConfig struct { XMLName xml.Name `xml:"modify_config"` ConfigID string `xml:"config_id,attr,omitempty"` Name string `xml:"name,omitempty"` Comment string `xml:"comment,omitempty"` Preference []ConfigPreference `xml:"preference,omitempty"` FamilySelection *ModifyConfigFamilySelection `xml:"family_selection,omitempty"` NVTSelection []ModifyConfigNVTSelection `xml:"nvt_selection,omitempty"` }
ModifyConfig represents a modify_config command request.
type ModifyConfigFamily ¶
type ModifyConfigFamilySelection ¶
type ModifyConfigFamilySelection struct { Growing bool `xml:"growing,omitempty"` Family []ModifyConfigFamily `xml:"family,omitempty"` }
type ModifyConfigNVT ¶
type ModifyConfigNVT struct {
OID string `xml:"oid,attr,omitempty"`
}
type ModifyConfigNVTSelection ¶
type ModifyConfigNVTSelection struct { Family string `xml:"family,omitempty"` NVT []ModifyConfigNVT `xml:"nvt,omitempty"` }
type ModifyConfigResponse ¶
type ModifyConfigResponse struct { XMLName xml.Name `xml:"modify_config_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` }
ModifyConfigResponse represents a modify_config command response.
type ModifyCredential ¶
type ModifyCredential struct { XMLName xml.Name `xml:"modify_credential"` CredentialID string `xml:"credential_id,attr"` Comment string `xml:"comment,omitempty"` Name string `xml:"name,omitempty"` AllowInsecure string `xml:"allow_insecure,omitempty"` Certificate string `xml:"certificate,omitempty"` KDC string `xml:"kdc,omitempty"` KDCs *CreateCredentialKDCs `xml:"kdcs,omitempty"` Key *CreateCredentialKey `xml:"key,omitempty"` Login string `xml:"login,omitempty"` Password string `xml:"password,omitempty"` Community string `xml:"community,omitempty"` AuthAlgorithm string `xml:"auth_algorithm,omitempty"` Privacy *CreateCredentialPrivacy `xml:"privacy,omitempty"` Realm string `xml:"realm,omitempty"` }
ModifyCredential represents a modify_credential command request to GMP.
type ModifyCredentialResponse ¶
type ModifyCredentialResponse struct { XMLName xml.Name `xml:"modify_credential_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` }
ModifyCredentialResponse represents a modify_credential command response from GMP.
type ModifyFilter ¶
type ModifyFilter struct { XMLName xml.Name `xml:"modify_filter"` FilterID string `xml:"filter_id,attr"` Comment string `xml:"comment,omitempty"` Name string `xml:"name,omitempty"` Term string `xml:"term,omitempty"` Type string `xml:"type,omitempty"` }
ModifyFilter represents a modify_filter command request.
type ModifyFilterResponse ¶
type ModifyFilterResponse struct { XMLName xml.Name `xml:"modify_filter_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` }
ModifyFilterResponse represents a modify_filter command response.
type ModifyGroup ¶
type ModifyGroup struct { XMLName xml.Name `xml:"modify_group"` GroupID string `xml:"group_id,attr"` Name string `xml:"name,omitempty"` Comment string `xml:"comment,omitempty"` Users string `xml:"users,omitempty"` }
ModifyGroup represents a modify_group command request.
type ModifyGroupResponse ¶
type ModifyGroupResponse struct { XMLName xml.Name `xml:"modify_group_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` }
ModifyGroupResponse represents a modify_group command response.
type ModifyLicense ¶
type ModifyLicense struct { XMLName xml.Name `xml:"modify_license"` AllowEmpty string `xml:"allow_empty,attr,omitempty"` File string `xml:"file"` }
ModifyLicense represents a modify_license command request.
type ModifyLicenseResponse ¶
type ModifyLicenseResponse struct { XMLName xml.Name `xml:"modify_license_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` }
ModifyLicenseResponse represents a modify_license command response.
type ModifyNote ¶
type ModifyNote struct { XMLName xml.Name `xml:"modify_note"` NoteID string `xml:"note_id,attr"` Text string `xml:"text,omitempty"` NVT *NoteNVT `xml:"nvt,omitempty"` Result *ModifyNoteResult `xml:"result,omitempty"` Active string `xml:"active,omitempty"` Hosts string `xml:"hosts,omitempty"` Port string `xml:"port,omitempty"` Severity string `xml:"severity,omitempty"` Task *ModifyNoteTask `xml:"task,omitempty"` }
ModifyNote represents a modify_note command request.
type ModifyNoteResponse ¶
type ModifyNoteResponse struct { XMLName xml.Name `xml:"modify_note_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` }
ModifyNoteResponse represents a modify_note command response.
type ModifyNoteResult ¶
type ModifyNoteResult struct {
ID string `xml:"id,attr"`
}
ModifyNoteResult represents the <result> element for modify_note.
type ModifyNoteTask ¶
type ModifyNoteTask struct {
ID string `xml:"id,attr"`
}
ModifyNoteTask represents the <task> element for modify_note.
type ModifyOverride ¶
type ModifyOverride struct { XMLName xml.Name `xml:"modify_override"` OverrideID string `xml:"override_id,attr"` Active *int `xml:"active,omitempty"` NVT *OverrideNVT `xml:"nvt,omitempty"` Hosts string `xml:"hosts,omitempty"` NewSeverity string `xml:"new_severity,omitempty"` NewThreat string `xml:"new_threat,omitempty"` Port string `xml:"port,omitempty"` Result string `xml:"result,omitempty"` Task string `xml:"task,omitempty"` Text string `xml:"text"` Severity string `xml:"severity,omitempty"` Threat string `xml:"threat,omitempty"` }
ModifyOverride represents a modify_override command request.
type ModifyOverrideResponse ¶
type ModifyOverrideResponse struct { XMLName xml.Name `xml:"modify_override_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` }
ModifyOverrideResponse represents a modify_override command response.
type ModifyPermission ¶
type ModifyPermission struct { XMLName xml.Name `xml:"modify_permission"` PermissionID string `xml:"permission_id,attr"` Name string `xml:"name,omitempty"` Comment string `xml:"comment,omitempty"` Resource *PermissionResource `xml:"resource,omitempty"` Subject *PermissionSubject `xml:"subject,omitempty"` }
ModifyPermission is a modify_permission command request.
type ModifyPermissionResponse ¶
type ModifyPermissionResponse struct { XMLName xml.Name `xml:"modify_permission_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` }
ModifyPermissionResponse is a modify_permission command response.
type ModifyPortList ¶
type ModifyPortList struct { XMLName xml.Name `xml:"modify_port_list"` PortListID string `xml:"port_list_id,attr"` Name string `xml:"name,omitempty"` Comment string `xml:"comment,omitempty"` }
ModifyPortList represents a modify_port_list command request.
type ModifyPortListResponse ¶
type ModifyPortListResponse struct { XMLName xml.Name `xml:"modify_port_list_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` }
ModifyPortListResponse represents a modify_port_list command response.
type ModifyReportConfig ¶
type ModifyReportConfig struct { XMLName xml.Name `xml:"modify_report_config"` Name string `xml:"name,omitempty"` Comment string `xml:"comment,omitempty"` Params []ReportConfigParam `xml:"param,omitempty"` }
ModifyReportConfig represents a modify_report_config command request.
type ModifyReportConfigResponse ¶
type ModifyReportConfigResponse struct { XMLName xml.Name `xml:"modify_report_config_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` ID string `xml:"id,attr"` }
ModifyReportConfigResponse represents a modify_report_config command response.
type ModifyReportFormat ¶
type ModifyReportFormat struct { XMLName xml.Name `xml:"modify_report_format"` ReportFormatID string `xml:"report_format_id,attr"` Active *bool `xml:"active,omitempty"` Name string `xml:"name,omitempty"` Summary string `xml:"summary,omitempty"` Param *ReportFormatParam `xml:"param,omitempty"` }
ModifyReportFormat represents a modify_report_format command request.
type ModifyReportFormatResponse ¶
type ModifyReportFormatResponse struct { XMLName xml.Name `xml:"modify_report_format_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` }
ModifyReportFormatResponse represents a modify_report_format command response.
type ModifyRole ¶
type ModifyRole struct { XMLName xml.Name `xml:"modify_role"` RoleID string `xml:"role_id,attr"` Name string `xml:"name,omitempty"` Comment string `xml:"comment,omitempty"` Users string `xml:"users,omitempty"` }
ModifyRole represents a modify_role command request.
type ModifyRoleResponse ¶
type ModifyRoleResponse struct { XMLName xml.Name `xml:"modify_role_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` }
ModifyRoleResponse represents a modify_role command response.
type ModifyScanner ¶
type ModifyScanner struct { XMLName xml.Name `xml:"modify_scanner"` ScannerID string `xml:"scanner_id,attr"` Comment string `xml:"comment,omitempty"` Name string `xml:"name,omitempty"` Host string `xml:"host,omitempty"` Port string `xml:"port,omitempty"` Type string `xml:"type,omitempty"` CAPub string `xml:"ca_pub,omitempty"` Credential *ScannerCredential `xml:"credential,omitempty"` RelayHost string `xml:"relay_host,omitempty"` RelayPort string `xml:"relay_port,omitempty"` }
ModifyScanner is a request to modify a scanner.
type ModifyScannerResponse ¶
type ModifyScannerResponse struct { XMLName xml.Name `xml:"modify_scanner_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` }
ModifyScannerResponse is the response to a modify_scanner command.
type ModifySchedule ¶
type ModifySchedule struct { XMLName xml.Name `xml:"modify_schedule"` ScheduleID string `xml:"schedule_id,attr"` Comment string `xml:"comment,omitempty"` Name string `xml:"name,omitempty"` ICalendar string `xml:"icalendar,omitempty"` Timezone string `xml:"timezone,omitempty"` }
ModifySchedule represents a modify_schedule command request.
type ModifyScheduleResponse ¶
type ModifyScheduleResponse struct { XMLName xml.Name `xml:"modify_schedule_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` }
ModifyScheduleResponse represents a modify_schedule command response.
type ModifySetting ¶
type ModifySetting struct { XMLName xml.Name `xml:"modify_setting"` SettingID string `xml:"setting_id,attr,omitempty"` Name string `xml:"name"` Value string `xml:"value"` }
ModifySetting represents a modify_setting command request.
type ModifySettingResponse ¶
type ModifySettingResponse struct { XMLName xml.Name `xml:"modify_setting_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` }
ModifySettingResponse represents a modify_setting command response.
type ModifyTLSCertificate ¶
type ModifyTLSCertificate struct { XMLName xml.Name `xml:"modify_tls_certificate"` TLSCertificateID string `xml:"tls_certificate_id,attr"` Comment string `xml:"comment,omitempty"` Copy string `xml:"copy,omitempty"` Name string `xml:"name,omitempty"` Trust string `xml:"trust,omitempty"` }
ModifyTLSCertificate represents a modify_tls_certificate command request.
type ModifyTLSCertificateResponse ¶
type ModifyTLSCertificateResponse struct { XMLName xml.Name `xml:"modify_tls_certificate_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` }
ModifyTLSCertificateResponse represents a modify_tls_certificate command response.
type ModifyTag ¶
type ModifyTag struct { XMLName xml.Name `xml:"modify_tag"` TagID string `xml:"tag_id,attr"` Name string `xml:"name,omitempty"` Resources *CreateTagResources `xml:"resources,omitempty"` Value string `xml:"value,omitempty"` Comment string `xml:"comment,omitempty"` Active string `xml:"active,omitempty"` }
ModifyTag represents a modify_tag command request.
type ModifyTagResponse ¶
type ModifyTagResponse struct { XMLName xml.Name `xml:"modify_tag_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` }
ModifyTagResponse represents a modify_tag command response.
type ModifyTarget ¶
type ModifyTarget struct { XMLName xml.Name `xml:"modify_target"` TargetID string `xml:"target_id,attr"` Name string `xml:"name,omitempty"` Comment string `xml:"comment,omitempty"` Hosts string `xml:"hosts,omitempty"` HostsOrdering string `xml:"hosts_ordering,omitempty"` ExcludeHosts string `xml:"exclude_hosts,omitempty"` SSHCredential *TargetCredential `xml:"ssh_credential,omitempty"` SSHElevateCredential *TargetCredential `xml:"ssh_elevate_credential,omitempty"` Krb5Credential *TargetCredential `xml:"krb5_credential,omitempty"` SMBCredential *TargetCredential `xml:"smb_credential,omitempty"` ESXICredential *TargetCredential `xml:"esxi_credential,omitempty"` SNMPCredential *TargetCredential `xml:"snmp_credential,omitempty"` SSHLSCCredential *TargetCredential `xml:"ssh_lsc_credential,omitempty"` SMBLSCCredential *TargetCredential `xml:"smb_lsc_credential,omitempty"` ESXILSCCredential *TargetCredential `xml:"esxi_lsc_credential,omitempty"` PortList *TargetPortList `xml:"port_list,omitempty"` AliveTests string `xml:"alive_tests,omitempty"` ReverseLookupOnly string `xml:"reverse_lookup_only,omitempty"` ReverseLookupUnify string `xml:"reverse_lookup_unify,omitempty"` AllowSimultaneousIPs string `xml:"allow_simultaneous_ips,omitempty"` }
ModifyTarget represents a modify_target command request.
type ModifyTargetResponse ¶
type ModifyTargetResponse struct { XMLName xml.Name `xml:"modify_target_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` }
ModifyTargetResponse represents a modify_target command response.
type ModifyTask ¶
type ModifyTask struct { XMLName xml.Name `xml:"modify_task"` TaskID string `xml:"task_id,attr"` Name string `xml:"name,omitempty"` Comment string `xml:"comment,omitempty"` Config *TaskConfig `xml:"config,omitempty"` Target *TaskTarget `xml:"target,omitempty"` Scanner *TaskScanner `xml:"scanner,omitempty"` Alert []*TaskAlert `xml:"alert,omitempty"` Schedule *TaskSchedule `xml:"schedule,omitempty"` SchedulePeriods int `xml:"schedule_periods,omitempty"` Observers string `xml:"observers,omitempty"` Preferences *TaskPreferences `xml:"preferences,omitempty"` }
ModifyTask represents a modify_task command request.
type ModifyTaskResponse ¶
type ModifyTaskResponse struct { XMLName xml.Name `xml:"modify_task_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` }
ModifyTaskResponse represents a modify_task command response.
type ModifyTicket ¶
type ModifyTicket struct { XMLName xml.Name `xml:"modify_ticket"` TicketID string `xml:"ticket_id,attr"` Comment string `xml:"comment,omitempty"` Status string `xml:"status,omitempty"` OpenNote string `xml:"open_note,omitempty"` FixedNote string `xml:"fixed_note,omitempty"` ClosedNote string `xml:"closed_note,omitempty"` Assigned *TicketAssignedTo `xml:"assigned_to,omitempty"` }
ModifyTicket represents a modify_ticket command request.
type ModifyTicketResponse ¶
type ModifyTicketResponse struct { XMLName xml.Name `xml:"modify_ticket_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` }
ModifyTicketResponse represents a modify_ticket command response.
type ModifyUser ¶
type ModifyUser struct { XMLName xml.Name `xml:"modify_user"` UserID string `xml:"user_id,attr"` Name string `xml:"name"` NewName string `xml:"new_name,omitempty"` Comment string `xml:"comment,omitempty"` Password *UserPassword `xml:"password,omitempty"` Roles []*UserRole `xml:"role,omitempty"` Hosts *UserHosts `xml:"hosts,omitempty"` Sources *UserSources `xml:"sources,omitempty"` }
ModifyUser represents a modify_user command request.
type ModifyUserResponse ¶
type ModifyUserResponse struct { XMLName xml.Name `xml:"modify_user_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` }
ModifyUserResponse represents a modify_user command response.
type MoveTask ¶
type MoveTask struct { XMLName xml.Name `xml:"move_task"` TaskID string `xml:"task_id,attr"` SlaveID string `xml:"slave_id,attr"` }
MoveTask represents a move_task command request.
type MoveTaskResponse ¶
type MoveTaskResponse struct { XMLName xml.Name `xml:"move_task_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` }
MoveTaskResponse represents a move_task command response.
type NVT ¶
type NVT struct { OID string `xml:"oid,attr"` Name string `xml:"name,omitempty"` CreationTime string `xml:"creation_time,omitempty"` ModificationTime string `xml:"modification_time,omitempty"` Category string `xml:"category,omitempty"` Family string `xml:"family,omitempty"` CvssBase string `xml:"cvss_base,omitempty"` Severities *NVTSeverities `xml:"severities,omitempty"` Refs string `xml:"refs,omitempty"` Tags string `xml:"tags,omitempty"` PreferenceCount string `xml:"preference_count,omitempty"` Timeout string `xml:"timeout,omitempty"` DefaultTimeout string `xml:"default_timeout,omitempty"` Solution string `xml:"solution,omitempty"` Epss string `xml:"epss,omitempty"` Preferences *NVTPreferences `xml:"preferences,omitempty"` UserTags string `xml:"user_tags,omitempty"` Qod string `xml:"qod,omitempty"` Description string `xml:"description,omitempty"` }
NVT represents a Network Vulnerability Test in the response.
type NVTPreference ¶
type NVTPreference struct { NVT *NVTPreferenceNVT `xml:"nvt,omitempty"` ID string `xml:"id,omitempty"` Name string `xml:"name,omitempty"` HRName string `xml:"hr_name,omitempty"` Type string `xml:"type,omitempty"` Value string `xml:"value,omitempty"` Alt string `xml:"alt,omitempty"` Default string `xml:"default,omitempty"` }
NVTPreference represents a preference element in an NVT.
type NVTPreferenceNVT ¶
NVTPreferenceNVT represents an NVT reference in a preference.
type NVTPreferences ¶
type NVTPreferences struct { Timeout string `xml:"timeout,omitempty"` DefaultTimeout string `xml:"default_timeout,omitempty"` Preferences []NVTPreference `xml:"preference,omitempty"` }
NVTPreferences represents the preferences element in an NVT.
type NVTSeverities ¶
type NVTSeverities struct { Score string `xml:"score,attr,omitempty"` Severities []NVTSeverity `xml:"severity,omitempty"` }
NVTSeverities represents the severities element in an NVT.
type NVTSeverity ¶
type NVTSeverity struct { Type string `xml:"type,attr,omitempty"` Origin string `xml:"origin,omitempty"` Date string `xml:"date,omitempty"` Score string `xml:"score,omitempty"` Value string `xml:"value,omitempty"` }
NVTSeverity represents a severity element in an NVT.
type Note ¶
type Note struct { ID string `xml:"id,attr"` NVT *NoteNVT `xml:"nvt,omitempty"` CreationTime string `xml:"creation_time,omitempty"` ModificationTime string `xml:"modification_time,omitempty"` Writable string `xml:"writable,omitempty"` InUse string `xml:"in_use,omitempty"` Active string `xml:"active,omitempty"` Orphan string `xml:"orphan,omitempty"` Text string `xml:"text,omitempty"` }
Note represents a <note> element in the get_notes response.
type NoteFilters ¶
type NoteFilters struct { ID string `xml:"id,attr"` Term string `xml:"term"` Name string `xml:"name,omitempty"` Keywords *NoteKeywords `xml:"keywords,omitempty"` }
NoteFilters represents the <filters> element in the response.
type NoteKeyword ¶
type NoteKeyword struct { Column string `xml:"column"` Relation string `xml:"relation"` Value string `xml:"value"` }
NoteKeyword represents a <keyword> element in filters keywords.
type NoteKeywords ¶
type NoteKeywords struct {
Keyword []NoteKeyword `xml:"keyword"`
}
NoteKeywords represents the <keywords> element in filters.
type NoteSort ¶
type NoteSort struct { Value string `xml:",chardata"` Field *NoteSortField `xml:"field,omitempty"` }
NoteSort represents the <sort> element in the response.
type NoteSortField ¶
type NoteSortField struct {
Order string `xml:"order"`
}
NoteSortField represents the <field> element in sort.
type ObserverGroup ¶
type ObserverRole ¶
type Override ¶
type Override struct { ID string `xml:"id,attr"` Permissions *OverridePermissions `xml:"permissions,omitempty"` Owner *OverrideOwner `xml:"owner,omitempty"` NVT *OverrideNVT `xml:"nvt,omitempty"` CreationTime string `xml:"creation_time,omitempty"` ModificationTime string `xml:"modification_time,omitempty"` Writable string `xml:"writable,omitempty"` InUse string `xml:"in_use,omitempty"` Active string `xml:"active,omitempty"` Text *OverrideText `xml:"text,omitempty"` Threat string `xml:"threat,omitempty"` Severity string `xml:"severity,omitempty"` NewThreat string `xml:"new_threat,omitempty"` NewSeverity string `xml:"new_severity,omitempty"` Orphan string `xml:"orphan,omitempty"` UserTags *OverrideUserTags `xml:"user_tags,omitempty"` Hosts string `xml:"hosts,omitempty"` Port string `xml:"port,omitempty"` Task *OverrideTask `xml:"task,omitempty"` EndTime string `xml:"end_time,omitempty"` Result *OverrideResult `xml:"result,omitempty"` }
Override represents an override in the response.
type OverrideCount ¶
OverrideCount represents count information in the response.
type OverrideFilters ¶
type OverrideFilters struct { ID string `xml:"id,attr"` Term string `xml:"term"` Name string `xml:"name,omitempty"` Keywords []OverrideFiltersKeyword `xml:"keywords>keyword,omitempty"` }
OverrideFilters represents filter information in the response.
type OverrideFiltersKeyword ¶
type OverrideFiltersKeyword struct { Column string `xml:"column"` Relation string `xml:"relation"` Value string `xml:"value"` }
OverrideFiltersKeyword represents a keyword in override filters.
type OverrideNVT ¶
type OverrideNVT struct { OID string `xml:"oid,attr"` Name string `xml:"name,omitempty"` Type string `xml:"type,omitempty"` }
OverrideNVT represents NVT information in an override.
type OverrideOwner ¶
type OverrideOwner struct {
Name string `xml:"name"`
}
OverrideOwner represents owner information in an override.
type OverridePagination ¶
OverridePagination represents pagination information in the response.
type OverridePermission ¶
type OverridePermission struct {
Name string `xml:"name"`
}
OverridePermission represents a single permission in an override.
type OverridePermissions ¶
type OverridePermissions struct {
Permission []OverridePermission `xml:"permission,omitempty"`
}
OverridePermissions represents permissions information in an override.
type OverrideResult ¶
type OverrideResult struct { ID string `xml:"id,attr"` Host *OverrideResultHost `xml:"host,omitempty"` Port string `xml:"port,omitempty"` NVT *OverrideResultNVT `xml:"nvt,omitempty"` Threat string `xml:"threat,omitempty"` Severity string `xml:"severity,omitempty"` QOD *OverrideResultQOD `xml:"qod,omitempty"` Description string `xml:"description,omitempty"` }
OverrideResult represents result information in an override.
type OverrideResultHost ¶
type OverrideResultHost struct { Value string `xml:",chardata"` Asset *OverrideResultHostAsset `xml:"asset,omitempty"` }
OverrideResultHost represents host information in an override result.
type OverrideResultHostAsset ¶
type OverrideResultHostAsset struct {
AssetID string `xml:"asset_id,attr"`
}
OverrideResultHostAsset represents asset information in an override result host.
type OverrideResultNVT ¶
type OverrideResultNVT struct { OID string `xml:"oid,attr"` Name string `xml:"name,omitempty"` Type string `xml:"type,omitempty"` CVSSBase string `xml:"cvss_base,omitempty"` CVE string `xml:"cve,omitempty"` BID int `xml:"bid,omitempty"` }
OverrideResultNVT represents NVT information in an override result.
type OverrideResultQOD ¶
type OverrideResultQOD struct { Value int `xml:"value,omitempty"` Type string `xml:"type,omitempty"` }
OverrideResultQOD represents QOD information in an override result.
type OverrideSort ¶
type OverrideSort struct {
Field OverrideSortField `xml:"field"`
}
OverrideSort represents sort information in the response.
type OverrideSortField ¶
type OverrideSortField struct {
Order string `xml:"order"`
}
OverrideSortField represents a sort field in override sorting.
type OverrideTask ¶
type OverrideTask struct { ID string `xml:"id,attr"` Name string `xml:"name,omitempty"` Trash string `xml:"trash,omitempty"` }
OverrideTask represents task information in an override.
type OverrideText ¶
type OverrideText struct { Text string `xml:",chardata"` Excerpt string `xml:"excerpt,attr,omitempty"` }
OverrideText represents text information in an override.
type OverrideUserTag ¶
type OverrideUserTag struct { ID string `xml:"id,attr"` Name string `xml:"name,omitempty"` Value string `xml:"value,omitempty"` Comment string `xml:"comment,omitempty"` }
OverrideUserTag represents a user tag in an override.
type OverrideUserTags ¶
type OverrideUserTags struct { Count int `xml:"count,omitempty"` Tag []OverrideUserTag `xml:"tag,omitempty"` }
OverrideUserTags represents user tags information in an override.
type Permission ¶
type Permission struct { ID string `xml:"id,attr"` Owner *PermissionOwner `xml:"owner,omitempty"` Name string `xml:"name,omitempty"` Comment string `xml:"comment,omitempty"` CreationTime string `xml:"creation_time,omitempty"` ModificationTime string `xml:"modification_time,omitempty"` Writable string `xml:"writable,omitempty"` InUse string `xml:"in_use,omitempty"` Permissions *PermissionList `xml:"permissions,omitempty"` UserTags *PermissionUserTags `xml:"user_tags,omitempty"` Resource *PermissionResource `xml:"resource,omitempty"` Subject *PermissionSubject `xml:"subject,omitempty"` }
Permission represents a permission in the response.
type PermissionCount ¶
PermissionCount represents count information in the response.
type PermissionFilters ¶
type PermissionFilters struct { ID string `xml:"id,attr"` Term string `xml:"term"` Name string `xml:"name,omitempty"` Keywords []PermissionFiltersKeyword `xml:"keywords>keyword,omitempty"` }
PermissionFilters represents filter information in the response.
type PermissionFiltersKeyword ¶
type PermissionFiltersKeyword struct { Column string `xml:"column"` Relation string `xml:"relation"` Value string `xml:"value"` }
PermissionFiltersKeyword represents a keyword in permission filters.
type PermissionItem ¶
type PermissionItem struct {
Name string `xml:"name,omitempty"`
}
PermissionItem represents a single permission item.
type PermissionList ¶
type PermissionList struct {
Permission []PermissionItem `xml:"permission,omitempty"`
}
PermissionList represents a list of permissions.
type PermissionOwner ¶
type PermissionOwner struct {
Name string `xml:"name,omitempty"`
}
PermissionOwner represents owner information in a permission.
type PermissionPagination ¶
PermissionPagination represents pagination information in the response.
type PermissionResource ¶
type PermissionResource struct { ID string `xml:"id,attr"` Name string `xml:"name,omitempty"` Permissions *PermissionList `xml:"permissions,omitempty"` Type string `xml:"type,omitempty"` Trash string `xml:"trash,omitempty"` Deleted string `xml:"deleted,omitempty"` }
PermissionResource represents resource information in a permission.
type PermissionSort ¶
type PermissionSort struct {
Field PermissionSortField `xml:"field"`
}
PermissionSort represents sort information in the response.
type PermissionSortField ¶
type PermissionSortField struct {
Order string `xml:"order"`
}
PermissionSortField represents a sort field in permission sorting.
type PermissionSubject ¶
type PermissionSubject struct { ID string `xml:"id,attr"` Name string `xml:"name,omitempty"` Permissions *PermissionList `xml:"permissions,omitempty"` Type string `xml:"type,omitempty"` Trash string `xml:"trash,omitempty"` Deleted string `xml:"deleted,omitempty"` }
PermissionSubject represents subject information in a permission.
type PermissionUserTag ¶
type PermissionUserTag struct { ID string `xml:"id,attr"` Name string `xml:"name,omitempty"` Value string `xml:"value,omitempty"` Comment string `xml:"comment,omitempty"` }
PermissionUserTag represents a user tag in a permission.
type PermissionUserTags ¶
type PermissionUserTags struct { Count int `xml:"count,omitempty"` Tag []PermissionUserTag `xml:"tag,omitempty"` }
PermissionUserTags represents user tags information in a permission.
type PortList ¶
type PortList struct { ID string `xml:"id,attr"` Owner *PortListOwner `xml:"owner,omitempty"` Name string `xml:"name,omitempty"` Comment string `xml:"comment,omitempty"` CreationTime string `xml:"creation_time,omitempty"` ModificationTime string `xml:"modification_time,omitempty"` Writable string `xml:"writable,omitempty"` InUse string `xml:"in_use,omitempty"` Permissions *PortListPermissions `xml:"permissions,omitempty"` UserTags *PortListUserTags `xml:"user_tags,omitempty"` PortCount *PortListPortCount `xml:"port_count,omitempty"` PortRanges *PortListPortRanges `xml:"port_ranges,omitempty"` Targets *PortListTargets `xml:"targets,omitempty"` Predefined string `xml:"predefined,omitempty"` Deprecated string `xml:"deprecated,omitempty"` }
PortList represents a port_list element in the response.
type PortListCount ¶
type PortListCount struct { Filtered int `xml:"filtered,attr,omitempty"` Page int `xml:"page,attr,omitempty"` }
PortListCount represents the port_list_count element in the get_port_lists response.
type PortListFilters ¶
type PortListFilters struct { ID string `xml:"id,attr,omitempty"` Term string `xml:"term,omitempty"` Name string `xml:"name,omitempty"` Keywords string `xml:"keywords,omitempty"` }
PortListFilters represents filters for the get_port_lists response.
type PortListOwner ¶
type PortListOwner struct {
Name string `xml:"name,omitempty"`
}
PortListOwner represents the owner of a port list.
type PortListPagination ¶
type PortListPagination struct { Start int `xml:"start,attr,omitempty"` Max int `xml:"max,attr,omitempty"` }
PortListPagination represents pagination information for the get_port_lists response.
type PortListPermission ¶
type PortListPermission struct {
Name string `xml:"name,omitempty"`
}
PortListPermission represents a single permission for a port list.
type PortListPermissions ¶
type PortListPermissions struct {
Permission []PortListPermission `xml:"permission,omitempty"`
}
PortListPermissions represents permissions for a port list.
type PortListPortCount ¶
type PortListPortCount struct { All int `xml:"all,omitempty"` TCP int `xml:"tcp,omitempty"` UDP int `xml:"udp,omitempty"` }
PortListPortCount represents the port count for a port list.
type PortListPortRange ¶
type PortListPortRange struct { ID string `xml:"id,attr,omitempty"` Start int `xml:"start,omitempty"` End int `xml:"end,omitempty"` Type string `xml:"type,omitempty"` Comment string `xml:"comment,omitempty"` }
PortListPortRange represents a port range for a port list.
type PortListPortRanges ¶
type PortListPortRanges struct {
PortRange []PortListPortRange `xml:"port_range,omitempty"`
}
PortListPortRanges represents port ranges for a port list.
type PortListSort ¶
type PortListSort struct { Field string `xml:"field,omitempty"` Order string `xml:"order,omitempty"` }
PortListSort represents sorting information for the get_port_lists response.
type PortListTarget ¶
type PortListTarget struct { ID string `xml:"id,attr,omitempty"` Name string `xml:"name,omitempty"` Permissions string `xml:"permissions,omitempty"` }
PortListTarget represents a target for a port list.
type PortListTargets ¶
type PortListTargets struct {
Target []PortListTarget `xml:"target,omitempty"`
}
PortListTargets represents targets for a port list.
type PortListUserTag ¶
type PortListUserTag struct { ID string `xml:"id,attr,omitempty"` Name string `xml:"name,omitempty"` Value string `xml:"value,omitempty"` Comment string `xml:"comment,omitempty"` }
PortListUserTag represents a user tag for a port list.
type PortListUserTags ¶
type PortListUserTags struct { Count int `xml:"count,attr,omitempty"` Tag []PortListUserTag `xml:"tag,omitempty"` }
PortListUserTags represents user tags for a port list.
type Preference ¶
type Preference struct { NVT PreferenceNVT `xml:"nvt"` Name string `xml:"name"` ID string `xml:"id"` Type string `xml:"type"` Value string `xml:"value"` Alt []string `xml:"alt"` Default string `xml:"default"` }
Preference represents a preference element in the get_preferences response.
type PreferenceNVT ¶
PreferenceNVT represents the NVT element for a preference in the get_preferences response.
type Report ¶
type Report struct { ID string `xml:"id,attr,omitempty"` FormatID string `xml:"format_id,attr,omitempty"` ConfigID string `xml:"config_id,attr,omitempty"` Extension string `xml:"extension,attr,omitempty"` ContentType string `xml:"content_type,attr,omitempty"` Type string `xml:"type,attr,omitempty"` Base64 string `xml:"base64,omitempty"` Owner *ReportOwner `xml:"owner,omitempty"` Name string `xml:"name,omitempty"` Comment string `xml:"comment,omitempty"` CreationTime string `xml:"creation_time,omitempty"` ModificationTime string `xml:"modification_time,omitempty"` Writable string `xml:"writable,omitempty"` InUse string `xml:"in_use,omitempty"` Task *ReportTask `xml:"task,omitempty"` ReportFormat *ReportFormatRef `xml:"report_format,omitempty"` ReportConfig *ReportConfigRef `xml:"report_config,omitempty"` Report *ReportContent `xml:"report,omitempty"` }
Report represents the <report> element for create_report and get_reports.
type ReportCompliance ¶
type ReportComplianceCount ¶
type ReportConfig ¶
type ReportConfig struct { ID string `xml:"id,attr"` Owner *ReportConfigOwner `xml:"owner,omitempty"` Name string `xml:"name"` Comment string `xml:"comment,omitempty"` CreationTime string `xml:"creation_time"` ModificationTime string `xml:"modification_time"` Writable string `xml:"writable"` InUse string `xml:"in_use"` Permissions *ReportConfigPermissions `xml:"permissions,omitempty"` ReportFormat *ReportConfigReportFormat `xml:"report_format"` Params []ReportConfigParam `xml:"param"` }
ReportConfig represents a report_config element in the response.
type ReportConfigCount ¶
type ReportConfigCount struct { Filtered int `xml:"filtered,attr,omitempty"` Page int `xml:"page,attr,omitempty"` }
ReportConfigCount represents the report_config_count element in the get_report_configs response.
type ReportConfigFilters ¶
type ReportConfigFilters struct { ID string `xml:"id,attr,omitempty"` Term string `xml:"term,omitempty"` Name string `xml:"name,omitempty"` Keywords string `xml:"keywords,omitempty"` }
ReportConfigFilters represents filters for the get_report_configs response.
type ReportConfigOwner ¶
type ReportConfigOwner struct {
Name string `xml:"name"`
}
ReportConfigOwner represents the owner of a report config.
type ReportConfigPagination ¶
type ReportConfigPagination struct { Start int `xml:"start,attr,omitempty"` Max int `xml:"max,attr,omitempty"` }
ReportConfigPagination represents pagination information for the get_report_configs response.
type ReportConfigParam ¶
type ReportConfigParam struct { UsingDefault bool `xml:"using_default,attr,omitempty"` Name string `xml:"name"` Type string `xml:"type"` Value string `xml:"value"` Default string `xml:"default"` Options []string `xml:"options>option"` }
ReportConfigParam represents a param element in a report config.
type ReportConfigPermission ¶
type ReportConfigPermission struct {
Name string `xml:"name"`
}
ReportConfigPermission represents a single permission for a report config.
type ReportConfigPermissions ¶
type ReportConfigPermissions struct {
Permissions []ReportConfigPermission `xml:"permission"`
}
ReportConfigPermissions represents permissions for a report config.
type ReportConfigRef ¶
type ReportConfigRef struct { ID string `xml:"id,attr,omitempty"` Name string `xml:"name,omitempty"` }
ReportConfigRef represents the <report_config> element inside <report>.
type ReportConfigReportFormat ¶
ReportConfigReportFormat represents the report_format element in a report config.
type ReportConfigSort ¶
type ReportConfigSort struct { Field string `xml:"field,omitempty"` Order string `xml:"order,omitempty"` }
ReportConfigSort represents sorting information for the get_report_configs response.
type ReportContent ¶
type ReportContent struct { ID string `xml:"id,attr,omitempty"` Type string `xml:"type,attr,omitempty"` GMP *ReportGMP `xml:"gmp,omitempty"` ReportFormat *ReportFormatParams `xml:"report_format,omitempty"` Sort *ReportSort `xml:"sort,omitempty"` Filters *ReportFilters `xml:"filters,omitempty"` Delta *ReportDelta `xml:"delta,omitempty"` Timezone string `xml:"timezone,omitempty"` TimezoneAbbrev string `xml:"timezone_abbrev,omitempty"` Permissions *ReportPermissions `xml:"permissions,omitempty"` UserTags *ReportUserTags `xml:"user_tags,omitempty"` ScanRunStatus string `xml:"scan_run_status,omitempty"` ResultCount *ReportResultCount `xml:"result_count,omitempty"` Severity *ReportSeverity `xml:"severity,omitempty"` ComplianceCount *ReportComplianceCount `xml:"compliance_count,omitempty"` Compliance *ReportCompliance `xml:"compliance,omitempty"` Task *ReportTaskDetail `xml:"task,omitempty"` Ports *ReportPorts `xml:"ports,omitempty"` Results *ReportResults `xml:"results,omitempty"` Hosts *ReportHosts `xml:"hosts,omitempty"` ClosedCVEs *ReportCount `xml:"closed_cves,omitempty"` Vulns *ReportCount `xml:"vulns,omitempty"` OS *ReportCount `xml:"os,omitempty"` Apps *ReportCount `xml:"apps,omitempty"` SSLCerts *ReportCount `xml:"ssl_certs,omitempty"` Host []ReportHost `xml:"host,omitempty"` TLSCertificates *ReportTLSCertificates `xml:"tls_certificates,omitempty"` Timestamp string `xml:"timestamp,omitempty"` ScanStart string `xml:"scan_start,omitempty"` ScanEnd string `xml:"scan_end,omitempty"` Errors *ReportErrors `xml:"errors,omitempty"` }
ReportContent represents the nested <report> element (full report data, can be expanded as needed).
type ReportCount ¶
type ReportCount struct {
Count int `xml:"count,omitempty"`
}
type ReportDelta ¶
type ReportDelta struct {
Report *ReportContent `xml:"report,omitempty"`
}
type ReportDeltaStates ¶
type ReportError ¶
type ReportErrors ¶
type ReportErrors struct { Count int `xml:"count,omitempty"` Errors []ReportError `xml:"error,omitempty"` }
type ReportFilters ¶
type ReportFilters struct { ID string `xml:"id,attr,omitempty"` Levels string `xml:"levels,omitempty"` Term string `xml:"term,omitempty"` Phrase string `xml:"phrase,omitempty"` Notes string `xml:"notes,omitempty"` Overrides string `xml:"overrides,omitempty"` ApplyOverrides string `xml:"apply_overrides,omitempty"` ResultHostsOnly string `xml:"result_hosts_only,omitempty"` MinQod string `xml:"min_qod,omitempty"` Filter []string `xml:"filter,omitempty"` Delta *ReportDeltaStates `xml:"delta,omitempty"` }
type ReportFormat ¶
type ReportFormat struct { ID string `xml:"id,attr"` Name string `xml:"name"` Comment string `xml:"comment,omitempty"` CreationTime string `xml:"creation_time"` ModificationTime string `xml:"modification_time"` Writable string `xml:"writable"` InUse string `xml:"in_use"` Extension string `xml:"extension"` ContentType string `xml:"content_type"` Summary string `xml:"summary"` Description string `xml:"description"` Trust *ReportFormatTrust `xml:"trust,omitempty"` Active string `xml:"active"` Files []ReportFormatFile `xml:"file"` Signature *ReportFormatSignature `xml:"signature,omitempty"` Predefined string `xml:"predefined,omitempty"` Configurable string `xml:"configurable,omitempty"` ReportType string `xml:"report_type,omitempty"` Deprecated string `xml:"deprecated,omitempty"` }
ReportFormat represents a report_format element in the response.
type ReportFormatFile ¶
ReportFormatFile represents a file element in a report format.
type ReportFormatParam ¶
type ReportFormatParams ¶
type ReportFormatParams struct {
Params []ReportFormatParam `xml:"param,omitempty"`
}
type ReportFormatRef ¶
type ReportFormatRef struct { ID string `xml:"id,attr,omitempty"` Name string `xml:"name,omitempty"` }
ReportFormatRef represents the <report_format> element inside <report>.
type ReportFormatSignature ¶
type ReportFormatSignature struct {
Value string `xml:",chardata"`
}
ReportFormatSignature represents the signature element in a report format.
type ReportFormatTrust ¶
ReportFormatTrust represents the trust element in a report format.
type ReportFormatsCount ¶
type ReportFormatsCount struct { Filtered int `xml:"filtered,attr,omitempty"` Page int `xml:"page,attr,omitempty"` }
ReportFormatsCount represents the report_format_count element in the get_report_formats response.
type ReportFormatsFilters ¶
type ReportFormatsFilters struct { ID string `xml:"id,attr,omitempty"` Term string `xml:"term,omitempty"` Name string `xml:"name,omitempty"` Keywords string `xml:"keywords,omitempty"` }
ReportFormatsFilters represents filters for the get_report_formats response.
type ReportFormatsPagination ¶
type ReportFormatsPagination struct { Start int `xml:"start,attr,omitempty"` Max int `xml:"max,attr,omitempty"` }
ReportFormatsPagination represents pagination information for the get_report_formats response.
type ReportFormatsSort ¶
type ReportFormatsSort struct { Field string `xml:"field,omitempty"` Order string `xml:"order,omitempty"` }
ReportFormatsSort represents sorting information for the get_report_formats response.
type ReportGMP ¶
type ReportGMP struct {
Version string `xml:"version,omitempty"`
}
ReportGMP represents the <gmp> element.
type ReportHost ¶
type ReportHost struct { IP string `xml:"ip,omitempty"` Asset string `xml:"asset,omitempty"` Start string `xml:"start,omitempty"` End string `xml:"end,omitempty"` PortCount int `xml:"port_count,omitempty"` ResultCount int `xml:"result_count,omitempty"` ComplianceCount int `xml:"compliance_count,omitempty"` HostCompliance string `xml:"host_compliance,omitempty"` Details []ReportHostDetail `xml:"detail,omitempty"` }
type ReportHostDetail ¶
type ReportHostRef ¶
type ReportHosts ¶
type ReportNVT ¶
type ReportNVT struct { OID string `xml:"oid,attr,omitempty"` Name string `xml:"name,omitempty"` Type string `xml:"type,omitempty"` Family string `xml:"family,omitempty"` CVSSBase string `xml:"cvss_base,omitempty"` Severities string `xml:"severities,omitempty"` CPE string `xml:"cpe,omitempty"` Tags string `xml:"tags,omitempty"` EPSS string `xml:"epss,omitempty"` Refs string `xml:"refs,omitempty"` }
type ReportOwner ¶
type ReportOwner struct {
Name string `xml:"name,omitempty"`
}
ReportOwner represents the <owner> element.
type ReportPermission ¶
type ReportPermission struct {
Name string `xml:"name,omitempty"`
}
type ReportPermissions ¶
type ReportPermissions struct {
Permissions []ReportPermission `xml:"permission,omitempty"`
}
type ReportPort ¶
type ReportPorts ¶
type ReportPorts struct { Start int `xml:"start,attr,omitempty"` Max int `xml:"max,attr,omitempty"` Ports []ReportPort `xml:"port,omitempty"` }
type ReportResult ¶
type ReportResult struct { ID string `xml:"id,attr,omitempty"` Name string `xml:"name,omitempty"` Owner *ReportOwner `xml:"owner,omitempty"` Comment string `xml:"comment,omitempty"` CreationTime string `xml:"creation_time,omitempty"` ModificationTime string `xml:"modification_time,omitempty"` UserTags *ReportUserTags `xml:"user_tags,omitempty"` Report *ReportRef `xml:"report,omitempty"` Task *ReportTaskRef `xml:"task,omitempty"` Host *ReportHostRef `xml:"host,omitempty"` Port string `xml:"port,omitempty"` Path string `xml:"path,omitempty"` NVT *ReportNVT `xml:"nvt,omitempty"` ScanNVTVersion string `xml:"scan_nvt_version,omitempty"` Threat string `xml:"threat,omitempty"` Severity string `xml:"severity,omitempty"` QOD string `xml:"qod,omitempty"` OriginalThreat string `xml:"original_threat,omitempty"` OriginalSeverity string `xml:"original_severity,omitempty"` Compliance string `xml:"compliance,omitempty"` Description string `xml:"description,omitempty"` Delta string `xml:"delta,omitempty"` Detection string `xml:"detection,omitempty"` Notes string `xml:"notes,omitempty"` Overrides string `xml:"overrides,omitempty"` Tickets string `xml:"tickets,omitempty"` }
type ReportResultCount ¶
type ReportResults ¶
type ReportResults struct { Start int `xml:"start,attr,omitempty"` Max int `xml:"max,attr,omitempty"` Results []ReportResult `xml:"result,omitempty"` }
type ReportSeverity ¶
type ReportSort ¶
type ReportSort struct {
Fields []ReportSortField `xml:"field,omitempty"`
}
type ReportSortField ¶
type ReportSortField struct {
Order string `xml:"order,omitempty"`
}
type ReportTLSCertificate ¶
type ReportTLSCertificate struct { Name string `xml:"name,omitempty"` Certificate string `xml:"certificate,omitempty"` Format string `xml:"format,attr,omitempty"` SHA256Fingerprint string `xml:"sha256_fingerprint,omitempty"` MD5Fingerprint string `xml:"md5_fingerprint,omitempty"` Valid string `xml:"valid,omitempty"` ActivationTime string `xml:"activation_time,omitempty"` ExpirationTime string `xml:"expiration_time,omitempty"` SubjectDN string `xml:"subject_dn,omitempty"` IssuerDN string `xml:"issuer_dn,omitempty"` Serial string `xml:"serial,omitempty"` Host string `xml:"host,omitempty"` Ports []int `xml:"ports>port,omitempty"` }
type ReportTLSCertificates ¶
type ReportTLSCertificates struct {
Certificates []ReportTLSCertificate `xml:"tls_certificate,omitempty"`
}
type ReportTask ¶
ReportTask represents the <task> element inside <report>.
type ReportTaskDetail ¶
type ReportTaskDetail struct { ID string `xml:"id,attr,omitempty"` Name string `xml:"name,omitempty"` Comment string `xml:"comment,omitempty"` Target *ReportTaskTarget `xml:"target,omitempty"` Progress int `xml:"progress,omitempty"` UserTags *ReportUserTags `xml:"user_tags,omitempty"` }
type ReportTaskRef ¶
type ReportTaskTarget ¶
type ReportUserTags ¶
type RestoreResponse ¶
type RestoreResponse struct { XMLName xml.Name `xml:"restore_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` }
RestoreResponse represents a restore command response.
type Result ¶
type Result struct { ID string `xml:"id,attr"` Name string `xml:"name"` Owner ResultOwner `xml:"owner"` Comment string `xml:"comment"` CreationTime string `xml:"creation_time"` ModificationTime string `xml:"modification_time"` UserTags *ResultUserTags `xml:"user_tags,omitempty"` Report *ResultReportRef `xml:"report,omitempty"` Task *ResultTaskRef `xml:"task,omitempty"` Host ResultHost `xml:"host"` Port string `xml:"port"` Path *string `xml:"path,omitempty"` NVT ResultNVT `xml:"nvt"` ScanNVTVersion string `xml:"scan_nvt_version"` Threat string `xml:"threat"` Severity float32 `xml:"severity"` QOD ResultQOD `xml:"qod"` OriginalThreat *string `xml:"original_threat,omitempty"` OriginalSeverity *float32 `xml:"original_severity,omitempty"` Compliance string `xml:"compliance"` Description string `xml:"description"` Delta *ResultDelta `xml:"delta,omitempty"` Detection *ResultDetection `xml:"detection,omitempty"` Notes *ResultNotes `xml:"notes,omitempty"` Overrides *ResultOverrides `xml:"overrides,omitempty"` Tickets *ResultTickets `xml:"tickets,omitempty"` }
Result represents a single result element in the get_results response.
type ResultDelta ¶
type ResultDelta struct { Value string `xml:",chardata"` Result *Result `xml:"result"` Diff string `xml:"diff"` Notes ResultDeltaNotes `xml:"notes"` Overrides ResultDeltaOverrides `xml:"overrides"` }
ResultDelta represents a delta element in a result.
type ResultDeltaNotes ¶
type ResultDeltaNotes struct {
Note []ResultNote `xml:"note"`
}
ResultDeltaNotes represents notes in a delta.
type ResultDeltaOverrides ¶
type ResultDeltaOverrides struct {
Override []ResultOverride `xml:"override"`
}
ResultDeltaOverrides represents overrides in a delta.
type ResultDetection ¶
type ResultDetection struct {
Result ResultDetectionResult `xml:"result"`
}
ResultDetection represents detection information in a result.
type ResultDetectionDetail ¶
ResultDetectionDetail represents a single detail in detection.
type ResultDetectionDetails ¶
type ResultDetectionDetails struct {
Detail []ResultDetectionDetail `xml:"detail"`
}
ResultDetectionDetails represents details in a detection result.
type ResultDetectionResult ¶
type ResultDetectionResult struct { ID string `xml:"id,attr"` Details ResultDetectionDetails `xml:"details"` }
ResultDetectionResult represents a detection result.
type ResultHost ¶
type ResultHost struct { Value string `xml:",chardata"` Asset ResultHostAsset `xml:"asset"` Hostname string `xml:"hostname"` }
ResultHost represents a host element in a result.
type ResultHostAsset ¶
type ResultHostAsset struct {
AssetID string `xml:"asset_id,attr"`
}
ResultHostAsset represents an asset attached to a host.
type ResultNVT ¶
type ResultNVT struct { OID string `xml:"oid,attr"` Name string `xml:"name"` Type string `xml:"type"` Family string `xml:"family"` CVSSBase float32 `xml:"cvss_base"` Severities ResultNVTSeverities `xml:"severities"` CPE string `xml:"cpe"` Tags string `xml:"tags"` EPSS *ResultNVTEPSS `xml:"epss,omitempty"` Refs ResultNVTRefs `xml:"refs"` }
ResultNVT represents a network vulnerability test (NVT) in a result.
type ResultNVTEPSS ¶
type ResultNVTEPSS struct { MaxSeverity ResultNVTEPSSInfo `xml:"max_severity"` MaxEPSS ResultNVTEPSSInfo `xml:"max_epss"` }
ResultNVTEPSS represents EPSS information for an NVT.
type ResultNVTEPSSCVE ¶
type ResultNVTEPSSCVE struct { ID string `xml:"id,attr"` Severity *float32 `xml:"severity,omitempty"` }
ResultNVTEPSSCVE represents a CVE reference in EPSS info.
type ResultNVTEPSSInfo ¶
type ResultNVTEPSSInfo struct { Score float32 `xml:"score"` Percentile float32 `xml:"percentile"` CVE ResultNVTEPSSCVE `xml:"cve"` }
ResultNVTEPSSInfo represents detailed EPSS info for an NVT.
type ResultNVTRef ¶
ResultNVTRef represents a single reference for an NVT.
type ResultNVTRefs ¶
type ResultNVTRefs struct {
Ref []ResultNVTRef `xml:"ref"`
}
ResultNVTRefs represents references for an NVT.
type ResultNVTSeverities ¶
type ResultNVTSeverities struct {
Score float32 `xml:"score,attr"`
}
ResultNVTSeverities represents severity information for an NVT.
type ResultNote ¶
type ResultNote struct { ID string `xml:"id,attr"` Permissions ResultNotePerms `xml:"permissions"` Owner ResultNoteOwner `xml:"owner"` NVT ResultNoteNVT `xml:"nvt"` Text ResultNoteText `xml:"text"` CreationTime string `xml:"creation_time"` ModificationTime string `xml:"modification_time"` Writable string `xml:"writable"` InUse string `xml:"in_use"` Active string `xml:"active"` Orphan string `xml:"orphan"` UserTags ResultNoteUserTags `xml:"user_tags"` Hosts string `xml:"hosts"` Port string `xml:"port"` Severity string `xml:"severity"` Task ResultNoteTask `xml:"task"` EndTime string `xml:"end_time"` Result ResultNoteResult `xml:"result"` }
ResultNote represents a note attached to a result or delta.
type ResultNoteAsset ¶
type ResultNoteAsset struct {
AssetID string `xml:"asset_id,attr"`
}
ResultNoteAsset represents an asset in a note host.
type ResultNoteHost ¶
type ResultNoteHost struct { Value string `xml:",chardata"` Asset ResultNoteAsset `xml:"asset"` }
ResultNoteHost represents a host in a note result.
type ResultNoteNVT ¶
type ResultNoteNVT struct { OID string `xml:"oid,attr"` Name string `xml:"name"` Type string `xml:"type"` }
ResultNoteNVT represents an NVT in a note.
type ResultNoteOwner ¶
type ResultNoteOwner struct {
Name string `xml:"name"`
}
ResultNoteOwner represents the owner of a note.
type ResultNotePerm ¶
type ResultNotePerm struct {
Name string `xml:"name"`
}
ResultNotePerm represents a single permission for a note.
type ResultNotePerms ¶
type ResultNotePerms struct {
Permission []ResultNotePerm `xml:"permission"`
}
ResultNotePerms represents permissions for a note.
type ResultNoteQOD ¶
ResultNoteQOD represents QOD in a note result.
type ResultNoteResult ¶
type ResultNoteResult struct { ID string `xml:"id,attr"` Host ResultNoteHost `xml:"host"` Port string `xml:"port"` NVT ResultNoteNVT `xml:"nvt"` Severity string `xml:"severity"` Threat string `xml:"threat"` QOD ResultNoteQOD `xml:"qod"` Description string `xml:"description"` }
ResultNoteResult represents a result reference in a note.
type ResultNoteTag ¶
type ResultNoteTag struct { ID string `xml:"id,attr"` Name string `xml:"name"` Value string `xml:"value"` Comment string `xml:"comment"` }
ResultNoteTag represents a single tag in a note.
type ResultNoteTask ¶
type ResultNoteTask struct { ID string `xml:"id,attr"` Name string `xml:"name"` Trash string `xml:"trash"` }
ResultNoteTask represents a task in a note.
type ResultNoteText ¶
ResultNoteText represents the text of a note.
type ResultNoteUserTags ¶
type ResultNoteUserTags struct { Count int `xml:"count"` Tag []ResultNoteTag `xml:"tag"` }
ResultNoteUserTags represents user tags in a note.
type ResultNotes ¶
type ResultNotes struct {
Note []ResultNote `xml:"note"`
}
ResultNotes represents notes in a result.
type ResultOverride ¶
type ResultOverride struct { ID string `xml:"id,attr"` Permissions ResultOverridePerms `xml:"permissions"` Owner ResultOverrideOwner `xml:"owner"` NVT ResultOverrideNVT `xml:"nvt"` CreationTime string `xml:"creation_time"` ModificationTime string `xml:"modification_time"` Writable string `xml:"writable"` InUse string `xml:"in_use"` Active string `xml:"active"` Text ResultOverrideText `xml:"text"` Threat string `xml:"threat"` Severity string `xml:"severity"` NewThreat string `xml:"new_threat"` NewSeverity string `xml:"new_severity"` Orphan string `xml:"orphan"` UserTags ResultOverrideUserTags `xml:"user_tags"` Hosts string `xml:"hosts"` Port string `xml:"port"` Task ResultOverrideTask `xml:"task"` EndTime string `xml:"end_time"` Result ResultOverrideResult `xml:"result"` }
ResultOverride represents an override in a result or delta.
type ResultOverrideAsset ¶
type ResultOverrideAsset struct {
AssetID string `xml:"asset_id,attr"`
}
ResultOverrideAsset represents an asset in an override host.
type ResultOverrideHost ¶
type ResultOverrideHost struct { Value string `xml:",chardata"` Asset ResultOverrideAsset `xml:"asset"` }
ResultOverrideHost represents a host in an override result.
type ResultOverrideNVT ¶
type ResultOverrideNVT struct { OID string `xml:"oid,attr"` Name string `xml:"name"` Type string `xml:"type"` }
ResultOverrideNVT represents an NVT in an override.
type ResultOverrideOwner ¶
type ResultOverrideOwner struct {
Name string `xml:"name"`
}
ResultOverrideOwner represents the owner of an override.
type ResultOverridePerm ¶
type ResultOverridePerm struct {
Name string `xml:"name"`
}
ResultOverridePerm represents a single permission for an override.
type ResultOverridePerms ¶
type ResultOverridePerms struct {
Permission []ResultOverridePerm `xml:"permission"`
}
ResultOverridePerms represents permissions for an override.
type ResultOverrideQOD ¶
ResultOverrideQOD represents QOD in an override result.
type ResultOverrideResult ¶
type ResultOverrideResult struct { ID string `xml:"id,attr"` Host ResultOverrideHost `xml:"host"` Port string `xml:"port"` NVT ResultOverrideNVT `xml:"nvt"` Threat string `xml:"threat"` Severity string `xml:"severity"` QOD ResultOverrideQOD `xml:"qod"` Description string `xml:"description"` }
ResultOverrideResult represents a result reference in an override.
type ResultOverrideTag ¶
type ResultOverrideTag struct { ID string `xml:"id,attr"` Name string `xml:"name"` Value string `xml:"value"` Comment string `xml:"comment"` }
ResultOverrideTag represents a single tag in an override.
type ResultOverrideTask ¶
type ResultOverrideTask struct { ID string `xml:"id,attr"` Name string `xml:"name"` Trash string `xml:"trash"` }
ResultOverrideTask represents a task in an override.
type ResultOverrideText ¶
type ResultOverrideText struct { Text string `xml:",chardata"` Excerpt string `xml:"excerpt,attr"` }
ResultOverrideText represents the text of an override.
type ResultOverrideUserTags ¶
type ResultOverrideUserTags struct { Count int `xml:"count"` Tag []ResultOverrideTag `xml:"tag"` }
ResultOverrideUserTags represents user tags in an override.
type ResultOverrides ¶
type ResultOverrides struct {
Override []ResultOverride `xml:"override"`
}
ResultOverrides represents overrides in a result.
type ResultOwner ¶
type ResultOwner struct {
Name string `xml:"name"`
}
ResultOwner represents the owner of a result.
type ResultReportRef ¶
type ResultReportRef struct {
ID string `xml:"id,attr"`
}
ResultReportRef represents a reference to a report.
type ResultTag ¶
type ResultTag struct { ID string `xml:"id,attr"` Name string `xml:"name"` Value string `xml:"value"` Comment string `xml:"comment"` }
ResultTag represents a single user tag.
type ResultTaskRef ¶
ResultTaskRef represents a reference to a task.
type ResultTicketRef ¶
type ResultTicketRef struct {
ID string `xml:"id,attr"`
}
ResultTicketRef represents a ticket reference in a result.
type ResultTickets ¶
type ResultTickets struct {
Ticket []ResultTicketRef `xml:"ticket"`
}
ResultTickets represents tickets in a result.
type ResultUserTags ¶
ResultUserTags represents user tags attached to a result.
type ResultsCount ¶
ResultsCount represents the result count in a get_results response.
type ResultsFilterKeyword ¶
type ResultsFilterKeyword struct { Column string `xml:"column"` Relation string `xml:"relation"` Value string `xml:"value"` }
ResultsFilterKeyword represents a filter keyword in filters.
type ResultsFilters ¶
type ResultsFilters struct { ID string `xml:"id,attr"` Term string `xml:"term"` Name *string `xml:"name,omitempty"` Keywords []ResultsFilterKeyword `xml:"keywords>keyword"` }
ResultsFilters represents filters in a get_results response.
type ResultsMeta ¶
ResultsMeta represents meta information (pagination) in a get_results response.
type ResultsSort ¶
type ResultsSort struct { Value string `xml:",chardata"` Field ResultsSortField `xml:"field"` }
ResultsSort represents sorting information in a get_results response.
type ResultsSortField ¶
type ResultsSortField struct {
Order string `xml:"order"`
}
ResultsSortField represents a sort field in sorting information.
type ResumeTask ¶
ResumeTask represents a resume_task command request.
type ResumeTaskResponse ¶
type ResumeTaskResponse struct { XMLName xml.Name `xml:"resume_task_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` ReportID string `xml:"report_id,omitempty"` }
ResumeTaskResponse represents a resume_task command response.
type Role ¶
type Role struct { ID string `xml:"id,attr"` Name string `xml:"name"` Comment string `xml:"comment,omitempty"` CreationTime string `xml:"creation_time,omitempty"` ModificationTime string `xml:"modification_time,omitempty"` Writable string `xml:"writable,omitempty"` InUse string `xml:"in_use,omitempty"` Users string `xml:"users,omitempty"` }
type RunWizard ¶
type RunWizard struct { XMLName xml.Name `xml:"run_wizard"` Mode string `xml:"mode,omitempty"` Name string `xml:"name"` Params *WizardParams `xml:"params,omitempty"` ReadOnly string `xml:"read_only,attr,omitempty"` }
RunWizard represents a run_wizard command request.
type RunWizardResponse ¶
type RunWizardResponse struct { XMLName xml.Name `xml:"run_wizard_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` Response *WizardResponse `xml:"response,omitempty"` }
RunWizardResponse represents a run_wizard command response.
type Scanner ¶
type Scanner struct { ID string `xml:"id,attr"` Owner ScannerOwner `xml:"owner"` Name string `xml:"name"` Comment string `xml:"comment"` Copy string `xml:"copy"` CreationTime string `xml:"creation_time"` ModificationTime string `xml:"modification_time"` Writable string `xml:"writable"` InUse string `xml:"in_use"` Host string `xml:"host"` Port string `xml:"port"` Type string `xml:"type"` CAPub string `xml:"ca_pub"` KeyPub string `xml:"key_pub"` Tasks ScannerTasks `xml:"tasks"` Truncated string `xml:"truncated,omitempty"` Permissions ScannerPermissions `xml:"permissions"` UserTags ScannerUserTags `xml:"user_tags"` CAPubInfo ScannerCertificateInfo `xml:"ca_pub_info"` CertificateInfo ScannerCertificateInfo `xml:"certificate_info"` Credential ScannerCredential `xml:"credential"` RelayHost string `xml:"relay_host"` RelayPort string `xml:"relay_port"` Configs ScannerConfigs `xml:"configs"` Info ScannerInfo `xml:"info"` }
Scanner represents a <scanner> element in the get_scanners response.
type ScannerCertificateInfo ¶
type ScannerCertificateInfo struct { // XMLName xml.Name `xml:"certificate_info"` TimeStatus string `xml:"time_status"` ActivationTime string `xml:"activation_time"` ExpirationTime string `xml:"expiration_time"` Issuer string `xml:"issuer"` MD5Fingerprint string `xml:"md5_fingerprint"` SHA256Fingerprint string `xml:"sha256_fingerprint,omitempty"` Subject string `xml:"subject,omitempty"` Serial string `xml:"serial,omitempty"` }
ScannerCertificateInfo represents certificate information for a scanner.
type ScannerConfig ¶
type ScannerConfig struct { ID string `xml:"id,attr"` Name string `xml:"name"` Permissions string `xml:"permissions"` }
ScannerConfig represents a single config for a scanner.
type ScannerConfigs ¶
type ScannerConfigs struct {
Config []ScannerConfig `xml:"config"`
}
ScannerConfigs represents configs attached to a scanner.
type ScannerCount ¶
ScannerCount represents the scanner count in a get_scanners response.
type ScannerCredential ¶
type ScannerCredential struct { ID string `xml:"id,attr"` Name string `xml:"name"` Login string `xml:"login"` Trash string `xml:"trash"` }
ScannerCredential represents a credential for a scanner.
type ScannerFilters ¶
type ScannerFilters struct { ID string `xml:"id,attr"` Term string `xml:"term"` Name string `xml:"name"` Keywords ScannerFiltersKeywords `xml:"keywords"` }
ScannerFilters represents filters in a get_scanners response.
type ScannerFiltersKeyword ¶
type ScannerFiltersKeyword struct { Column string `xml:"column"` Relation string `xml:"relation"` Value string `xml:"value"` }
ScannerFiltersKeyword represents a single keyword in filters.
type ScannerFiltersKeywords ¶
type ScannerFiltersKeywords struct {
Keyword []ScannerFiltersKeyword `xml:"keyword"`
}
ScannerFiltersKeywords represents keywords in filters.
type ScannerInfo ¶
type ScannerInfo struct { Scanner ScannerInfoScanner `xml:"scanner"` Daemon ScannerInfoDaemon `xml:"daemon"` Protocol ScannerInfoProtocol `xml:"protocol"` Description string `xml:"description"` Params ScannerInfoParams `xml:"params"` }
ScannerInfo represents info about a scanner.
type ScannerInfoDaemon ¶
ScannerInfoDaemon represents the <daemon> element in scanner info.
type ScannerInfoParams ¶
type ScannerInfoParams struct {
Param []string `xml:"param"`
}
ScannerInfoParams represents the <params> element in scanner info.
type ScannerInfoProtocol ¶
ScannerInfoProtocol represents the <protocol> element in scanner info.
type ScannerInfoScanner ¶
ScannerInfoScanner represents the <scanner> element in scanner info.
type ScannerOwner ¶
type ScannerOwner struct {
Name string `xml:"name"`
}
ScannerOwner represents the owner of a scanner.
type ScannerPermission ¶
type ScannerPermission struct {
Name string `xml:"name"`
}
ScannerPermission represents a single permission for a scanner.
type ScannerPermissions ¶
type ScannerPermissions struct {
Permission []ScannerPermission `xml:"permission"`
}
ScannerPermissions represents permissions for a scanner.
type ScannerScanners ¶
ScannerScanners represents meta information (pagination) in a get_scanners response.
type ScannerSort ¶
type ScannerSort struct { Value string `xml:",chardata"` Field ScannerSortField `xml:"field"` }
ScannerSort represents sorting information in a get_scanners response.
type ScannerSortField ¶
ScannerSortField represents a sort field in sorting information.
type ScannerTag ¶
type ScannerTag struct { ID string `xml:"id,attr"` Name string `xml:"name"` Value string `xml:"value"` Comment string `xml:"comment"` }
ScannerTag represents a single user tag for a scanner.
type ScannerTask ¶
type ScannerTask struct { ID string `xml:"id,attr"` Name string `xml:"name"` Permissions string `xml:"permissions"` }
ScannerTask represents a single task for a scanner.
type ScannerTasks ¶
type ScannerTasks struct {
Task []ScannerTask `xml:"task"`
}
ScannerTasks represents tasks attached to a scanner.
type ScannerUserTags ¶
type ScannerUserTags struct { Count int `xml:"count"` Tag []ScannerTag `xml:"tag"` }
ScannerUserTags represents user tags attached to a scanner.
type Schedule ¶
type Schedule struct { ID string `xml:"id,attr"` Owner ScheduleOwner `xml:"owner"` Name string `xml:"name"` Comment string `xml:"comment"` CreationTime string `xml:"creation_time"` ModificationTime string `xml:"modification_time"` Writable string `xml:"writable"` InUse string `xml:"in_use"` Permissions []SchedulePermission `xml:"permissions>permission,omitempty"` UserTags *ScheduleUserTags `xml:"user_tags,omitempty"` ICalendar string `xml:"icalendar"` Timezone string `xml:"timezone"` Tasks []ScheduleTask `xml:"tasks>task,omitempty"` }
Schedule represents a <schedule> element in the get_schedules response.
type ScheduleOwner ¶
type ScheduleOwner struct {
Name string `xml:"name"`
}
ScheduleOwner represents the owner of a schedule.
type SchedulePermission ¶
type SchedulePermission struct {
Name string `xml:"name"`
}
SchedulePermission represents a permission on a schedule.
type ScheduleTask ¶
type ScheduleTask struct { ID string `xml:"id,attr"` Name string `xml:"name"` Permissions string `xml:"permissions,omitempty"` }
ScheduleTask represents a task using a schedule.
type ScheduleUserTag ¶
type ScheduleUserTag struct { ID string `xml:"id,attr"` Name string `xml:"name"` Value string `xml:"value"` Comment string `xml:"comment"` }
ScheduleUserTag represents a tag attached to a schedule.
type ScheduleUserTags ¶
type ScheduleUserTags struct { Count int `xml:"count"` Tags []ScheduleUserTag `xml:"tag,omitempty"` }
ScheduleUserTags represents tags attached to a schedule.
type Setting ¶
type Setting struct { ID string `xml:"id,attr,omitempty"` Name string `xml:"name,omitempty"` Comment string `xml:"comment,omitempty"` Value string `xml:"value,omitempty"` }
Setting represents a <setting> element in the get_settings response.
type Settings ¶
type Settings struct { Start int `xml:"start,attr,omitempty"` Max int `xml:"max,attr,omitempty"` Setting []Setting `xml:"setting,omitempty"` }
Settings represents a <settings> element in the get_settings response.
type Specials ¶
type Specials struct {
Full string `xml:"full,omitempty"`
}
Specials is the <specials> element for create_group.
type StartTask ¶
type StartTask struct { XMLName xml.Name `xml:"start_task"` TaskID string `xml:"task_id,attr,omitempty"` }
StartTask represents a start_task command request.
type StartTaskResponse ¶
type StartTaskResponse struct { XMLName xml.Name `xml:"start_task_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` ReportID string `xml:"report_id"` }
StartTaskResponse represents a start_task command response.
type StopTask ¶
type StopTask struct { XMLName xml.Name `xml:"stop_task"` TaskID string `xml:"task_id,attr,omitempty"` }
StopTask represents a stop_task command request.
type StopTaskResponse ¶
type StopTaskResponse struct { XMLName xml.Name `xml:"stop_task_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` }
StopTaskResponse represents a stop_task command response.
type SyncConfig ¶
SyncConfig represents a sync_config command request.
type SyncConfigResponse ¶
type SyncConfigResponse struct { XMLName xml.Name `xml:"sync_config_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` }
SyncConfigResponse represents a sync_config command response.
type SystemReport ¶
type SystemReport struct { Name string `xml:"name"` Title string `xml:"title"` Report *SystemReportReport `xml:"report,omitempty"` }
SystemReport represents a <system_report> element in the get_system_reports response.
type SystemReportReport ¶
type SystemReportReport struct { Format string `xml:"format,attr"` Duration string `xml:"duration,attr"` Value string `xml:",chardata"` }
SystemReportReport represents the content of a system report.
type TLSCertificate ¶
type TLSCertificate struct { ID string `xml:"id,attr"` Owner *TLSCertificateOwner `xml:"owner,omitempty"` Name string `xml:"name,omitempty"` Comment string `xml:"comment,omitempty"` CreationTime string `xml:"creation_time,omitempty"` // ISO 8601 string ModificationTime string `xml:"modification_time,omitempty"` // ISO 8601 string Writable string `xml:"writable,omitempty"` // "0"/"1" InUse string `xml:"in_use,omitempty"` // "0"/"1" Permissions *TLSCertificatePermissions `xml:"permissions,omitempty"` Certificate *TLSCertificateData `xml:"certificate,omitempty"` SHA256Fingerprint string `xml:"sha256_fingerprint,omitempty"` MD5Fingerprint string `xml:"md5_fingerprint,omitempty"` Trust string `xml:"trust,omitempty"` // "0"/"1" Valid string `xml:"valid,omitempty"` // "0"/"1" TimeStatus string `xml:"time_status,omitempty"` ActivationTime string `xml:"activation_time,omitempty"` // ISO 8601 string ExpirationTime string `xml:"expiration_time,omitempty"` // ISO 8601 string SubjectDN string `xml:"subject_dn,omitempty"` IssuerDN string `xml:"issuer_dn,omitempty"` Serial string `xml:"serial,omitempty"` LastSeen string `xml:"last_seen,omitempty"` // ISO 8601 string }
TLSCertificate represents a <tls_certificate> element in the get_tls_certificates response.
type TLSCertificateData ¶
TLSCertificateData represents the <certificate> element for a TLS certificate.
type TLSCertificateOwner ¶
type TLSCertificateOwner struct {
Name string `xml:"name"`
}
TLSCertificateOwner represents the <owner> element for a TLS certificate.
type TLSCertificatePermission ¶
type TLSCertificatePermission struct {
Name string `xml:"name"`
}
TLSCertificatePermission represents a <permission> element for a TLS certificate.
type TLSCertificatePermissions ¶
type TLSCertificatePermissions struct {
Permission []TLSCertificatePermission `xml:"permission"`
}
TLSCertificatePermissions represents the <permissions> element for a TLS certificate.
type Tag ¶
type Tag struct { ID string `xml:"id,attr"` Name string `xml:"name"` Comment string `xml:"comment,omitempty"` CreationTime string `xml:"creation_time,omitempty"` // ISO 8601 string ModificationTime string `xml:"modification_time,omitempty"` // ISO 8601 string Writable string `xml:"writable,omitempty"` // "0"/"1" InUse string `xml:"in_use,omitempty"` // "0"/"1" Value string `xml:"value,omitempty"` Active string `xml:"active,omitempty"` // "0"/"1" Resources []TagResource `xml:"resource,omitempty"` }
Tag represents a <tag> element in the get_tags response.
type TagResource ¶
type TagResource struct { ID string `xml:"id,attr"` Type string `xml:"type"` Name string `xml:"name"` Trash string `xml:"trash"` // "0"/"1" }
TagResource represents a <resource> element for a tag.
type Target ¶
type Target struct { ID string `xml:"id,attr"` Owner *TargetOwner `xml:"owner,omitempty"` Name string `xml:"name,omitempty"` Comment string `xml:"comment,omitempty"` CreationTime string `xml:"creation_time,omitempty"` // ISO 8601 string ModificationTime string `xml:"modification_time,omitempty"` // ISO 8601 string Writable string `xml:"writable,omitempty"` // "0"/"1" InUse string `xml:"in_use,omitempty"` // "0"/"1" Permissions *TargetPermissions `xml:"permissions,omitempty"` UserTags *TargetUserTags `xml:"user_tags,omitempty"` Hosts string `xml:"hosts,omitempty"` ExcludeHosts string `xml:"exclude_hosts,omitempty"` MaxHosts int `xml:"max_hosts,omitempty"` SSHCredential *TargetCredential `xml:"ssh_credential,omitempty"` SMBCredential *TargetCredential `xml:"smb_credential,omitempty"` ESXICredential *TargetCredential `xml:"esxi_credential,omitempty"` Krb5Credential *TargetCredential `xml:"krb5_credential,omitempty"` SNMPCredential *TargetCredential `xml:"snmp_credential,omitempty"` SSHElevateCredential *TargetCredential `xml:"ssh_elevate_credential,omitempty"` PortRange *TargetPortRange `xml:"port_range,omitempty"` PortList *TargetPortList `xml:"port_list,omitempty"` AliveTests string `xml:"alive_tests,omitempty"` ReverseLookupOnly string `xml:"reverse_lookup_only,omitempty"` // "0"/"1" ReverseLookupUnify string `xml:"reverse_lookup_unify,omitempty"` // "0"/"1" AllowSimultaneousIPs string `xml:"allow_simultaneous_ips,omitempty"` // "0"/"1" Tasks *TargetTasks `xml:"tasks,omitempty"` }
Target represents a <target> element in the get_targets response.
type TargetCount ¶
type TargetCount struct { Filtered int `xml:"filtered,attr,omitempty"` Page int `xml:"page,attr,omitempty"` }
TargetCount represents the <target_count> element in the response.
type TargetCredential ¶
type TargetCredential struct { ID string `xml:"id,attr,omitempty"` Name string `xml:"name,omitempty"` Port string `xml:"port,omitempty"` }
TargetCredential represents a credential element for a target or create_target. The Port field is only used for credentials that support it (e.g., ssh_credential, ssh_lsc_credential).
type TargetFilters ¶
type TargetFilters struct { ID string `xml:"id,attr,omitempty"` Term string `xml:"term,omitempty"` Name string `xml:"name,omitempty"` Comment string `xml:"comment,omitempty"` }
TargetFilters represents the <filters> element in the response.
type TargetOwner ¶
type TargetOwner struct {
Name string `xml:"name,omitempty"`
}
TargetOwner represents the <owner> element for a target.
type TargetPermission ¶
type TargetPermission struct {
Name string `xml:"name,omitempty"`
}
TargetPermission represents a <permission> element for a target.
type TargetPermissions ¶
type TargetPermissions struct {
Permission []TargetPermission `xml:"permission,omitempty"`
}
TargetPermissions represents the <permissions> element for a target.
type TargetPortList ¶
type TargetPortList struct { ID string `xml:"id,attr,omitempty"` Name string `xml:"name,omitempty"` }
TargetPortList represents the <port_list> element for a target.
type TargetPortRange ¶
TargetPortRange represents the <port_range> element for a target.
type TargetSort ¶
type TargetSort struct { Field string `xml:"field,omitempty"` Order string `xml:"order,omitempty"` }
TargetSort represents the <sort> element in the response.
type TargetTargets ¶
type TargetTargets struct { Start int `xml:"start,attr,omitempty"` Max int `xml:"max,attr,omitempty"` }
TargetTargets represents the <targets> meta element in the response.
type TargetTask ¶
type TargetTask struct {
ID string `xml:"id,attr,omitempty"`
}
TargetTask represents a <task> element in tasks.
type TargetTasks ¶
type TargetTasks struct { Count int `xml:"count,attr,omitempty"` Task []TargetTask `xml:"task,omitempty"` }
TargetTasks represents the <tasks> element for a target.
type TargetUserTag ¶
type TargetUserTag struct { ID string `xml:"id,attr,omitempty"` Name string `xml:"name,omitempty"` Value string `xml:"value,omitempty"` }
TargetUserTag represents a <tag> element in user_tags.
type TargetUserTags ¶
type TargetUserTags struct { Count int `xml:"count,attr,omitempty"` Tag []TargetUserTag `xml:"tag,omitempty"` }
TargetUserTags represents the <user_tags> element for a target.
type TaskConfig ¶
type TaskLastReport ¶
type TaskLastReport struct {
Report *TaskReport `xml:"report"`
}
type TaskObservers ¶
type TaskObservers struct { UserList string `xml:"user_list,omitempty"` Groups []ObserverGroup `xml:"group,omitempty"` Roles []ObserverRole `xml:"role,omitempty"` }
type TaskPermission ¶
type TaskPermission struct {
Name string `xml:"name"`
}
type TaskPermissions ¶
type TaskPermissions struct {
Permission []TaskPermission `xml:"permission"`
}
type TaskPreference ¶
type TaskPreferences ¶
type TaskPreferences struct {
Preference []TaskPreference `xml:"preference"`
}
type TaskReport ¶
type TaskReports ¶
type TaskReports struct {
Report []TaskReport `xml:"report"`
}
type TaskScanner ¶
type TaskSchedule ¶
type TaskTarget ¶
type TestAlertResponse ¶
type TestAlertResponse struct { XMLName xml.Name `xml:"test_alert_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` StatusDetails string `xml:"status_details,omitempty"` }
TestAlertResponse represents a test_alert command response.
type Ticket ¶
type Ticket struct { ID string `xml:"id,attr"` Owner *TicketOwner `xml:"owner,omitempty"` Name string `xml:"name"` Comment string `xml:"comment"` CreationTime string `xml:"creation_time"` // ISO 8601 string ModificationTime string `xml:"modification_time"` // ISO 8601 string Writable string `xml:"writable"` // "0"/"1" InUse string `xml:"in_use"` // "0"/"1" Permissions *TicketPermissions `xml:"permissions,omitempty"` AssignedTo *TicketAssignedTo `xml:"assigned_to,omitempty"` TaskID string `xml:"task,attr,omitempty"` ReportID string `xml:"report,attr,omitempty"` Severity string `xml:"severity,omitempty"` Host string `xml:"host,omitempty"` Location string `xml:"location,omitempty"` SolutionType string `xml:"solution_type,omitempty"` Status string `xml:"status"` OpenTime string `xml:"open_time,omitempty"` // ISO 8601 string OpenNote string `xml:"open_note,omitempty"` Result *TicketResult `xml:"result,omitempty"` }
Ticket represents a <ticket> element in the get_tickets response.
type TicketAssignedTo ¶
type TicketAssignedTo struct {
User *TicketUser `xml:"user"`
}
TicketAssignedTo represents the <assigned_to> element for a ticket.
type TicketOwner ¶
type TicketOwner struct {
Name string `xml:"name"`
}
TicketOwner represents the <owner> element for a ticket.
type TicketPermission ¶
type TicketPermission struct {
Name string `xml:"name"`
}
TicketPermission represents a <permission> element for a ticket.
type TicketPermissions ¶
type TicketPermissions struct {
Permission []TicketPermission `xml:"permission"`
}
TicketPermissions represents the <permissions> element for a ticket.
type TicketResult ¶
type TicketResult struct {
ID string `xml:"id,attr"`
}
TicketResult represents the <result> element for a ticket.
type TicketUser ¶
type TicketUser struct {
ID string `xml:"id,attr"`
}
TicketUser represents the <user> element in assigned_to.
type User ¶
type User struct { ID string `xml:"id,attr,omitempty"` Name string `xml:"name"` Comment string `xml:"comment,omitempty"` CreationTime string `xml:"creation_time,omitempty"` ModificationTime string `xml:"modification_time,omitempty"` Writable string `xml:"writable,omitempty"` InUse string `xml:"in_use,omitempty"` Role *UserRole `xml:"role,omitempty"` Groups *UserGroups `xml:"groups,omitempty"` Hosts *UserHosts `xml:"hosts,omitempty"` Permissions *UserPermissions `xml:"permissions,omitempty"` UserTags *UserTags `xml:"user_tags,omitempty"` Sources *UserSources `xml:"sources,omitempty"` }
User represents a <user> element in the get_users response.
type UserGroups ¶
type UserGroups struct {
Group []UserGroup `xml:"group"`
}
UserGroups represents the <groups> element in a user.
type UserPassword ¶
type UserPermission ¶
type UserPermission struct {
Name string `xml:"name"`
}
UserPermission represents a <permission> element in permissions.
type UserPermissions ¶
type UserPermissions struct {
Permission []UserPermission `xml:"permission"`
}
UserPermissions represents the <permissions> element in a user.
type UserSources ¶
type UserSources struct {
Source []string `xml:"source"`
}
UserSources represents the <sources> element in a user.
type UserTag ¶
type UserTag struct { ID string `xml:"id,attr"` Name string `xml:"name"` Value string `xml:"value"` Comment string `xml:"comment"` }
UserTag represents a <tag> element in user_tags.
type VerifyReportFormat ¶
type VerifyReportFormat struct { XMLName xml.Name `xml:"verify_report_format"` ReportFormatID string `xml:"report_format_id,attr"` }
VerifyReportFormat represents a verify_report_format command request.
type VerifyReportFormatResponse ¶
type VerifyReportFormatResponse struct { XMLName xml.Name `xml:"verify_report_format_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` }
VerifyReportFormatResponse represents a verify_report_format command response.
type VerifyScanner ¶
type VerifyScanner struct { XMLName xml.Name `xml:"verify_scanner"` ScannerID string `xml:"scanner_id,attr"` }
VerifyScanner represents a verify_scanner command request.
type VerifyScannerResponse ¶
type VerifyScannerResponse struct { XMLName xml.Name `xml:"verify_scanner_response"` Status string `xml:"status,attr"` StatusText string `xml:"status_text,attr"` Version string `xml:"version,omitempty"` }
VerifyScannerResponse represents a verify_scanner command response.
type Vuln ¶
type Vuln struct { XMLName xml.Name `xml:"vuln"` ID string `xml:"id,attr"` Name string `xml:"name"` Type string `xml:"type"` CreationTime string `xml:"creation_time"` ModificationTime string `xml:"modification_time"` Severity string `xml:"severity"` QoD int `xml:"qod"` Results *VulnResults `xml:"results,omitempty"` Hosts *VulnHosts `xml:"hosts,omitempty"` }
Vuln represents a <vuln> element in the get_vulns response.
type VulnHosts ¶
type VulnHosts struct {
Count int `xml:"count"`
}
VulnHosts represents the <hosts> element in a vuln.
type VulnResults ¶
type VulnResults struct { Count int `xml:"count"` Oldest string `xml:"oldest"` Newest string `xml:"newest"` }
VulnResults represents the <results> element in a vuln.
type VulnsFilters ¶
type VulnsFilters struct { XMLName xml.Name `xml:"filters"` ID string `xml:"id,attr"` Term string `xml:"term"` Name string `xml:"name,omitempty"` Keywords *VulnsKeywords `xml:"keywords,omitempty"` }
VulnsFilters represents the <filters> element in the response.
type VulnsKeyword ¶
type VulnsKeyword struct { Column string `xml:"column"` Relation string `xml:"relation"` Value string `xml:"value"` }
VulnsKeyword represents a <keyword> element in filters keywords.
type VulnsKeywords ¶
type VulnsKeywords struct {
Keyword []VulnsKeyword `xml:"keyword"`
}
VulnsKeywords represents the <keywords> element in filters.
type VulnsMeta ¶
type VulnsMeta struct { XMLName xml.Name `xml:"vulns"` Start int `xml:"start,attr"` Max int `xml:"max,attr"` }
VulnsMeta represents the <vulns> meta element in the response.
type VulnsSort ¶
type VulnsSort struct {
Field *VulnsSortField `xml:"field,omitempty"`
}
VulnsSort represents the <sort> element in the response.
type VulnsSortField ¶
type VulnsSortField struct {
Order string `xml:"order"`
}
VulnsSortField represents the <field> element in sort.
type WizardParam ¶
type WizardParams ¶
type WizardParams struct {
Params []WizardParam `xml:"param"`
}
type WizardResponse ¶
type WizardResponse struct { CreateTargetResponse *CreateTargetResponse `xml:"create_target_response,omitempty"` CreateTaskResponse *CreateTaskResponse `xml:"create_task_response,omitempty"` StartTaskResponse *StartTaskResponse `xml:"start_task_response,omitempty"` GetTasksResponse *GetTasksResponse `xml:"get_tasks_response,omitempty"` DeleteTaskResponse *DeleteTaskResponse `xml:"delete_task_response,omitempty"` DeleteTargetResponse *DeleteTargetResponse `xml:"delete_target_response,omitempty"` DeleteScheduleResponse *DeleteScheduleResponse `xml:"delete_schedule_response,omitempty"` CreateAlertResponse *CreateAlertResponse `xml:"create_alert_response,omitempty"` CreateCredentialResponse *CreateCredentialResponse `xml:"create_credential_response,omitempty"` DeleteCredentialResponse *DeleteCredentialResponse `xml:"delete_credential_response,omitempty"` CreateScheduleResponse *CreateScheduleResponse `xml:"create_schedule_response,omitempty"` ModifyTaskResponse *ModifyTaskResponse `xml:"modify_task_response,omitempty"` DeleteReportResponse *DeleteReportResponse `xml:"delete_report_response,omitempty"` GetVersionResponse *GetVersionResponse `xml:"get_version_response,omitempty"` GetCredentialsResponse *GetCredentialsResponse `xml:"get_credentials_response,omitempty"` GetReportsResponse *GetReportsResponse `xml:"get_reports_response,omitempty"` GetReportFormatsResponse *GetReportFormatsResponse `xml:"get_report_formats_response,omitempty"` GetConfigsResponse *GetConfigsResponse `xml:"get_configs_response,omitempty"` GetScannersResponse *GetScannersResponse `xml:"get_scanners_response,omitempty"` GetTargetsResponse *GetTargetsResponse `xml:"get_targets_response,omitempty"` GetUsersResponse *GetUsersResponse `xml:"get_users_response,omitempty"` GetTicketsResponse *GetTicketsResponse `xml:"get_tickets_response,omitempty"` GetNotesResponse *GetNotesResponse `xml:"get_notes_response,omitempty"` GetGroupsResponse *GetGroupsResponse `xml:"get_groups_response,omitempty"` GetTagsResponse *GetTagsResponse `xml:"get_tags_response,omitempty"` GetAssetsResponse *GetAssetsResponse `xml:"get_assets_response,omitempty"` GetAlertsResponse *GetAlertsResponse `xml:"get_alerts_response,omitempty"` GetInfoResponse *GetInfoResponse `xml:"get_info_response,omitempty"` GetVulnsResponse *GetVulnsResponse `xml:"get_vulns_response,omitempty"` GetResultsResponse *GetResultsResponse `xml:"get_results_response,omitempty"` GetPortListsResponse *GetPortListsResponse `xml:"get_port_lists_response,omitempty"` GetReportConfigsResponse *GetReportConfigsResponse `xml:"get_report_configs_response,omitempty"` GetSystemReportsResponse *GetSystemReportsResponse `xml:"get_system_reports_response,omitempty"` GetResourceNamesResponse *GetResourceNamesResponse `xml:"get_resource_names_response,omitempty"` GetPreferencesResponse *GetPreferencesResponse `xml:"get_preferences_response,omitempty"` GetFeaturesResponse *GetFeaturesResponse `xml:"get_features_response,omitempty"` GetLicenseResponse *GetLicenseResponse `xml:"get_license_response,omitempty"` GetAggregatesResponse *GetAggregatesResponse `xml:"get_aggregates_response,omitempty"` Status string `xml:"status,omitempty"` StatusText string `xml:"status_text,omitempty"` InnerXML string `xml:",innerxml"` // For any unknown or extra content }
Source Files
¶
- authenticate.go
- create_alert.go
- create_asset.go
- create_config.go
- create_credential.go
- create_filter.go
- create_group.go
- create_note.go
- create_override.go
- create_permission.go
- create_port_list.go
- create_port_range.go
- create_report.go
- create_report_config.go
- create_report_format.go
- create_role.go
- create_scanner.go
- create_schedule.go
- create_tag.go
- create_target.go
- create_task.go
- create_ticket.go
- create_tls_certificate.go
- create_user.go
- delete_agents.go
- delete_alert.go
- delete_asset.go
- delete_config.go
- delete_credential.go
- delete_filter.go
- delete_group.go
- delete_note.go
- delete_override.go
- delete_permission.go
- delete_port_list.go
- delete_port_range.go
- delete_report.go
- delete_report_config.go
- delete_report_format.go
- delete_role.go
- delete_scanner.go
- delete_schedule.go
- delete_tag.go
- delete_target.go
- delete_task.go
- delete_ticket.go
- delete_user.go
- describe_auth.go
- empty_trashcan.go
- get_agents.go
- get_aggregates.go
- get_alerts.go
- get_assets.go
- get_configs.go
- get_credentials.go
- get_features.go
- get_feeds.go
- get_filters.go
- get_groups.go
- get_info.go
- get_license.go
- get_notes.go
- get_nvt_families.go
- get_nvts.go
- get_overrides.go
- get_permissions.go
- get_port_lists.go
- get_preferences.go
- get_report_configs.go
- get_report_formats.go
- get_reports.go
- get_resource_names.go
- get_results.go
- get_roles.go
- get_scanners.go
- get_schedules.go
- get_settings.go
- get_system_reports.go
- get_tags.go
- get_targets.go
- get_tasks.go
- get_tickets.go
- get_tls_certificates.go
- get_users.go
- get_version.go
- get_vulns.go
- help.go
- modify_agents.go
- modify_alert.go
- modify_asset.go
- modify_auth.go
- modify_config.go
- modify_credential.go
- modify_filter.go
- modify_group.go
- modify_license.go
- modify_note.go
- modify_override.go
- modify_permission.go
- modify_port_list.go
- modify_report_config.go
- modify_report_format.go
- modify_role.go
- modify_scanner.go
- modify_schedule.go
- modify_setting.go
- modify_tag.go
- modify_target.go
- modify_task.go
- modify_ticket.go
- modify_tls_certificate.go
- modify_user.go
- move_task.go
- restore.go
- resume_task.go
- run_wizard.go
- start_task.go
- stop_task.go
- sync_config.go
- test_alert.go
- verify_report_format.go
- verify_scanner.go