![]() Looks like we had our own copy of the "getDevices" code already, so use that code (which also matches the code that's used to _generate_ the spec, so a better match). Moving the code to a separate file, I also noticed that the _unix and _linux code was _exactly_ the same (baring some `//nolint:` comments), so also removing the duplicated code. With this patch applied, we removed the dependency on the libcontainer/devices package (leaving only libcontainer/user). Signed-off-by: Sebastiaan van Stijn <github@gone.nl> |
||
---|---|---|
.. | ||
client.go | ||
spec_opts_linux_test.go | ||
spec_opts_linux.go | ||
spec_opts_nonlinux.go | ||
spec_opts_test.go | ||
spec_opts_unix_test.go | ||
spec_opts_unix.go | ||
spec_opts_windows_test.go | ||
spec_opts_windows.go | ||
spec_opts.go | ||
spec_test.go | ||
spec.go | ||
utils_unix.go |