mountOptionsIsValidField checks a string against a valid list of optional fields keys.
(s string)
| 117 | |
| 118 | // mountOptionsIsValidField checks a string against a valid list of optional fields keys. |
| 119 | func mountOptionsIsValidField(s string) bool { |
| 120 | switch s { |
| 121 | case |
| 122 | "shared", |
| 123 | "master", |
| 124 | "propagate_from", |
| 125 | "unbindable": |
| 126 | return true |
| 127 | } |
| 128 | return false |
| 129 | } |
| 130 | |
| 131 | // mountOptionsParseOptionalFields parses a list of optional fields strings into a double map of strings. |
| 132 | func mountOptionsParseOptionalFields(o []string) (map[string]string, error) { |
no outgoing calls
no test coverage detected
searching dependent graphs…