github.com/Cloud-Foundations/Dominator@v0.3.4/hypervisor/rpcd/changeOwners.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) ChangeOwners(conn *srpc.Conn,
    10  	request hypervisor.ChangeOwnersRequest,
    11  	reply *hypervisor.ChangeOwnersResponse) error {
    12  	response := hypervisor.ChangeOwnersResponse{
    13  		errors.ErrorToString(
    14  			t.manager.ChangeOwners(request.OwnerGroups, request.OwnerUsers))}
    15  	*reply = response
    16  	return nil
    17  }