Documentation ¶
Index ¶
- func ExpandSlice(slice string) (string, error)
- func UseSystemd() bool
- type Manager
- func (m *Manager) Apply(pid int) error
- func (m *Manager) Destroy() error
- func (m *Manager) Freeze(state configs.FreezerState) error
- func (m *Manager) GetAllPids() ([]int, error)
- func (m *Manager) GetPaths() map[string]string
- func (m *Manager) GetPids() ([]int, error)
- func (m *Manager) GetStats() (*cgroups.Stats, error)
- func (m *Manager) Set(container *configs.Config) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExpandSlice ¶
systemd represents slice hierarchy using `-`, so we need to follow suit when generating the path of slice. Essentially, test-a-b.slice becomes /test.slice/test-a.slice/test-a-b.slice.
func UseSystemd ¶
func UseSystemd() bool
Types ¶
Click to show internal directories.
Click to hide internal directories.