applyDefaults sets default configuration options if they are not already set.
( cfg *Finch, deps LoadSystemDeps, mem fmemory.Memory, ecc command.Creator, )
| 85 | |
| 86 | // applyDefaults sets default configuration options if they are not already set. |
| 87 | func applyDefaults( |
| 88 | cfg *Finch, |
| 89 | deps LoadSystemDeps, |
| 90 | mem fmemory.Memory, |
| 91 | ecc command.Creator, |
| 92 | ) *Finch { |
| 93 | cpuDefault(cfg, deps) |
| 94 | memoryDefault(cfg, mem) |
| 95 | supportsVz := false |
| 96 | vz, err := SupportsVirtualizationFramework(ecc) |
| 97 | if err == nil && vz { |
| 98 | supportsVz = true |
| 99 | } |
| 100 | vmDefault(cfg, supportsVz) |
| 101 | rosettaDefault(cfg) |
| 102 | credHelperDefault(cfg) |
| 103 | |
| 104 | bootDiskDefault(cfg) |
| 105 | dataDiskDefault(cfg) |
| 106 | |
| 107 | return cfg |
| 108 | } |
nothing calls this directly
no test coverage detected