url_scanner

package
v6.5.0 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const AuditLogActorTypeAdmin = shared.AuditLogActorTypeAdmin

This is an alias to an internal value.

View Source
const AuditLogActorTypeCloudflare = shared.AuditLogActorTypeCloudflare

This is an alias to an internal value.

View Source
const AuditLogActorTypeUser = shared.AuditLogActorTypeUser

This is an alias to an internal value.

View Source
const CertificateCADigicert = shared.CertificateCADigicert

This is an alias to an internal value.

View Source
const CertificateCAGoogle = shared.CertificateCAGoogle

This is an alias to an internal value.

View Source
const CertificateCALetsEncrypt = shared.CertificateCALetsEncrypt

This is an alias to an internal value.

View Source
const CertificateCASSLCom = shared.CertificateCASSLCom

This is an alias to an internal value.

View Source
const CertificateRequestTypeKeylessCertificate = shared.CertificateRequestTypeKeylessCertificate

This is an alias to an internal value.

View Source
const CertificateRequestTypeOriginECC = shared.CertificateRequestTypeOriginECC

This is an alias to an internal value.

View Source
const CertificateRequestTypeOriginRSA = shared.CertificateRequestTypeOriginRSA

This is an alias to an internal value.

View Source
const CloudflareTunnelConfigSrcCloudflare = shared.CloudflareTunnelConfigSrcCloudflare

This is an alias to an internal value.

View Source
const CloudflareTunnelConfigSrcLocal = shared.CloudflareTunnelConfigSrcLocal

This is an alias to an internal value.

View Source
const CloudflareTunnelStatusDegraded = shared.CloudflareTunnelStatusDegraded

This is an alias to an internal value.

View Source
const CloudflareTunnelStatusDown = shared.CloudflareTunnelStatusDown

This is an alias to an internal value.

View Source
const CloudflareTunnelStatusHealthy = shared.CloudflareTunnelStatusHealthy

This is an alias to an internal value.

View Source
const CloudflareTunnelStatusInactive = shared.CloudflareTunnelStatusInactive

This is an alias to an internal value.

View Source
const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI

This is an alias to an internal value.

View Source
const CloudflareTunnelTunTypeCfdTunnel = shared.CloudflareTunnelTunTypeCfdTunnel

This is an alias to an internal value.

View Source
const CloudflareTunnelTunTypeGRE = shared.CloudflareTunnelTunTypeGRE

This is an alias to an internal value.

View Source
const CloudflareTunnelTunTypeIPSec = shared.CloudflareTunnelTunTypeIPSec

This is an alias to an internal value.

View Source
const CloudflareTunnelTunTypeMagic = shared.CloudflareTunnelTunTypeMagic

This is an alias to an internal value.

View Source
const CloudflareTunnelTunTypeWARP = shared.CloudflareTunnelTunTypeWARP

This is an alias to an internal value.

View Source
const CloudflareTunnelTunTypeWARPConnector = shared.CloudflareTunnelTunTypeWARPConnector

This is an alias to an internal value.

View Source
const MemberPoliciesAccessAllow = shared.MemberPoliciesAccessAllow

This is an alias to an internal value.

View Source
const MemberPoliciesAccessDeny = shared.MemberPoliciesAccessDeny

This is an alias to an internal value.

View Source
const MemberStatusAccepted = shared.MemberStatusAccepted

This is an alias to an internal value.

View Source
const MemberStatusPending = shared.MemberStatusPending

This is an alias to an internal value.

View Source
const RatePlanIDBusiness = shared.RatePlanIDBusiness

This is an alias to an internal value.

View Source
const RatePlanIDEnterprise = shared.RatePlanIDEnterprise

This is an alias to an internal value.

View Source
const RatePlanIDFree = shared.RatePlanIDFree

This is an alias to an internal value.

View Source
const RatePlanIDLite = shared.RatePlanIDLite

This is an alias to an internal value.

View Source
const RatePlanIDPartnersBusiness = shared.RatePlanIDPartnersBusiness

This is an alias to an internal value.

View Source
const RatePlanIDPartnersEnterprise = shared.RatePlanIDPartnersEnterprise

This is an alias to an internal value.

View Source
const RatePlanIDPartnersFree = shared.RatePlanIDPartnersFree

This is an alias to an internal value.

View Source
const RatePlanIDPartnersPro = shared.RatePlanIDPartnersPro

This is an alias to an internal value.

View Source
const RatePlanIDPro = shared.RatePlanIDPro

This is an alias to an internal value.

View Source
const RatePlanIDProPlus = shared.RatePlanIDProPlus

This is an alias to an internal value.

View Source
const SortDirectionAsc = shared.SortDirectionAsc

This is an alias to an internal value.

View Source
const SortDirectionDesc = shared.SortDirectionDesc

This is an alias to an internal value.

View Source
const SubscriptionFrequencyMonthly = shared.SubscriptionFrequencyMonthly

This is an alias to an internal value.

View Source
const SubscriptionFrequencyQuarterly = shared.SubscriptionFrequencyQuarterly

This is an alias to an internal value.

View Source
const SubscriptionFrequencyWeekly = shared.SubscriptionFrequencyWeekly

This is an alias to an internal value.

View Source
const SubscriptionFrequencyYearly = shared.SubscriptionFrequencyYearly

This is an alias to an internal value.

View Source
const SubscriptionStateAwaitingPayment = shared.SubscriptionStateAwaitingPayment

This is an alias to an internal value.

View Source
const SubscriptionStateCancelled = shared.SubscriptionStateCancelled

This is an alias to an internal value.

View Source
const SubscriptionStateExpired = shared.SubscriptionStateExpired

This is an alias to an internal value.

View Source
const SubscriptionStateFailed = shared.SubscriptionStateFailed

This is an alias to an internal value.

View Source
const SubscriptionStatePaid = shared.SubscriptionStatePaid

This is an alias to an internal value.

View Source
const SubscriptionStateProvisioned = shared.SubscriptionStateProvisioned

This is an alias to an internal value.

View Source
const SubscriptionStateTrial = shared.SubscriptionStateTrial

This is an alias to an internal value.

View Source
const TokenPolicyEffectAllow = shared.TokenPolicyEffectAllow

This is an alias to an internal value.

View Source
const TokenPolicyEffectDeny = shared.TokenPolicyEffectDeny

This is an alias to an internal value.

View Source
const TokenStatusActive = shared.TokenStatusActive

This is an alias to an internal value.

View Source
const TokenStatusDisabled = shared.TokenStatusDisabled

This is an alias to an internal value.

View Source
const TokenStatusExpired = shared.TokenStatusExpired

This is an alias to an internal value.

Variables

This section is empty.

Functions

This section is empty.

Types

type ASN

type ASN = shared.ASN

This is an alias to an internal type.

type ASNParam

type ASNParam = shared.ASNParam

This is an alias to an internal type.

type AuditLog

type AuditLog = shared.AuditLog

This is an alias to an internal type.

type AuditLogAction

type AuditLogAction = shared.AuditLogAction

This is an alias to an internal type.

type AuditLogActor

type AuditLogActor = shared.AuditLogActor

This is an alias to an internal type.

type AuditLogActorType

type AuditLogActorType = shared.AuditLogActorType

The type of actor, whether a User, Cloudflare Admin, or an Automated System.

This is an alias to an internal type.

type AuditLogOwner

type AuditLogOwner = shared.AuditLogOwner

This is an alias to an internal type.

type AuditLogResource

type AuditLogResource = shared.AuditLogResource

This is an alias to an internal type.

type CertificateCA

type CertificateCA = shared.CertificateCA

The Certificate Authority that will issue the certificate

This is an alias to an internal type.

type CertificateRequestType

type CertificateRequestType = shared.CertificateRequestType

Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), or "keyless-certificate" (for Keyless SSL servers).

This is an alias to an internal type.

type CloudflareTunnel

type CloudflareTunnel = shared.CloudflareTunnel

A Cloudflare Tunnel that connects your origin to Cloudflare's edge.

This is an alias to an internal type.

type CloudflareTunnelConfigSrc

type CloudflareTunnelConfigSrc = shared.CloudflareTunnelConfigSrc

Indicates if this is a locally or remotely configured tunnel. If `local`, manage the tunnel using a YAML file on the origin machine. If `cloudflare`, manage the tunnel on the Zero Trust dashboard.

This is an alias to an internal type.

type CloudflareTunnelConnection

type CloudflareTunnelConnection = shared.CloudflareTunnelConnection

This is an alias to an internal type.

type CloudflareTunnelStatus

type CloudflareTunnelStatus = shared.CloudflareTunnelStatus

The status of the tunnel. Valid values are `inactive` (tunnel has never been run), `degraded` (tunnel is active and able to serve traffic but in an unhealthy state), `healthy` (tunnel is active and able to serve traffic), or `down` (tunnel can not serve traffic as it has no connections to the Cloudflare Edge).

This is an alias to an internal type.

type CloudflareTunnelTunType

type CloudflareTunnelTunType = shared.CloudflareTunnelTunType

The type of tunnel.

This is an alias to an internal type.

type Error

type Error = apierror.Error

type ErrorData

type ErrorData = shared.ErrorData

This is an alias to an internal type.

type ErrorDataSource

type ErrorDataSource = shared.ErrorDataSource

This is an alias to an internal type.

type Member

type Member = shared.Member

This is an alias to an internal type.

type MemberPoliciesAccess

type MemberPoliciesAccess = shared.MemberPoliciesAccess

Allow or deny operations against the resources.

This is an alias to an internal type.

type MemberPoliciesPermissionGroup

type MemberPoliciesPermissionGroup = shared.MemberPoliciesPermissionGroup

A named group of permissions that map to a group of operations against resources.

This is an alias to an internal type.

type MemberPoliciesPermissionGroupsMeta

type MemberPoliciesPermissionGroupsMeta = shared.MemberPoliciesPermissionGroupsMeta

Attributes associated to the permission group.

This is an alias to an internal type.

type MemberPoliciesResourceGroup

type MemberPoliciesResourceGroup = shared.MemberPoliciesResourceGroup

A group of scoped resources.

This is an alias to an internal type.

type MemberPoliciesResourceGroupsMeta

type MemberPoliciesResourceGroupsMeta = shared.MemberPoliciesResourceGroupsMeta

Attributes associated to the resource group.

This is an alias to an internal type.

type MemberPoliciesResourceGroupsScope

type MemberPoliciesResourceGroupsScope = shared.MemberPoliciesResourceGroupsScope

A scope is a combination of scope objects which provides additional context.

This is an alias to an internal type.

type MemberPoliciesResourceGroupsScopeObject

type MemberPoliciesResourceGroupsScopeObject = shared.MemberPoliciesResourceGroupsScopeObject

A scope object represents any resource that can have actions applied against invite.

This is an alias to an internal type.

type MemberPolicy

type MemberPolicy = shared.MemberPolicy

This is an alias to an internal type.

type MemberStatus

type MemberStatus = shared.MemberStatus

A member's status in the account.

This is an alias to an internal type.

type MemberUser

type MemberUser = shared.MemberUser

Details of the user associated to the membership.

This is an alias to an internal type.

type Permission

type Permission = shared.Permission

This is an alias to an internal type.

type PermissionGrant

type PermissionGrant = shared.PermissionGrant

This is an alias to an internal type.

type PermissionGrantParam

type PermissionGrantParam = shared.PermissionGrantParam

This is an alias to an internal type.

type RatePlan

type RatePlan = shared.RatePlan

The rate plan applied to the subscription.

This is an alias to an internal type.

type RatePlanID

type RatePlanID = shared.RatePlanID

The ID of the rate plan.

This is an alias to an internal type.

type RatePlanParam

type RatePlanParam = shared.RatePlanParam

The rate plan applied to the subscription.

This is an alias to an internal type.

type ResponseGetParams

type ResponseGetParams struct {
	// Account ID.
	AccountID param.Field[string] `path:"account_id,required"`
}

type ResponseInfo

type ResponseInfo = shared.ResponseInfo

This is an alias to an internal type.

type ResponseInfoSource

type ResponseInfoSource = shared.ResponseInfoSource

This is an alias to an internal type.

type ResponseService

type ResponseService struct {
	Options []option.RequestOption
}

ResponseService contains methods and other services that help with interacting with the cloudflare API.

Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewResponseService method instead.

func NewResponseService

