cgroups

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: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CgroupStarter

type CgroupStarter struct {
	CgroupPath     string
	GardenCgroup   string
	AllowedDevices []specs.LinuxDeviceCgroup
	CommandRunner  commandrunner.CommandRunner

	ProcCgroups     io.ReadCloser
	ProcSelfCgroups io.ReadCloser

	Logger            lager.Logger
	Chowner           Chowner
	MountPointChecker rundmc.MountPointChecker
}

func NewStarter

func NewStarter(
	logger lager.Logger,
	procCgroupReader io.ReadCloser,
	procSelfCgroupReader io.ReadCloser,
	cgroupMountpoint string,
	gardenCgroup string,
	allowedDevices []specs.LinuxDeviceCgroup,
	runner commandrunner.CommandRunner,
	chowner Chowner,
	mountPointChecker rundmc.MountPointChecker,
) *CgroupStarter

func (*CgroupStarter) Start

func (s *CgroupStarter) Start() error

type CgroupsFormatError

type CgroupsFormatError struct {
	Content string
}

func (CgroupsFormatError) Error

func (err CgroupsFormatError) Error() string

type Chowner

type Chowner interface {
	RecursiveChown(path string) error
}

type OSChowner

type OSChowner struct {
	UID *int
	GID *int
}

func (*OSChowner) RecursiveChown

func (c *OSChowner) RecursiveChown(path string) 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