MCPcopy Create free account
hub / github.com/docker/cli / GetUnsupportedProperties

Function GetUnsupportedProperties

cli/compose/loader/loader.go:220–235  ·  view source on GitHub ↗

GetUnsupportedProperties returns the list of any unsupported properties that are used in the Compose files.

(configDicts ...map[string]any)

Source from the content-addressed store, hash-verified

218// GetUnsupportedProperties returns the list of any unsupported properties that are
219// used in the Compose files.
220func GetUnsupportedProperties(configDicts ...map[string]any) []string {
221 unsupported := map[string]bool{}
222
223 for _, configDict := range configDicts {
224 for _, service := range getServices(configDict) {
225 serviceDict := service.(map[string]any)
226 for _, property := range types.UnsupportedProperties {
227 if _, isSet := serviceDict[property]; isSet {
228 unsupported[property] = true
229 }
230 }
231 }
232 }
233
234 return sortedKeys(unsupported)
235}
236
237func sortedKeys(set map[string]bool) []string {
238 keys := make([]string, 0, len(set))

Callers 1

Calls 2

getServicesFunction · 0.85
sortedKeysFunction · 0.85

Tested by 1

Used in the wild real call sites across dependent graphs

searching dependent graphs…