func NewResponseService(opts ...option.RequestOption) (r *ResponseService)

NewResponseService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.

func (*ResponseService) Get

func (r *ResponseService) Get(ctx context.Context, responseID string, query ResponseGetParams, opts ...option.RequestOption) (res *string, err error)

Returns the raw response of the network request. Find the `response_id` in the `data.requests.response.hash`.

type Role

type Role = shared.Role

This is an alias to an internal type.

type RoleParam

type RoleParam = shared.RoleParam

This is an alias to an internal type.

type RolePermissions

type RolePermissions = shared.RolePermissions

This is an alias to an internal type.

type RolePermissionsParam

type RolePermissionsParam = shared.RolePermissionsParam

This is an alias to an internal type.

type ScanBulkNewParams

type ScanBulkNewParams struct {
	// Account ID.
	AccountID param.Field[string] `path:"account_id,required"`
	// List of urls to scan (up to a 100).
	Body []ScanBulkNewParamsBody `json:"body"`
}

func (ScanBulkNewParams) MarshalJSON

func (r ScanBulkNewParams) MarshalJSON() (data []byte, err error)

type ScanBulkNewParamsBody

type ScanBulkNewParamsBody struct {
	URL         param.Field[string] `json:"url,required"`
	Customagent param.Field[string] `json:"customagent"`
	// Set custom headers.
	CustomHeaders param.Field[map[string]string] `json:"customHeaders"`
	Referer       param.Field[string]            `json:"referer"`
	// Take multiple screenshots targeting different device types.
	ScreenshotsResolutions param.Field[[]ScanBulkNewParamsBodyScreenshotsResolution] `json:"screenshotsResolutions"`
	// The option `Public` means it will be included in listings like recent scans and
	// search results. `Unlisted` means it will not be included in the aforementioned
	// listings, users will need to have the scan's ID to access it. A a scan will be
	// automatically marked as unlisted if it fails, if it contains potential PII or
	// other sensitive material.
	Visibility param.Field[ScanBulkNewParamsBodyVisibility] `json:"visibility"`
}

func (ScanBulkNewParamsBody) MarshalJSON

func (r ScanBulkNewParamsBody) MarshalJSON() (data []byte, err error)

type ScanBulkNewParamsBodyScreenshotsResolution

type ScanBulkNewParamsBodyScreenshotsResolution string

Device resolutions.

const (
	ScanBulkNewParamsBodyScreenshotsResolutionDesktop ScanBulkNewParamsBodyScreenshotsResolution = "desktop"
	ScanBulkNewParamsBodyScreenshotsResolutionMobile  ScanBulkNewParamsBodyScreenshotsResolution = "mobile"
	ScanBulkNewParamsBodyScreenshotsResolutionTablet  ScanBulkNewParamsBodyScreenshotsResolution = "tablet"
)

func (ScanBulkNewParamsBodyScreenshotsResolution) IsKnown

type ScanBulkNewParamsBodyVisibility

type ScanBulkNewParamsBodyVisibility string

The option `Public` means it will be included in listings like recent scans and search results. `Unlisted` means it will not be included in the aforementioned listings, users will need to have the scan's ID to access it. A a scan will be automatically marked as unlisted if it fails, if it contains potential PII or other sensitive material.

const (
	ScanBulkNewParamsBodyVisibilityPublic   ScanBulkNewParamsBodyVisibility = "Public"
	ScanBulkNewParamsBodyVisibilityUnlisted ScanBulkNewParamsBodyVisibility = "Unlisted"
)

func (ScanBulkNewParamsBodyVisibility) IsKnown

type ScanBulkNewResponse

type ScanBulkNewResponse struct {
	// URL to api report.
	API string `json:"api,required"`
	// URL to report.
	Result string `json:"result,required"`
	// Submitted URL
	URL string `json:"url,required"`
	// Scan ID.
	UUID string `json:"uuid,required" format:"uuid"`
	// Submitted visibility status.
	Visibility ScanBulkNewResponseVisibility `json:"visibility,required"`
	Options    ScanBulkNewResponseOptions    `json:"options"`
	JSON       scanBulkNewResponseJSON       `json:"-"`
}

func (*ScanBulkNewResponse) UnmarshalJSON

func (r *ScanBulkNewResponse) UnmarshalJSON(data []byte) (err error)

type ScanBulkNewResponseOptions

type ScanBulkNewResponseOptions struct {
	Useragent string                         `json:"useragent"`
	JSON      scanBulkNewResponseOptionsJSON `json:"-"`
}

func (*ScanBulkNewResponseOptions) UnmarshalJSON

func (r *ScanBulkNewResponseOptions) UnmarshalJSON(data []byte) (err error)

type ScanBulkNewResponseVisibility

type ScanBulkNewResponseVisibility string

Submitted visibility status.

const (
	ScanBulkNewResponseVisibilityPublic   ScanBulkNewResponseVisibility = "public"
	ScanBulkNewResponseVisibilityUnlisted ScanBulkNewResponseVisibility = "unlisted"
)

func (ScanBulkNewResponseVisibility) IsKnown

func (r ScanBulkNewResponseVisibility) IsKnown() bool

type ScanDOMParams

type ScanDOMParams struct {
	// Account ID.
	AccountID param.Field[string] `path:"account_id,required"`
}

type ScanGetParams

type ScanGetParams struct {
	// Account ID.
	AccountID param.Field[string] `path:"account_id,required"`
}

type ScanGetResponse

type ScanGetResponse struct {
	Data     ScanGetResponseData     `json:"data,required"`
	Lists    ScanGetResponseLists    `json:"lists,required"`
	Meta     ScanGetResponseMeta     `json:"meta,required"`
	Page     ScanGetResponsePage     `json:"page,required"`
	Scanner  ScanGetResponseScanner  `json:"scanner,required"`
	Stats    ScanGetResponseStats    `json:"stats,required"`
	Task     ScanGetResponseTask     `json:"task,required"`
	Verdicts ScanGetResponseVerdicts `json:"verdicts,required"`
	JSON     scanGetResponseJSON     `json:"-"`
}

func (*ScanGetResponse) UnmarshalJSON

func (r *ScanGetResponse) UnmarshalJSON(data []byte) (err error)

type ScanGetResponseData

type ScanGetResponseData struct {
	Console     []ScanGetResponseDataConsole     `json:"console,required"`
	Cookies     []ScanGetResponseDataCookie      `json:"cookies,required"`
	Globals     []ScanGetResponseDataGlobal      `json:"globals,required"`
	Links       []ScanGetResponseDataLink        `json:"links,required"`
	Performance []ScanGetResponseDataPerformance `json:"performance,required"`
	Requests    []ScanGetResponseDataRequest     `json:"requests,required"`
	JSON        scanGetResponseDataJSON          `json:"-"`
}

func (*ScanGetResponseData) UnmarshalJSON

func (r *ScanGetResponseData) UnmarshalJSON(data []byte) (err error)

type ScanGetResponseDataConsole

type ScanGetResponseDataConsole struct {
	Message ScanGetResponseDataConsoleMessage `json:"message,required"`
	JSON    scanGetResponseDataConsoleJSON    `json:"-"`
}

func (*ScanGetResponseDataConsole) UnmarshalJSON

func (r *ScanGetResponseDataConsole) UnmarshalJSON(data []byte) (err error)

type ScanGetResponseDataConsoleMessage

type ScanGetResponseDataConsoleMessage struct {
	Level  string                                `json:"level,required"`
	Source string                                `json:"source,required"`
	Text   string                                `json:"text,required"`
	URL    string                                `json:"url,required"`
	JSON   scanGetResponseDataConsoleMessageJSON `json:"-"`
}

func (*ScanGetResponseDataConsoleMessage) UnmarshalJSON

func (r *ScanGetResponseDataConsoleMessage) UnmarshalJSON(data []byte) (err error)

type ScanGetResponseDataCookie

type ScanGetResponseDataCookie struct {
	Domain       string                        `json:"domain,required"`
	Expires      float64                       `json:"expires,required"`
	HTTPOnly     bool                          `json:"httpOnly,required"`
	Name         string                        `json:"name,required"`
	Path         string                        `json:"path,required"`
	Priority     string                        `json:"priority,required"`
	SameParty    bool                          `json:"sameParty,required"`
	Secure       bool                          `json:"secure,required"`
	Session      bool                          `json:"session,required"`
	Size         float64                       `json:"size,required"`
	SourcePort   float64                       `json:"sourcePort,required"`
	SourceScheme string                        `json:"sourceScheme,required"`
	Value        string                        `json:"value,required"`
	JSON         scanGetResponseDataCookieJSON `json:"-"`
}

func (*ScanGetResponseDataCookie) UnmarshalJSON

func (r *ScanGetResponseDataCookie) UnmarshalJSON(data []byte) (err error)

type ScanGetResponseDataGlobal

type ScanGetResponseDataGlobal struct {
	Prop string                        `json:"prop,required"`
	Type string                        `json:"type,required"`
	JSON scanGetResponseDataGlobalJSON `json:"-"`
}

func (*ScanGetResponseDataGlobal) UnmarshalJSON

func (r *ScanGetResponseDataGlobal) UnmarshalJSON(data []byte) (err error)
type ScanGetResponseDataLink struct {
	Href string                      `json:"href,required"`
	Text string                      `json:"text,required"`
	JSON scanGetResponseDataLinkJSON `json:"-"`
}

func (*ScanGetResponseDataLink) UnmarshalJSON

func (r *ScanGetResponseDataLink) UnmarshalJSON(data []byte) (err error)

type ScanGetResponseDataPerformance

type ScanGetResponseDataPerformance struct {
	Duration  float64                            `json:"duration,required"`
	EntryType string                             `json:"entryType,required"`
	Name      string                             `json:"name,required"`
	StartTime float64                            `json:"startTime,required"`
	JSON      scanGetResponseDataPerformanceJSON `json:"-"`
}

func (*ScanGetResponseDataPerformance) UnmarshalJSON

func (r *ScanGetResponseDataPerformance) UnmarshalJSON(data []byte) (err error)

type ScanGetResponseDataRequest

type ScanGetResponseDataRequest struct {
	Request  ScanGetResponseDataRequestsRequest   `json:"request,required"`
	Response ScanGetResponseDataRequestsResponse  `json:"response,required"`
	Requests []ScanGetResponseDataRequestsRequest `json:"requests"`
	JSON     scanGetResponseDataRequestJSON       `json:"-"`
}

func (*ScanGetResponseDataRequest) UnmarshalJSON

func (r *ScanGetResponseDataRequest) UnmarshalJSON(data []byte) (err error)

type ScanGetResponseDataRequestsRequest

type ScanGetResponseDataRequestsRequest struct {
	DocumentURL          string                                             `json:"documentURL,required"`
	HasUserGesture       bool                                               `json:"hasUserGesture,required"`
	Initiator            ScanGetResponseDataRequestsRequestInitiator        `json:"initiator,required"`
	RedirectHasExtraInfo bool                                               `json:"redirectHasExtraInfo,required"`
	Request              ScanGetResponseDataRequestsRequestRequest          `json:"request,required"`
	RequestID            string                                             `json:"requestId,required"`
	Type                 string                                             `json:"type,required"`
	WallTime             float64                                            `json:"wallTime,required"`
	FrameID              string                                             `json:"frameId"`
	LoaderID             string                                             `json:"loaderId"`
	PrimaryRequest       bool                                               `json:"primaryRequest"`
	RedirectResponse     ScanGetResponseDataRequestsRequestRedirectResponse `json:"redirectResponse"`
	JSON                 scanGetResponseDataRequestsRequestJSON             `json:"-"`
}

func (*ScanGetResponseDataRequestsRequest) UnmarshalJSON

func (r *ScanGetResponseDataRequestsRequest) UnmarshalJSON(data []byte) (err error)

type ScanGetResponseDataRequestsRequestInitiator

type ScanGetResponseDataRequestsRequestInitiator struct {
	Host string                                          `json:"host,required"`
	Type string                                          `json:"type,required"`
	URL  string                                          `json:"url,required"`
	JSON scanGetResponseDataRequestsRequestInitiatorJSON `json:"-"`
}

func (*ScanGetResponseDataRequestsRequestInitiator) UnmarshalJSON

func (r *ScanGetResponseDataRequestsRequestInitiator) UnmarshalJSON(data []byte) (err error)

type ScanGetResponseDataRequestsRequestRedirectResponse

