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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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