carlos / platform Public

Clone
git clone https://amadan.net/carlos/platform

Plain git — no account needed to clone.

Download

Download this file

1//go:build !linux
2
3package cgroup
4
5import "context"
6
7type Cleanup struct{}
8
9func (m *Manager) OpenCleanup(string) (*Cleanup, error) {
10 if m == nil || m.root == "" {
11 return nil, ErrNoDelegation
12 }
13 return nil, ErrStrictUnsupported
14}
15
16func (m *Manager) OpenCleanupChild(string, string) (*Cleanup, error) {
17 if m == nil || m.root == "" {
18 return nil, ErrNoDelegation
19 }
20 return nil, ErrStrictUnsupported
21}
22
23func (*Cleanup) Populated() (bool, error) { return false, ErrStrictUnsupported }
24func (*Cleanup) Members() ([]int, error) { return nil, ErrStrictUnsupported }
25func (*Cleanup) KillAndEmpty(context.Context) error { return ErrStrictUnsupported }
26func (*Cleanup) Close() error { return ErrStrictUnsupported }
27