type ScanGetResponseDataRequestsRequestRedirectResponse struct {
	Charset         string                                                             `json:"charset,required"`
	MimeType        string                                                             `json:"mimeType,required"`
	Protocol        string                                                             `json:"protocol,required"`
	RemoteIPAddress string                                                             `json:"remoteIPAddress,required"`
	RemotePort      float64                                                            `json:"remotePort,required"`
	SecurityHeaders []ScanGetResponseDataRequestsRequestRedirectResponseSecurityHeader `json:"securityHeaders,required"`
	SecurityState   string                                                             `json:"securityState,required"`
	Status          float64                                                            `json:"status,required"`
	StatusText      string                                                             `json:"statusText,required"`
	URL             string                                                             `json:"url,required"`
	Headers         interface{}                                                        `json:"headers"`
	JSON            scanGetResponseDataRequestsRequestRedirectResponseJSON             `json:"-"`
}

func (*ScanGetResponseDataRequestsRequestRedirectResponse) UnmarshalJSON

func (r *ScanGetResponseDataRequestsRequestRedirectResponse) UnmarshalJSON(data []byte) (err error)

type ScanGetResponseDataRequestsRequestRedirectResponseSecurityHeader

type ScanGetResponseDataRequestsRequestRedirectResponseSecurityHeader struct {
	Name  string                                                               `json:"name,required"`
	Value string                                                               `json:"value,required"`
	JSON  scanGetResponseDataRequestsRequestRedirectResponseSecurityHeaderJSON `json:"-"`
}

func (*ScanGetResponseDataRequestsRequestRedirectResponseSecurityHeader) UnmarshalJSON

type ScanGetResponseDataRequestsRequestRequest

type ScanGetResponseDataRequestsRequestRequest struct {
	InitialPriority  string                                        `json:"initialPriority,required"`
	IsSameSite       bool                                          `json:"isSameSite,required"`
	Method           string                                        `json:"method,required"`
	MixedContentType string                                        `json:"mixedContentType,required"`
	ReferrerPolicy   string                                        `json:"referrerPolicy,required"`
	URL              string                                        `json:"url,required"`
	Headers          interface{}                                   `json:"headers"`
	JSON             scanGetResponseDataRequestsRequestRequestJSON `json:"-"`
}

func (*ScanGetResponseDataRequestsRequestRequest) UnmarshalJSON

func (r *ScanGetResponseDataRequestsRequestRequest) UnmarshalJSON(data []byte) (err error)

type ScanGetResponseDataRequestsResponse

type ScanGetResponseDataRequestsResponse struct {
	ASN               ScanGetResponseDataRequestsResponseASN      `json:"asn,required"`
	DataLength        float64                                     `json:"dataLength,required"`
	EncodedDataLength float64                                     `json:"encodedDataLength,required"`
	Geoip             ScanGetResponseDataRequestsResponseGeoip    `json:"geoip,required"`
	HasExtraInfo      bool                                        `json:"hasExtraInfo,required"`
	RequestID         string                                      `json:"requestId,required"`
	Response          ScanGetResponseDataRequestsResponseResponse `json:"response,required"`
	Size              float64                                     `json:"size,required"`
	Type              string                                      `json:"type,required"`
	ContentAvailable  bool                                        `json:"contentAvailable"`
	Hash              string                                      `json:"hash"`
	JSON              scanGetResponseDataRequestsResponseJSON     `json:"-"`
}

func (*ScanGetResponseDataRequestsResponse) UnmarshalJSON

func (r *ScanGetResponseDataRequestsResponse) UnmarshalJSON(data []byte) (err error)

type ScanGetResponseDataRequestsResponseASN

type ScanGetResponseDataRequestsResponseASN struct {
	ASN         string                                     `json:"asn,required"`
	Country     string                                     `json:"country,required"`
	Description string                                     `json:"description,required"`
	IP          string                                     `json:"ip,required"`
	Name        string                                     `json:"name,required"`
	Org         string                                     `json:"org,required"`
	JSON        scanGetResponseDataRequestsResponseASNJSON `json:"-"`
}

func (*ScanGetResponseDataRequestsResponseASN) UnmarshalJSON

func (r *ScanGetResponseDataRequestsResponseASN) UnmarshalJSON(data []byte) (err error)

type ScanGetResponseDataRequestsResponseGeoip

type ScanGetResponseDataRequestsResponseGeoip struct {
	City        string                                       `json:"city,required"`
	Country     string                                       `json:"country,required"`
	CountryName string                                       `json:"country_name,required"`
	GeonameID   string                                       `json:"geonameId,required"`
	Ll          []float64                                    `json:"ll,required"`
	Region      string                                       `json:"region,required"`
	JSON        scanGetResponseDataRequestsResponseGeoipJSON `json:"-"`
}

func (*ScanGetResponseDataRequestsResponseGeoip) UnmarshalJSON

func (r *ScanGetResponseDataRequestsResponseGeoip) UnmarshalJSON(data []byte) (err error)

type ScanGetResponseDataRequestsResponseResponse

type ScanGetResponseDataRequestsResponseResponse struct {
	Charset         string                                                      `json:"charset,required"`
	MimeType        string                                                      `json:"mimeType,required"`
	Protocol        string                                                      `json:"protocol,required"`
	RemoteIPAddress string                                                      `json:"remoteIPAddress,required"`
	RemotePort      float64                                                     `json:"remotePort,required"`
	SecurityDetails ScanGetResponseDataRequestsResponseResponseSecurityDetails  `json:"securityDetails,required"`
	SecurityHeaders []ScanGetResponseDataRequestsResponseResponseSecurityHeader `json:"securityHeaders,required"`
	SecurityState   string                                                      `json:"securityState,required"`
	Status          float64                                                     `json:"status,required"`
	StatusText      string                                                      `json:"statusText,required"`
	URL             string                                                      `json:"url,required"`
	Headers         interface{}                                                 `json:"headers"`
	JSON            scanGetResponseDataRequestsResponseResponseJSON             `json:"-"`
}

func (*ScanGetResponseDataRequestsResponseResponse) UnmarshalJSON

func (r *ScanGetResponseDataRequestsResponseResponse) UnmarshalJSON(data []byte) (err error)

type ScanGetResponseDataRequestsResponseResponseSecurityDetails

type ScanGetResponseDataRequestsResponseResponseSecurityDetails struct {
	CertificateID                     float64                                                        `json:"certificateId,required"`
	CertificateTransparencyCompliance string                                                         `json:"certificateTransparencyCompliance,required"`
	Cipher                            string                                                         `json:"cipher,required"`
	EncryptedClientHello              bool                                                           `json:"encryptedClientHello,required"`
	Issuer                            string                                                         `json:"issuer,required"`
	KeyExchange                       string                                                         `json:"keyExchange,required"`
	KeyExchangeGroup                  string                                                         `json:"keyExchangeGroup,required"`
	Protocol                          string                                                         `json:"protocol,required"`
	SanList                           []string                                                       `json:"sanList,required"`
	ServerSignatureAlgorithm          float64                                                        `json:"serverSignatureAlgorithm,required"`
	SubjectName                       string                                                         `json:"subjectName,required"`
	ValidFrom                         float64                                                        `json:"validFrom,required"`
	ValidTo                           float64                                                        `json:"validTo,required"`
	JSON                              scanGetResponseDataRequestsResponseResponseSecurityDetailsJSON `json:"-"`
}

func (*ScanGetResponseDataRequestsResponseResponseSecurityDetails) UnmarshalJSON

type ScanGetResponseDataRequestsResponseResponseSecurityHeader

type ScanGetResponseDataRequestsResponseResponseSecurityHeader struct {
	Name  string                                                        `json:"name,required"`
	Value string                                                        `json:"value,required"`
	JSON  scanGetResponseDataRequestsResponseResponseSecurityHeaderJSON `json:"-"`
}

func (*ScanGetResponseDataRequestsResponseResponseSecurityHeader) UnmarshalJSON

type ScanGetResponseLists

type ScanGetResponseLists struct {
	ASNs         []string                          `json:"asns,required"`
	Certificates []ScanGetResponseListsCertificate `json:"certificates,required"`
	Continents   []string                          `json:"continents,required"`
	Countries    []string                          `json:"countries,required"`
	Domains      []string                          `json:"domains,required"`
	Hashes       []string                          `json:"hashes,required"`
	IPs          []string                          `json:"ips,required"`
	LinkDomains  []string                          `json:"linkDomains,required"`
	Servers      []string                          `json:"servers,required"`
	URLs         []string                          `json:"urls,required"`
	JSON         scanGetResponseListsJSON          `json:"-"`
}

func (*ScanGetResponseLists) UnmarshalJSON

func (r *ScanGetResponseLists) UnmarshalJSON(data []byte) (err error)

type ScanGetResponseListsCertificate

type ScanGetResponseListsCertificate struct {
	Issuer      string                              `json:"issuer,required"`
	SubjectName string                              `json:"subjectName,required"`
	ValidFrom   float64                             `json:"validFrom,required"`
	ValidTo     float64                             `json:"validTo,required"`
	JSON        scanGetResponseListsCertificateJSON `json:"-"`
}

func (*ScanGetResponseListsCertificate) UnmarshalJSON

func (r *ScanGetResponseListsCertificate) UnmarshalJSON(data []byte) (err error)

type ScanGetResponseMeta

type ScanGetResponseMeta struct {
	Processors ScanGetResponseMetaProcessors `json:"processors,required"`
	JSON       scanGetResponseMetaJSON       `json:"-"`
}

func (*ScanGetResponseMeta) UnmarshalJSON

func (r *ScanGetResponseMeta) UnmarshalJSON(data []byte) (err error)

type ScanGetResponseMetaProcessors

type ScanGetResponseMetaProcessors struct {
	ASN              ScanGetResponseMetaProcessorsASN              `json:"asn,required"`
	DNS              ScanGetResponseMetaProcessorsDNS              `json:"dns,required"`
	DomainCategories ScanGetResponseMetaProcessorsDomainCategories `json:"domainCategories,required"`
	Geoip            ScanGetResponseMetaProcessorsGeoip            `json:"geoip,required"`
	Phishing         ScanGetResponseMetaProcessorsPhishing         `json:"phishing,required"`
	RadarRank        ScanGetResponseMetaProcessorsRadarRank        `json:"radarRank,required"`
	Wappa            ScanGetResponseMetaProcessorsWappa            `json:"wappa,required"`
	URLCategories    ScanGetResponseMetaProcessorsURLCategories    `json:"urlCategories"`
	JSON             scanGetResponseMetaProcessorsJSON             `json:"-"`
}

func (*ScanGetResponseMetaProcessors) UnmarshalJSON

func (r *ScanGetResponseMetaProcessors) UnmarshalJSON(data []byte) (err error)

type ScanGetResponseMetaProcessorsASN

type ScanGetResponseMetaProcessorsASN struct {
	Data []ScanGetResponseMetaProcessorsASNData `json:"data,required"`
	JSON scanGetResponseMetaProcessorsASNJSON   `json:"-"`
}

func (*ScanGetResponseMetaProcessorsASN) UnmarshalJSON

func (r *ScanGetResponseMetaProcessorsASN) UnmarshalJSON(data []byte) (err error)

type ScanGetResponseMetaProcessorsASNData

type ScanGetResponseMetaProcessorsASNData struct {
	ASN         string                                   `json:"asn,required"`
	Country     string                                   `json:"country,required"`
	Description string                                   `json:"description,required"`
	IP          string                                   `json:"ip,required"`
	Name        string                                   `json:"name,required"`
	JSON        scanGetResponseMetaProcessorsASNDataJSON `json:"-"`
}

func (*ScanGetResponseMetaProcessorsASNData) UnmarshalJSON

func (r *ScanGetResponseMetaProcessorsASNData) UnmarshalJSON(data []byte) (err error)

type ScanGetResponseMetaProcessorsDNS

type ScanGetResponseMetaProcessorsDNS struct {
	Data []ScanGetResponseMetaProcessorsDNSData `json:"data,required"`
	JSON scanGetResponseMetaProcessorsDNSJSON   `json:"-"`
}

func (*ScanGetResponseMetaProcessorsDNS) UnmarshalJSON

func (r *ScanGetResponseMetaProcessorsDNS) UnmarshalJSON(data []byte) (err error)

type ScanGetResponseMetaProcessorsDNSData

