agent

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AgentClient

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

func New

func New(addr string) (AgentClient, error)

func (AgentClient) Analyze

func (ac AgentClient) Analyze(ctx context.Context, config, binary []byte) (
	FileScanResult, error)

func (AgentClient) Deploy

func (ac AgentClient) Deploy(ctx context.Context, dest string, pkg []byte) (
	string, error)

func (AgentClient) Ping added in v0.4.0

func (ac AgentClient) Ping(ctx context.Context) (PingResult, error)

type FileScanResult

type FileScanResult struct {
	TraceLog    []byte
	AgentLog    []byte
	SandboxLog  []byte
	ProcessTree []byte
	Screenshots []*pb.AnalyzeFileReply_Screenshot
	Artifacts   []*pb.AnalyzeFileReply_Artifact
	APIBuffers  []*pb.AnalyzeFileReply_APIBuffer
}

FileScanResult represents the results of a file scan within the sandbox.

type PingResult added in v0.4.0

type PingResult struct {
	ServerVersion string
	SysInfo       []byte
}

type Sandbox

type Sandbox interface {
	Deploy(ctx context.Context, dest string, pkg []byte) (string, error)
	Analyze(config string, binary []byte) (FileScanResult, error)
}

Sandbox abstract a sandbox analyzer.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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