(path string, resources *specs.LinuxResources)
| 200 | } |
| 201 | |
| 202 | func (m *memoryController) Create(path string, resources *specs.LinuxResources) error { |
| 203 | if err := os.MkdirAll(m.Path(path), defaultDirPerm); err != nil { |
| 204 | return err |
| 205 | } |
| 206 | if resources.Memory == nil { |
| 207 | return nil |
| 208 | } |
| 209 | return m.set(path, getMemorySettings(resources)) |
| 210 | } |
| 211 | |
| 212 | func (m *memoryController) Update(path string, resources *specs.LinuxResources) error { |
| 213 | if resources.Memory == nil { |
nothing calls this directly
no test coverage detected