type ScanGetResponseMetaProcessorsDNSData struct {
	Address     string                                   `json:"address,required"`
	DNSSECValid bool                                     `json:"dnssec_valid,required"`
	Name        string                                   `json:"name,required"`
	Type        string                                   `json:"type,required"`
	JSON        scanGetResponseMetaProcessorsDNSDataJSON `json:"-"`
}

func (*ScanGetResponseMetaProcessorsDNSData) UnmarshalJSON

func (r *ScanGetResponseMetaProcessorsDNSData) UnmarshalJSON(data []byte) (err error)

type ScanGetResponseMetaProcessorsDomainCategories

type ScanGetResponseMetaProcessorsDomainCategories struct {
	Data []ScanGetResponseMetaProcessorsDomainCategoriesData `json:"data,required"`
	JSON scanGetResponseMetaProcessorsDomainCategoriesJSON   `json:"-"`
}

func (*ScanGetResponseMetaProcessorsDomainCategories) UnmarshalJSON

func (r *ScanGetResponseMetaProcessorsDomainCategories) UnmarshalJSON(data []byte) (err error)

type ScanGetResponseMetaProcessorsDomainCategoriesData

type ScanGetResponseMetaProcessorsDomainCategoriesData struct {
	Inherited interface{}                                           `json:"inherited,required"`
	IsPrimary bool                                                  `json:"isPrimary,required"`
	Name      string                                                `json:"name,required"`
	JSON      scanGetResponseMetaProcessorsDomainCategoriesDataJSON `json:"-"`
}

func (*ScanGetResponseMetaProcessorsDomainCategoriesData) UnmarshalJSON

func (r *ScanGetResponseMetaProcessorsDomainCategoriesData) UnmarshalJSON(data []byte) (err error)

type ScanGetResponseMetaProcessorsGeoip

type ScanGetResponseMetaProcessorsGeoip struct {
	Data []ScanGetResponseMetaProcessorsGeoipData `json:"data,required"`
	JSON scanGetResponseMetaProcessorsGeoipJSON   `json:"-"`
}

func (*ScanGetResponseMetaProcessorsGeoip) UnmarshalJSON

func (r *ScanGetResponseMetaProcessorsGeoip) UnmarshalJSON(data []byte) (err error)

type ScanGetResponseMetaProcessorsGeoipData

type ScanGetResponseMetaProcessorsGeoipData struct {
	Geoip ScanGetResponseMetaProcessorsGeoipDataGeoip `json:"geoip,required"`
	IP    string                                      `json:"ip,required"`
	JSON  scanGetResponseMetaProcessorsGeoipDataJSON  `json:"-"`
}

func (*ScanGetResponseMetaProcessorsGeoipData) UnmarshalJSON

func (r *ScanGetResponseMetaProcessorsGeoipData) UnmarshalJSON(data []byte) (err error)

type ScanGetResponseMetaProcessorsGeoipDataGeoip

type ScanGetResponseMetaProcessorsGeoipDataGeoip struct {
	City        string                                          `json:"city,required"`
	Country     string                                          `json:"country,required"`
	CountryName string                                          `json:"country_name,required"`
	Ll          []float64                                       `json:"ll,required"`
	Region      string                                          `json:"region,required"`
	JSON        scanGetResponseMetaProcessorsGeoipDataGeoipJSON `json:"-"`
}

func (*ScanGetResponseMetaProcessorsGeoipDataGeoip) UnmarshalJSON

func (r *ScanGetResponseMetaProcessorsGeoipDataGeoip) UnmarshalJSON(data []byte) (err error)

type ScanGetResponseMetaProcessorsPhishing

type ScanGetResponseMetaProcessorsPhishing struct {
	Data []string                                  `json:"data,required"`
	JSON scanGetResponseMetaProcessorsPhishingJSON `json:"-"`
}

func (*ScanGetResponseMetaProcessorsPhishing) UnmarshalJSON

func (r *ScanGetResponseMetaProcessorsPhishing) UnmarshalJSON(data []byte) (err error)

type ScanGetResponseMetaProcessorsRadarRank

type ScanGetResponseMetaProcessorsRadarRank struct {
	Data []ScanGetResponseMetaProcessorsRadarRankData `json:"data,required"`
	JSON scanGetResponseMetaProcessorsRadarRankJSON   `json:"-"`
}

func (*ScanGetResponseMetaProcessorsRadarRank) UnmarshalJSON

func (r *ScanGetResponseMetaProcessorsRadarRank) UnmarshalJSON(data []byte) (err error)

type ScanGetResponseMetaProcessorsRadarRankData

type ScanGetResponseMetaProcessorsRadarRankData struct {
	Bucket   string                                         `json:"bucket,required"`
	Hostname string                                         `json:"hostname,required"`
	Rank     float64                                        `json:"rank"`
	JSON     scanGetResponseMetaProcessorsRadarRankDataJSON `json:"-"`
}

func (*ScanGetResponseMetaProcessorsRadarRankData) UnmarshalJSON

func (r *ScanGetResponseMetaProcessorsRadarRankData) UnmarshalJSON(data []byte) (err error)

type ScanGetResponseMetaProcessorsURLCategories

type ScanGetResponseMetaProcessorsURLCategories struct {
	Data []ScanGetResponseMetaProcessorsURLCategoriesData `json:"data,required"`
	JSON scanGetResponseMetaProcessorsURLCategoriesJSON   `json:"-"`
}

func (*ScanGetResponseMetaProcessorsURLCategories) UnmarshalJSON

func (r *ScanGetResponseMetaProcessorsURLCategories) UnmarshalJSON(data []byte) (err error)

type ScanGetResponseMetaProcessorsURLCategoriesData

type ScanGetResponseMetaProcessorsURLCategoriesData struct {
	Content   []ScanGetResponseMetaProcessorsURLCategoriesDataContent `json:"content,required"`
	Inherited ScanGetResponseMetaProcessorsURLCategoriesDataInherited `json:"inherited,required"`
	Name      string                                                  `json:"name,required"`
	Risks     []ScanGetResponseMetaProcessorsURLCategoriesDataRisk    `json:"risks,required"`
	JSON      scanGetResponseMetaProcessorsURLCategoriesDataJSON      `json:"-"`
}

func (*ScanGetResponseMetaProcessorsURLCategoriesData) UnmarshalJSON

func (r *ScanGetResponseMetaProcessorsURLCategoriesData) UnmarshalJSON(data []byte) (err error)

type ScanGetResponseMetaProcessorsURLCategoriesDataContent

type ScanGetResponseMetaProcessorsURLCategoriesDataContent struct {
	ID              float64                                                   `json:"id,required"`
	Name            string                                                    `json:"name,required"`
	SuperCategoryID float64                                                   `json:"super_category_id,required"`
	JSON            scanGetResponseMetaProcessorsURLCategoriesDataContentJSON `json:"-"`
}

func (*ScanGetResponseMetaProcessorsURLCategoriesDataContent) UnmarshalJSON

func (r *ScanGetResponseMetaProcessorsURLCategoriesDataContent) UnmarshalJSON(data []byte) (err error)

type ScanGetResponseMetaProcessorsURLCategoriesDataInherited

type ScanGetResponseMetaProcessorsURLCategoriesDataInherited struct {
	Content []ScanGetResponseMetaProcessorsURLCategoriesDataInheritedContent `json:"content,required"`
	From    string                                                           `json:"from,required"`
	Risks   []ScanGetResponseMetaProcessorsURLCategoriesDataInheritedRisk    `json:"risks,required"`
	JSON    scanGetResponseMetaProcessorsURLCategoriesDataInheritedJSON      `json:"-"`
}

func (*ScanGetResponseMetaProcessorsURLCategoriesDataInherited) UnmarshalJSON

type ScanGetResponseMetaProcessorsURLCategoriesDataInheritedContent

type ScanGetResponseMetaProcessorsURLCategoriesDataInheritedContent struct {
	ID              float64                                                            `json:"id,required"`
	Name            string                                                             `json:"name,required"`
	SuperCategoryID float64                                                            `json:"super_category_id,required"`
	JSON            scanGetResponseMetaProcessorsURLCategoriesDataInheritedContentJSON `json:"-"`
}

func (*ScanGetResponseMetaProcessorsURLCategoriesDataInheritedContent) UnmarshalJSON

type ScanGetResponseMetaProcessorsURLCategoriesDataInheritedRisk

type ScanGetResponseMetaProcessorsURLCategoriesDataInheritedRisk struct {
	ID              float64                                                         `json:"id,required"`
	Name            string                                                          `json:"name,required"`
	SuperCategoryID float64                                                         `json:"super_category_id,required"`
	JSON            scanGetResponseMetaProcessorsURLCategoriesDataInheritedRiskJSON `json:"-"`
}

func (*ScanGetResponseMetaProcessorsURLCategoriesDataInheritedRisk) UnmarshalJSON

type ScanGetResponseMetaProcessorsURLCategoriesDataRisk

type ScanGetResponseMetaProcessorsURLCategoriesDataRisk struct {
	ID              float64                                                `json:"id,required"`
	Name            string                                                 `json:"name,required"`
	SuperCategoryID float64                                                `json:"super_category_id,required"`
	JSON            scanGetResponseMetaProcessorsURLCategoriesDataRiskJSON `json:"-"`
}

func (*ScanGetResponseMetaProcessorsURLCategoriesDataRisk) UnmarshalJSON

func (r *ScanGetResponseMetaProcessorsURLCategoriesDataRisk) UnmarshalJSON(data []byte) (err error)

type ScanGetResponseMetaProcessorsWappa

type ScanGetResponseMetaProcessorsWappa struct {
	Data []ScanGetResponseMetaProcessorsWappaData `json:"data,required"`
	JSON scanGetResponseMetaProcessorsWappaJSON   `json:"-"`
}

func (*ScanGetResponseMetaProcessorsWappa) UnmarshalJSON

func (r *ScanGetResponseMetaProcessorsWappa) UnmarshalJSON(data []byte) (err error)

type ScanGetResponseMetaProcessorsWappaData

type ScanGetResponseMetaProcessorsWappaData struct {
	App             string                                             `json:"app,required"`
	Categories      []ScanGetResponseMetaProcessorsWappaDataCategory   `json:"categories,required"`
	Confidence      []ScanGetResponseMetaProcessorsWappaDataConfidence `json:"confidence,required"`
	ConfidenceTotal float64                                            `json:"confidenceTotal,required"`
	Icon            string                                             `json:"icon,required"`
	Website         string                                             `json:"website,required"`
	JSON            scanGetResponseMetaProcessorsWappaDataJSON         `json:"-"`
}

func (*ScanGetResponseMetaProcessorsWappaData) UnmarshalJSON

func (r *ScanGetResponseMetaProcessorsWappaData) UnmarshalJSON(data []byte) (err error)

type ScanGetResponseMetaProcessorsWappaDataCategory

type ScanGetResponseMetaProcessorsWappaDataCategory struct {
	Name     string                                             `json:"name,required"`
	Priority float64                                            `json:"priority,required"`
	JSON     scanGetResponseMetaProcessorsWappaDataCategoryJSON `json:"-"`
}

func (*ScanGetResponseMetaProcessorsWappaDataCategory) UnmarshalJSON

func (r *ScanGetResponseMetaProcessorsWappaDataCategory) UnmarshalJSON(data []byte) (err error)

type ScanGetResponseMetaProcessorsWappaDataConfidence

type ScanGetResponseMetaProcessorsWappaDataConfidence struct {
	Confidence  float64                                              `json:"confidence,required"`
	Name        string                                               `json:"name,required"`
	Pattern     string                                               `json:"pattern,required"`
	PatternType string                                               `json:"patternType,required"`
	JSON        scanGetResponseMetaProcessorsWappaDataConfidenceJSON `json:"-"`
}

func (*ScanGetResponseMetaProcessorsWappaDataConfidence) UnmarshalJSON

func (r *ScanGetResponseMetaProcessorsWappaDataConfidence) UnmarshalJSON(data []byte) (err error)

type ScanGetResponsePage

