core

package
v0.0.0-...-835e807 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2022 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PackageVersionAction

func PackageVersionAction(ctx context.Context, pinfo *ProcessInfo) error

func Run

func Run(ctx context.Context, si SystemInput, config *configuration.Config) error

Types

type Action

type Action interface {
	Run(ctx context.Context, pinfo *ProcessInfo) error
}

type ActionFunc

type ActionFunc func(context.Context, *ProcessInfo) error

func (ActionFunc) Run

func (af ActionFunc) Run(ctx context.Context, pinfo *ProcessInfo) error

type Dumpable

type Dumpable int
const (
	DUMPABLE_DEFAULT  Dumpable = 0
	DUMPABLE_DEBUG    Dumpable = 1
	DUMPABLE_SUIDSAFE Dumpable = 2
)

func (Dumpable) AllowCoreDump

func (d Dumpable) AllowCoreDump() bool

type ProcessInfo

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

func NewProcessInfo

func NewProcessInfo(ctx context.Context, globalPid int64, localPid int64, globalTid int64, localTid int64, filesystem afero.Fs) (*ProcessInfo, error)

func (*ProcessInfo) CorefileName

func (p *ProcessInfo) CorefileName() string

func (*ProcessInfo) Env

func (p *ProcessInfo) Env() environ.Environ

func (*ProcessInfo) HasPIDNamespace

func (p *ProcessInfo) HasPIDNamespace() bool

func (*ProcessInfo) IsBinaryDeleted

func (p *ProcessInfo) IsBinaryDeleted() bool

type SystemInput

type SystemInput struct {
	// Pathname of Executable
	Executable string
	// TID in initial namespace
	InitialTid int64
	// TID in process namespace
	NsTid int64
	// PR_GET_DUMPABLE
	PrGetDumpable Dumpable
	// PID in intial namespace
	InitialPid int64
	// PID in process namespace
	NsPid int64
	// Time of dump
	DumpTime time.Time
	// Signal
	Signal syscall.Signal
	// Input stream
	Stream io.ReadCloser
}

Jump to

Keyboard shortcuts

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