github.com/cloud-foundations/dominator@v0.0.0-20221004181915-6e4fee580046/hypervisor/rpcd/listSubnets.go (about) 1 package rpcd 2 3 import ( 4 "github.com/Cloud-Foundations/Dominator/lib/srpc" 5 "github.com/Cloud-Foundations/Dominator/proto/hypervisor" 6 ) 7 8 func (t *srpcType) ListSubnets(conn *srpc.Conn, 9 request hypervisor.ListSubnetsRequest, 10 reply *hypervisor.ListSubnetsResponse) error { 11 *reply = hypervisor.ListSubnetsResponse{ 12 Subnets: t.manager.ListSubnets(request.Sort)} 13 return nil 14 }