const versionFilename … var migrateCmd … var opts … func main() { … } // runMigrate starts the migration. func runMigrate() { … } func copyBinaries() { … } // migrate opens or initializes the etcd data directory, configures the migrator, and starts the migration. func migrate(name string, port uint64, peerListenUrls string, peerAdvertiseUrls string, clientListenUrls string, binPath string, dataDirPath string, etcdDataPrefix string, ttlKeysDirectory string, initialCluster string, target *EtcdVersionPair, bundledVersions SupportedVersions, etcdServerArgs string) { … }