hybridanalysis

package
v0.0.0-...-3f35778 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HybridAnalysis

type HybridAnalysis struct {
	// contains filtered or unexported fields
}

func New

func New(apiKey string) *HybridAnalysis

func NewForTest

func NewForTest(client *http.Client, baseURL string) *HybridAnalysis

func (*HybridAnalysis) GetReportByJobID

func (h *HybridAnalysis) GetReportByJobID(jobID string) ([]byte, error)

report endpoint needs `default` permission. my API key has `restricted` permission which is insufficient.

func (*HybridAnalysis) GetReportBySHA256

func (h *HybridAnalysis) GetReportBySHA256(sha256 string, environmentID int) ([]byte, error)

func (*HybridAnalysis) SubmitFile

func (h *HybridAnalysis) SubmitFile(fileName string, content []byte) ([]byte, error)

type Parser

type Parser struct {
}

func NewParser

func NewParser() *Parser

func (*Parser) SubmitFile

func (p *Parser) SubmitFile(jsonBytes []byte) (SubmitFileResponse, error)

type SubmitFileResponse

type SubmitFileResponse struct {
	JobID         string `json:"job_id"`
	SubmissionID  string `json:"submission_id"`
	EnvironmentID int    `json:"environment_id"`
	SHA256        string `json:"sha256"`
}

Jump to

Keyboard shortcuts

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