Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AnalysesManager

This Manager is responsible for fetching and caching Analyses results.

Hierarchy

Index

Constructors

constructor

Properties

cache

cache: Map<String, Analysis>

This manager's cache.

client

client: Client

This Manager's Client

Methods

do

fetch

fetchFile

  • Fetch an Analysis from the API and cache it using the file's SHA256/SHA1/MD5 Hash.

    Parameters

    • hash: string

      The file's SHA256/SHA1/MD5 Hash.

    • Optional options: FetchOptions

    Returns Promise<Analysis>

get

  • Get an analysis either from the cache or by fetching it. It is recommended for performance reasons to use this method instead of .fetch().

    Parameters

    • id: string

      The analysis ID.

    • Optional options: GetOptions

    Returns Promise<Analysis>

getFile

  • Get an analysis either from the cache or by fetching it using the file's SHA256/SHA1/MD5 Hash. It is recommended for performance reasons to use this method instead of .fetchFile().

    Parameters

    • hash: string

      The file's SHA256/SHA1/MD5 Hash.

    • Optional options: GetOptions

    Returns Promise<Analysis>

resolve

Generated using TypeDoc