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

Method DomainSetMemoryParameters

remote_protocol.gen.go:10264–10285  ·  view source on GitHub ↗

DomainSetMemoryParameters is the go wrapper for REMOTE_PROC_DOMAIN_SET_MEMORY_PARAMETERS.

(Dom Domain, Params []TypedParam, Flags uint32)

Source from the content-addressed store, hash-verified

10262
10263// DomainSetMemoryParameters is the go wrapper for REMOTE_PROC_DOMAIN_SET_MEMORY_PARAMETERS.
10264func (l *Libvirt) DomainSetMemoryParameters(Dom Domain, Params []TypedParam, Flags uint32) (err error) {
10265 var buf []byte
10266
10267 args := DomainSetMemoryParametersArgs {
10268 Dom: Dom,
10269 Params: Params,
10270 Flags: Flags,
10271 }
10272
10273 buf, err = encode(&args)
10274 if err != nil {
10275 return
10276 }
10277
10278
10279 _, err = l.requestStream(197, constants.Program, buf, nil, nil)
10280 if err != nil {
10281 return
10282 }
10283
10284 return
10285}
10286
10287// DomainGetMemoryParameters is the go wrapper for REMOTE_PROC_DOMAIN_GET_MEMORY_PARAMETERS.
10288func (l *Libvirt) DomainGetMemoryParameters(Dom Domain, Nparams int32, Flags uint32) (rParams []TypedParam, rNparams int32, err error) {

Callers

nothing calls this directly

Calls 2

requestStreamMethod · 0.95
encodeFunction · 0.85

Tested by

no test coverage detected