workerlet

package
v1.0.14 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2023 License: Apache-2.0 Imports: 14 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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