MCPcopy Create free account
hub / github.com/digitalocean/go-libvirt / StorageVolGetPath

Method StorageVolGetPath

remote_protocol.gen.go:7401–7431  ·  view source on GitHub ↗

StorageVolGetPath is the go wrapper for REMOTE_PROC_STORAGE_VOL_GET_PATH.

(Vol StorageVol)

Source from the content-addressed store, hash-verified

7399
7400// StorageVolGetPath is the go wrapper for REMOTE_PROC_STORAGE_VOL_GET_PATH.
7401func (l *Libvirt) StorageVolGetPath(Vol StorageVol) (rName string, err error) {
7402 var buf []byte
7403
7404 args := StorageVolGetPathArgs {
7405 Vol: Vol,
7406 }
7407
7408 buf, err = encode(&args)
7409 if err != nil {
7410 return
7411 }
7412
7413 var r response
7414 r, err = l.requestStream(100, constants.Program, buf, nil, nil)
7415 if err != nil {
7416 return
7417 }
7418
7419 // Return value unmarshaling
7420 tpd := typedParamDecoder{}
7421 ct := map[string]xdr.TypeDecoder{"libvirt.TypedParam": tpd}
7422 rdr := bytes.NewReader(r.Payload)
7423 dec := xdr.NewDecoderCustomTypes(rdr, 0, ct)
7424 // Name: string
7425 _, err = dec.Decode(&rName)
7426 if err != nil {
7427 return
7428 }
7429
7430 return
7431}
7432
7433// NodeGetCellsFreeMemory is the go wrapper for REMOTE_PROC_NODE_GET_CELLS_FREE_MEMORY.
7434func (l *Libvirt) NodeGetCellsFreeMemory(StartCell int32, Maxcells int32) (rCells []uint64, err error) {

Callers

nothing calls this directly

Calls 3

requestStreamMethod · 0.95
encodeFunction · 0.85
DecodeMethod · 0.65

Tested by

no test coverage detected