Help us shape the future of Go! Take the 2026 Go Developer Survey

reparenting

package
v0.3.310 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2026 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 []*armotypes.Process, containerTree containerprocesstree.ContainerProcessTree, processMap *maps.SafeMap[uint32, *armotypes.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 []*armotypes.Process, containerTree containerprocesstree.ContainerProcessTree, processMap *maps.SafeMap[uint32, *armotypes.Process]) uint32

	Name() string

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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