github.com/cloud-foundations/dominator@v0.0.0-20221004181915-6e4fee580046/imageunpacker/rpcd/prepareForUnpack.go (about)

     1  package rpcd
     2  
     3  import (
     4  	"github.com/Cloud-Foundations/Dominator/lib/srpc"
     5  	proto "github.com/Cloud-Foundations/Dominator/proto/imageunpacker"
     6  )
     7  
     8  func (t *srpcType) PrepareForUnpack(conn *srpc.Conn,
     9  	request proto.PrepareForUnpackRequest,
    10  	reply *proto.PrepareForUnpackResponse) error {
    11  	return t.unpacker.PrepareForUnpack(request.StreamName,
    12  		request.SkipIfPrepared, request.DoNotWaitForResult)
    13  }