Documentation ¶
Index ¶
Constants ¶
View Source
const URL = "https://autofocus.paloaltonetworks.com/api/v1.0"
URL of AutoFocus API
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
Token string // The token to use for requests. Required.
}
Client to the AutoFocus API
func (*Client) Do ¶
Do the given API request Returns the response if the status code is between 200 and 299
func (*Client) HashReputation ¶
func (c *Client) HashReputation(hash string) *Reputation
HashReputation returns the reputation of given hash
type Reputation ¶
type Reputation struct { Malware bool `json:"malware"` // Is this known bad Tags []string `json:"tags"` // Tags associated with this malware TagGroups []string `json:"tag_groups"` // TagGroups relevant to this malware FileType string `json:"file_type"` // Type of the file Created time.Time `json:"created"` // When was this create Regions []string `json:"regions"` // Regions where this was seen }
Reputation of given hash
func (*Reputation) String ¶
func (rep *Reputation) String() string
Click to show internal directories.
Click to hide internal directories.