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

Method NodeDeviceReAttach

remote_protocol.gen.go:7987–8006  ·  view source on GitHub ↗

NodeDeviceReAttach is the go wrapper for REMOTE_PROC_NODE_DEVICE_RE_ATTACH.

(Name string)

Source from the content-addressed store, hash-verified

7985
7986// NodeDeviceReAttach is the go wrapper for REMOTE_PROC_NODE_DEVICE_RE_ATTACH.
7987func (l *Libvirt) NodeDeviceReAttach(Name string) (err error) {
7988 var buf []byte
7989
7990 args := NodeDeviceReAttachArgs {
7991 Name: Name,
7992 }
7993
7994 buf, err = encode(&args)
7995 if err != nil {
7996 return
7997 }
7998
7999
8000 _, err = l.requestStream(119, constants.Program, buf, nil, nil)
8001 if err != nil {
8002 return
8003 }
8004
8005 return
8006}
8007
8008// NodeDeviceReset is the go wrapper for REMOTE_PROC_NODE_DEVICE_RESET.
8009func (l *Libvirt) NodeDeviceReset(Name string) (err error) {

Callers

nothing calls this directly

Calls 2

requestStreamMethod · 0.95
encodeFunction · 0.85

Tested by

no test coverage detected