url_intel

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: May 25, 2023 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

func New

func New(cfg *pangea.Config) Client

type LookupData

type LookupData struct {
	Category []string `json:"category"`
	Score    int      `json:"score"`
	Verdict  string   `json:"verdict"`
}

@deprecated Use ReputationData instead.

type ReputationData

type ReputationData struct {
	Category []string `json:"category"`
	Score    int      `json:"score"`
	Verdict  string   `json:"verdict"`
}

type UrlIntel

type UrlIntel struct {
	*pangea.Client
}

func (*UrlIntel) Lookup

@summary Reputation check

@description Retrieve a reputation score for a URL from a provider, including an optional detailed report.

@deprecated Use Reputation instead.

@example

input := &url_intel.UrlLookupRequest{
	Url: "http://113.235.101.11:54384",
	Raw: true,
	Verbose: true,
	Provider: "crowdstrike",
}

resp, err := urlintel.Lookup(ctx, input)

func (*UrlIntel) Reputation

@summary Reputation

@description Retrieve a reputation score for a URL from a provider, including an optional detailed report.

@operationId url_intel_post_v1_reputation

@example

input := &url_intel.UrlReputationRequest{
	Url:      "http://113.235.101.11:54384",
	Raw:      true,
	Verbose:  true,
	Provider: "crowdstrike",
}

resp, err := urlintel.Reputation(ctx, input)

type UrlLookupRequest

type UrlLookupRequest struct {
	Url      string `json:"url"`
	Verbose  bool   `json:"verbose,omitempty"`
	Raw      bool   `json:"raw,omitempty"`
	Provider string `json:"provider,omitempty"`
}

@deprecated Use UrlReputationRequest instead.

type UrlLookupResult

type UrlLookupResult struct {
	Data       LookupData  `json:"data"`
	Parameters interface{} `json:"parameters,omitempty"`
	RawData    interface{} `json:"raw_data,omitempty"`
}

@deprecated Use UrlReputationResult instead.

type UrlReputationRequest

type UrlReputationRequest struct {
	Url      string `json:"url"`
	Verbose  bool   `json:"verbose,omitempty"`
	Raw      bool   `json:"raw,omitempty"`
	Provider string `json:"provider,omitempty"`
}

type UrlReputationResult

type UrlReputationResult struct {
	Data       ReputationData `json:"data"`
	Parameters interface{}    `json:"parameters,omitempty"`
	RawData    interface{}    `json:"raw_data,omitempty"`
}

Jump to

Keyboard shortcuts

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