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

Function GetDeprecatedProperties

cli/compose/loader/loader.go:248–257  ·  view source on GitHub ↗

GetDeprecatedProperties returns the list of any deprecated properties that are used in the compose files.

(configDicts ...map[string]any)

Source from the content-addressed store, hash-verified

246// GetDeprecatedProperties returns the list of any deprecated properties that
247// are used in the compose files.
248func GetDeprecatedProperties(configDicts ...map[string]any) map[string]string {
249 deprecated := map[string]string{}
250
251 for _, configDict := range configDicts {
252 deprecatedProperties := getProperties(getServices(configDict), types.DeprecatedProperties)
253 maps.Copy(deprecated, deprecatedProperties)
254 }
255
256 return deprecated
257}
258
259func getProperties(services map[string]any, propertyMap map[string]string) map[string]string {
260 output := map[string]string{}

Callers 1

TestDeprecatedPropertiesFunction · 0.85

Calls 2

getPropertiesFunction · 0.85
getServicesFunction · 0.85

Tested by 1

TestDeprecatedPropertiesFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…