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

Function getProperties

cli/compose/loader/loader.go:259–273  ·  view source on GitHub ↗
(services map[string]any, propertyMap map[string]string)

Source from the content-addressed store, hash-verified

257}
258
259func getProperties(services map[string]any, propertyMap map[string]string) map[string]string {
260 output := map[string]string{}
261
262 for _, service := range services {
263 if serviceDict, ok := service.(map[string]any); ok {
264 for property, description := range propertyMap {
265 if _, isSet := serviceDict[property]; isSet {
266 output[property] = description
267 }
268 }
269 }
270 }
271
272 return output
273}
274
275// ForbiddenPropertiesError is returned when there are properties in the Compose
276// file that are forbidden.

Callers 2

validateForbiddenFunction · 0.85
GetDeprecatedPropertiesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…