GetValidPostgresVersions is a helper function that returns a list of valid PostgreSQL versions.
()
| 241 | |
| 242 | // GetValidPostgresVersions is a helper function that returns a list of valid PostgreSQL versions. |
| 243 | func GetValidPostgresVersions() []string { |
| 244 | s := make([]string, 0, len(ValidPostgresVersions)) |
| 245 | |
| 246 | for p := range ValidPostgresVersions { |
| 247 | s = append(s, p) |
| 248 | } |
| 249 | sort.Sort(natural.StringSlice(s)) |
| 250 | return s |
| 251 | } |
| 252 | |
| 253 | // IsValidWebserverType is a helper function to determine if a webserver type is valid, returning |
| 254 | // true if the supplied webserver type is valid and false otherwise. |
no outgoing calls
no test coverage detected