type ScanGetResponsePage struct {
	ApexDomain   string                        `json:"apexDomain,required"`
	ASN          string                        `json:"asn,required"`
	Asnname      string                        `json:"asnname,required"`
	City         string                        `json:"city,required"`
	Country      string                        `json:"country,required"`
	Domain       string                        `json:"domain,required"`
	IP           string                        `json:"ip,required"`
	MimeType     string                        `json:"mimeType,required"`
	Server       string                        `json:"server,required"`
	Status       string                        `json:"status,required"`
	Title        string                        `json:"title,required"`
	TLSAgeDays   float64                       `json:"tlsAgeDays,required"`
	TLSIssuer    string                        `json:"tlsIssuer,required"`
	TLSValidDays float64                       `json:"tlsValidDays,required"`
	TLSValidFrom string                        `json:"tlsValidFrom,required"`
	URL          string                        `json:"url,required"`
	Screenshot   ScanGetResponsePageScreenshot `json:"screenshot"`
	JSON         scanGetResponsePageJSON       `json:"-"`
}

func (*ScanGetResponsePage) UnmarshalJSON

func (r *ScanGetResponsePage) UnmarshalJSON(data []byte) (err error)

type ScanGetResponsePageScreenshot

type ScanGetResponsePageScreenshot struct {
	Dhash   string                            `json:"dhash,required"`
	Mm3Hash float64                           `json:"mm3Hash,required"`
	Name    string                            `json:"name,required"`
	Phash   string                            `json:"phash,required"`
	JSON    scanGetResponsePageScreenshotJSON `json:"-"`
}

func (*ScanGetResponsePageScreenshot) UnmarshalJSON

func (r *ScanGetResponsePageScreenshot) UnmarshalJSON(data []byte) (err error)

type ScanGetResponseScanner

type ScanGetResponseScanner struct {
	Colo    string                     `json:"colo,required"`
	Country string                     `json:"country,required"`
	JSON    scanGetResponseScannerJSON `json:"-"`
}

func (*ScanGetResponseScanner) UnmarshalJSON

func (r *ScanGetResponseScanner) UnmarshalJSON(data []byte) (err error)

type ScanGetResponseStats

type ScanGetResponseStats struct {
	DomainStats      []ScanGetResponseStatsDomainStat   `json:"domainStats,required"`
	IPStats          []ScanGetResponseStatsIPStat       `json:"ipStats,required"`
	IPv6Percentage   float64                            `json:"IPv6Percentage,required"`
	Malicious        float64                            `json:"malicious,required"`
	ProtocolStats    []ScanGetResponseStatsProtocolStat `json:"protocolStats,required"`
	ResourceStats    []ScanGetResponseStatsResourceStat `json:"resourceStats,required"`
	SecurePercentage float64                            `json:"securePercentage,required"`
	SecureRequests   float64                            `json:"secureRequests,required"`
	ServerStats      []ScanGetResponseStatsServerStat   `json:"serverStats,required"`
	TLSStats         []ScanGetResponseStatsTLSStat      `json:"tlsStats,required"`
	TotalLinks       float64                            `json:"totalLinks,required"`
	UniqASNs         float64                            `json:"uniqASNs,required"`
	UniqCountries    float64                            `json:"uniqCountries,required"`
	JSON             scanGetResponseStatsJSON           `json:"-"`
}

func (*ScanGetResponseStats) UnmarshalJSON

func (r *ScanGetResponseStats) UnmarshalJSON(data []byte) (err error)

type ScanGetResponseStatsDomainStat

type ScanGetResponseStatsDomainStat struct {
	Count       float64                            `json:"count,required"`
	Countries   []string                           `json:"countries,required"`
	Domain      string                             `json:"domain,required"`
	EncodedSize float64                            `json:"encodedSize,required"`
	Index       float64                            `json:"index,required"`
	Initiators  []string                           `json:"initiators,required"`
	IPs         []string                           `json:"ips,required"`
	Redirects   float64                            `json:"redirects,required"`
	Size        float64                            `json:"size,required"`
	JSON        scanGetResponseStatsDomainStatJSON `json:"-"`
}

func (*ScanGetResponseStatsDomainStat) UnmarshalJSON

func (r *ScanGetResponseStatsDomainStat) UnmarshalJSON(data []byte) (err error)

type ScanGetResponseStatsIPStat

type ScanGetResponseStatsIPStat struct {
	ASN         ScanGetResponseStatsIPStatsASN   `json:"asn,required"`
	Countries   []string                         `json:"countries,required"`
	Domains     []string                         `json:"domains,required"`
	EncodedSize float64                          `json:"encodedSize,required"`
	Geoip       ScanGetResponseStatsIPStatsGeoip `json:"geoip,required"`
	Index       float64                          `json:"index,required"`
	IP          string                           `json:"ip,required"`
	IPV6        bool                             `json:"ipv6,required"`
	Redirects   float64                          `json:"redirects,required"`
	Requests    float64                          `json:"requests,required"`
	Size        float64                          `json:"size,required"`
	Count       float64                          `json:"count"`
	JSON        scanGetResponseStatsIPStatJSON   `json:"-"`
}

func (*ScanGetResponseStatsIPStat) UnmarshalJSON

func (r *ScanGetResponseStatsIPStat) UnmarshalJSON(data []byte) (err error)

type ScanGetResponseStatsIPStatsASN

type ScanGetResponseStatsIPStatsASN struct {
	ASN         string                             `json:"asn,required"`
	Country     string                             `json:"country,required"`
	Description string                             `json:"description,required"`
	IP          string                             `json:"ip,required"`
	Name        string                             `json:"name,required"`
	Org         string                             `json:"org,required"`
	JSON        scanGetResponseStatsIPStatsASNJSON `json:"-"`
}

func (*ScanGetResponseStatsIPStatsASN) UnmarshalJSON

func (r *ScanGetResponseStatsIPStatsASN) UnmarshalJSON(data []byte) (err error)

type ScanGetResponseStatsIPStatsGeoip

type ScanGetResponseStatsIPStatsGeoip struct {
	City        string                               `json:"city,required"`
	Country     string                               `json:"country,required"`
	CountryName string                               `json:"country_name,required"`
	Ll          []float64                            `json:"ll,required"`
	Region      string                               `json:"region,required"`
	JSON        scanGetResponseStatsIPStatsGeoipJSON `json:"-"`
}

func (*ScanGetResponseStatsIPStatsGeoip) UnmarshalJSON

func (r *ScanGetResponseStatsIPStatsGeoip) UnmarshalJSON(data []byte) (err error)

type ScanGetResponseStatsProtocolStat

type ScanGetResponseStatsProtocolStat struct {
	Count       float64                              `json:"count,required"`
	Countries   []string                             `json:"countries,required"`
	EncodedSize float64                              `json:"encodedSize,required"`
	IPs         []string                             `json:"ips,required"`
	Protocol    string                               `json:"protocol,required"`
	Size        float64                              `json:"size,required"`
	JSON        scanGetResponseStatsProtocolStatJSON `json:"-"`
}

func (*ScanGetResponseStatsProtocolStat) UnmarshalJSON

func (r *ScanGetResponseStatsProtocolStat) UnmarshalJSON(data []byte) (err error)

type ScanGetResponseStatsResourceStat

type ScanGetResponseStatsResourceStat struct {
	Compression float64                              `json:"compression,required"`
	Count       float64                              `json:"count,required"`
	Countries   []string                             `json:"countries,required"`
	EncodedSize float64                              `json:"encodedSize,required"`
	IPs         []string                             `json:"ips,required"`
	Percentage  float64                              `json:"percentage,required"`
	Size        float64                              `json:"size,required"`
	Type        string                               `json:"type,required"`
	JSON        scanGetResponseStatsResourceStatJSON `json:"-"`
}

func (*ScanGetResponseStatsResourceStat) UnmarshalJSON

func (r *ScanGetResponseStatsResourceStat) UnmarshalJSON(data []byte) (err error)

type ScanGetResponseStatsServerStat

type ScanGetResponseStatsServerStat struct {
	Count       float64                            `json:"count,required"`
	Countries   []string                           `json:"countries,required"`
	EncodedSize float64                            `json:"encodedSize,required"`
	IPs         []string                           `json:"ips,required"`
	Server      string                             `json:"server,required"`
	Size        float64                            `json:"size,required"`
	JSON        scanGetResponseStatsServerStatJSON `json:"-"`
}

func (*ScanGetResponseStatsServerStat) UnmarshalJSON

func (r *ScanGetResponseStatsServerStat) UnmarshalJSON(data []byte) (err error)

type ScanGetResponseStatsTLSStat

type ScanGetResponseStatsTLSStat struct {
	Count         float64                               `json:"count,required"`
	Countries     []string                              `json:"countries,required"`
	EncodedSize   float64                               `json:"encodedSize,required"`
	IPs           []string                              `json:"ips,required"`
	Protocols     ScanGetResponseStatsTLSStatsProtocols `json:"protocols,required"`
	SecurityState string                                `json:"securityState,required"`
	Size          float64                               `json:"size,required"`
	JSON          scanGetResponseStatsTLSStatJSON       `json:"-"`
}

func (*ScanGetResponseStatsTLSStat) UnmarshalJSON

func (r *ScanGetResponseStatsTLSStat) UnmarshalJSON(data []byte) (err error)

type ScanGetResponseStatsTLSStatsProtocols

type ScanGetResponseStatsTLSStatsProtocols struct {
	TLS1_3Aes128Gcm float64                                   `json:"TLS 1.3 / AES_128_GCM,required"`
	JSON            scanGetResponseStatsTLSStatsProtocolsJSON `json:"-"`
}

func (*ScanGetResponseStatsTLSStatsProtocols) UnmarshalJSON

func (r *ScanGetResponseStatsTLSStatsProtocols) UnmarshalJSON(data []byte) (err error)

type ScanGetResponseTask

type ScanGetResponseTask struct {
	ApexDomain    string                     `json:"apexDomain,required"`
	Domain        string                     `json:"domain,required"`
	DOMURL        string                     `json:"domURL,required"`
	Method        string                     `json:"method,required"`
	Options       ScanGetResponseTaskOptions `json:"options,required"`
	ReportURL     string                     `json:"reportURL,required"`
	ScreenshotURL string                     `json:"screenshotURL,required"`
	Source        string                     `json:"source,required"`
	Success       bool                       `json:"success,required"`
	Time          string                     `json:"time,required"`
	URL           string                     `json:"url,required"`
	UUID          string                     `json:"uuid,required"`
	Visibility    string                     `json:"visibility,required"`
	JSON          scanGetResponseTaskJSON    `json:"-"`
}

func (*ScanGetResponseTask) UnmarshalJSON

func (r *ScanGetResponseTask) UnmarshalJSON(data []byte) (err error)

type ScanGetResponseTaskOptions

type ScanGetResponseTaskOptions struct {
	// Custom headers set.
	CustomHeaders          interface{}                    `json:"customHeaders"`
	ScreenshotsResolutions []string                       `json:"screenshotsResolutions"`
	JSON                   scanGetResponseTaskOptionsJSON `json:"-"`
}

func (*ScanGetResponseTaskOptions) UnmarshalJSON

func (r *ScanGetResponseTaskOptions) UnmarshalJSON(data []byte) (err error)

type ScanGetResponseVerdicts

type ScanGetResponseVerdicts struct {
	Overall ScanGetResponseVerdictsOverall `json:"overall,required"`
	JSON    scanGetResponseVerdictsJSON    `json:"-"`
}

func (*ScanGetResponseVerdicts) UnmarshalJSON

func (r *ScanGetResponseVerdicts) UnmarshalJSON(data []byte) (err error)

type ScanGetResponseVerdictsOverall

type ScanGetResponseVerdictsOverall struct {
	Categories  []string                           `json:"categories,required"`
	HasVerdicts bool                               `json:"hasVerdicts,required"`
	Malicious   bool                               `json:"malicious,required"`
	Tags        []string                           `json:"tags,required"`
	JSON        scanGetResponseVerdictsOverallJSON `json:"-"`
}

func (*ScanGetResponseVerdictsOverall) UnmarshalJSON

func (r *ScanGetResponseVerdictsOverall) UnmarshalJSON(data []byte) (err error)

type ScanHARParams

type ScanHARParams struct {
	// Account ID.
	AccountID param.Field[string] `path:"account_id,required"`
}

type ScanHARResponse

type ScanHARResponse struct {
	Log  ScanHARResponseLog  `json:"log,required"`
	JSON scanHARResponseJSON `json:"-"`
}

func (*ScanHARResponse) UnmarshalJSON

func (r *ScanHARResponse) UnmarshalJSON(data []byte) (err error)

