MCPcopy Index your code
hub / github.com/ddev/ddev / GetValidPostgresVersions

Function GetValidPostgresVersions

pkg/nodeps/values.go:243–251  ·  view source on GitHub ↗

GetValidPostgresVersions is a helper function that returns a list of valid PostgreSQL versions.

()

Source from the content-addressed store, hash-verified

241
242// GetValidPostgresVersions is a helper function that returns a list of valid PostgreSQL versions.
243func 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.

Callers 2

ValidateConfigMethod · 0.92
GetValidDatabaseVersionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected