github.com/cloud-foundations/dominator@v0.0.0-20221004181915-6e4fee580046/imageserver/client/chownDirectory.go (about) 1 package client 2 3 import ( 4 "github.com/Cloud-Foundations/Dominator/lib/srpc" 5 "github.com/Cloud-Foundations/Dominator/proto/imageserver" 6 ) 7 8 func chownDirectory(client *srpc.Client, dirname, ownerGroup string) error { 9 request := imageserver.ChangeOwnerRequest{DirectoryName: dirname, 10 OwnerGroup: ownerGroup} 11 var reply imageserver.ChangeOwnerResponse 12 return client.RequestReply("ImageServer.ChownDirectory", request, &reply) 13 }