https://github.com/ipfs/go-ipfs
Raw File
Tip revision: a2092bab539da04026b3918bdb4ae19c21dde2a2 authored by Jorropo on 08 August 2023, 12:09:30 UTC
Merge pull request #10057 from ipfs/release-v0.21.1
Tip revision: a2092ba
migration.go
package config

const DefaultMigrationKeep = "cache"

var DefaultMigrationDownloadSources = []string{"HTTPS", "IPFS"}

// Migration configures how migrations are downloaded and if the downloads are
// added to IPFS locally
type Migration struct {
	// Sources in order of preference, where "IPFS" means use IPFS and "HTTPS"
	// means use default gateways. Any other values are interpreted as
	// hostnames for custom gateways. Empty list means "use default sources".
	DownloadSources []string
	// Whether or not to keep the migration after downloading it.
	// Options are "discard", "cache", "pin".  Empty string for default.
	Keep string
}
back to top