generator

package
v0.0.0-...-2bab0af Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	RandomGeneratorSeed   *int64
	MaxProcesses          int
	MaxExecsPerProcess    int
	MaxNetConnsPerProcess int
	MaxFileModsPerProcess int
}

func DefaultConfig

func DefaultConfig() Config

type ProcessTree

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

func CreateRoot

func CreateRoot(val *models.ProcessFork) *ProcessTree

func (*ProcessTree) Activities

func (t *ProcessTree) Activities() models.Models

func (*ProcessTree) AddActivities

func (t *ProcessTree) AddActivities(vals models.Models)

func (*ProcessTree) AddActivity

func (t *ProcessTree) AddActivity(val models.Model)

func (*ProcessTree) AddChild

func (t *ProcessTree) AddChild(val *models.ProcessFork) *ProcessTree

func (*ProcessTree) Children

func (t *ProcessTree) Children() []*ProcessTree

func (*ProcessTree) GetRandomNode

func (t *ProcessTree) GetRandomNode() *ProcessTree

func (*ProcessTree) Leaves

func (t *ProcessTree) Leaves() []*ProcessTree

func (*ProcessTree) Print

func (t *ProcessTree) Print(indentLevel uint)

func (*ProcessTree) Process

func (t *ProcessTree) Process() *models.ProcessFork

type TimelineActivityType

type TimelineActivityType uint8
const (
	TimelineActivityProcFork TimelineActivityType = iota
	TimelineActivityProcExec
	TimelineActivityProcEnd
	TimelineActivityNetConn
	TimelineActivityFileMod
)

type TimelineGenerator

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

func NewTimelineGenerator

func NewTimelineGenerator(c Config) TimelineGenerator

func (TimelineGenerator) Generate

func (t TimelineGenerator) Generate(shouldPrintTree bool) models.Models

Jump to

Keyboard shortcuts

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