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

Method DomainSetMaxMemory

remote_protocol.gen.go:5273–5293  ·  view source on GitHub ↗

DomainSetMaxMemory is the go wrapper for REMOTE_PROC_DOMAIN_SET_MAX_MEMORY.

(Dom Domain, Memory uint64)

Source from the content-addressed store, hash-verified

5271
5272// DomainSetMaxMemory is the go wrapper for REMOTE_PROC_DOMAIN_SET_MAX_MEMORY.
5273func (l *Libvirt) DomainSetMaxMemory(Dom Domain, Memory uint64) (err error) {
5274 var buf []byte
5275
5276 args := DomainSetMaxMemoryArgs {
5277 Dom: Dom,
5278 Memory: Memory,
5279 }
5280
5281 buf, err = encode(&args)
5282 if err != nil {
5283 return
5284 }
5285
5286
5287 _, err = l.requestStream(30, constants.Program, buf, nil, nil)
5288 if err != nil {
5289 return
5290 }
5291
5292 return
5293}
5294
5295// DomainSetMemory is the go wrapper for REMOTE_PROC_DOMAIN_SET_MEMORY.
5296func (l *Libvirt) DomainSetMemory(Dom Domain, Memory uint64) (err error) {

Callers

nothing calls this directly

Calls 2

requestStreamMethod · 0.95
encodeFunction · 0.85

Tested by

no test coverage detected