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

Method DomainMigrateGetCompressionCache

remote_protocol.gen.go:13358–13389  ·  view source on GitHub ↗

DomainMigrateGetCompressionCache is the go wrapper for REMOTE_PROC_DOMAIN_MIGRATE_GET_COMPRESSION_CACHE.

(Dom Domain, Flags uint32)

Source from the content-addressed store, hash-verified

13356
13357// DomainMigrateGetCompressionCache is the go wrapper for REMOTE_PROC_DOMAIN_MIGRATE_GET_COMPRESSION_CACHE.
13358func (l *Libvirt) DomainMigrateGetCompressionCache(Dom Domain, Flags uint32) (rCacheSize uint64, err error) {
13359 var buf []byte
13360
13361 args := DomainMigrateGetCompressionCacheArgs {
13362 Dom: Dom,
13363 Flags: Flags,
13364 }
13365
13366 buf, err = encode(&args)
13367 if err != nil {
13368 return
13369 }
13370
13371 var r response
13372 r, err = l.requestStream(299, constants.Program, buf, nil, nil)
13373 if err != nil {
13374 return
13375 }
13376
13377 // Return value unmarshaling
13378 tpd := typedParamDecoder{}
13379 ct := map[string]xdr.TypeDecoder{"libvirt.TypedParam": tpd}
13380 rdr := bytes.NewReader(r.Payload)
13381 dec := xdr.NewDecoderCustomTypes(rdr, 0, ct)
13382 // CacheSize: uint64
13383 _, err = dec.Decode(&rCacheSize)
13384 if err != nil {
13385 return
13386 }
13387
13388 return
13389}
13390
13391// DomainMigrateSetCompressionCache is the go wrapper for REMOTE_PROC_DOMAIN_MIGRATE_SET_COMPRESSION_CACHE.
13392func (l *Libvirt) DomainMigrateSetCompressionCache(Dom Domain, CacheSize uint64, Flags uint32) (err error) {

Callers

nothing calls this directly

Calls 3

requestStreamMethod · 0.95
encodeFunction · 0.85
DecodeMethod · 0.65

Tested by

no test coverage detected