(config *RegistryMCPServerConfig, mountsValue any)
| 581 | } |
| 582 | |
| 583 | func appendContainerMounts(config *RegistryMCPServerConfig, mountsValue any) { |
| 584 | mountsSlice, ok := mountsValue.([]any) |
| 585 | if !ok { |
| 586 | return |
| 587 | } |
| 588 | var mountStrings []string |
| 589 | for _, mount := range mountsSlice { |
| 590 | if mountStr, ok := mount.(string); ok { |
| 591 | mountStrings = append(mountStrings, mountStr) |
| 592 | config.Mounts = append(config.Mounts, mountStr) |
| 593 | } |
| 594 | } |
| 595 | sort.Strings(mountStrings) |
| 596 | for _, mountStr := range mountStrings { |
| 597 | config.Args = append(config.Args, "-v", mountStr) |
| 598 | } |
| 599 | } |
| 600 | |
| 601 | func appendNetworkProxyArgs(networkValue any, proxyArgs *[]string) { |
| 602 | networkMap, ok := networkValue.(map[string]any) |
no outgoing calls
no test coverage detected