autofocus

package
v0.0.0-...-f1cee2f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 11, 2022 License: MIT Imports: 8 Imported by: 0

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

func (c *Client) Do(path string, body map[string]interface{}) (util.Object, error)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL