1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-09-18 13:54:02 +08:00
Files
kubo/config/migration.go
2025-08-20 05:59:11 +02:00

20 lines
971 B
Go

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