factory

package
v1.16.0 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2017 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 4 more Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CgroupFactory

type CgroupFactory interface {
	// New is used to create a new cgroup hierarchy
	New(hierarchy cgroups.Hierarchy, path cgroups.Path, specs *specs.LinuxResources) (cgroups.Cgroup, error)
	// Load is used to load the cgroup based off the cgroup path
	Load(hierarchy cgroups.Hierarchy, path cgroups.Path) (cgroups.Cgroup, error)
}

CgroupFactory wraps around the global functions exposed by the cgroups library

type GlobalCgroupFactory

type GlobalCgroupFactory struct{}

GlobalCgroupFactory calls the cgroups library global functions

func (*GlobalCgroupFactory) Load

func (c *GlobalCgroupFactory) Load(hierarchy cgroups.Hierarchy, path cgroups.Path) (cgroups.Cgroup, error)

Load is used to load the cgroup hierarchy based off the cgroup path

func (*GlobalCgroupFactory) New

New is used to create a new cgroup hierarchy

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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