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

Method NodeSetMemoryParameters

remote_protocol.gen.go:13036–13056  ·  view source on GitHub ↗

NodeSetMemoryParameters is the go wrapper for REMOTE_PROC_NODE_SET_MEMORY_PARAMETERS.

(Params []TypedParam, Flags uint32)

Source from the content-addressed store, hash-verified

13034
13035// NodeSetMemoryParameters is the go wrapper for REMOTE_PROC_NODE_SET_MEMORY_PARAMETERS.
13036func (l *Libvirt) NodeSetMemoryParameters(Params []TypedParam, Flags uint32) (err error) {
13037 var buf []byte
13038
13039 args := NodeSetMemoryParametersArgs {
13040 Params: Params,
13041 Flags: Flags,
13042 }
13043
13044 buf, err = encode(&args)
13045 if err != nil {
13046 return
13047 }
13048
13049
13050 _, err = l.requestStream(288, constants.Program, buf, nil, nil)
13051 if err != nil {
13052 return
13053 }
13054
13055 return
13056}
13057
13058// NodeGetMemoryParameters is the go wrapper for REMOTE_PROC_NODE_GET_MEMORY_PARAMETERS.
13059func (l *Libvirt) NodeGetMemoryParameters(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