type ScanHARResponseLog

type ScanHARResponseLog struct {
	Creator ScanHARResponseLogCreator `json:"creator,required"`
	Entries []ScanHARResponseLogEntry `json:"entries,required"`
	Pages   []ScanHARResponseLogPage  `json:"pages,required"`
	Version string                    `json:"version,required"`
	JSON    scanHARResponseLogJSON    `json:"-"`
}

func (*ScanHARResponseLog) UnmarshalJSON

func (r *ScanHARResponseLog) UnmarshalJSON(data []byte) (err error)

type ScanHARResponseLogCreator

type ScanHARResponseLogCreator struct {
	Comment string                        `json:"comment,required"`
	Name    string                        `json:"name,required"`
	Version string                        `json:"version,required"`
	JSON    scanHARResponseLogCreatorJSON `json:"-"`
}

func (*ScanHARResponseLogCreator) UnmarshalJSON

func (r *ScanHARResponseLogCreator) UnmarshalJSON(data []byte) (err error)

type ScanHARResponseLogEntriesRequest

type ScanHARResponseLogEntriesRequest struct {
	BodySize    float64                                  `json:"bodySize,required"`
	Headers     []ScanHARResponseLogEntriesRequestHeader `json:"headers,required"`
	HeadersSize float64                                  `json:"headersSize,required"`
	HTTPVersion string                                   `json:"httpVersion,required"`
	Method      string                                   `json:"method,required"`
	URL         string                                   `json:"url,required"`
	JSON        scanHARResponseLogEntriesRequestJSON     `json:"-"`
}

func (*ScanHARResponseLogEntriesRequest) UnmarshalJSON

func (r *ScanHARResponseLogEntriesRequest) UnmarshalJSON(data []byte) (err error)

type ScanHARResponseLogEntriesRequestHeader

type ScanHARResponseLogEntriesRequestHeader struct {
	Name  string                                     `json:"name,required"`
	Value string                                     `json:"value,required"`
	JSON  scanHARResponseLogEntriesRequestHeaderJSON `json:"-"`
}

func (*ScanHARResponseLogEntriesRequestHeader) UnmarshalJSON

func (r *ScanHARResponseLogEntriesRequestHeader) UnmarshalJSON(data []byte) (err error)

type ScanHARResponseLogEntriesResponse

type ScanHARResponseLogEntriesResponse struct {
	TransferSize float64                                   `json:"_transferSize,required"`
	BodySize     float64                                   `json:"bodySize,required"`
	Content      ScanHARResponseLogEntriesResponseContent  `json:"content,required"`
	Headers      []ScanHARResponseLogEntriesResponseHeader `json:"headers,required"`
	HeadersSize  float64                                   `json:"headersSize,required"`
	HTTPVersion  string                                    `json:"httpVersion,required"`
	RedirectURL  string                                    `json:"redirectURL,required"`
	Status       float64                                   `json:"status,required"`
	StatusText   string                                    `json:"statusText,required"`
	JSON         scanHARResponseLogEntriesResponseJSON     `json:"-"`
}

func (*ScanHARResponseLogEntriesResponse) UnmarshalJSON

func (r *ScanHARResponseLogEntriesResponse) UnmarshalJSON(data []byte) (err error)

type ScanHARResponseLogEntriesResponseContent

type ScanHARResponseLogEntriesResponseContent struct {
	MimeType    string                                       `json:"mimeType,required"`
	Size        float64                                      `json:"size,required"`
	Compression int64                                        `json:"compression"`
	JSON        scanHARResponseLogEntriesResponseContentJSON `json:"-"`
}

func (*ScanHARResponseLogEntriesResponseContent) UnmarshalJSON

func (r *ScanHARResponseLogEntriesResponseContent) UnmarshalJSON(data []byte) (err error)

type ScanHARResponseLogEntriesResponseHeader

type ScanHARResponseLogEntriesResponseHeader struct {
	Name  string                                      `json:"name,required"`
	Value string                                      `json:"value,required"`
	JSON  scanHARResponseLogEntriesResponseHeaderJSON `json:"-"`
}

func (*ScanHARResponseLogEntriesResponseHeader) UnmarshalJSON

func (r *ScanHARResponseLogEntriesResponseHeader) UnmarshalJSON(data []byte) (err error)

type ScanHARResponseLogEntry

type ScanHARResponseLogEntry struct {
	InitialPriority string                            `json:"_initialPriority,required"`
	InitiatorType   string                            `json:"_initiator_type,required"`
	Priority        string                            `json:"_priority,required"`
	RequestID       string                            `json:"_requestId,required"`
	RequestTime     float64                           `json:"_requestTime,required"`
	ResourceType    string                            `json:"_resourceType,required"`
	Cache           interface{}                       `json:"cache,required"`
	Connection      string                            `json:"connection,required"`
	Pageref         string                            `json:"pageref,required"`
	Request         ScanHARResponseLogEntriesRequest  `json:"request,required"`
	Response        ScanHARResponseLogEntriesResponse `json:"response,required"`
	ServerIPAddress string                            `json:"serverIPAddress,required"`
	StartedDateTime string                            `json:"startedDateTime,required"`
	Time            float64                           `json:"time,required"`
	JSON            scanHARResponseLogEntryJSON       `json:"-"`
}

func (*ScanHARResponseLogEntry) UnmarshalJSON

func (r *ScanHARResponseLogEntry) UnmarshalJSON(data []byte) (err error)

type ScanHARResponseLogPage

type ScanHARResponseLogPage struct {
	ID              string                             `json:"id,required"`
	PageTimings     ScanHARResponseLogPagesPageTimings `json:"pageTimings,required"`
	StartedDateTime string                             `json:"startedDateTime,required"`
	Title           string                             `json:"title,required"`
	JSON            scanHARResponseLogPageJSON         `json:"-"`
}

func (*ScanHARResponseLogPage) UnmarshalJSON

func (r *ScanHARResponseLogPage) UnmarshalJSON(data []byte) (err error)

type ScanHARResponseLogPagesPageTimings

type ScanHARResponseLogPagesPageTimings struct {
	OnContentLoad float64                                `json:"onContentLoad,required"`
	OnLoad        float64                                `json:"onLoad,required"`
	JSON          scanHARResponseLogPagesPageTimingsJSON `json:"-"`
}

func (*ScanHARResponseLogPagesPageTimings) UnmarshalJSON

func (r *ScanHARResponseLogPagesPageTimings) UnmarshalJSON(data []byte) (err error)

type ScanListParams

type ScanListParams struct {
	// Account ID.
	AccountID param.Field[string] `path:"account_id,required"`
	// Filter scans
	Q param.Field[string] `query:"q"`
	// Limit the number of objects in the response.
	Size param.Field[int64] `query:"size"`
}

func (ScanListParams) URLQuery

func (r ScanListParams) URLQuery() (v url.Values)

URLQuery serializes ScanListParams's query parameters as `url.Values`.

type ScanListResponse

type ScanListResponse struct {
	Results []ScanListResponseResult `json:"results,required"`
	JSON    scanListResponseJSON     `json:"-"`
}

func (*ScanListResponse) UnmarshalJSON

func (r *ScanListResponse) UnmarshalJSON(data []byte) (err error)

type ScanListResponseResult

type ScanListResponseResult struct {
	ID       string                          `json:"_id,required"`
	Page     ScanListResponseResultsPage     `json:"page,required"`
	Result   string                          `json:"result,required"`
	Stats    ScanListResponseResultsStats    `json:"stats,required"`
	Task     ScanListResponseResultsTask     `json:"task,required"`
	Verdicts ScanListResponseResultsVerdicts `json:"verdicts,required"`
	JSON     scanListResponseResultJSON      `json:"-"`
}

func (*ScanListResponseResult) UnmarshalJSON

func (r *ScanListResponseResult) UnmarshalJSON(data []byte) (err error)

type ScanListResponseResultsPage

type ScanListResponseResultsPage struct {
	ASN     string                          `json:"asn,required"`
	Country string                          `json:"country,required"`
	IP      string                          `json:"ip,required"`
	URL     string                          `json:"url,required"`
	JSON    scanListResponseResultsPageJSON `json:"-"`
}

func (*ScanListResponseResultsPage) UnmarshalJSON

func (r *ScanListResponseResultsPage) UnmarshalJSON(data []byte) (err error)

type ScanListResponseResultsStats

type ScanListResponseResultsStats struct {
	DataLength    float64                          `json:"dataLength,required"`
	Requests      float64                          `json:"requests,required"`
	UniqCountries float64                          `json:"uniqCountries,required"`
	UniqIPs       float64                          `json:"uniqIPs,required"`
	JSON          scanListResponseResultsStatsJSON `json:"-"`
}

func (*ScanListResponseResultsStats) UnmarshalJSON

func (r *ScanListResponseResultsStats) UnmarshalJSON(data []byte) (err error)

type ScanListResponseResultsTask

type ScanListResponseResultsTask struct {
	Time       string                          `json:"time,required"`
	URL        string                          `json:"url,required"`
	UUID       string                          `json:"uuid,required"`
	Visibility string                          `json:"visibility,required"`
	JSON       scanListResponseResultsTaskJSON `json:"-"`
}

func (*ScanListResponseResultsTask) UnmarshalJSON

func (r *ScanListResponseResultsTask) UnmarshalJSON(data []byte) (err error)

type ScanListResponseResultsVerdicts

type ScanListResponseResultsVerdicts struct {
	Malicious bool                                `json:"malicious,required"`
	JSON      scanListResponseResultsVerdictsJSON `json:"-"`
}

func (*ScanListResponseResultsVerdicts) UnmarshalJSON

func (r *ScanListResponseResultsVerdicts) UnmarshalJSON(data []byte) (err error)

type ScanNewParams

type ScanNewParams struct {
	// Account ID.
	AccountID param.Field[string] `path:"account_id,required"`
	URL       param.Field[string] `json:"url,required"`
	// Country to geo egress from
	Country     param.Field[ScanNewParamsCountry] `json:"country"`
	Customagent param.Field[string]               `json:"customagent"`
	// Set custom headers.
	CustomHeaders param.Field[map[string]string] `json:"customHeaders"`
	Referer       param.Field[string]            `json:"referer"`
	// Take multiple screenshots targeting different device types.
	ScreenshotsResolutions param.Field[[]ScanNewParamsScreenshotsResolution] `json:"screenshotsResolutions"`
	// The option `Public` means it will be included in listings like recent scans and
	// search results. `Unlisted` means it will not be included in the aforementioned
	// listings, users will need to have the scan's ID to access it. A a scan will be
	// automatically marked as unlisted if it fails, if it contains potential PII or
	// other sensitive material.
	Visibility param.Field[ScanNewParamsVisibility] `json:"visibility"`
}

func (ScanNewParams) MarshalJSON

func (r ScanNewParams) MarshalJSON() (data []byte, err error)

type ScanNewParamsCountry

type ScanNewParamsCountry string

Country to geo egress from

