strategies

package
v0.3.42 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContainerStrategy

type ContainerStrategy struct{}

ContainerStrategy handles reparenting for containerd-based containers

func (*ContainerStrategy) GetNewParentPID

func (cs *ContainerStrategy) GetNewParentPID(exitingPID uint32, children []*apitypes.Process, containerTree containerprocesstree.ContainerProcessTree, processMap *maps.SafeMap[uint32, *apitypes.Process]) uint32

func (*ContainerStrategy) IsApplicable

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

func (*ContainerStrategy) Name

func (cs *ContainerStrategy) Name() string

type DefaultStrategy

type DefaultStrategy struct{}

func (*DefaultStrategy) GetNewParentPID

func (defs *DefaultStrategy) GetNewParentPID(exitingPID uint32, children []*apitypes.Process, containerTree containerprocesstree.ContainerProcessTree, processMap *maps.SafeMap[uint32, *apitypes.Process]) uint32

func (*DefaultStrategy) IsApplicable

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

func (*DefaultStrategy) Name

func (defs *DefaultStrategy) Name() string

type FallBackStrategy

type FallBackStrategy struct{}

func (*FallBackStrategy) GetNewParentPID

func (fbs *FallBackStrategy) GetNewParentPID(exitingPID uint32, children []*apitypes.Process, containerTree containerprocesstree.ContainerProcessTree, processMap *maps.SafeMap[uint32, *apitypes.Process]) uint32

func (*FallBackStrategy) IsApplicable

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

func (*FallBackStrategy) Name

func (fbs *FallBackStrategy) Name() string

Jump to

Keyboard shortcuts

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