Documentation
¶
Index ¶
- type Contents
- func (content Contents) DownloadFile(uid string) (b []byte)
- func (content Contents) ListPolicyID() (r []string)
- func (content Contents) ListPolicyName() (r []string)
- func (content Contents) PauseScan(uuid string)
- func (content Contents) ReportsList() (b []byte)
- func (content Contents) ReportsListAll() (r *reportList)
- func (content Contents) ResumeScan(uuid string)
- func (content Contents) ScanStatus(uuid string) (status string)
- func (content Contents) StartScan(policyID, scanName, target string) (r string)
- func (content Contents) StopScan(uuid string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Contents ¶
type Contents struct { Token string `xml:"contents>token"` Name string `xml:"contents>user>name"` Admin bool `xml:"contents>user>admin"` // contains filtered or unexported fields }
func (Contents) DownloadFile ¶
Returns a nessus v2 xml report from the given uid
func (Contents) ListPolicyID ¶
Returns a slice of policy id's
func (Contents) ListPolicyName ¶
Returns a slice of policy names
func (Contents) ReportsList ¶
Returns XML file of reports
func (Contents) ReportsListAll ¶
func (content Contents) ReportsListAll() (r *reportList)
Returns a struct of data that contains all the id's, scan names scan status and the time stamp of when it was completed
func (Contents) ResumeScan ¶
Resume a scan with the given uuid
func (Contents) ScanStatus ¶
Returns the status of a scan based on the given uuid number.
Click to show internal directories.
Click to hide internal directories.