github.com/Cloud-Foundations/Dominator@v0.3.4/imagebuilder/rpcd/getDependencies.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  	proto "github.com/Cloud-Foundations/Dominator/proto/imaginator"
     7  )
     8  
     9  func (t *srpcType) GetDependencies(conn *srpc.Conn,
    10  	request proto.GetDependenciesRequest,
    11  	reply *proto.GetDependenciesResponse) error {
    12  	if result, err := t.builder.GetDependencies(request); err != nil {
    13  		reply.Error = errors.ErrorToString(err)
    14  	} else {
    15  		reply.GetDependenciesResult = result
    16  	}
    17  	return nil
    18  }