DeleteByPath deletes the specified cgroup path
(path string)
| 562 | |
| 563 | // DeleteByPath deletes the specified cgroup path |
| 564 | func (c *CgroupControl) DeleteByPath(path string) error { |
| 565 | if c.systemd { |
| 566 | conn, err := systemdDbus.NewWithContext(context.TODO()) |
| 567 | if err != nil { |
| 568 | return err |
| 569 | } |
| 570 | defer conn.Close() |
| 571 | return c.DeleteByPathConn(path, conn) |
| 572 | } |
| 573 | return c.DeleteByPathConn(path, nil) |
| 574 | } |
| 575 | |
| 576 | // Update updates the cgroups |
| 577 | func (c *CgroupControl) Update(resources *spec.LinuxResources) error { |
no test coverage detected