const (
	ScanNewParamsCountryAf ScanNewParamsCountry = "AF"
	ScanNewParamsCountryAl ScanNewParamsCountry = "AL"
	ScanNewParamsCountryDz ScanNewParamsCountry = "DZ"
	ScanNewParamsCountryAD ScanNewParamsCountry = "AD"
	ScanNewParamsCountryAo ScanNewParamsCountry = "AO"
	ScanNewParamsCountryAg ScanNewParamsCountry = "AG"
	ScanNewParamsCountryAr ScanNewParamsCountry = "AR"
	ScanNewParamsCountryAm ScanNewParamsCountry = "AM"
	ScanNewParamsCountryAu ScanNewParamsCountry = "AU"
	ScanNewParamsCountryAt ScanNewParamsCountry = "AT"
	ScanNewParamsCountryAz ScanNewParamsCountry = "AZ"
	ScanNewParamsCountryBh ScanNewParamsCountry = "BH"
	ScanNewParamsCountryBd ScanNewParamsCountry = "BD"
	ScanNewParamsCountryBb ScanNewParamsCountry = "BB"
	ScanNewParamsCountryBy ScanNewParamsCountry = "BY"
	ScanNewParamsCountryBe ScanNewParamsCountry = "BE"
	ScanNewParamsCountryBz ScanNewParamsCountry = "BZ"
	ScanNewParamsCountryBj ScanNewParamsCountry = "BJ"
	ScanNewParamsCountryBm ScanNewParamsCountry = "BM"
	ScanNewParamsCountryBt ScanNewParamsCountry = "BT"
	ScanNewParamsCountryBo ScanNewParamsCountry = "BO"
	ScanNewParamsCountryBa ScanNewParamsCountry = "BA"
	ScanNewParamsCountryBw ScanNewParamsCountry = "BW"
	ScanNewParamsCountryBr ScanNewParamsCountry = "BR"
	ScanNewParamsCountryBn ScanNewParamsCountry = "BN"
	ScanNewParamsCountryBg ScanNewParamsCountry = "BG"
	ScanNewParamsCountryBf ScanNewParamsCountry = "BF"
	ScanNewParamsCountryBi ScanNewParamsCountry = "BI"
	ScanNewParamsCountryKh ScanNewParamsCountry = "KH"
	ScanNewParamsCountryCm ScanNewParamsCountry = "CM"
	ScanNewParamsCountryCA ScanNewParamsCountry = "CA"
	ScanNewParamsCountryCv ScanNewParamsCountry = "CV"
	ScanNewParamsCountryKy ScanNewParamsCountry = "KY"
	ScanNewParamsCountryCf ScanNewParamsCountry = "CF"
	ScanNewParamsCountryTd ScanNewParamsCountry = "TD"
	ScanNewParamsCountryCl ScanNewParamsCountry = "CL"
	ScanNewParamsCountryCn ScanNewParamsCountry = "CN"
	ScanNewParamsCountryCo ScanNewParamsCountry = "CO"
	ScanNewParamsCountryKm ScanNewParamsCountry = "KM"
	ScanNewParamsCountryCg ScanNewParamsCountry = "CG"
	ScanNewParamsCountryCr ScanNewParamsCountry = "CR"
	ScanNewParamsCountryCi ScanNewParamsCountry = "CI"
	ScanNewParamsCountryHr ScanNewParamsCountry = "HR"
	ScanNewParamsCountryCu ScanNewParamsCountry = "CU"
	ScanNewParamsCountryCy ScanNewParamsCountry = "CY"
	ScanNewParamsCountryCz ScanNewParamsCountry = "CZ"
	ScanNewParamsCountryCd ScanNewParamsCountry = "CD"
	ScanNewParamsCountryDK ScanNewParamsCountry = "DK"
	ScanNewParamsCountryDj ScanNewParamsCountry = "DJ"
	ScanNewParamsCountryDm ScanNewParamsCountry = "DM"
	ScanNewParamsCountryDo ScanNewParamsCountry = "DO"
	ScanNewParamsCountryEc ScanNewParamsCountry = "EC"
	ScanNewParamsCountryEg ScanNewParamsCountry = "EG"
	ScanNewParamsCountrySv ScanNewParamsCountry = "SV"
	ScanNewParamsCountryGq ScanNewParamsCountry = "GQ"
	ScanNewParamsCountryEr ScanNewParamsCountry = "ER"
	ScanNewParamsCountryEe ScanNewParamsCountry = "EE"
	ScanNewParamsCountrySz ScanNewParamsCountry = "SZ"
	ScanNewParamsCountryEt ScanNewParamsCountry = "ET"
	ScanNewParamsCountryFj ScanNewParamsCountry = "FJ"
	ScanNewParamsCountryFi ScanNewParamsCountry = "FI"
	ScanNewParamsCountryFr ScanNewParamsCountry = "FR"
	ScanNewParamsCountryGa ScanNewParamsCountry = "GA"
	ScanNewParamsCountryGe ScanNewParamsCountry = "GE"
	ScanNewParamsCountryDe ScanNewParamsCountry = "DE"
	ScanNewParamsCountryGh ScanNewParamsCountry = "GH"
	ScanNewParamsCountryGr ScanNewParamsCountry = "GR"
	ScanNewParamsCountryGl ScanNewParamsCountry = "GL"
	ScanNewParamsCountryGd ScanNewParamsCountry = "GD"
	ScanNewParamsCountryGt ScanNewParamsCountry = "GT"
	ScanNewParamsCountryGn ScanNewParamsCountry = "GN"
	ScanNewParamsCountryGw ScanNewParamsCountry = "GW"
	ScanNewParamsCountryGy ScanNewParamsCountry = "GY"
	ScanNewParamsCountryHt ScanNewParamsCountry = "HT"
	ScanNewParamsCountryHn ScanNewParamsCountry = "HN"
	ScanNewParamsCountryHu ScanNewParamsCountry = "HU"
	ScanNewParamsCountryIs ScanNewParamsCountry = "IS"
	ScanNewParamsCountryIn ScanNewParamsCountry = "IN"
	ScanNewParamsCountryID ScanNewParamsCountry = "ID"
	ScanNewParamsCountryIr ScanNewParamsCountry = "IR"
	ScanNewParamsCountryIq ScanNewParamsCountry = "IQ"
	ScanNewParamsCountryIe ScanNewParamsCountry = "IE"
	ScanNewParamsCountryIl ScanNewParamsCountry = "IL"
	ScanNewParamsCountryIt ScanNewParamsCountry = "IT"
	ScanNewParamsCountryJm ScanNewParamsCountry = "JM"
	ScanNewParamsCountryJp ScanNewParamsCountry = "JP"
	ScanNewParamsCountryJo ScanNewParamsCountry = "JO"
	ScanNewParamsCountryKz ScanNewParamsCountry = "KZ"
	ScanNewParamsCountryKe ScanNewParamsCountry = "KE"
	ScanNewParamsCountryKi ScanNewParamsCountry = "KI"
	ScanNewParamsCountryKw ScanNewParamsCountry = "KW"
	ScanNewParamsCountryKg ScanNewParamsCountry = "KG"
	ScanNewParamsCountryLa ScanNewParamsCountry = "LA"
	ScanNewParamsCountryLv ScanNewParamsCountry = "LV"
	ScanNewParamsCountryLB ScanNewParamsCountry = "LB"
	ScanNewParamsCountryLs ScanNewParamsCountry = "LS"
	ScanNewParamsCountryLr ScanNewParamsCountry = "LR"
	ScanNewParamsCountryLy ScanNewParamsCountry = "LY"
	ScanNewParamsCountryLi ScanNewParamsCountry = "LI"
	ScanNewParamsCountryLt ScanNewParamsCountry = "LT"
	ScanNewParamsCountryLu ScanNewParamsCountry = "LU"
	ScanNewParamsCountryMo ScanNewParamsCountry = "MO"
	ScanNewParamsCountryMg ScanNewParamsCountry = "MG"
	ScanNewParamsCountryMw ScanNewParamsCountry = "MW"
	ScanNewParamsCountryMy ScanNewParamsCountry = "MY"
	ScanNewParamsCountryMv ScanNewParamsCountry = "MV"
	ScanNewParamsCountryMl ScanNewParamsCountry = "ML"
	ScanNewParamsCountryMr ScanNewParamsCountry = "MR"
	ScanNewParamsCountryMu ScanNewParamsCountry = "MU"
	ScanNewParamsCountryMX ScanNewParamsCountry = "MX"
	ScanNewParamsCountryFm ScanNewParamsCountry = "FM"
	ScanNewParamsCountryMd ScanNewParamsCountry = "MD"
	ScanNewParamsCountryMc ScanNewParamsCountry = "MC"
	ScanNewParamsCountryMn ScanNewParamsCountry = "MN"
	ScanNewParamsCountryMs ScanNewParamsCountry = "MS"
	ScanNewParamsCountryMa ScanNewParamsCountry = "MA"
	ScanNewParamsCountryMz ScanNewParamsCountry = "MZ"
	ScanNewParamsCountryMm ScanNewParamsCountry = "MM"
	ScanNewParamsCountryNa ScanNewParamsCountry = "NA"
	ScanNewParamsCountryNr ScanNewParamsCountry = "NR"
	ScanNewParamsCountryNp ScanNewParamsCountry = "NP"
	ScanNewParamsCountryNl ScanNewParamsCountry = "NL"
	ScanNewParamsCountryNz ScanNewParamsCountry = "NZ"
	ScanNewParamsCountryNi ScanNewParamsCountry = "NI"
	ScanNewParamsCountryNe ScanNewParamsCountry = "NE"
	ScanNewParamsCountryNg ScanNewParamsCountry = "NG"
	ScanNewParamsCountryKp ScanNewParamsCountry = "KP"
	ScanNewParamsCountryMk ScanNewParamsCountry = "MK"
	ScanNewParamsCountryNo ScanNewParamsCountry = "NO"
	ScanNewParamsCountryOm ScanNewParamsCountry = "OM"
	ScanNewParamsCountryPk ScanNewParamsCountry = "PK"
	ScanNewParamsCountryPs ScanNewParamsCountry = "PS"
	ScanNewParamsCountryPa ScanNewParamsCountry = "PA"
	ScanNewParamsCountryPg ScanNewParamsCountry = "PG"
	ScanNewParamsCountryPy ScanNewParamsCountry = "PY"
	ScanNewParamsCountryPe ScanNewParamsCountry = "PE"
	ScanNewParamsCountryPh ScanNewParamsCountry = "PH"
	ScanNewParamsCountryPl ScanNewParamsCountry = "PL"
	ScanNewParamsCountryPt ScanNewParamsCountry = "PT"
	ScanNewParamsCountryQa ScanNewParamsCountry = "QA"
	ScanNewParamsCountryRo ScanNewParamsCountry = "RO"
	ScanNewParamsCountryRu ScanNewParamsCountry = "RU"
	ScanNewParamsCountryRw ScanNewParamsCountry = "RW"
	ScanNewParamsCountrySh ScanNewParamsCountry = "SH"
	ScanNewParamsCountryKn ScanNewParamsCountry = "KN"
	ScanNewParamsCountryLc ScanNewParamsCountry = "LC"
	ScanNewParamsCountryVc ScanNewParamsCountry = "VC"
	ScanNewParamsCountryWs ScanNewParamsCountry = "WS"
	ScanNewParamsCountrySm ScanNewParamsCountry = "SM"
	ScanNewParamsCountrySt ScanNewParamsCountry = "ST"
	ScanNewParamsCountrySa ScanNewParamsCountry = "SA"
	ScanNewParamsCountrySn ScanNewParamsCountry = "SN"
	ScanNewParamsCountryRs ScanNewParamsCountry = "RS"
	ScanNewParamsCountrySc ScanNewParamsCountry = "SC"
	ScanNewParamsCountrySl ScanNewParamsCountry = "SL"
	ScanNewParamsCountrySk ScanNewParamsCountry = "SK"
	ScanNewParamsCountrySi ScanNewParamsCountry = "SI"
	ScanNewParamsCountrySb ScanNewParamsCountry = "SB"
	ScanNewParamsCountrySo ScanNewParamsCountry = "SO"
	ScanNewParamsCountryZa ScanNewParamsCountry = "ZA"
	ScanNewParamsCountryKr ScanNewParamsCountry = "KR"
	ScanNewParamsCountrySS ScanNewParamsCountry = "SS"
	ScanNewParamsCountryEs ScanNewParamsCountry = "ES"
	ScanNewParamsCountryLk ScanNewParamsCountry = "LK"
	ScanNewParamsCountrySd ScanNewParamsCountry = "SD"
	ScanNewParamsCountrySr ScanNewParamsCountry = "SR"
	ScanNewParamsCountrySe ScanNewParamsCountry = "SE"
	ScanNewParamsCountryCh ScanNewParamsCountry = "CH"
	ScanNewParamsCountrySy ScanNewParamsCountry = "SY"
	ScanNewParamsCountryTw ScanNewParamsCountry = "TW"
	ScanNewParamsCountryTj ScanNewParamsCountry = "TJ"
	ScanNewParamsCountryTz ScanNewParamsCountry = "TZ"
	ScanNewParamsCountryTh ScanNewParamsCountry = "TH"
	ScanNewParamsCountryBs ScanNewParamsCountry = "BS"
	ScanNewParamsCountryGm ScanNewParamsCountry = "GM"
	ScanNewParamsCountryTl ScanNewParamsCountry = "TL"
	ScanNewParamsCountryTg ScanNewParamsCountry = "TG"
	ScanNewParamsCountryTo ScanNewParamsCountry = "TO"
	ScanNewParamsCountryTt ScanNewParamsCountry = "TT"
	ScanNewParamsCountryTn ScanNewParamsCountry = "TN"
	ScanNewParamsCountryTr ScanNewParamsCountry = "TR"
	ScanNewParamsCountryTm ScanNewParamsCountry = "TM"
	ScanNewParamsCountryUg ScanNewParamsCountry = "UG"
	ScanNewParamsCountryUA ScanNewParamsCountry = "UA"
	ScanNewParamsCountryAe ScanNewParamsCountry = "AE"
	ScanNewParamsCountryGB ScanNewParamsCountry = "GB"
	ScanNewParamsCountryUs ScanNewParamsCountry = "US"
	ScanNewParamsCountryUy ScanNewParamsCountry = "UY"
	ScanNewParamsCountryUz ScanNewParamsCountry = "UZ"
	ScanNewParamsCountryVu ScanNewParamsCountry = "VU"
	ScanNewParamsCountryVe ScanNewParamsCountry = "VE"
	ScanNewParamsCountryVn ScanNewParamsCountry = "VN"
	ScanNewParamsCountryYe ScanNewParamsCountry = "YE"
	ScanNewParamsCountryZm ScanNewParamsCountry = "ZM"
	ScanNewParamsCountryZw ScanNewParamsCountry = "ZW"
)

