Documentation ¶
Index ¶
- type CgroupReader
- type ContainerCgroupsManager
- func (m *ContainerCgroupsManager) Add(pid int, subsystems ...string) error
- func (m *ContainerCgroupsManager) Get(subsystem, name string) (string, error)
- func (m *ContainerCgroupsManager) Set(subsystem, name, value string) error
- func (m *ContainerCgroupsManager) Setup(subsystems ...string) error
- func (m *ContainerCgroupsManager) SubsystemPath(subsystem string) (string, error)
- type LinuxCgroupReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CgroupReader ¶
type ContainerCgroupsManager ¶
type ContainerCgroupsManager struct {
// contains filtered or unexported fields
}
func New ¶
func New(cgroupsPath, containerID string, cgroupReader CgroupReader) *ContainerCgroupsManager
func (*ContainerCgroupsManager) Add ¶
func (m *ContainerCgroupsManager) Add(pid int, subsystems ...string) error
func (*ContainerCgroupsManager) Get ¶
func (m *ContainerCgroupsManager) Get(subsystem, name string) (string, error)
func (*ContainerCgroupsManager) Set ¶
func (m *ContainerCgroupsManager) Set(subsystem, name, value string) error
func (*ContainerCgroupsManager) Setup ¶
func (m *ContainerCgroupsManager) Setup(subsystems ...string) error
func (*ContainerCgroupsManager) SubsystemPath ¶
func (m *ContainerCgroupsManager) SubsystemPath(subsystem string) (string, error)
type LinuxCgroupReader ¶
type LinuxCgroupReader struct { Path string // contains filtered or unexported fields }
func (*LinuxCgroupReader) CgroupNode ¶
func (c *LinuxCgroupReader) CgroupNode(subsystem string) (string, error)
Directories ¶
Path | Synopsis |
---|---|
This file was generated by counterfeiter
|
This file was generated by counterfeiter |
Click to show internal directories.
Click to hide internal directories.