libvirt/python
Miloslav Trmač 9dc3b99345 Secret manipulation API docs refresh & wire up python generator
Sample session:

>>> import libvirt
>>> c = libvirt.open('qemu:///session')

>>> c.listSecrets()
['12247729-47d2-a783-88ce-b329d4781cd3', 'reee', 'abc']

>>> s = c.secretDefineXML("<secret ephemeral='no' private='no'>\n<description>Something for use</description>\n<volume>/foo/bar</volume>\n</secret>\n")

>>> s.UUIDString()
'340c2dfb-811b-eda8-da9e-25ccd7bfd650'

>>> s.XMLDesc()
"<secret ephemeral='no' private='no'>\n  <uuid>340c2dfb-811b-eda8-da9e-25ccd7bfd650</uuid>\n  <description>Something for use</description>\n  <volume>/foo/bar</volume>\n</secret>\n"

>>> s.setValue('abc\0xx\xffx')
0

>>> s.value()
'abc\x00xx\xffx'

>>> s.undefine()
0

* python/generator.py: Add rules for virSecret APIs
* python/libvir.c, python/libvirt-python-api.xml: Manual impl of
  virSecretSetValue, virSecretGetValue$ and virConnectListSecrets APIs
* python/libvirt_wrap.h, python/types.c: Wrapper for virSecret objects
* docs/libvirt-api.xml, docs/libvirt-refs.xml,
  docs/html/libvirt-virterror.html, docs/html/libvirt-libvirt.html,
  docs/devhelp/libvirt-virterror.html, docs/devhelp/libvirt-libvirt.html:
  Re-generate with 'make api'
2009-09-01 18:27:06 +01:00
..
tests remove all .cvsignore files 2009-07-08 16:17:51 +02:00
.gitignore update .gitignore and .hgignore files 2009-03-03 11:25:00 +00:00
generator.py Secret manipulation API docs refresh & wire up python generator 2009-09-01 18:27:06 +01:00
libvir.c Secret manipulation API docs refresh & wire up python generator 2009-09-01 18:27:06 +01:00
libvir.py Better error reporting if 'import libvirtmod' fails 2009-05-19 13:03:03 +00:00
libvirt_wrap.h Secret manipulation API docs refresh & wire up python generator 2009-09-01 18:27:06 +01:00
libvirt-python-api.xml Secret manipulation API docs refresh & wire up python generator 2009-09-01 18:27:06 +01:00
Makefile.am * python/Makefile.am: avoid a parallel make issue #472702 2009-02-26 13:58:35 +00:00
TODO syntax-check: enforce the no-cvs-keywords prohibition 2008-12-15 10:24:54 +00:00
types.c Secret manipulation API docs refresh & wire up python generator 2009-09-01 18:27:06 +01:00
virConnect.py Fix python bindings events code (David Lively) 2008-11-24 19:28:12 +00:00