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

Method NodeDeviceUpdate

remote_protocol.gen.go:17256–17277  ·  view source on GitHub ↗

NodeDeviceUpdate is the go wrapper for REMOTE_PROC_NODE_DEVICE_UPDATE.

(Name string, XMLDesc string, Flags NodeDeviceUpdateFlags)

Source from the content-addressed store, hash-verified

17254
17255// NodeDeviceUpdate is the go wrapper for REMOTE_PROC_NODE_DEVICE_UPDATE.
17256func (l *Libvirt) NodeDeviceUpdate(Name string, XMLDesc string, Flags NodeDeviceUpdateFlags) (err error) {
17257 var buf []byte
17258
17259 args := NodeDeviceUpdateArgs {
17260 Name: Name,
17261 XMLDesc: XMLDesc,
17262 Flags: Flags,
17263 }
17264
17265 buf, err = encode(&args)
17266 if err != nil {
17267 return
17268 }
17269
17270
17271 _, err = l.requestStream(447, constants.Program, buf, nil, nil)
17272 if err != nil {
17273 return
17274 }
17275
17276 return
17277}
17278
17279// DomainGraphicsReload is the go wrapper for REMOTE_PROC_DOMAIN_GRAPHICS_RELOAD.
17280func (l *Libvirt) DomainGraphicsReload(Dom Domain, Type uint32, Flags uint32) (err error) {

Callers

nothing calls this directly

Calls 2

requestStreamMethod · 0.95
encodeFunction · 0.85

Tested by

no test coverage detected