factory

package
v1.44.3 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2020 License: Apache-2.0 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
Package mock_cgroups is a generated GoMock package.
Package mock_cgroups is a generated GoMock package.
Package mock_factory is a generated GoMock package.
Package mock_factory is a generated GoMock package.

Jump to

Keyboard shortcuts

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