mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
This utility is used to split the SecurityOptions field from the "/info" response into a slice of security.Option. It's effectively only used by the CLI to present the `docker info` output, but has a use in buildx to parse the response. We can assume the daemon returns a valid response, remove the error- conditions and fallback for legacy daemon versions (< 1.13), and limit it to parsing the response only. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>