github.com/cloud-foundations/dominator@v0.0.0-20221004181915-6e4fee580046/hypervisor/rpcd/discardVmSnapshot.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) DiscardVmSnapshot(conn *srpc.Conn,
    10  	request hypervisor.DiscardVmSnapshotRequest,
    11  	reply *hypervisor.DiscardVmSnapshotResponse) error {
    12  	response := hypervisor.DiscardVmSnapshotResponse{
    13  		errors.ErrorToString(t.manager.DiscardVmSnapshot(request.IpAddress,
    14  			conn.GetAuthInformation()))}
    15  	*reply = response
    16  	return nil
    17  }