type EtcdMigrateServer … // NewEtcdMigrateServer creates a EtcdMigrateServer for starting and stopping a etcd server at the given version. func NewEtcdMigrateServer(cfg *EtcdMigrateCfg, client EtcdMigrateClient) *EtcdMigrateServer { … } // Start starts an etcd server as a separate process, waits until it has started, and returns a exec.Cmd. // TODO: Add support for listening to client via TLS. func (r *EtcdMigrateServer) Start(version *EtcdVersion) error { … } // Stop terminates the etcd server process. If the etcd server process has not been started // or is not still running, this returns an error. func (r *EtcdMigrateServer) Stop() error { … }