mirror of
https://github.com/ipfs/kubo.git
synced 2025-09-18 13:54:02 +08:00

https://github.com/ipfs/kubo/pull/10883 https://github.com/ipshipyard/config.ipfs-mainnet.org/issues/3 --------- Co-authored-by: gammazero <gammazero@users.noreply.github.com>
20 lines
971 B
Go
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"`
|
|
}
|