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