(rlimit specs.POSIXRlimit)
| 134 | } |
| 135 | |
| 136 | func createLibContainerRlimit(rlimit specs.POSIXRlimit) (configs.Rlimit, error) { |
| 137 | rl, err := strToRlimit(rlimit.Type) |
| 138 | if err != nil { |
| 139 | return configs.Rlimit{}, err |
| 140 | } |
| 141 | return configs.Rlimit{ |
| 142 | Type: rl, |
| 143 | Hard: rlimit.Hard, |
| 144 | Soft: rlimit.Soft, |
| 145 | }, nil |
| 146 | } |
no test coverage detected
searching dependent graphs…