workerlet

package
v5.0.0-preview.1+incom... Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2022 License: Apache-2.0 Imports: 14 Imported by: 12

Documentation

Index

Constants

View Source
const RequestJson = "request.json" // default request file
View Source
const ResultJson = "result1.json" // default output file
View Source
const ResultJson2 = "result2.json" // default output file
View Source
const WalkerApp = "pathWalker"
View Source
const WalkerBasePath = "/tmp/walk"

Variables

This section is empty.

Functions

This section is empty.

Types

type DirData

type DirData struct {
	Dir  string `json:"dir"`
	Info FInfo  `json:"FileInfo"`
}

type FInfo

type FInfo struct {
	Name    string      `json:"name"`
	Size    int64       `json:"size"`
	Mode    os.FileMode `json:"mode"`
	ModTime time.Time   `json:"modTime"`
	IsDir   bool        `json:"isDir"`
}

type FileData

type FileData struct {
	File   string `json:"file"`
	IsExec bool   `json:"isExec"`
	Hash   uint32 `json:"Hash"`
	Info   FInfo  `json:"FileInfo"`
}

type Tasker

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

///

func NewWalkerTask

func NewWalkerTask(showDebug bool, sys *system.SystemTools) *Tasker

///

func (*Tasker) Close

func (ts *Tasker) Close()

///

func (*Tasker) Run

func (ts *Tasker) Run(request interface{}) ([]byte, []byte, error)

////

type WalkGetPackageRequest

type WalkGetPackageRequest struct {
	Pid     int                  `json:"pid"`
	Id      string               `json:"id"`
	Kernel  string               `json:"kernel"`
	ObjType share.ScanObjectType `json:"objType"`
}

type WalkPathRequest

type WalkPathRequest struct {
	Pid      int           `json:"pid"`
	Path     string        `json:"path"`
	ExecOnly bool          `json:"ExecOnly"`
	Timeout  time.Duration `json:"Timeout"`
}

type WalkPathResult

type WalkPathResult struct {
	Dirs  []*DirData  `json:"dirs"`
	Files []*FileData `json:"files"`
}

type WalkSecretRequest

type WalkSecretRequest struct {
	Pid         int     `json:"pid"`
	MaxFileSize int     `json:"maxSize"`    // default: 0 as 4kb, -1 as any size
	MiniWeight  float64 `json:"miniWeight"` // minimum portion of a secret file, excluding x.509, <= 0.0: no minimum
	TimeoutSec  uint    `json:"timeout"`    // in seconds
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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