stopper

package
v0.0.0-...-42bfd3d Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRuncStateCgroupPathResolver

func NewRuncStateCgroupPathResolver(stateStorePath string) *resolver

Types

type CgroupPathResolver

type CgroupPathResolver interface {
	Resolve(cgroupName, subsystem string) (string, error)
}

type CgroupStopper

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

func New

func New(cgroupPathResolver CgroupPathResolver, killer Killer, retrier Retrier) *CgroupStopper

func (*CgroupStopper) StopAll

func (stopper *CgroupStopper) StopAll(log lager.Logger, cgroupName string, exceptions []int, kill bool) error

type DefaultKiller

type DefaultKiller struct{}

func (DefaultKiller) Kill

func (DefaultKiller) Kill(signal syscall.Signal, pids ...int)

type Killer

type Killer interface {
	Kill(signal syscall.Signal, pid ...int)
}

type NoopStopper

type NoopStopper struct {
}

func NewNoopStopper

func NewNoopStopper() *NoopStopper

func (NoopStopper) Stop

func (s NoopStopper) Stop() error

type Retrier

type Retrier interface {
	Run(work func() error) error
}

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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