| 1 | package config |
| 2 | |
| 3 | const DefaultMigrationKeep = "cache" |
| 4 | |
| 5 | // DefaultMigrationDownloadSources defines the default download sources for legacy migrations (repo versions <16). |
| 6 | // Only HTTPS is supported for legacy migrations. IPFS downloads are not supported. |
| 7 | var DefaultMigrationDownloadSources = []string{"HTTPS"} |
| 8 | |
| 9 | // Migration configures how legacy migrations are downloaded (repo versions <16). |
| 10 | // |
| 11 | // DEPRECATED: This configuration only applies to legacy external migrations for repository |
| 12 | // versions below 16. Modern repositories (v16+) use embedded migrations that do not require |
| 13 | // external downloads. These settings will be ignored for modern repository versions. |
| 14 | type Migration struct { |
| 15 | // DEPRECATED: This field is deprecated and ignored for modern repositories (repo versions ≥16). |
| 16 | DownloadSources []string `json:",omitempty"` |
| 17 | // DEPRECATED: This field is deprecated and ignored for modern repositories (repo versions ≥16). |
| 18 | Keep string `json:",omitempty"` |
| 19 | } |