Documentation ¶
Index ¶
- type CommentResponse
- type DetectedUrl
- type DomainReportResponse
- type FileScan
- type IpAddressReportResponse
- type ReportResponse
- type RescanResponse
- type Resolution
- type ScanResponse
- type ScanUrlResponse
- type VirusTotal
- func (vt *VirusTotal) Comment(resource string, comment string) (*CommentResponse, error)
- func (vt *VirusTotal) DomainReport(domain string) (*DomainReportResponse, error)
- func (vt *VirusTotal) IpAddressReport(ip string) (*IpAddressReportResponse, error)
- func (vt *VirusTotal) Report(resource string) (*ReportResponse, error)
- func (vt *VirusTotal) ReportUrl(url2 *url.URL) (*ReportResponse, error)
- func (vt *VirusTotal) Rescan(hash []string) (*RescanResponse, error)
- func (vt *VirusTotal) Scan(path string, file io.Reader) (*ScanResponse, error)
- func (vt *VirusTotal) ScanUrl(url2 *url.URL) (*ScanResponse, error)
- type VirusTotalResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommentResponse ¶
type CommentResponse struct {
VirusTotalResponse
}
type DetectedUrl ¶
type DomainReportResponse ¶
type DomainReportResponse struct { VirusTotalResponse Resolutions []Resolution `json:"resolutions"` DetectedUrls []DetectedUrl `json:"detected_urls"` }
type IpAddressReportResponse ¶
type IpAddressReportResponse struct { VirusTotalResponse Resolutions []Resolution `json:"resolutions"` DetectedUrls []DetectedUrl `json:"detected_urls"` }
type ReportResponse ¶
type ReportResponse struct { VirusTotalResponse Resource string `json:"resource"` ScanId string `json:"scan_id"` Sha1 string `json:"sha1"` Sha256 string `json:"sha256"` Md5 string `json:"md5"` Scandate string `json:"scan_date"` Positives int `json:"positives"` Total int `json:"total"` Permalink string `json:"permalink"` Scans map[string]FileScan `json:"scans"` }
type RescanResponse ¶
type RescanResponse struct {
ScanResponse
}
func (*RescanResponse) String ¶
func (sr *RescanResponse) String() string
type Resolution ¶
type ScanResponse ¶
type ScanResponse struct { VirusTotalResponse ScanId string `json:"scan_id"` Sha1 string `json:"sha1"` Resource string `json:"resource"` Sha256 string `json:"sha256"` Permalink string `json:"permalink"` Md5 string `json:"md5"` }
func (*ScanResponse) String ¶
func (sr *ScanResponse) String() string
type ScanUrlResponse ¶
type ScanUrlResponse struct {
ScanResponse
}
type VirusTotal ¶
type VirusTotal struct {
// contains filtered or unexported fields
}
func NewVirusTotal ¶
func NewVirusTotal(apikey string) (*VirusTotal, error)
func (*VirusTotal) Comment ¶
func (vt *VirusTotal) Comment(resource string, comment string) (*CommentResponse, error)
func (*VirusTotal) DomainReport ¶
func (vt *VirusTotal) DomainReport(domain string) (*DomainReportResponse, error)
func (*VirusTotal) IpAddressReport ¶
func (vt *VirusTotal) IpAddressReport(ip string) (*IpAddressReportResponse, error)
func (*VirusTotal) Report ¶
func (vt *VirusTotal) Report(resource string) (*ReportResponse, error)
func (*VirusTotal) ReportUrl ¶
func (vt *VirusTotal) ReportUrl(url2 *url.URL) (*ReportResponse, error)
func (*VirusTotal) Rescan ¶
func (vt *VirusTotal) Rescan(hash []string) (*RescanResponse, error)
func (*VirusTotal) Scan ¶
func (vt *VirusTotal) Scan(path string, file io.Reader) (*ScanResponse, error)
func (*VirusTotal) ScanUrl ¶
func (vt *VirusTotal) ScanUrl(url2 *url.URL) (*ScanResponse, error)
type VirusTotalResponse ¶
Click to show internal directories.
Click to hide internal directories.