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

Method InterfaceCreate

remote_protocol.gen.go:8403–8423  ·  view source on GitHub ↗

InterfaceCreate is the go wrapper for REMOTE_PROC_INTERFACE_CREATE.

(Iface Interface, Flags uint32)

Source from the content-addressed store, hash-verified

8401
8402// InterfaceCreate is the go wrapper for REMOTE_PROC_INTERFACE_CREATE.
8403func (l *Libvirt) InterfaceCreate(Iface Interface, Flags uint32) (err error) {
8404 var buf []byte
8405
8406 args := InterfaceCreateArgs {
8407 Iface: Iface,
8408 Flags: Flags,
8409 }
8410
8411 buf, err = encode(&args)
8412 if err != nil {
8413 return
8414 }
8415
8416
8417 _, err = l.requestStream(133, constants.Program, buf, nil, nil)
8418 if err != nil {
8419 return
8420 }
8421
8422 return
8423}
8424
8425// InterfaceDestroy is the go wrapper for REMOTE_PROC_INTERFACE_DESTROY.
8426func (l *Libvirt) InterfaceDestroy(Iface Interface, Flags uint32) (err error) {

Callers

nothing calls this directly

Calls 2

requestStreamMethod · 0.95
encodeFunction · 0.85

Tested by

no test coverage detected