reparenting

package
v0.2.366 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ReparentingStrategies

type ReparentingStrategies interface {
	Reparent(exitingPID uint32, children []*apitypes.Process, containerTree containerprocesstree.ContainerProcessTree, processMap *maps.SafeMap[uint32, *apitypes.Process]) (uint32, error)

	AddStrategy(strategy ReparentingStrategy)

	GetStrategies() []ReparentingStrategy
}

ReparentingStrategies defines the interface for the reparenting logic component

func NewReparentingLogic

func NewReparentingLogic() (ReparentingStrategies, error)

type ReparentingStrategy

type ReparentingStrategy interface {
	GetNewParentPID(exitingPID uint32, children []*apitypes.Process, containerTree containerprocesstree.ContainerProcessTree, processMap *maps.SafeMap[uint32, *apitypes.Process]) uint32

	Name() string

	IsApplicable(exitingPID uint32, containerTree containerprocesstree.ContainerProcessTree, processMap *maps.SafeMap[uint32, *apitypes.Process]) bool
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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