procsnapshot

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(globalConfig define.Config, taskConfig define.TaskConfig) define.Task

Types

type Event

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

func (*Event) AsMapStr

func (e *Event) AsMapStr() common.MapStr

func (*Event) GetType

func (e *Event) GetType() string

func (*Event) IgnoreCMDBLevel

func (e *Event) IgnoreCMDBLevel() bool

type Gather

type Gather struct {
	tasks.BaseTask
	// contains filtered or unexported fields
}

func (*Gather) Run

func (g *Gather) Run(ctx context.Context, e chan<- define.Event)

type ProcMeta

type ProcMeta struct {
	Pid      int32  `json:"pid"`
	PPid     int32  `json:"ppid"`
	Cwd      string `json:"cwd"`
	Cmd      string `json:"cmd"`
	Created  int64  `json:"created"`
	Uid      int32  `json:"uid"`
	Tid      int32  `json:"tid"`
	Exe      string `json:"exe"`
	Name     string `json:"name"`
	Username string `json:"username"`
}

func AllProcsMeta

func AllProcsMeta() ([]ProcMeta, error)

func AllProcsMetaWithCache

func AllProcsMetaWithCache(d time.Duration) ([]ProcMeta, error)

Jump to

Keyboard shortcuts

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