github.com/cloud-foundations/dominator@v0.0.0-20221004181915-6e4fee580046/hypervisor/rpcd/restoreVmUserData.go (about) 1 package rpcd 2 3 import ( 4 "github.com/Cloud-Foundations/Dominator/lib/errors" 5 "github.com/Cloud-Foundations/Dominator/lib/srpc" 6 "github.com/Cloud-Foundations/Dominator/proto/hypervisor" 7 ) 8 9 func (t *srpcType) RestoreVmUserData(conn *srpc.Conn, 10 request hypervisor.RestoreVmUserDataRequest, 11 reply *hypervisor.RestoreVmUserDataResponse) error { 12 response := hypervisor.RestoreVmUserDataResponse{ 13 errors.ErrorToString(t.manager.RestoreVmUserData(request.IpAddress, 14 conn.GetAuthInformation()))} 15 *reply = response 16 return nil 17 }