(path []string)
| 1713 | } |
| 1714 | |
| 1715 | func classifySandboxMutationPath(path []string) (configSetValueKind, bool, bool) { |
| 1716 | if len(path) == 4 && path[0] == configPathSandboxes { |
| 1717 | switch path[2] { |
| 1718 | case configEnvKey, configSecretEnvKey: |
| 1719 | return configSetString, true, true |
| 1720 | case configNetworkKey: |
| 1721 | return classifySandboxNetworkMutationPath(path[3]) |
| 1722 | case "daytona": |
| 1723 | return classifySandboxDaytonaMutationPath(path[3]) |
| 1724 | } |
| 1725 | } |
| 1726 | if len(path) == 3 && path[0] == configPathSandboxes { |
| 1727 | switch path[2] { |
| 1728 | case configBackendKey, "sync_mode", "persistence", "runtime_root": |
| 1729 | return configSetString, false, true |
| 1730 | } |
| 1731 | } |
| 1732 | return configSetString, false, false |
| 1733 | } |
| 1734 | |
| 1735 | func classifySandboxNetworkMutationPath(name string) (configSetValueKind, bool, bool) { |
| 1736 | switch name { |
no test coverage detected