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

Method NodeGetSecurityModel

remote_protocol.gen.go:8069–8095  ·  view source on GitHub ↗

NodeGetSecurityModel is the go wrapper for REMOTE_PROC_NODE_GET_SECURITY_MODEL.

()

Source from the content-addressed store, hash-verified

8067
8068// NodeGetSecurityModel is the go wrapper for REMOTE_PROC_NODE_GET_SECURITY_MODEL.
8069func (l *Libvirt) NodeGetSecurityModel() (rModel []int8, rDoi []int8, err error) {
8070 var buf []byte
8071
8072 var r response
8073 r, err = l.requestStream(122, constants.Program, buf, nil, nil)
8074 if err != nil {
8075 return
8076 }
8077
8078 // Return value unmarshaling
8079 tpd := typedParamDecoder{}
8080 ct := map[string]xdr.TypeDecoder{"libvirt.TypedParam": tpd}
8081 rdr := bytes.NewReader(r.Payload)
8082 dec := xdr.NewDecoderCustomTypes(rdr, 0, ct)
8083 // Model: []int8
8084 _, err = dec.Decode(&rModel)
8085 if err != nil {
8086 return
8087 }
8088 // Doi: []int8
8089 _, err = dec.Decode(&rDoi)
8090 if err != nil {
8091 return
8092 }
8093
8094 return
8095}
8096
8097// NodeDeviceCreateXML is the go wrapper for REMOTE_PROC_NODE_DEVICE_CREATE_XML.
8098func (l *Libvirt) NodeDeviceCreateXML(XMLDesc string, Flags NodeDeviceCreateXMLFlags) (rDev NodeDevice, err error) {

Callers

nothing calls this directly

Calls 2

requestStreamMethod · 0.95
DecodeMethod · 0.65

Tested by

no test coverage detected