stopper

package
v0.0.0-...-cf22b21 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

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 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