func (ScanNewParamsCountry) IsKnown

func (r ScanNewParamsCountry) IsKnown() bool

type ScanNewParamsScreenshotsResolution

type ScanNewParamsScreenshotsResolution string

Device resolutions.

const (
	ScanNewParamsScreenshotsResolutionDesktop ScanNewParamsScreenshotsResolution = "desktop"
	ScanNewParamsScreenshotsResolutionMobile  ScanNewParamsScreenshotsResolution = "mobile"
	ScanNewParamsScreenshotsResolutionTablet  ScanNewParamsScreenshotsResolution = "tablet"
)

func (ScanNewParamsScreenshotsResolution) IsKnown

type ScanNewParamsVisibility

type ScanNewParamsVisibility string

The option `Public` means it will be included in listings like recent scans and search results. `Unlisted` means it will not be included in the aforementioned listings, users will need to have the scan's ID to access it. A a scan will be automatically marked as unlisted if it fails, if it contains potential PII or other sensitive material.

const (
	ScanNewParamsVisibilityPublic   ScanNewParamsVisibility = "Public"
	ScanNewParamsVisibilityUnlisted ScanNewParamsVisibility = "Unlisted"
)

func (ScanNewParamsVisibility) IsKnown

func (r ScanNewParamsVisibility) IsKnown() bool

type ScanNewResponse

type ScanNewResponse struct {
	// URL to api report.
	API     string `json:"api,required"`
	Message string `json:"message,required"`
	// Public URL to report.
	Result string `json:"result,required"`
	// Canonical form of submitted URL. Use this if you want to later search by URL.
	URL string `json:"url,required"`
	// Scan ID.
	UUID string `json:"uuid,required" format:"uuid"`
	// Submitted visibility status.
	Visibility ScanNewResponseVisibility `json:"visibility,required"`
	Options    ScanNewResponseOptions    `json:"options"`
	JSON       scanNewResponseJSON       `json:"-"`
}

func (*ScanNewResponse) UnmarshalJSON

func (r *ScanNewResponse) UnmarshalJSON(data []byte) (err error)

type ScanNewResponseOptions

type ScanNewResponseOptions struct {
	Useragent string                     `json:"useragent"`
	JSON      scanNewResponseOptionsJSON `json:"-"`
}

func (*ScanNewResponseOptions) UnmarshalJSON

func (r *ScanNewResponseOptions) UnmarshalJSON(data []byte) (err error)

type ScanNewResponseVisibility

type ScanNewResponseVisibility string

Submitted visibility status.

const (
	ScanNewResponseVisibilityPublic   ScanNewResponseVisibility = "public"
	ScanNewResponseVisibilityUnlisted ScanNewResponseVisibility = "unlisted"
)

func (ScanNewResponseVisibility) IsKnown

func (r ScanNewResponseVisibility) IsKnown() bool

type ScanScreenshotParams

type ScanScreenshotParams struct {
	// Account ID.
	AccountID param.Field[string] `path:"account_id,required"`
	// Target device type.
	Resolution param.Field[ScanScreenshotParamsResolution] `query:"resolution"`
}

func (ScanScreenshotParams) URLQuery

func (r ScanScreenshotParams) URLQuery() (v url.Values)

URLQuery serializes ScanScreenshotParams's query parameters as `url.Values`.

type ScanScreenshotParamsResolution

type ScanScreenshotParamsResolution string

Target device type.

const (
	ScanScreenshotParamsResolutionDesktop ScanScreenshotParamsResolution = "desktop"
	ScanScreenshotParamsResolutionMobile  ScanScreenshotParamsResolution = "mobile"
	ScanScreenshotParamsResolutionTablet  ScanScreenshotParamsResolution = "tablet"
)

func (ScanScreenshotParamsResolution) IsKnown

type ScanService

type ScanService struct {
	Options []option.RequestOption
}

ScanService contains methods and other services that help with interacting with the cloudflare API.

Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewScanService method instead.

func NewScanService

func NewScanService(opts ...option.RequestOption) (r *ScanService)

NewScanService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.

func (*ScanService) BulkNew

func (r *ScanService) BulkNew(ctx context.Context, params ScanBulkNewParams, opts ...option.RequestOption) (res *[]ScanBulkNewResponse, err error)

Submit URLs to scan. Check limits at https://developers.cloudflare.com/security-center/investigate/scan-limits/ and take into account scans submitted in bulk have lower priority and may take longer to finish.

func (*ScanService) DOM

func (r *ScanService) DOM(ctx context.Context, scanID string, query ScanDOMParams, opts ...option.RequestOption) (res *string, err error)

Returns a plain text response, with the scan's DOM content as rendered by Chrome.

func (*ScanService) Get

func (r *ScanService) Get(ctx context.Context, scanID string, query ScanGetParams, opts ...option.RequestOption) (res *ScanGetResponse, err error)

Get URL scan by uuid

func (*ScanService) HAR

func (r *ScanService) HAR(ctx context.Context, scanID string, query ScanHARParams, opts ...option.RequestOption) (res *ScanHARResponse, err error)

Get a URL scan's HAR file. See HAR spec at http://www.softwareishard.com/blog/har-12-spec/.

func (*ScanService) List

func (r *ScanService) List(ctx context.Context, params ScanListParams, opts ...option.RequestOption) (res *ScanListResponse, err error)

Use a subset of ElasticSearch Query syntax to filter scans. Some example queries:<br/> <br/>- 'path:"/bundles/jquery.js"': Searches for scans who requested resources with the given path.<br/>- 'page.asn:AS24940 AND hash:xxx': Websites hosted in AS24940 where a resource with the given hash was downloaded.<br/>- 'page.domain:microsoft\* AND verdicts.malicious:true AND NOT page.domain:microsoft.com': malicious scans whose hostname starts with "microsoft".<br/>- 'apikey:me AND date:[2025-01 TO 2025-02]': my scans from 2025 January to 2025 February.

func (*ScanService) New

func (r *ScanService) New(ctx context.Context, params ScanNewParams, opts ...option.RequestOption) (res *ScanNewResponse, err error)

Submit a URL to scan. Check limits at https://developers.cloudflare.com/security-center/investigate/scan-limits/.

func (*ScanService) Screenshot

func (r *ScanService) Screenshot(ctx context.Context, scanID string, params ScanScreenshotParams, opts ...option.RequestOption) (res *http.Response, err error)

Get scan's screenshot by resolution (desktop/mobile/tablet).

type SortDirection

type SortDirection = shared.SortDirection

Direction to order DNS records in.

This is an alias to an internal type.

type Subscription

type Subscription = shared.Subscription

This is an alias to an internal type.

type SubscriptionFrequency

type SubscriptionFrequency = shared.SubscriptionFrequency

How often the subscription is renewed automatically.

This is an alias to an internal type.

type SubscriptionParam

type SubscriptionParam = shared.SubscriptionParam

This is an alias to an internal type.

type SubscriptionState

type SubscriptionState = shared.SubscriptionState

The state that the subscription is in.

This is an alias to an internal type.

type Token

type Token = shared.Token

This is an alias to an internal type.

type TokenCondition

type TokenCondition = shared.TokenCondition

This is an alias to an internal type.

type TokenConditionCIDRList

type TokenConditionCIDRList = shared.TokenConditionCIDRList

IPv4/IPv6 CIDR.

This is an alias to an internal type.

type TokenConditionCIDRListParam

type TokenConditionCIDRListParam = shared.TokenConditionCIDRListParam

IPv4/IPv6 CIDR.

This is an alias to an internal type.

type TokenConditionParam

type TokenConditionParam = shared.TokenConditionParam

This is an alias to an internal type.

type TokenConditionRequestIP

type TokenConditionRequestIP = shared.TokenConditionRequestIP

Client IP restrictions.

This is an alias to an internal type.

type TokenConditionRequestIPParam

type TokenConditionRequestIPParam = shared.TokenConditionRequestIPParam

Client IP restrictions.

This is an alias to an internal type.

type TokenParam

type TokenParam = shared.TokenParam

This is an alias to an internal type.

type TokenPolicy

type TokenPolicy = shared.TokenPolicy

This is an alias to an internal type.

type TokenPolicyEffect

type TokenPolicyEffect = shared.TokenPolicyEffect

Allow or deny operations against the resources.

This is an alias to an internal type.

type TokenPolicyParam

type TokenPolicyParam = shared.TokenPolicyParam

This is an alias to an internal type.

type TokenPolicyPermissionGroup

type TokenPolicyPermissionGroup = shared.TokenPolicyPermissionGroup

A named group of permissions that map to a group of operations against resources.

This is an alias to an internal type.

type TokenPolicyPermissionGroupParam

type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam

A named group of permissions that map to a group of operations against resources.

This is an alias to an internal type.

type TokenPolicyPermissionGroupsMeta

type TokenPolicyPermissionGroupsMeta = shared.TokenPolicyPermissionGroupsMeta

Attributes associated to the permission group.

This is an alias to an internal type.

type TokenPolicyPermissionGroupsMetaParam

type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam

Attributes associated to the permission group.

This is an alias to an internal type.

type TokenPolicyResourcesIAMResourcesTypeObjectNested

type TokenPolicyResourcesIAMResourcesTypeObjectNested = shared.TokenPolicyResourcesIAMResourcesTypeObjectNested

Map of nested resource permissions

This is an alias to an internal type.

type TokenPolicyResourcesIAMResourcesTypeObjectNestedParam

type TokenPolicyResourcesIAMResourcesTypeObjectNestedParam = shared.TokenPolicyResourcesIAMResourcesTypeObjectNestedParam

Map of nested resource permissions

This is an alias to an internal type.

type TokenPolicyResourcesIAMResourcesTypeObjectString

type TokenPolicyResourcesIAMResourcesTypeObjectString = shared.TokenPolicyResourcesIAMResourcesTypeObjectString

Map of simple string resource permissions

This is an alias to an internal type.

type TokenPolicyResourcesIAMResourcesTypeObjectStringParam

type TokenPolicyResourcesIAMResourcesTypeObjectStringParam = shared.TokenPolicyResourcesIAMResourcesTypeObjectStringParam

Map of simple string resource permissions

This is an alias to an internal type.

type TokenPolicyResourcesUnion

type TokenPolicyResourcesUnion = shared.TokenPolicyResourcesUnion

A list of resource names that the policy applies to.

This is an alias to an internal type.

type TokenPolicyResourcesUnionParam

type TokenPolicyResourcesUnionParam = shared.TokenPolicyResourcesUnionParam

A list of resource names that the policy applies to.

This is an alias to an internal type.

type TokenStatus

type TokenStatus = shared.TokenStatus

Status of the token.

This is an alias to an internal type.

type TokenValue

type TokenValue = shared.TokenValue

The token value.

This is an alias to an internal type.

type URLScannerService

type URLScannerService struct {
	Options   []option.RequestOption
	Responses *ResponseService
	Scans     *ScanService
}

URLScannerService contains methods and other services that help with interacting with the cloudflare API.

Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewURLScannerService method instead.

func NewURLScannerService

func NewURLScannerService(opts ...option.RequestOption) (r *URLScannerService)

NewURLScannerService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.

Jump to

Keyboard shortcuts

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